attendancelog/tpl/main_page.html

109 lines
4.5 KiB
HTML
Raw Permalink Normal View History

2024-11-12 13:08:43 +03:00
<div class="row-fluid">
<div class="span">
<h3 class="page-title"> Посещаемость </h3>
<ul class="breadcrumb">
<li><a href="/">Главная</a><span class="divider">/</span></li>
<li class="active"><a href="/modul/attendancelog/">Посещаемость</a></li>
</ul>
</div>
</div>
<div class="row-fluid">
<div class="span">
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<ul class="nav ">
<li class="active" ><a href="https://eios.mkgtu.ru/modul/attendancelog/">Главная</a></li>
<li><a href="https://eios.mkgtu.ru/modul/attendancelog/headman/">Старосты</a></li>
</ul>
<ul class="nav pull-right">
<li><a href="#">{$name}</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
{if $des == 'show'}
<a href="https://eios.mkgtu.ru/modul/attendancelog/" role="button" class="btn"> Вернуться </a>
<div class="row-fluid">
<div class="span9">
<div class="widget blue">
<div class="widget-title">
<h4><i class="icon-reorder"></i></h4>
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
</div>
<div class="widget-body">
<table class="table table-striped table-bordered">
<caption> Посещения группы </caption>
</table>
</div>
</div>
</div>
</div>
<div class="row-fluid">
<div class="span9">
<div class="widget blue">
<div class="widget-title">
<h4><i class="icon-reorder"></i></h4>
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
</div>
<div class="widget-body">
<table class="table table-striped table-bordered">
<caption> Студенты группы </caption>
<thead>
<tr>
<th>Номер</th>
<th>Имя</th>
</tr>
</thead>
<tbody>
{foreach from=$actionResult['students'] key=key item=name}
<tr>
<td>{$key +1 }</td>
<td>{$name}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
</div>
{else}
<div class="row-fluid">
<div class="span8">
<div class="widget red">
<div class="widget-title">
<h4><i class="icon-reorder"></i> Все группы</h4>
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
</div>
<div class="widget-body" style="height: 40em; overflow:scroll; overflow-x:hidden;">
<table class="table table-striped table-bordered">
<caption><h4>Выберите группу для просмотра</h4> </caption>
<thead>
<tr>
<th>Название</th>
<th>Форма обучения</th>
<th>Курс</th>
</tr>
</thead>
<tbody>
{foreach from=$groups key=key item=group}
{if $key != 0}
<tr>
<td><a href="https://eios.mkgtu.ru/modul/attendancelog/main/show/{$group['id']}/">{$group['sokr']}</a></td>
<td>{$group['fo']}</td>
<td>{$group['kurs']}</td>
</tr>
{/if}
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
</div>
{/if}