File size: 2.02Kb
<div class="head"><a href="{$home}/library">Библиотека</a> {foreach from=$pat item=pats name=puts}{$pats}{/foreach} / {$title}</div>
<div class="fon">
{if $user.id}
{if isset($error)}<div class="alert alert-danger">{$error}</div>{/if}
<form action="{$url}" method="post" class="fon">
<p>Текст сообщения: <br/>
{include file='system/panel.tpl'}
{$smarty.capture.add_comments}
</p>
{if $setup.captcha_comments_library == 1}
{include file='system/captcha.tpl'}
{/if}
<p><input type="submit" name="ok" value="Отправить" class="btn btn-primary"></p>
</form>
{else}
{include file='system/error.tpl'}
{$smarty.capture.comments}
{/if}
{if $count > 0}
{foreach from=$arrayrow item=rows key=k}
<div class="list" id="{$rows.id}">
{include file='system/user.tpl'}
{$smarty.capture.comments}
{$smarty.capture.text}
{if $user.level > 9}
<span class="breadcrumb">
<a href="{$home}/library/edit/comments/{$rows.id}" title="Редактировать"><i class="fa fa-pencil"></i></a>
{if $user.level > 10}
<a href="{$home}/library/del/comments/{$rows.id}" title="Удалить"><i class="fa fa-trash-o"></i></a>
{/if}
</span>
{/if}
</div>
{/foreach}
{else}
<div class="alert alert-danger">Комментариев к статье ещё нет...</div>
{/if}
{*постраничка*}
{if $count > $message}
<div class="paging_bootstrap pagination">{$pagenav}</div>
{/if}
</div>
<div class="menu"><a href="{$home}/library/{$row.id}-{$row.translate}"><i class="fa fa-angle-left"></i> К статье {$row.name|escape|esc}</a></div>