attendancelog/tpl/headman.html

134 lines
6.5 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>
{if $currentUserInfo.role != 'student'}
<div class="row-fluid">
<div class="span">
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<ul class="nav ">
<li><a href="/modul/attendancelog/">Главная</a></li>
<li class="active" ><a href="/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 == 'add_edit'}
<div class="row-fluid">
<div class="span4">
<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-bordered">
<thead>
<tr>
<th>Группа</th>
<th>Староста</th>
</tr>
</thead>
<tbody>
{foreach from=$facult_groups key=key item=group}
<tr {if isset($smarty.get.id) AND $group['id'] == $smarty.get.id } style="background-color: #dff0d8;"{/if}>
<td><a href="/modul/attendancelog/headman/add_edit/{$group['id']}/"> <h5 class="text-center">{$group.sokr}</h5></a></td>
<td> <h5 class="text-center">{if isset($group.headman)}{$group.headman} {else} <span style="color: #9d0202">не назначен !</span> {/if}</h5></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
<div class="span8">
<!-- {if isset($headmanPageActionResult.headman) }-->
<!-- <div class="alert alert-info"> <button class="close" data-dismiss="alert">×</button> <h3>Староста уже выбран(а)! - <strong> {$headmanPageActionResult.headman}</strong></h3> </div>-->
<!-- {/if}-->
<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">
<form action="" method="post">
<table class="table table-bordered">
<caption><h4>{$headmanPageActionResult.current_group.sokr}</h4></caption>
<tbody>
{foreach from=$headmanPageActionResult.students key=user_id item=info}
<tr {if $info.headman == 1} style="color: #48847; background-color: #dff0d8;" {/if}>
{if $info.headman == 1}
<td><h5><strong> {$info.student_name} - Староста </strong></h5></td>
{else}
<td> <h5>{$info.student_name} </h5> </td>
{/if}
<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; margin-top: 1em;">
<button type="submit" class="btn btn-success"> Сделать старостой</button>
</div>
</form>
</div>
</div>
</div>
</div>
{else}
<div class="row-fluid">
<div class="span4">
<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">
<thead>
<tr>
<th>Группа</th>
<th>Староста</th>
</tr>
</thead>
<tbody>
{foreach from=$facult_groups key=key item=group}
<tr {if isset($smarty.get.id) AND $group['id'] == $smarty.get.id } style="background-color: #dff0d8;"{/if}>
<td><a href="/modul/attendancelog/headman/add_edit/{$group['id']}/"> <h5 class="text-center">{$group.sokr}</h5></a></td>
<td> <h5 class="text-center">{if isset($group.headman)}{$group.headman} {else} <span style="color: #9d0202">не назначен !</span> {/if}</h5></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
<div class="span8">
<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">
<h2>Выберите группу для назначения старосты в системе! </h2>
</div>
</div>
</div>
</div>
{/if}
{/if}