Изменена логика отображения, добавлен воод даты в виде календаря
This commit is contained in:
parent
9395a7222b
commit
10d53cb144
|
@ -29,24 +29,25 @@
|
|||
{if $des == 'show'}
|
||||
<a href="/modul/attendancelog/" role="button" class="btn"> Вернуться </a>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<div class="span8">
|
||||
<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}
|
||||
<h3 style="width: 100%; text-align: center">
|
||||
({$actionResult.day_name})
|
||||
{if isset($smarty.post.date_request)}
|
||||
{$smarty.post.date_request}
|
||||
{else}
|
||||
{$currentTime.date}
|
||||
<span class="label label-success"> Сегодня!</span>
|
||||
{/if}
|
||||
|
||||
</h3>
|
||||
{foreach from=$actionResult.day_info key=key item=class}
|
||||
{if $key != 0}
|
||||
<table class="table">
|
||||
<tbody>
|
||||
|
@ -103,9 +104,25 @@
|
|||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<div class="widget yellow">
|
||||
<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">
|
||||
<form action="" method="post">
|
||||
<label for="date_request">Выберите дату</label>
|
||||
<input
|
||||
type="date"
|
||||
name="date_request"
|
||||
id="date_request"
|
||||
max="{$currentTime['date']}"
|
||||
>
|
||||
<button type="submit" class="btn btn-success"> Найти</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue