EIOS/rabprog/tpl/page_search.html

49 lines
2.0 KiB
HTML
Raw Normal View History

2023-12-28 15:39:22 +03:00
{if count($uchebplans)}
<h2>Дисциплины учебных планов в системе</h2>
<table class="table">
<tbody>
{foreach from=$uchebplans item=up key=shifr}
<tr>
<td>{$up.kaf_kod}</td>
<td>{$up.kaf_name}</td>
<td>{$up.index1}</td>
<td>{$up.name}</td>
<td>РПД</td>
</tr>
{foreach from=$up.ups item=file}
<tr>
<td>
<span class="badge bg-danger" data-bs-toggle="tooltip" data-bs-placement="top" title="Файл № {$file.id_file}">{$file.fo}</span><br>
</td>
<td>
<span class="badge bg-secondary" data-bs-toggle="tooltip" data-bs-placement="top" title="Факультет: {$file.fakultet}">{$file.kafedra}</span>
</td>
<td>
<span class="badge bg-info" data-bs-toggle="tooltip" data-bs-placement="top" title="Профиль: {$file.profil}">{$file.shifr}</span>
</td>
<td>
<span class="badge bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title=" Квалиф: {$file.kvalif}">{$file.naprav}</span>
</td>
<td>
{if count($file.rpds)}
{foreach from=$file.rpds item=rpd}
<div class="badge bg-dark mypopover" data-bs-toggle="popover" data-bs-html="true" data-bs-placement="left" data-bs-title="Подписи" title="Подписи" data-bs-content="{$rpd.signs}">{$rpd.fio}</div><br>
{/foreach}
{/if}
</td>
</tr>
{/foreach}
{/foreach}
</tbody>
</table>
{/if}
{literal}<script>
$(document).ready(function(){
var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
var popoverList = popoverTriggerList.map(function (popoverTriggerEl) {
console.log('111')
return new bootstrap.Popover(popoverTriggerEl)
})
});
</script>{/literal}
<!--pre>{print_r($uchebplans)}</pre-->