<div class="topic" id="answer_{id}">
	<table>
		<tbody>
			<tr>
				<td align="center">
					<a href="../profile?id={author}">{login}</a>
				</td>
				<td align="right">
					<? if((strripos($users_groups[$sessionrights]['rights'], "r") !== false) or (isset($sessionid) && $sessionid != null && ('{author_id}' == '{my_id}') && ('1' == '{check}'))){ ?>
						<span class="float-left c-p-d" onclick="document.location.href='../forum/edit_message?id={topic_id}&id2={id}'">[редактировать]</span>
					<? } ?>
					<? if(strripos($users_groups[$sessionrights]['rights'], "e") !== false){ ?>
						<span class="float-left c-p-d" onclick="dell_answer('{id}')">[удалить]</span>
					<? } ?>
					{date}
				</td>
			</tr>
			<tr>
				<td align="center">
					<img src="../{avatar}" alt="{login}">
					<div class="space"></div>
					<div class="info">
						<p style="color: {gp_color}">{gp_name}</p>
						<p>Рейтинг: {reit}</p>
						<p>Сообщений: {answers}</p>
						<p>Спасибок: {thanks}</p>
					</div>
				</td>
				<td>
					<div class="content" id="text_{id}">
						{text}
					</div>
					<? if('{edited_by_id}' != '') { ?>
						<div class="edit">
							Отредактировал: <a href="../profile?id={edited_by_id}" title="{edited_by_login}">{edited_by_login}</a>, {edited_time}
						</div>
					<? } ?>
					<? if('{signature}' != '') { ?>
						<div class="signature">{signature}</div>
									
						<div class="clear"></div>
					<? } ?>
				</td>
			</tr>
			<tr>
				<? if(isset($sessionid) && $sessionid != null && '{author_id}' != '{my_id}') { ?>
					<td>
						<div class="btn c-p" onclick="thank({id}, 0)">Спасибо</div>
						<div class="btn c-p" onclick="answer({id},'{login}','{link}')">Ответить</div>
					</td>
					<td>{mess_thanks}</td>
				<? } else { ?>
					<td colspan="2">{mess_thanks}</td>
				<? } ?>
			</tr>
		</tbody>
	</table>
</div>