virt2/api/mod/kpz_edit.html

72 lines
2.2 KiB
HTML
Raw Permalink Normal View History

{include file=$header h1="Ведомость сдачи КПЗ по специальной подготовке"}
<h2 id="otv_lica">Ответственные лица: {$otv_lica}</h2>
<form action="" method="post" id="add_ol">
<div class="input-group">
<select name="sotr_id" class="form-control">
{section name=customer loop=$sotr}
{if $sotr[customer].id}
<option value="{$sotr[customer].id}">{$sotr[customer].fam} {$sotr[customer].imya} {$sotr[customer].otch}</option>
{/if}
{/section}
</select>
<input type="hidden" name="vedom_id" value="{$smarty.get.id}">{* скрытое поле, где хранится ИД ведомости *}
<input type="hidden" name="act" value="add_otv">
<span class="input-group-btn">
<input class="btn btn-outline-success" type="submit" name="ok" value="Добавить">
</span>
</div>
</form>
<hr>
<form action="" method="post" id="add_vop">
<div class="input-group">
<select name="id_sotr" class="form-control">
{section name=customer loop=$sotr}
{if $sotr[customer].id}
<option value="{$sotr[customer].id}">{$sotr[customer].fam} {$sotr[customer].imya} {$sotr[customer].otch}</option>
{/if}
{/section}
</select>
<input type="hidden" name="id_vedom" value="{$smarty.get.id}">{* скрытое поле, где хранится ИД ведомости *}
<input type="hidden" name="act" value="kpz">
<select name="ocen" class="form-control">
{section name=customer loop=$ocen}
{if $ocen[customer].id}
<option value="{$ocen[customer].id}">{if ($ocen[customer].val==0)}Отсутcтвовал{else}{$ocen[customer].val}{/if}</option>
{/if}
{/section}
</select>
<span class="input-group-btn">
<input class="btn btn-outline-success" type="submit" name="ok" value="Добавить">
</span>
</div>
</form>
<table class="table" id="table_kpz">
<tr><td align="center"><b>Должность</b></td><td align="center"><b>Ф.И.О</b></td><td align="center"><b>Оценка</b></td></tr>
{section name=customer loop=$ocen1}
{if $ocen1[customer].id}
<tr><td align="center">{$ocen1[customer].dolzh}</td><td align="center">{$ocen1[customer].fio}</td><td align="center">{$ocen1[customer].ocen}</td></tr>
{/if}
{/section}
</table>
{include file=$footer}