virt2/api/mod/os.html

71 lines
2.6 KiB
HTML
Raw Normal View History

{include file=$header h1="Отзывы" title="Отзывы о работе компании big-moving.ru"}
<!-- Button trigger modal -->
<button type="button" class="btn btn-warning" data-toggle="modal" data-target="#add_otzyv">
Добавить отзыв
</button>
<!-- Modal -->
<div class="modal fade" id="add_otzyv" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Новый отзыв</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form method="post" action="/act/os" id="form_otzyv">
<div class="form-group">
<label for="fio">Ваше имя</label>
<input type="text" class="form-control" id="fio" aria-describedby="emailHelp" placeholder="" name="fio">
<input type="hidden" value="add_comment" name="act">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Отзыв или предложение:</label>
<textarea class="form-control" id="otzyv" style="height:200px;" name="otzyv"></textarea>
</div>
<div class="form-group">
<img src='/api/soft/capcha/capcha.php' style="width:120px;heigth:40px;">
<input type="text" class="form-control" id="capcha" aria-describedby="emailHelp" placeholder="Капча" name="capcha">
</div>
<div id="res"></div>
{*<input class="btn btn-success" value="Отправить" type="submit" name='ok'>*}
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-warning" id="btn-add">Добавить</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Закрыть</button>
</div>
</div>
</div>
</div>
<hr>
<div class="row">
{section name=customer loop=$list}
{if $list[customer].id}
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 div_{$list[customer].id}">
<b>{$list[customer].fio}</b>
<br>
<small>{$list[customer].dt|date_format:"%H:%M %d.%m.%Y"}</small>
{if ($smarty.session.dostup=='a' || $smarty.session.dostup=='e')}
<a href="{$list[customer].id}" class="btn btn-danger delcomment" role="button">Удалить</a>
{/if}
</div>
<div class="col-xs-9 col-sm-9 col-md-9 col-lg-9 div_{$list[customer].id}">{$list[customer].otzyv}</div>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 div_{$list[customer].id}" style="height:30px;"></div>
{/if}
{/section}
</div>
{include file=$footer}