добавлены формы, возращающие данные по группе, добавлены условия для раскрытия и отображения

This commit is contained in:
RomanGolienko 2024-11-14 17:02:12 +03:00
parent 1968c77a6f
commit 34788f5973
1 changed files with 53 additions and 43 deletions

View File

@ -38,31 +38,30 @@
<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}
<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"> <div class="accordion-heading">
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#accordion{$day.day1}" href="#collapse_{$class.day1}-{$class.time1}"> <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} {$class.predmet}
</a> </a>
</div> </div>
<div id="collapse_{$class.day1}-{$class.time1}" class="accordion-body collapse in"> <div id="collapse_{$class.day1}-{$class.time1}" class="accordion-body collapse {if $key == $currentTime.time1 } in {/if}">
<div class="accordion-inner"> <div class="accordion-inner">
<form action="" method="post"> <form action="" method="post">
<table class="table table-striped table-bordered"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>No</th> <th>No</th>
@ -76,8 +75,16 @@
<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>
@ -87,15 +94,18 @@
</div> </div>
</div> </div>
</div> </div></td>
{/foreach} </tr>
</div> </tbody>
</div>
{/foreach} </table>
{/if} {/if}
{/foreach} {/foreach}
</div> </div>
</div> </div>
{/foreach}
</div>
</div>
</div> </div>
</div> </div>
</div> </div>