attendancelog/tpl/main_page.html

203 lines
13 KiB
HTML
Raw 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 ">
2024-11-12 13:41:45 +03:00
<li class="active" ><a href="/modul/attendancelog/">Главная</a></li>
<li><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>
</div>
{if $des == 'show'}
2024-11-12 13:41:45 +03:00
<a href="/modul/attendancelog/" role="button" class="btn"> Вернуться </a>
2024-11-12 13:08:43 +03:00
<div class="row-fluid">
2024-11-12 14:57:17 +03:00
<div class="span12">
2024-11-12 13:08:43 +03:00
<div class="widget blue">
<div class="widget-title">
2024-11-25 12:42:55 +03:00
<h4><i class="icon-reorder"></i> Посещение группы </h4>
2024-11-12 13:08:43 +03:00
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
</div>
<div class="widget-body">
2024-11-25 12:42:55 +03:00
{foreach from=$actionResult[$currentTime['year']] key=month_key item=month}
<table class="table table-striped table-bordered">
<tbody>
<tr><td colspan="8" style="text-align: center">{$month_key}</td></tr>
<tr>
<th style="text-align: center">Понедельник</th>
<th style="text-align: center">Вторник</th>
<th style="text-align: center">Среда</th>
<th style="text-align: center">Четверг</th>
<th style="text-align: center">Пятница</th>
<th style="text-align: center">Суббота</th>
<th style="text-align: center">Воскресенье</th>
</tr>
{foreach from=$month key=week_key item=week}
<tr>
{if count($week) < 7 and $week_key == 1}
{for $foo=1 to (7 - count($week))}
<td></td>
{/for}
{/if}
2024-11-25 12:42:55 +03:00
{foreach from=$week key=day_key item=day}
<td style="text-align: center"><a href="/modul/attendancelog/main/day_show/{$smarty.get.id}?month={$month_key}&week={$week_key}&day={$day_key}/">{$day_key}</a> </td>
{/foreach}
2024-11-25 12:42:55 +03:00
</tr>
{/foreach}
</tbody>
</table>
{/foreach}
2024-11-12 13:08:43 +03:00
</div>
</div>
</div>
</div>
2024-11-25 12:42:55 +03:00
{else if $des == 'day_show'}
<!-- <div class="row-fluid">-->
<!-- <div class="span12">-->
<!-- <div class="widget blue">-->
<!-- <div class="widget-title">-->
<!-- <h4><i class="icon-reorder"></i> Посещение группы {$groupName} </h4>-->
<!-- <span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>-->
<!-- </div>-->
<!-- <div class="widget-body">-->
<!-- <div class="tabbable custom-tab">-->
<!-- <ul class="nav nav-tabs">-->
<!-- {foreach from=$actionResult.info key=key item=day}-->
<!-- <li {if $key == $currentTime.day1} class="active" {/if}><a href="#tab_1_{$key}" data-toggle="tab">{$day['day_name']}</a></li>-->
<!-- {/foreach}-->
<!-- </ul>-->
<!-- <div class="tab-content" style="overflow-x: scroll">-->
<!-- {foreach from=$actionResult.info key=key item=day}-->
<!-- <div class="tab-pane {if $key == $currentTime.day1} active {/if}" id="tab_1_{$key}">-->
<!-- <div class="accordion" id="accordion{$key}">-->
<!-- {foreach from=$day key=key item=class}-->
<!-- {if $key != 0}-->
<!-- <table class="table">-->
<!-- <tbody>-->
<!-- <tr>-->
<!-- <td style="vertical-align: middle; text-align: center;"><h3 class="text-warning">{$class.time1}</h3></td>-->
<!-- <td style="vertical-align: middle; "><div class="accordion-group">-->
<!-- <div class="accordion-heading">-->
<!-- <a class="accordion-toggle {if $key != $currentTime.time1 } collapsed {/if}" data-toggle="collapse" data-parent="#accordion{$day.day1}" href="#collapse_{$class.day1}-{$class.time1}">-->
<!-- {$class.predmet} {if $key == $currentTime.time1 } <span class="label label-success">Сейчас!</span>{/if}-->
<!-- </a>-->
<!-- </div>-->
<!-- <div id="collapse_{$class.day1}-{$class.time1}" class="accordion-body collapse {if $key == $currentTime.time1 } in {/if}">-->
<!-- <div class="accordion-inner">-->
<!-- <form action="" method="post">-->
<!-- <table class="table table-striped">-->
<!-- <thead>-->
<!-- <tr>-->
<!-- <th>No</th>-->
<!-- <th>ФИО</th>-->
<!-- <th>Присутствие</th>-->
<!-- <th>Примечание</th>-->
<!-- </tr>-->
<!-- </thead>-->
<!-- <tbody>-->
<!-- {foreach from=$actionResult.students.students key=key item=student}-->
<!-- <tr>-->
<!-- <td>{$key}</td>-->
<!-- <td>{$student}</td>-->
<!-- <td>-->
<!-- <input type="hidden" name="attendance_add_edit[attendance][{$student}]" value="off">-->
<!-- <input type="hidden" name="attendance_add_edit[info]['week1']" value="{$class.week1}">-->
<!-- <input type="hidden" name="attendance_add_edit[info]['day1']" value="{$class.day1}">-->
<!-- <input type="hidden" name="attendance_add_edit[info]['time1']" value="{$class.time1}">-->
<!-- <input type="hidden" name="attendance_add_edit[info]['predmet']" value="{$class.predmet}">-->
<!-- <input type="hidden" name="attendance_add_edit[info]['gruppa']" value="{$groupName}">-->
<!-- <input type="checkbox" name="attendance_add_edit[attendance][{$student}]" id="{$key}">-->
<!-- </td>-->
<!-- <td><input type="text" name="" id="" value=""></td>-->
<!-- </tr>-->
<!-- {/foreach}-->
<!-- </tbody>-->
<!-- </table>-->
<!-- <button type="submit" class="btn btn-success">Сохранить</button>-->
<!-- </form>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div></td>-->
<!-- </tr>-->
<!-- </tbody>-->
<!-- </table>-->
<!-- {/if}-->
<!-- {/foreach}-->
<!-- </div>-->
<!-- </div>-->
<!-- {/foreach}-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
2024-11-12 13:08:43 +03:00
{else}
<div class="row-fluid">
2024-11-12 14:57:17 +03:00
<div class="span4">
<div class="widget yellow">
<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">
</div>
</div>
</div>
2024-11-12 13:08:43 +03:00
<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="/modul/attendancelog/main/show/{$group['id']}/">{$group.sokr}</a></td>
<td>{$group['fo']}</td>
<td>{$group['kurs']}</td>
</tr>
2024-11-12 13:08:43 +03:00
{/if}
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
2024-11-12 14:57:17 +03:00
2024-11-12 13:08:43 +03:00
</div>
2024-11-25 12:42:55 +03:00
{/if}
<script src="js/common-scripts.js"></script>