EIOS/rabprog/tpl/page_library_check_bib.html

52 lines
2.2 KiB
HTML
Raw Permalink Normal View History

2023-12-28 15:39:22 +03:00
{if $view=='all'}
<h3 class="text-center">Список РПД созданных преподавателями <a href="/rabprog/upload/LIB_edit.pdf" style="font-size:12px;" class="btn btn-secondary" target="_blank">Помощь</a></h3>
<div class="row">
<div class="col-md-12">{include file="mod_navpages.html" nav=$navpages url="/rabprog/lib_check_bib/"}</div>
</div>
{if count($items)}
<table class="table">
<thead>
<tr>
<th class="col-2">Дата</th>
<th class="col-5">Дисциплина</th>
<th class="col-3">Преподаватель</th>
<th class="col-2">6.1 и 6.2</th>
</tr>
</thead>
<tbody id="fbody">
{foreach from=$items item=item}
<tr class="trtd">
<td><span style="font-size:10px;">{date('H:i',$item.data_c)}</span> {date('d.m.Y',$item.data_c)}</td>
<td><span class="badge bg-light text-dark">{$item.index1}</span><br>{$item.name}</td>
<td>{$item.fio}</td>
<td>
<span class="badge bg-light text-dark">6.1: <b>{count($item.razdel6_1[1])}</b></span>
<span class="badge bg-light text-dark">6.2: <b>{count($item.razdel6_2[1])}</b></span>
<span class="badge {if $item.edited==0}bg-secondary{else}bg-success{/if}" data-bs-toggle="tooltip" data-bs-placement="top" title="Список редактировали столько раз"><b>{$item.edited}</b></span>
</td>
</tr>
<tr>
<td>
<span class="badge bg-light text-dark" data-bs-toggle="tooltip" data-bs-placement="top" title="Номер РПД">{$item.id}</span>
<span class="badge bg-light text-dark" data-bs-toggle="tooltip" data-bs-placement="top" title="Номер Дисциплины">{$item.pid}</span>
</td>
<td colspan="3">
{foreach from=$item.signs item=sign}
<span class="badge {if $sign.status==1}bg-success{else}bg-danger{/if}">{$sign.sign}</span>
{/foreach}
</td>
</tr>
{/foreach}
</tbody>
</table>
{include file="mod_navpages.html" nav=$navpages url="/rabprog/lib_check_bib/"}
{else}
<p>нет рпд</p>
{/if}
{/if}
{*
<pre>{print_r($items)}</pre>
<pre>{print_r($sqls)}</pre>
*}