virt2/api/mod/protokol_ognevoy_edit.html

116 lines
4.3 KiB
HTML
Executable File
Raw Permalink 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="Ведомость по огневой подготовке"}
<nav aria-label="breadcrumb" role="navigation">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">Главная</a></li>
<li class="breadcrumb-item"><a href="/page/3">Зачеты</a></li>
<li class="breadcrumb-item"><a href="/protokol_ognevoy/">Огневая подготовка</a></li>
<li class="breadcrumb-item active" aria-current="page">Ведомость по огневой подготовке</li>
</ol>
</nav>
<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">
<input type="hidden" name="id_vedom" value="{$smarty.get.id}">{* скрытое поле, где хранится ИД ведомости *}
<input type="hidden" name="act" value="protokol_ognevoy_edit">
<table class="table">
<tr><td>Ф.И.О</td><td>ТТХ</td><td>Меры безопасности</td><td>1</td><td>2</td><td>3</td><td></td></tr>
<tr>
<td>
<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>
</td>
<td>
<select name="tth" 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>
</td>
<td>
<select name="bezop" 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>
</td>
<td>
<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>
</td>
<td>
<select name="ocen2" 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>
</td>
<td>
<select name="ocen3" 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>
</td>
<td>
<input class="btn btn-outline-success" type="submit" name="ok" value="Добавить">
</td>
</tr>
</table>
</form>
{***********************************************************************************}
<table class="table" id="table_kpz">
<tr><td align="center"><b>Должность</b></td><td align="center"><b>Ф.И.О</b></td><td align="center"><b>Оценка 1</b></td>
<td align="center"><b>Оценка 2</b></td><td align="center"><b>Оценка 3</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>
<td align="center">{$ocen1[customer].ocen2}</td>
<td align="center">{$ocen1[customer].ocen3}</td>
</tr>
{/if}
{/section}
</table>
{include file=$footer}