EIOS/rabprog/tpl/page_prepods.html

51 lines
1.6 KiB
HTML

<table class="table">
{*<thead>
<tr>
<th>Код кафедры</th>
<th>Название кафедры</th>
</tr>
</thead>*}
<tbody>
{foreach from=$structure item=faks key=school}
<tr><td colspan="2"><h2>{$school}</h2></td></tr>
{foreach from=$faks item=kafedrs key=fakultet}
<tr><td colspan="2"><h3>{$fakultet}</h3></td></tr>
{foreach from=$kafedrs item=kafedra key=k}
<tr class="bg-info">
<td>{$kafedra.code}</td>
<td>{$kafedra.kafedra}</td>
</tr>
{if isset($kafedra.prepods)&&count($kafedra.prepods)}
<tr><td colspan="2">
<table class="table table-sm">
<thead>
<tr>
<th>Создан/Обновлен</th>
<th>Пользователь</th>
<th>Звание</th>
<th>Должность</th>
<th>Степень</th>
</tr>
</thead>
<tbody>
{foreach from=$kafedra.prepods item=prepod}
<tr>
<td>{date('H:i d.m.Y',$prepod.data_c)}<br>{date('H:i d.m.Y',$prepod.data_u)}</td>
<td>{$prepod.fio}{*$prepod.id_user*}{*$prepod.id*}</td>
<td>{$prepod.zvanie}</td>
<td>{$prepod.dolgnost}</td>
<td>{$prepod.stepen}</td>
</tr>
{/foreach}
</tbody>
</table>
</td></tr>
{/if}
{/foreach}
{/foreach}
{/foreach}
</tbody>
</table>
{*<pre>{print_r($structure)}</pre>*}