297 lines
15 KiB
PHP
297 lines
15 KiB
PHP
|
<?php /* Smarty version Smarty-3.1.13, created on 2022-10-04 15:07:08
|
|||
|
compiled from "tpl/tpl_learn.html" */ ?>
|
|||
|
<?php /*%%SmartyHeaderCode:14057729736254682437e107-09393561%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|||
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|||
|
'file_dependency' =>
|
|||
|
array (
|
|||
|
'ea76c92d64acb08192ef347bdfa36552f3060360' =>
|
|||
|
array (
|
|||
|
0 => 'tpl/tpl_learn.html',
|
|||
|
1 => 1664885225,
|
|||
|
2 => 'file',
|
|||
|
),
|
|||
|
),
|
|||
|
'nocache_hash' => '14057729736254682437e107-09393561',
|
|||
|
'function' =>
|
|||
|
array (
|
|||
|
),
|
|||
|
'version' => 'Smarty-3.1.13',
|
|||
|
'unifunc' => 'content_625468243d1ae5_31551798',
|
|||
|
'variables' =>
|
|||
|
array (
|
|||
|
'test_one' => 0,
|
|||
|
'test_two' => 0,
|
|||
|
'test_three' => 0,
|
|||
|
'test_four' => 0,
|
|||
|
'test_five' => 0,
|
|||
|
'optional_lectures' => 0,
|
|||
|
'lc' => 0,
|
|||
|
'lcpr' => 0,
|
|||
|
'lccr' => 0,
|
|||
|
'lections' => 0,
|
|||
|
'file' => 0,
|
|||
|
'k' => 0,
|
|||
|
),
|
|||
|
'has_nocache_code' => false,
|
|||
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|||
|
<?php if ($_valid && !is_callable('content_625468243d1ae5_31551798')) {function content_625468243d1ae5_31551798($_smarty_tpl) {?><!-- BEGIN PAGE HEADER-->
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<h3 class="page-title">Обучение. Лекции</h3>
|
|||
|
<ul class="breadcrumb">
|
|||
|
<li><a href="/">Главная</a><span class="divider">/</span></li>
|
|||
|
<li class="active"><a href="/learn/lection/">Лекции</a></li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<!--div class="alert alert-success"><button class="close" data-dismiss="alert">×</button><strong>Уважаемый студент!</strong> Если Вы находитесь на ИУП, то Вы можете выбрать те, предметы, которые Вам необходимо изучать.</div>
|
|||
|
<p><a href="#myModal1" class="btn btn-success" data-toggle="modal">Перейти к выбору дисциплин</a></p>
|
|||
|
<div id="myModal1" class="modal fade">
|
|||
|
<div class="modal-dialog">
|
|||
|
<div class="modal-content">
|
|||
|
<div class="modal-header">
|
|||
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|||
|
<h4 class="modal-title">Выбор изучаемых дисциплин</h4>
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['test_one']->value;?>
|
|||
|
<br />
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['test_two']->value;?>
|
|||
|
<br />
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['test_three']->value;?>
|
|||
|
<br />
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['test_four']->value;?>
|
|||
|
<br />
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['test_five']->value;?>
|
|||
|
<br />
|
|||
|
</div>
|
|||
|
<div class="modal-body">
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['optional_lectures']->value)){?>
|
|||
|
<table class="table table-striped table-bordered table-advance table-hover">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th><i class="icon-bullhorn"></i>№</th>
|
|||
|
<th>Название</th>
|
|||
|
<th>Выбрать</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
<?php $_smarty_tpl->tpl_vars['lc'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lc']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['optional_lectures']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['lc']->key => $_smarty_tpl->tpl_vars['lc']->value){
|
|||
|
$_smarty_tpl->tpl_vars['lc']->_loop = true;
|
|||
|
?>
|
|||
|
<tr>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['code'];?>
|
|||
|
</td>
|
|||
|
|
|||
|
<td class="hidden-phone"><b><?php echo $_smarty_tpl->tpl_vars['lc']->value['name'];?>
|
|||
|
</b></td>
|
|||
|
<th><center><input type="checkbox" /></center></th>
|
|||
|
</tr>
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['lc']->value['pr'])){?>
|
|||
|
<?php $_smarty_tpl->tpl_vars['lcpr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lcpr']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['lc']->value['pr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['lcpr']->key => $_smarty_tpl->tpl_vars['lcpr']->value){
|
|||
|
$_smarty_tpl->tpl_vars['lcpr']->_loop = true;
|
|||
|
?>
|
|||
|
<tr class="tooltips" data-placement="top" data-original-title="Практические работы">
|
|||
|
<td style="background-color: #fcf8e3!important;"><i class="icon-cogs"></i> <?php echo $_smarty_tpl->tpl_vars['lcpr']->value['data_u'];?>
|
|||
|
</td>
|
|||
|
<td style="background-color: #fcf8e3!important;" colspan="2"></td>
|
|||
|
<td style="background-color: #fcf8e3!important;"><?php echo $_smarty_tpl->tpl_vars['lcpr']->value['name'];?>
|
|||
|
</td>
|
|||
|
<td style="background-color: #fcf8e3!important;"><?php echo $_smarty_tpl->tpl_vars['lcpr']->value['descrip'];?>
|
|||
|
</td>
|
|||
|
<td nowarp style="background-color: #fcf8e3!important;"><?php if ($_smarty_tpl->tpl_vars['lcpr']->value['file']!=''){?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['lcpr']->value['file']=="-1"){?>
|
|||
|
<span class="label label-mini">заблокировано</span>
|
|||
|
<?php }else{ ?>
|
|||
|
<i class="icon-file"></i> <a href="/upload/practic/<?php echo $_smarty_tpl->tpl_vars['lcpr']->value['file'];?>
|
|||
|
">скачать файл</a>
|
|||
|
<?php }?>
|
|||
|
<?php }else{ ?>
|
|||
|
<span class="label label-important label-mini">нет файла</span>
|
|||
|
<?php }?></td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
<?php }?>
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['lc']->value['cr'])){?>
|
|||
|
<?php $_smarty_tpl->tpl_vars['lccr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lccr']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['lc']->value['cr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['lccr']->key => $_smarty_tpl->tpl_vars['lccr']->value){
|
|||
|
$_smarty_tpl->tpl_vars['lccr']->_loop = true;
|
|||
|
?>
|
|||
|
<tr class="tooltips" data-placement="top" data-original-title="Контрольные работы">
|
|||
|
<td style="background-color: #d9edf7!important;"><i class="icon-edit"></i><?php echo $_smarty_tpl->tpl_vars['lccr']->value['data_u'];?>
|
|||
|
</td>
|
|||
|
<td style="background-color: #d9edf7!important;" colspan="2"></td>
|
|||
|
<td style="background-color: #d9edf7!important;"><?php echo $_smarty_tpl->tpl_vars['lccr']->value['name'];?>
|
|||
|
</td>
|
|||
|
<td style="background-color: #d9edf7!important;"><?php echo $_smarty_tpl->tpl_vars['lccr']->value['descrip'];?>
|
|||
|
</td>
|
|||
|
<td style="background-color: #d9edf7!important;" nowarp><?php if ($_smarty_tpl->tpl_vars['lccr']->value['file']!=''){?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['lccr']->value['file']=="-1"){?>
|
|||
|
<span class="label label-mini">заблокировано</span>
|
|||
|
<?php }else{ ?>
|
|||
|
<i class="icon-file"></i> <a href="/upload/controln/<?php echo $_smarty_tpl->tpl_vars['lccr']->value['file'];?>
|
|||
|
">скачать файл</a>
|
|||
|
<?php }?>
|
|||
|
<?php }else{ ?>
|
|||
|
<span class="label label-important label-mini">нет файла</span>
|
|||
|
<?php }?></td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
<?php }?>
|
|||
|
|
|||
|
<?php } ?>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
<?php }?>
|
|||
|
</div>
|
|||
|
<div class="modal-footer">
|
|||
|
<button type="button" class="btn btn-default" data-dismiss="modal">Закрыть</button>
|
|||
|
<button type="button" class="btn btn-primary">Сохранить изменения</button>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div-->
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<div class="row-fluid">
|
|||
|
|
|||
|
<div class="span12">
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="widget green">
|
|||
|
<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">
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['lections']->value)){?>
|
|||
|
<table class="table table-striped table-bordered table-advance table-hover">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th class="hidden-phone"><i class="icon-bullhorn"></i> Дата</th>
|
|||
|
<th>Название</th>
|
|||
|
<th class="hidden-phone">Описание</th>
|
|||
|
<th width="10%">Файл</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
<?php $_smarty_tpl->tpl_vars['lc'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lc']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['lections']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['lc']->key => $_smarty_tpl->tpl_vars['lc']->value){
|
|||
|
$_smarty_tpl->tpl_vars['lc']->_loop = true;
|
|||
|
?>
|
|||
|
<tr>
|
|||
|
<td class="hidden-phone"><?php echo $_smarty_tpl->tpl_vars['lc']->value['data_u'];?>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<?php if (($_smarty_tpl->tpl_vars['lc']->value['type']=="лек")){?><span class="label label-default label-mini">Лекция</span><?php }?>
|
|||
|
<?php if (($_smarty_tpl->tpl_vars['lc']->value['type']=="лаб")){?><span class="label label-warning label-mini">Практическая</span><?php }?>
|
|||
|
<?php if (($_smarty_tpl->tpl_vars['lc']->value['type']=="контр")){?><span class="label label-important label-mini">Контрольная</span><?php }?>
|
|||
|
<?php if (($_smarty_tpl->tpl_vars['lc']->value['type']=="курс")){?><span class="label label-success">Курсовая</span><?php }?>
|
|||
|
<?php if (($_smarty_tpl->tpl_vars['lc']->value['type']=="раб")){?><span class="label label-info label-mini">Раб.программа</span><?php }?>
|
|||
|
<?php if (($_smarty_tpl->tpl_vars['lc']->value['type']=="практика")){?><span class="label label-inverse label-mini">Практика</span><?php }?>
|
|||
|
|
|||
|
<sub><?php echo $_smarty_tpl->tpl_vars['lc']->value['kurs'];?>
|
|||
|
курс /<?php echo $_smarty_tpl->tpl_vars['lc']->value['semestr'];?>
|
|||
|
сем.</sub><br />
|
|||
|
<b><?php echo $_smarty_tpl->tpl_vars['lc']->value['name'];?>
|
|||
|
</b> <br />
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['lc']->value['id_user']!=''){?> <i><a href="/pm/writeuser/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id_user'];?>
|
|||
|
/">Преподаватель: <?php echo $_smarty_tpl->tpl_vars['lc']->value['fio_prepod'];?>
|
|||
|
</a></i><?php }?>
|
|||
|
</td>
|
|||
|
<td class="hidden-phone"><?php echo $_smarty_tpl->tpl_vars['lc']->value['descrip'];?>
|
|||
|
</td>
|
|||
|
<td><?php if ($_smarty_tpl->tpl_vars['lc']->value['file']!=''){?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['lc']->value['file']=="-1"){?>
|
|||
|
<span class="label label-mini">заблокировано</span>
|
|||
|
<?php }else{ ?>
|
|||
|
<?php $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['file']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['lc']->value['mfile']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['file']->key => $_smarty_tpl->tpl_vars['file']->value){
|
|||
|
$_smarty_tpl->tpl_vars['file']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['file']->key;
|
|||
|
?>
|
|||
|
<?php if (($_smarty_tpl->tpl_vars['file']->value!='')){?><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
. <i class="icon-file"></i> <a href="/upload/lections/<?php echo $_smarty_tpl->tpl_vars['file']->value;?>
|
|||
|
" target="_blank">скачать</a>;<br /> <?php }?>
|
|||
|
<?php } ?>
|
|||
|
<?php }?>
|
|||
|
<?php }else{ ?>
|
|||
|
<span class="label label-important label-mini">нет файла</span>
|
|||
|
<?php }?></td>
|
|||
|
</tr>
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['lc']->value['pr'])){?>
|
|||
|
<?php $_smarty_tpl->tpl_vars['lcpr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lcpr']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['lc']->value['pr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['lcpr']->key => $_smarty_tpl->tpl_vars['lcpr']->value){
|
|||
|
$_smarty_tpl->tpl_vars['lcpr']->_loop = true;
|
|||
|
?>
|
|||
|
<tr class="tooltips" data-placement="top" data-original-title="Практические работы">
|
|||
|
<td style="background-color: #fcf8e3!important;"><i class="icon-cogs"></i> <?php echo $_smarty_tpl->tpl_vars['lcpr']->value['data_u'];?>
|
|||
|
</td>
|
|||
|
<td style="background-color: #fcf8e3!important;" colspan="2"></td>
|
|||
|
<td style="background-color: #fcf8e3!important;"><?php echo $_smarty_tpl->tpl_vars['lcpr']->value['name'];?>
|
|||
|
</td>
|
|||
|
<td style="background-color: #fcf8e3!important;"><?php echo $_smarty_tpl->tpl_vars['lcpr']->value['descrip'];?>
|
|||
|
</td>
|
|||
|
<td nowarp style="background-color: #fcf8e3!important;"><?php if ($_smarty_tpl->tpl_vars['lcpr']->value['file']!=''){?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['lcpr']->value['file']=="-1"){?>
|
|||
|
<span class="label label-mini">заблокировано</span>
|
|||
|
<?php }else{ ?>
|
|||
|
<i class="icon-file"></i> <a href="/upload/practic/<?php echo $_smarty_tpl->tpl_vars['lcpr']->value['file'];?>
|
|||
|
">скачать файл</a>
|
|||
|
<?php }?>
|
|||
|
<?php }else{ ?>
|
|||
|
<span class="label label-important label-mini">нет файла</span>
|
|||
|
<?php }?></td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
<?php }?>
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['lc']->value['cr'])){?>
|
|||
|
<?php $_smarty_tpl->tpl_vars['lccr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lccr']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['lc']->value['cr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['lccr']->key => $_smarty_tpl->tpl_vars['lccr']->value){
|
|||
|
$_smarty_tpl->tpl_vars['lccr']->_loop = true;
|
|||
|
?>
|
|||
|
<tr class="tooltips" data-placement="top" data-original-title="Контрольные работы">
|
|||
|
<td style="background-color: #d9edf7!important;"><i class="icon-edit"></i><?php echo $_smarty_tpl->tpl_vars['lccr']->value['data_u'];?>
|
|||
|
</td>
|
|||
|
<td style="background-color: #d9edf7!important;" colspan="2"></td>
|
|||
|
<td style="background-color: #d9edf7!important;"><?php echo $_smarty_tpl->tpl_vars['lccr']->value['name'];?>
|
|||
|
</td>
|
|||
|
<td style="background-color: #d9edf7!important;"><?php echo $_smarty_tpl->tpl_vars['lccr']->value['descrip'];?>
|
|||
|
</td>
|
|||
|
<td style="background-color: #d9edf7!important;" nowarp><?php if ($_smarty_tpl->tpl_vars['lccr']->value['file']!=''){?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['lccr']->value['file']=="-1"){?>
|
|||
|
<span class="label label-mini">заблокировано</span>
|
|||
|
<?php }else{ ?>
|
|||
|
<i class="icon-file"></i> <a href="/upload/controln/<?php echo $_smarty_tpl->tpl_vars['lccr']->value['file'];?>
|
|||
|
">скачать файл</a>
|
|||
|
<?php }?>
|
|||
|
<?php }else{ ?>
|
|||
|
<span class="label label-important label-mini">нет файла</span>
|
|||
|
<?php }?></td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
<?php }?>
|
|||
|
|
|||
|
<?php } ?>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
<?php }?>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php }} ?>
|