virt2/api/mod/spav_sotr.html

51 lines
1.9 KiB
HTML
Executable File

{include file=$header h1="Справочник сотрудников" title="Справочник сотрудников" }
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">Главная</a></li>
<li class="breadcrumb-item"><a href="/page/2">Справочники</a></li>
<li class="breadcrumb-item active">Справочник сотрудников</li>
</ol>
<div class="row">
<div class="col-lg-6">
<form action="" method="post">
<div class="input-group">
<input type="text" class="form-control" name="find" placeholder="Поиск" aria-label="Поиск">
<span class="input-group-btn">
<input type="submit" class="btn btn-outline-secondary" value="Go!" name=ok title="Найти">
</span>
<button class="btn btn-outline-success" type="button" data-link="/spav_sotr_edit/" title="Добавить сотрудника"><i class="fa fa-plus" aria-hidden="true"></i></button>
</div>
</form>
</div>
</div>
{* данные *}
<table class="table">
{section name=customer loop=$res}
{if $res[customer].id}
<tr id="tr_{$res[customer].id}"><td>{$res[customer].fam} {$res[customer].imya} {$res[customer].otch}</td><td style="width: 50px;">
<div class="row">
<div class="btn-group">
<button class="btn btn-outline-success" type="button" data-link="/spav_sotr_edit/{$res[customer].id}" title="Изменить"><i class="fa fa-pencil" aria-hidden="true"></i></button>
<button class="btn btn-outline-success del" type="button" data-ajax="/act/spav_sotr" data-txt="{$res[customer].id}" title="Удалить"><i class="fa fa-trash-o" aria-hidden="true"></i></button>
</div>
</div>
</td></tr>
{/if}
{/section}
</table>
{include file=$footer}