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

64 lines
2.4 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"><a href="/spav_sotr/">Справочник сотрудников</a></li>
<li class="breadcrumb-item active">Редактирование сотрудника</li>
</ol>
<form action="" method="post">
<table class="table">
<tr><td>Фамилия</td><td><input type="text" name="fam" class="form-control" value="{$sotr[0].fam}"></td></tr>
<tr><td>Имя</td><td><input type="text" name="imya" class="form-control" value="{$sotr[0].imya}"></td></tr>
<tr><td>Отчество</td><td><input type="text" name="otch" class="form-control" value="{$sotr[0].otch}"></td></tr>
<tr><td>Дата рождения</td><td><input type="text" name="dr" id="date2" placeholder="01.01.1970" class="form-control" value="{$sotr[0].dr}"></td></tr>
<tr><td>Должность</td><td>
<select name="dolzh" class="form-control">
{section name=customer loop=$dolzh}
{if $dolzh[customer].id}
<option value="{$dolzh[customer].id}" {if $sotr[0].dolzh==$dolzh[customer].id}selected{/if}>{$dolzh[customer].val}</option>
{/if}
{/section}
</select>
</td></tr>
<tr><td>Звание</td><td>
<select name="zvan" class="form-control">
{section name=customer loop=$zvan}
{if $zvan[customer].id}
<option value="{$zvan[customer].id}" {if $sotr[0].zvan==$zvan[customer].id}selected{/if}>{$zvan[customer].val}</option>
{/if}
{/section}
</select>
</td></tr>
<tr><td>Филиал</td><td>
<select name="filial" class="form-control">
{section name=customer loop=$filial}
{if $filial[customer].id}
<option value="{$filial[customer].id}" {if $sotr[0].filial==$filial[customer].id}selected{/if}>{$filial[customer].val}</option>
{/if}
{/section}
</select>
</td></tr>
<tr><td></td><td></td></tr>
<tr><td><input type="submit" class="btn btn-outline-success" name="ok" value="Сохранить"></td><td></td></tr>
</table>
</form>
{include file=$footer plugins='<link rel="stylesheet" media="screen" type="text/css" href="/api/jquery/datepicker/css/datepicker.css" /><script type="text/javascript" src="/api/jquery/datepicker/js/datepicker.js"></script>'}