<div class="chat-message" id="chat-message-{id}">
	<div class="chat-info">
		{login}
		<span class="float-right" tooltip="yes" data-placement="left" data-original-title="{date}">{time}</span>
		<? if(strripos("{gp_rights}", "d") !== false){ ?>
			<a href="#" onclick="chatmsg_edit('{id}'); return false" id="edit_message_{id}">[редактировать]</a>
			<a href="#" onclick="chatmsg_del('{id}'); return false">[удалить]</a>
		<? } ?>
	</div>
	<div class="chat-data">
		<div class="chat-user-avatar float-left">
			<a href="../profile?id={user}"><img src="{avatar}" alt="{login}"></a>
		</div>
		<div class="chat-text" id="message_text_{id}">{text}</div>
		<? if(strripos("{gp_rights}", "d") !== false){ ?>
			<textarea id="message_text_e_{id}" class="disp-n">{text}</textarea>
		<? } ?>
	</div>
	<div class="clear"></div>
</div>