142 lines
7.7 KiB
PHP
142 lines
7.7 KiB
PHP
<?php /* Smarty version Smarty-3.1.13, created on 2022-04-11 20:36:19
|
||
compiled from "tpl/tpl_raspis.html" */ ?>
|
||
<?php /*%%SmartyHeaderCode:131923918862546713a4a2b1-03655998%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||
'file_dependency' =>
|
||
array (
|
||
'bba6f68b8bf4eb775f1ef1880a8f806b796b24de' =>
|
||
array (
|
||
0 => 'tpl/tpl_raspis.html',
|
||
1 => 1644083967,
|
||
2 => 'file',
|
||
),
|
||
),
|
||
'nocache_hash' => '131923918862546713a4a2b1-03655998',
|
||
'function' =>
|
||
array (
|
||
),
|
||
'variables' =>
|
||
array (
|
||
'grname' => 0,
|
||
'message' => 0,
|
||
'raspis' => 0,
|
||
'rp' => 0,
|
||
),
|
||
'has_nocache_code' => false,
|
||
'version' => 'Smarty-3.1.13',
|
||
'unifunc' => 'content_62546713a8a5b6_68317308',
|
||
),false); /*/%%SmartyHeaderCode%%*/?>
|
||
<?php if ($_valid && !is_callable('content_62546713a8a5b6_68317308')) {function content_62546713a8a5b6_68317308($_smarty_tpl) {?><!-- BEGIN PAGE HEADER-->
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<h3 class="page-title">Расписание группы <?php echo $_smarty_tpl->tpl_vars['grname']->value;?>
|
||
</h3>
|
||
<ul class="breadcrumb">
|
||
<li><a href="/">Главная</a><span class="divider">/</span></li>
|
||
<li class="active"><a href="/learn/raspis/">Расписание</a></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="page-wraper">
|
||
<?php if (isset($_smarty_tpl->tpl_vars['message']->value)){?>
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<div class="widget red">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> Ошибка</h4>
|
||
<span class="tools"><a class="icon-chevron-down" href="javascript:;"></a></span>
|
||
</div>
|
||
<div class="widget-body"><?php echo $_smarty_tpl->tpl_vars['message']->value;?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
<?php if (isset($_smarty_tpl->tpl_vars['raspis']->value->data)){?>
|
||
<div class="row-fluid">
|
||
<table class="table table-hover">
|
||
<tr>
|
||
<td style="background-color:#77808a;color:#000;width:15%;text-align:center;">Пн</td>
|
||
<td style="background-color:#f37b53;color:#000;width:15%;text-align:center;">Вт</td>
|
||
<td style="background-color:#0DAED3;color:#000;width:15%;text-align:center;">Ср</td>
|
||
<td style="background-color:#FFB400;color:#000;width:15%;text-align:center;">Чт</td>
|
||
<td style="background-color:#de577b;color:#000;width:15%;text-align:center;">Пт</td>
|
||
<td style="background-color:#9d4a9c;color:#000;width:15%;text-align:center;">Сб</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div class="row-fluid">
|
||
<div class="span6">
|
||
<div class="widget red">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> Нечетная неделя</h4>
|
||
<span class="tools"><a class="icon-chevron-down" href="javascript:;"></a></span>
|
||
</div>
|
||
<div class="widget-body">
|
||
<table class="table table-hover">
|
||
<thead><tr><th>#</th><th>Время</th><th>Ауд.</th><th>Предмет</th><th>Преподаватель</th></tr></thead>
|
||
<tbody>
|
||
<?php $_smarty_tpl->tpl_vars['rp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['rp']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['raspis']->value->data; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['rp']->key => $_smarty_tpl->tpl_vars['rp']->value){
|
||
$_smarty_tpl->tpl_vars['rp']->_loop = true;
|
||
?><?php if ($_smarty_tpl->tpl_vars['rp']->value->week1=="1"){?>
|
||
<tr>
|
||
<td<?php if ($_smarty_tpl->tpl_vars['rp']->value->day1==1){?> style="background-color:#77808a;color:#000;" data-placement="top" data-original-title="Понедельник"<?php }?><?php if ($_smarty_tpl->tpl_vars['rp']->value->day1==2){?> style="background-color:#f37b53;color:#000;" data-placement="top" data-original-title="Вторник"<?php }?><?php if ($_smarty_tpl->tpl_vars['rp']->value->day1==3){?> style="background-color:#0DAED3;color:#000;" data-placement="top" data-original-title="Среда"<?php }?><?php if ($_smarty_tpl->tpl_vars['rp']->value->day1==4){?> style="background-color:#FFB400;color:#000;" data-placement="top" data-original-title="Четверг"<?php }?><?php if ($_smarty_tpl->tpl_vars['rp']->value->day1==5){?> style="background-color:#de577b;color:#000;" data-placement="top" data-original-title="Пятница"<?php }?><?php if ($_smarty_tpl->tpl_vars['rp']->value->day1==6){?> style="background-color:#9d4a9c;color:#000;" data-placement="top" data-original-title="Суббота"<?php }?>><?php echo $_smarty_tpl->tpl_vars['rp']->value->time1;?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['rp']->value->time;?>
|
||
<?php if ($_smarty_tpl->tpl_vars['rp']->value->audit_urls!=''){?><br><a href="<?php echo $_smarty_tpl->tpl_vars['rp']->value->audit_urls;?>
|
||
" target="_blank" title="<?php echo $_smarty_tpl->tpl_vars['rp']->value->adist;?>
|
||
">online</a><?php }?></td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['rp']->value->audit;?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['rp']->value->predmet;?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['rp']->value->prepod;?>
|
||
</td>
|
||
</tr>
|
||
<?php }?><?php } ?>
|
||
</tbody></table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="span6">
|
||
<div class="widget blue">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> Четная неделя</h4>
|
||
<span class="tools"><a class="icon-chevron-down" href="javascript:;"></a></span>
|
||
</div>
|
||
<div class="widget-body">
|
||
<table class="table table-hover">
|
||
<thead><tr><th>#</th><th>Время</th><th>Ауд.</th><th>Предмет</th><th>Преподаватель</th></tr></thead>
|
||
<tbody>
|
||
<?php $_smarty_tpl->tpl_vars['rp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['rp']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['raspis']->value->data; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['rp']->key => $_smarty_tpl->tpl_vars['rp']->value){
|
||
$_smarty_tpl->tpl_vars['rp']->_loop = true;
|
||
?><?php if ($_smarty_tpl->tpl_vars['rp']->value->week1=="2"){?>
|
||
<tr>
|
||
<td<?php if ($_smarty_tpl->tpl_vars['rp']->value->day1==1){?> style="background-color:#77808a;color:#000;" data-placement="top" data-original-title="Понедельник"<?php }?><?php if ($_smarty_tpl->tpl_vars['rp']->value->day1==2){?> style="background-color:#f37b53;color:#000;" data-placement="top" data-original-title="Вторник"<?php }?><?php if ($_smarty_tpl->tpl_vars['rp']->value->day1==3){?> style="background-color:#0DAED3;color:#000;" data-placement="top" data-original-title="Среда"<?php }?><?php if ($_smarty_tpl->tpl_vars['rp']->value->day1==4){?> style="background-color:#FFB400;color:#000;" data-placement="top" data-original-title="Четверг"<?php }?><?php if ($_smarty_tpl->tpl_vars['rp']->value->day1==5){?> style="background-color:#de577b;color:#000;" data-placement="top" data-original-title="Пятница"<?php }?><?php if ($_smarty_tpl->tpl_vars['rp']->value->day1==6){?> style="background-color:#9d4a9c;color:#000;" data-placement="top" data-original-title="Суббота"<?php }?>><?php echo $_smarty_tpl->tpl_vars['rp']->value->time1;?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['rp']->value->time;?>
|
||
<?php if ($_smarty_tpl->tpl_vars['rp']->value->audit_urls!=''){?><br><a href="<?php echo $_smarty_tpl->tpl_vars['rp']->value->audit_urls;?>
|
||
" target="_blank" title="<?php echo $_smarty_tpl->tpl_vars['rp']->value->adist;?>
|
||
">online</a><?php }?></td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['rp']->value->audit;?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['rp']->value->predmet;?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['rp']->value->prepod;?>
|
||
</td>
|
||
</tr>
|
||
<?php }?><?php } ?>
|
||
</tbody></table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<?php }?>
|
||
</div>
|
||
<?php }} ?>
|