big-moving.ru/api/mod/guestbook.html

48 lines
1.4 KiB
HTML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{include file=$header h1="Отзывы" title="Отзывы" description="отзывы о сайте" keywords="отзывы о сайте"}
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">Главная страница</a></li>
{if ($smarty.session.user_id)}<li class="breadcrumb-item"><a href="/cabinet/">Кабинет</a></li>{/if}
<li class="breadcrumb-item active" aria-current="page">Отзывы</li>
</ol>
</nav>
{if ($smarty.session.user_id)}
<form action="/act/guestbook" method="post" id="anyform" class="col-xs col-sm col-md col-lg-6 col-xl-6" style="margin: 0 auto;">
<div class="form-group">
<label for="exampleInputEmail1">Напишите ваш отзыв</label>
<textarea class="form-control" name="txt"></textarea>
<small id="emailHelp" class="form-text text-muted"></small>
</div>
<input type="hidden" value="new-otzyv" name="act">
<input type="submit" class="btn btn-block btn-lg btn-primary" value="Добавить" name="ok">
<br>
<div id="div_res"></div>
</form>
{/if}
<table class="table">
{section name=customer loop=$list}
{if $list[customer].id}
<tr>
<td>
<b>{$list[customer].login}</b><br>
<small>{$list[customer].t|date_format:"%H:%M:%S %d.%m.%Y"}</small>
</td>
<td>
{$list[customer].txt}
</td>
</tr>
{/if}
{/section}
</table>
{include file=$footer}