{*
-------------------------
  @author:         Markelov Ilya
  @authormail:     ilya@markelov.ru
-------------------------
*}
<div id="divcomment">
{startvirtual}

<b>{$lang.Comments}: </b><br /><br />
{foreach from=$comments item=comment}
	{if $commentadmin == 1}
		<img src="{$rooturl}extensions/Comment/image/commentload.gif" id="commentdel{$comment.id}" style="display:none; position: absolute;" /><br />
	{/if}
	<a name="c{$comment.id}" ></a>
	<table>
		<tr ><td width="120"><b>{$comment.name}</b></td><td><i>{$comment.date|date_format_rus_curbased}</i> &nbsp;&nbsp;[<a href="#c{$comment.id}" travel="c{$comment.id}">{$lang.Link}</a>]
			{if $commentadmin == 1}
				&nbsp;&nbsp;ip: {$comment.ip}
				</td><td>
				{ajxformopen id="del`$comment.id`" actref="divcomment" statuselem="commentdel`$comment.id`"}
					{virtualform id="delid" name="hidden" default="`$comment.id`"}
					&nbsp;&nbsp;<input type="submit" value="{$lang.Remove}" />
				{wackoformclose}
			{/if}
		</td></tr>
	</table>
	<p>{$comment.text|nl2br}</p>
{foreachelse}
	{$lang.NoComments}
{/foreach}

{if $message}
	<br /><b>{$message|wackoformat}</b>
{/if}

{finishvirtual block="divcomment"}
</div>