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