добавлены формы, возращающие данные по группе, добавлены условия для раскрытия и отображения
This commit is contained in:
parent
1968c77a6f
commit
34788f5973
|
@ -38,61 +38,71 @@
|
||||||
<div class="widget-body">
|
<div class="widget-body">
|
||||||
<div class="tabbable custom-tab">
|
<div class="tabbable custom-tab">
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
{foreach from=$actionResult.info key=key item=week}
|
{foreach from=$actionResult.info key=key item=day}
|
||||||
{if $key == 'Четная'}
|
<li {if $key == $currentTime.day1} class="active" {/if}><a href="#tab_1_{$key}" data-toggle="tab">{$day['day_name']}</a></li>
|
||||||
{foreach from=$week key=key item=day}
|
|
||||||
<li><a href="#tab_1_{$key}" data-toggle="tab">{$key}</a></li>
|
|
||||||
{/foreach}
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content">
|
<div class="tab-content" style="overflow-x: scroll">
|
||||||
{foreach from=$actionResult.info key=key item=week}
|
{foreach from=$actionResult.info key=key item=day}
|
||||||
{if $key == 'Четная'}
|
<div class="tab-pane {if $key == $currentTime.day1} active {/if}" id="tab_1_{$key}">
|
||||||
{foreach from=$week key=key item=day}
|
|
||||||
<div class="tab-pane active" id="tab_1_{$key}">
|
|
||||||
<div class="accordion" id="accordion{$key}">
|
<div class="accordion" id="accordion{$key}">
|
||||||
{foreach from=$day key=key item=class}
|
{foreach from=$day key=key item=class}
|
||||||
<div class="accordion-group">
|
{if $key != 0}
|
||||||
<div class="accordion-heading">
|
<table class="table">
|
||||||
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#accordion{$day.day1}" href="#collapse_{$class.day1}-{$class.time1}">
|
<tbody>
|
||||||
{$class.predmet}
|
<tr>
|
||||||
</a>
|
<td style="vertical-align: middle; text-align: center;"><h3 class="text-warning">{$class.time1}</h3></td>
|
||||||
</div>
|
<td style="vertical-align: middle; "><div class="accordion-group">
|
||||||
<div id="collapse_{$class.day1}-{$class.time1}" class="accordion-body collapse in">
|
<div class="accordion-heading">
|
||||||
<div class="accordion-inner">
|
<a class="accordion-toggle {if $key != $currentTime.time1 } collapsed {/if}" data-toggle="collapse" data-parent="#accordion{$day.day1}" href="#collapse_{$class.day1}-{$class.time1}">
|
||||||
<form action="" method="post">
|
{$class.predmet}
|
||||||
<table class="table table-striped table-bordered">
|
</a>
|
||||||
<thead>
|
</div>
|
||||||
<tr>
|
<div id="collapse_{$class.day1}-{$class.time1}" class="accordion-body collapse {if $key == $currentTime.time1 } in {/if}">
|
||||||
<th>No</th>
|
<div class="accordion-inner">
|
||||||
<th>ФИО</th>
|
<form action="" method="post">
|
||||||
<th>Присутствие</th>
|
<table class="table table-striped">
|
||||||
<th>Примечание</th>
|
<thead>
|
||||||
</tr>
|
<tr>
|
||||||
</thead>
|
<th>No</th>
|
||||||
<tbody>
|
<th>ФИО</th>
|
||||||
{foreach from=$actionResult.students.students key=key item=student}
|
<th>Присутствие</th>
|
||||||
|
<th>Примечание</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{foreach from=$actionResult.students.students key=key item=student}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{$key}</td>
|
<td>{$key}</td>
|
||||||
<td>{$student}</td>
|
<td>{$student}</td>
|
||||||
<td><input type="checkbox" name="" id="{$key}"></td>
|
<td>
|
||||||
<td><input type="text" name="" id="" style="width: 90%"></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>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<button type="submit" class="btn btn-success">Сохранить</button>
|
<button type="submit" class="btn btn-success">Сохранить</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/foreach}
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue