верстка таблиц журналов

This commit is contained in:
RomanGolienko 2024-11-13 16:27:28 +03:00
parent 26ee706cb9
commit c63df969c4
1 changed files with 59 additions and 83 deletions

View File

@ -38,92 +38,68 @@
<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">
<li class="active"><a href="#tab_1_1" data-toggle="tab">Понедельник</a></li> {foreach from=$actionResult.info key=key item=week}
<li class=""><a href="#tab_1_2" data-toggle="tab">Вторник</a></li> {if $key == 'Четная'}
<li class=""><a href="#tab_1_3" data-toggle="tab">Среда</a></li> {foreach from=$week key=key item=day}
<li class=""><a href="#tab_1_4" data-toggle="tab">Четверг</a></li> <li><a href="#tab_1_{$key}" data-toggle="tab">{$key}</a></li>
<li class=""><a href="#tab_1_5" data-toggle="tab">Пятница</a></li> {/foreach}
<li class=""><a href="#tab_1_6" data-toggle="tab">Суббота</a></li> {/if}
<li class=""><a href="#tab_1_7" data-toggle="tab">Воскресенье</a></li> {/foreach}
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<div class="tab-pane active" id="tab_1_1"> {foreach from=$actionResult.info key=key item=week}
<p>I'm in Section 1.</p> {if $key == 'Четная'}
<p> {foreach from=$week key=key item=day}
Текст <div class="tab-pane active" id="tab_1_{$key}">
</p> <div class="accordion" id="accordion{$key}">
</div> {foreach from=$day key=key item=class}
<div class="tab-pane" id="tab_1_2"> <div class="accordion-group">
<p>Howdy, I'm in Section 2.</p> <div class="accordion-heading">
<p> <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#accordion{$day.day1}" href="#collapse_{$class.day1}-{$class.time1}">
Текст {$class.predmet}
</p> </a>
</div> </div>
<div class="tab-pane" id="tab_1_3"> <div id="collapse_{$class.day1}-{$class.time1}" class="accordion-body collapse in">
<p>What up girl, this is Section 3.</p> <div class="accordion-inner">
<p> <form action="" method="post">
Текст <table class="table table-striped table-bordered">
</p> <thead>
</div> <tr>
<div class="tab-pane" id="tab_1_4"> <th>No</th>
<p>What up girl, this is Section 3.</p> <th>ФИО</th>
<p> <th>Присутствие</th>
Текст <th>Примечание</th>
</p> </tr>
</div> </thead>
<div class="tab-pane" id="tab_1_5"> <tbody>
<p>What up girl, this is Section 3.</p> {foreach from=$actionResult.students.students key=key item=student}
<p> <tr>
Текст <td>{$key}</td>
</p> <td>{$student}</td>
</div> <td><input type="checkbox" name="" id="{$key}"></td>
<div class="tab-pane" id="tab_1_6"> <td><input type="text" name="" id="" style="width: 90%"></td>
<p>What up girl, this is Section 3.</p> </tr>
<p> {/foreach}
Текст </tbody>
</p> </table>
</div> <button type="submit" class="btn btn-success">Сохранить</button>
<div class="tab-pane" id="tab_1_7"> </form>
<p>What up girl, this is Section 3.</p> </div>
<p> </div>
Текст
</p> </div>
</div> {/foreach}
</div>
</div>
{/foreach}
{/if}
{/foreach}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="row-fluid">
<div class="span9">
<div class="widget blue">
<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">
<table class="table table-striped table-bordered">
<caption> Студенты группы {$groupName}</caption>
<thead>
<tr>
<th>Номер</th>
<th>Имя</th>
</tr>
</thead>
<tbody>
{foreach from=$actionResult['students'] key=key item=name}
<tr>
<td>{$key +1 }</td>
<td>{$name}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
</div>
{else} {else}
<div class="row-fluid"> <div class="row-fluid">
<div class="span4"> <div class="span4">
@ -157,11 +133,11 @@
<tbody> <tbody>
{foreach from=$groups key=key item=group} {foreach from=$groups key=key item=group}
{if $key != 0} {if $key != 0}
<tr> <tr>
<td><a href="/modul/attendancelog/main/show/{$group['id']}/">{$group.sokr}</a></td> <td><a href="/modul/attendancelog/main/show/{$group['id']}/">{$group.sokr}</a></td>
<td>{$group['fo']}</td> <td>{$group['fo']}</td>
<td>{$group['kurs']}</td> <td>{$group['kurs']}</td>
</tr> </tr>
{/if} {/if}
{/foreach} {/foreach}
</tbody> </tbody>