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>
|
2024-12-10 12:29:59 +03:00
|
|
|
|
{if $currentUserInfo.role != 'student'}
|
2024-11-12 13:08:43 +03:00
|
|
|
|
<div class="row-fluid">
|
|
|
|
|
<div class="span">
|
|
|
|
|
<div class="navbar">
|
|
|
|
|
<div class="navbar-inner">
|
|
|
|
|
<div class="container">
|
|
|
|
|
<ul class="nav ">
|
2024-11-12 13:41:45 +03:00
|
|
|
|
<li><a href="/modul/attendancelog/">Главная</a></li>
|
|
|
|
|
<li class="active" ><a href="/modul/attendancelog/headman/">Старосты</a></li>
|
2024-11-12 13:08:43 +03:00
|
|
|
|
</ul>
|
|
|
|
|
<ul class="nav pull-right">
|
|
|
|
|
<li><a href="#">{$name}</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-12-10 12:29:59 +03:00
|
|
|
|
</div>
|
|
|
|
|
|
2024-12-13 17:12:34 +03:00
|
|
|
|
{if $des == 'add_edit'}
|
2024-12-10 12:29:59 +03:00
|
|
|
|
<div class="row-fluid">
|
|
|
|
|
<div class="span3">
|
|
|
|
|
<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><h4></h4> </caption>
|
|
|
|
|
<tbody>
|
|
|
|
|
{foreach from=$facult_groups key=key item=group}
|
|
|
|
|
<tr>
|
2024-12-24 12:27:29 +03:00
|
|
|
|
<td {if isset($smarty.get.id) AND $group['id'] == $smarty.get.id } style="text-align: center; background-color: #dff0d8; " {else} style="text-align: center;" {/if}><a href="/modul/attendancelog/headman/add_edit/{$group['id']}/"> <h4>{$group.sokr}</h4></a></td>
|
2024-12-10 12:29:59 +03:00
|
|
|
|
</tr>
|
|
|
|
|
{/foreach}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="span9">
|
2024-12-13 17:12:34 +03:00
|
|
|
|
{if isset($headmanPageActionResult.headman) }
|
2024-12-17 13:11:51 +03:00
|
|
|
|
<div class="alert alert-info"> <button class="close" data-dismiss="alert">×</button> <h3>Староста уже выбран(а)! - <strong> {$headmanPageActionResult.headman}</strong></h3> </div>
|
2024-12-13 17:12:34 +03:00
|
|
|
|
{/if}
|
2024-12-10 12:29:59 +03:00
|
|
|
|
<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>
|
2024-12-17 13:11:51 +03:00
|
|
|
|
<div class="widget-body">
|
2024-12-13 17:12:34 +03:00
|
|
|
|
<form action="" method="post">
|
2024-12-17 13:11:51 +03:00
|
|
|
|
<table class="table table-bordered">
|
2024-12-13 17:12:34 +03:00
|
|
|
|
<caption><h4>{$headmanPageActionResult.current_group.sokr}</h4></caption>
|
|
|
|
|
<tbody>
|
|
|
|
|
{foreach from=$headmanPageActionResult.students key=user_id item=info}
|
2024-12-17 13:11:51 +03:00
|
|
|
|
<tr {if $info.headman == 1} style="color: #468847; background-color: #dff0d8;" {/if}>
|
2024-12-13 17:12:34 +03:00
|
|
|
|
<td> <h5>{$info.student_name}</h5> </td>
|
|
|
|
|
<td style="min-width: 30%"><h5><input type="radio" name="headman_request" value="{$user_id}" {if $info.headman == 1} checked {/if}></h5></td>
|
|
|
|
|
</tr>
|
|
|
|
|
{/foreach}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<div class="" style="width: 100%; text-align: center">
|
|
|
|
|
<button type="submit" class="btn btn-success"> Сделать старостой</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</form>
|
2024-12-10 12:29:59 +03:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{else}
|
|
|
|
|
<div class="row-fluid">
|
|
|
|
|
<div class="span3">
|
|
|
|
|
<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><h4></h4> </caption>
|
|
|
|
|
<tbody>
|
|
|
|
|
{foreach from=$facult_groups key=key item=group}
|
|
|
|
|
<tr>
|
2024-12-13 17:12:34 +03:00
|
|
|
|
<td style="text-align: center"><a href="/modul/attendancelog/headman/add_edit/{$group['id']}/"><h4>{$group.sokr}</h4></a></td>
|
2024-12-10 12:29:59 +03:00
|
|
|
|
</tr>
|
|
|
|
|
{/foreach}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<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">
|
2024-12-17 13:11:51 +03:00
|
|
|
|
<h2>Выберите группу для назначения старосты в системе! </h2>
|
2024-12-10 12:29:59 +03:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{/if}
|