439 lines
30 KiB
PHP
439 lines
30 KiB
PHP
|
<?php /* Smarty version Smarty-3.1.13, created on 2022-04-12 11:32:19
|
|||
|
compiled from "tpl/tpl_teacher_workprogram.html" */ ?>
|
|||
|
<?php /*%%SmartyHeaderCode:14437030625539138af561-89141211%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|||
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|||
|
'file_dependency' =>
|
|||
|
array (
|
|||
|
'ad6a2a2b1301214556a9bb1c9a6592e6493ec103' =>
|
|||
|
array (
|
|||
|
0 => 'tpl/tpl_teacher_workprogram.html',
|
|||
|
1 => 1638355295,
|
|||
|
2 => 'file',
|
|||
|
),
|
|||
|
),
|
|||
|
'nocache_hash' => '14437030625539138af561-89141211',
|
|||
|
'function' =>
|
|||
|
array (
|
|||
|
),
|
|||
|
'variables' =>
|
|||
|
array (
|
|||
|
'regim' => 0,
|
|||
|
'form' => 0,
|
|||
|
'er' => 0,
|
|||
|
'lections' => 0,
|
|||
|
'lc' => 0,
|
|||
|
'lcko' => 0,
|
|||
|
'k' => 0,
|
|||
|
'lckz' => 0,
|
|||
|
'lckoz' => 0,
|
|||
|
'pagination' => 0,
|
|||
|
'p' => 0,
|
|||
|
'i' => 0,
|
|||
|
'gr' => 0,
|
|||
|
),
|
|||
|
'has_nocache_code' => false,
|
|||
|
'version' => 'Smarty-3.1.13',
|
|||
|
'unifunc' => 'content_6255391394f369_85256665',
|
|||
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|||
|
<?php if ($_valid && !is_callable('content_6255391394f369_85256665')) {function content_6255391394f369_85256665($_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="/teach/workprogram/">Обучать - рабочие программы</a></li>
|
|||
|
<li><a class="btn btn-warning" href="/teach/workprogram/add/"><i class="icon-plus icon-white"></i> Добавить</a></li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<div class="row-fluid">
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='show'){?>
|
|||
|
<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['form']->value['err'])){?><?php $_smarty_tpl->tpl_vars['er'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['er']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['form']->value['err']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['er']->key => $_smarty_tpl->tpl_vars['er']->value){
|
|||
|
$_smarty_tpl->tpl_vars['er']->_loop = true;
|
|||
|
?>
|
|||
|
<div class="alert alert-error">
|
|||
|
<button data-dismiss="alert" class="close">×</button>
|
|||
|
<strong>Ошибка!</strong> <?php echo $_smarty_tpl->tpl_vars['er']->value;?>
|
|||
|
|
|||
|
</div>
|
|||
|
<?php } ?><?php }?>
|
|||
|
<?php if (isset($_smarty_tpl->tpl_vars['form']->value['msg'])){?>
|
|||
|
<div class="alert alert-success">
|
|||
|
<button data-dismiss="alert" class="close">×</button>
|
|||
|
<strong>Успешно!</strong> <?php echo $_smarty_tpl->tpl_vars['form']->value['msg'];?>
|
|||
|
|
|||
|
</div>
|
|||
|
<?php }?>
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['lections']->value)){?>
|
|||
|
<table class="table table-striped table-bordered table-advance table-hover">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>Даты</th>
|
|||
|
<th>Спец.</th>
|
|||
|
<th>Оч.Курс<br>Сем.</th>
|
|||
|
<th>Заоч.Курс<br>Сем.</th>
|
|||
|
<th>Оч-Заоч.Курс<br>Сем.</th>
|
|||
|
<th>Название</th>
|
|||
|
<th>Описание</th>
|
|||
|
<th>Файл</th>
|
|||
|
<th><i class=" icon-edit"></i> </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['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 nowrap><?php echo $_smarty_tpl->tpl_vars['lc']->value['data_c'];?>
|
|||
|
<br><?php echo $_smarty_tpl->tpl_vars['lc']->value['data_u'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['specialnost'];?>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<?php $_smarty_tpl->tpl_vars['lcko'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lcko']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['lc']->value['kurso']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['lcko']->key => $_smarty_tpl->tpl_vars['lcko']->value){
|
|||
|
$_smarty_tpl->tpl_vars['lcko']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['lcko']->key;
|
|||
|
?><?php if ($_smarty_tpl->tpl_vars['lcko']->value==1){?><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
<?php }?><?php } ?><br>
|
|||
|
<?php $_smarty_tpl->tpl_vars['lcko'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lcko']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['lc']->value['semestro']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['lcko']->key => $_smarty_tpl->tpl_vars['lcko']->value){
|
|||
|
$_smarty_tpl->tpl_vars['lcko']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['lcko']->key;
|
|||
|
?><?php if ($_smarty_tpl->tpl_vars['lcko']->value==1){?><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
<?php }?><?php } ?>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<?php $_smarty_tpl->tpl_vars['lckz'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lckz']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['lc']->value['kursz']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['lckz']->key => $_smarty_tpl->tpl_vars['lckz']->value){
|
|||
|
$_smarty_tpl->tpl_vars['lckz']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['lckz']->key;
|
|||
|
?><?php if ($_smarty_tpl->tpl_vars['lckz']->value==1){?><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
<?php }?><?php } ?><br>
|
|||
|
<?php $_smarty_tpl->tpl_vars['lcko'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lcko']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['lc']->value['semestrz']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['lcko']->key => $_smarty_tpl->tpl_vars['lcko']->value){
|
|||
|
$_smarty_tpl->tpl_vars['lcko']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['lcko']->key;
|
|||
|
?><?php if ($_smarty_tpl->tpl_vars['lcko']->value==1){?><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
<?php }?><?php } ?>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<?php $_smarty_tpl->tpl_vars['lckoz'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lckoz']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['lc']->value['kursoz']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['lckoz']->key => $_smarty_tpl->tpl_vars['lckoz']->value){
|
|||
|
$_smarty_tpl->tpl_vars['lckoz']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['lckoz']->key;
|
|||
|
?><?php if ($_smarty_tpl->tpl_vars['lckoz']->value==1){?><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
<?php }?><?php } ?><br>
|
|||
|
<?php $_smarty_tpl->tpl_vars['lckoz'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lckoz']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['lc']->value['semestroz']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['lckoz']->key => $_smarty_tpl->tpl_vars['lckoz']->value){
|
|||
|
$_smarty_tpl->tpl_vars['lckoz']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['lckoz']->key;
|
|||
|
?><?php if ($_smarty_tpl->tpl_vars['lckoz']->value==1){?><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
<?php }?><?php } ?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['name'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['descrip'];?>
|
|||
|
</td>
|
|||
|
<td nowarp><?php if ($_smarty_tpl->tpl_vars['lc']->value['file']!=''){?>
|
|||
|
<i class="icon-file"></i> <a href="/upload/workprogram/<?php echo $_smarty_tpl->tpl_vars['lc']->value['file'];?>
|
|||
|
">скачать файл</a>
|
|||
|
<?php }else{ ?>
|
|||
|
<span class="label label-important label-mini">нет файла</span>
|
|||
|
<?php }?></td>
|
|||
|
<td nowarp>
|
|||
|
<a class="btn btn-primary" href="/teach/workprogram/edit/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
|
|||
|
/"><i class="icon-pencil"></i></a>
|
|||
|
<a class="btn btn-danger" href="/teach/workprogram/del/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
|
|||
|
/" onclick="return confirm('Вы уверены, что хотите удалить?')"><i class="icon-trash "></i></a>
|
|||
|
</td>
|
|||
|
<td></td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
<?php if (isset($_smarty_tpl->tpl_vars['pagination']->value)){?>
|
|||
|
<div class="pagination pagination-large">
|
|||
|
<ul>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['pagination']->value['kol']<=15){?>
|
|||
|
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['p']->step = 1;$_smarty_tpl->tpl_vars['p']->total = (int)ceil(($_smarty_tpl->tpl_vars['p']->step > 0 ? $_smarty_tpl->tpl_vars['pagination']->value['kol']+1 - (1) : 1-($_smarty_tpl->tpl_vars['pagination']->value['kol'])+1)/abs($_smarty_tpl->tpl_vars['p']->step));
|
|||
|
if ($_smarty_tpl->tpl_vars['p']->total > 0){
|
|||
|
for ($_smarty_tpl->tpl_vars['p']->value = 1, $_smarty_tpl->tpl_vars['p']->iteration = 1;$_smarty_tpl->tpl_vars['p']->iteration <= $_smarty_tpl->tpl_vars['p']->total;$_smarty_tpl->tpl_vars['p']->value += $_smarty_tpl->tpl_vars['p']->step, $_smarty_tpl->tpl_vars['p']->iteration++){
|
|||
|
$_smarty_tpl->tpl_vars['p']->first = $_smarty_tpl->tpl_vars['p']->iteration == 1;$_smarty_tpl->tpl_vars['p']->last = $_smarty_tpl->tpl_vars['p']->iteration == $_smarty_tpl->tpl_vars['p']->total;?>
|
|||
|
<li><a href="/teach/workprogram/p<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
|
|||
|
/"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['page']==$_smarty_tpl->tpl_vars['p']->value){?> class=" label-warning"<?php }?>><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
|
|||
|
</a></li>
|
|||
|
<?php }} ?>
|
|||
|
<?php }else{ ?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['pagination']->value['page']>4){?>
|
|||
|
<li><a href="/teach/workprogram/p1/">1</a></li>
|
|||
|
<li><a href="#">...</a></li>
|
|||
|
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['p']->step = 1;$_smarty_tpl->tpl_vars['p']->total = (int)ceil(($_smarty_tpl->tpl_vars['p']->step > 0 ? ($_smarty_tpl->tpl_vars['pagination']->value['page']+3)+1 - (($_smarty_tpl->tpl_vars['pagination']->value['page']-3)) : ($_smarty_tpl->tpl_vars['pagination']->value['page']-3)-(($_smarty_tpl->tpl_vars['pagination']->value['page']+3))+1)/abs($_smarty_tpl->tpl_vars['p']->step));
|
|||
|
if ($_smarty_tpl->tpl_vars['p']->total > 0){
|
|||
|
for ($_smarty_tpl->tpl_vars['p']->value = ($_smarty_tpl->tpl_vars['pagination']->value['page']-3), $_smarty_tpl->tpl_vars['p']->iteration = 1;$_smarty_tpl->tpl_vars['p']->iteration <= $_smarty_tpl->tpl_vars['p']->total;$_smarty_tpl->tpl_vars['p']->value += $_smarty_tpl->tpl_vars['p']->step, $_smarty_tpl->tpl_vars['p']->iteration++){
|
|||
|
$_smarty_tpl->tpl_vars['p']->first = $_smarty_tpl->tpl_vars['p']->iteration == 1;$_smarty_tpl->tpl_vars['p']->last = $_smarty_tpl->tpl_vars['p']->iteration == $_smarty_tpl->tpl_vars['p']->total;?>
|
|||
|
<li><a href="/teach/workprogram/p<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
|
|||
|
/"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['page']==$_smarty_tpl->tpl_vars['p']->value){?> class=" label-warning"<?php }?>><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
|
|||
|
</a></li>
|
|||
|
<?php }} ?>
|
|||
|
<li><a href="#">...</a></li>
|
|||
|
<li><a href="/teach/workprogram/p<?php echo $_smarty_tpl->tpl_vars['pagination']->value['kol'];?>
|
|||
|
/"><?php echo $_smarty_tpl->tpl_vars['pagination']->value['kol'];?>
|
|||
|
</a></li>
|
|||
|
<?php }else{ ?>
|
|||
|
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['p']->step = 1;$_smarty_tpl->tpl_vars['p']->total = (int)ceil(($_smarty_tpl->tpl_vars['p']->step > 0 ? 5+1 - (1) : 1-(5)+1)/abs($_smarty_tpl->tpl_vars['p']->step));
|
|||
|
if ($_smarty_tpl->tpl_vars['p']->total > 0){
|
|||
|
for ($_smarty_tpl->tpl_vars['p']->value = 1, $_smarty_tpl->tpl_vars['p']->iteration = 1;$_smarty_tpl->tpl_vars['p']->iteration <= $_smarty_tpl->tpl_vars['p']->total;$_smarty_tpl->tpl_vars['p']->value += $_smarty_tpl->tpl_vars['p']->step, $_smarty_tpl->tpl_vars['p']->iteration++){
|
|||
|
$_smarty_tpl->tpl_vars['p']->first = $_smarty_tpl->tpl_vars['p']->iteration == 1;$_smarty_tpl->tpl_vars['p']->last = $_smarty_tpl->tpl_vars['p']->iteration == $_smarty_tpl->tpl_vars['p']->total;?>
|
|||
|
<li><a href="/teach/workprogram/p<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
|
|||
|
/"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['page']==$_smarty_tpl->tpl_vars['p']->value){?> class=" label-warning"<?php }?>><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
|
|||
|
</a></li>
|
|||
|
<?php }} ?>
|
|||
|
<li><a href="#">...</a></li>
|
|||
|
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['p']->step = 1;$_smarty_tpl->tpl_vars['p']->total = (int)ceil(($_smarty_tpl->tpl_vars['p']->step > 0 ? $_smarty_tpl->tpl_vars['pagination']->value['kol']+1 - (($_smarty_tpl->tpl_vars['pagination']->value['kol']-5)) : ($_smarty_tpl->tpl_vars['pagination']->value['kol']-5)-($_smarty_tpl->tpl_vars['pagination']->value['kol'])+1)/abs($_smarty_tpl->tpl_vars['p']->step));
|
|||
|
if ($_smarty_tpl->tpl_vars['p']->total > 0){
|
|||
|
for ($_smarty_tpl->tpl_vars['p']->value = ($_smarty_tpl->tpl_vars['pagination']->value['kol']-5), $_smarty_tpl->tpl_vars['p']->iteration = 1;$_smarty_tpl->tpl_vars['p']->iteration <= $_smarty_tpl->tpl_vars['p']->total;$_smarty_tpl->tpl_vars['p']->value += $_smarty_tpl->tpl_vars['p']->step, $_smarty_tpl->tpl_vars['p']->iteration++){
|
|||
|
$_smarty_tpl->tpl_vars['p']->first = $_smarty_tpl->tpl_vars['p']->iteration == 1;$_smarty_tpl->tpl_vars['p']->last = $_smarty_tpl->tpl_vars['p']->iteration == $_smarty_tpl->tpl_vars['p']->total;?>
|
|||
|
<li><a href="/teach/workprogram/p<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
|
|||
|
/"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['page']==$_smarty_tpl->tpl_vars['p']->value){?> class=" label-warning"<?php }?>><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
|
|||
|
</a></li>
|
|||
|
<?php }} ?>
|
|||
|
<?php }?>
|
|||
|
<?php }?>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
<?php }?>
|
|||
|
<?php }?>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php }?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='aded'){?>
|
|||
|
<div class="span12">
|
|||
|
<div class="widget red">
|
|||
|
<div class="widget-title">
|
|||
|
<h4><i class="icon-reorder"></i> <?php echo $_smarty_tpl->tpl_vars['form']->value['title'];?>
|
|||
|
</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['form']->value['err'])){?><?php $_smarty_tpl->tpl_vars['er'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['er']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['form']->value['err']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['er']->key => $_smarty_tpl->tpl_vars['er']->value){
|
|||
|
$_smarty_tpl->tpl_vars['er']->_loop = true;
|
|||
|
?>
|
|||
|
<div class="alert alert-error">
|
|||
|
<button data-dismiss="alert" class="close">×</button>
|
|||
|
<strong>Ошибка!</strong> <?php echo $_smarty_tpl->tpl_vars['er']->value;?>
|
|||
|
|
|||
|
</div>
|
|||
|
<?php } ?><?php }?>
|
|||
|
<form action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Специальность</label>
|
|||
|
<div class="controls">
|
|||
|
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="наименование специальности (не более 255 символов)" name="specialnost" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['specialnost'];?>
|
|||
|
" />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span4">
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Форма обучения</label>
|
|||
|
<div class="controls">
|
|||
|
<input type="CHECKBOX" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения очная, отметьте если для очников рабочая программа эта же" name="fo1" value="оч" style=" width:26px;" <?php if ($_smarty_tpl->tpl_vars['form']->value['p']['fo1']=="оч"){?>CHECKED<?php }?>/> <span style="font-size:16px;">очная</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Курс</label>
|
|||
|
<div class="controls">
|
|||
|
<?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int)ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? 5+1 - (0) : 0-(5)+1)/abs($_smarty_tpl->tpl_vars['i']->step));
|
|||
|
if ($_smarty_tpl->tpl_vars['i']->total > 0){
|
|||
|
for ($_smarty_tpl->tpl_vars['i']->value = 0, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++){
|
|||
|
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total;?>
|
|||
|
<input type="CHECKBOX" class="span12" name="kurso[<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
|
|||
|
]" value="1" style=" width:26px;" <?php if ($_smarty_tpl->tpl_vars['form']->value['p']['kurso'][$_smarty_tpl->tpl_vars['i']->value]==1){?>CHECKED<?php }?>/> <span style="font-size:16px;"><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
|
|||
|
</span>
|
|||
|
<?php }} ?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Семестр</label>
|
|||
|
<div class="controls">
|
|||
|
<?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int)ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? 11+1 - (0) : 0-(11)+1)/abs($_smarty_tpl->tpl_vars['i']->step));
|
|||
|
if ($_smarty_tpl->tpl_vars['i']->total > 0){
|
|||
|
for ($_smarty_tpl->tpl_vars['i']->value = 0, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++){
|
|||
|
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total;?>
|
|||
|
<input type="CHECKBOX" class="span12" name="semestro[<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
|
|||
|
]" value="1" style=" width:26px;" <?php if ($_smarty_tpl->tpl_vars['form']->value['p']['semestro'][$_smarty_tpl->tpl_vars['i']->value]==1){?>CHECKED<?php }?>/> <span style="font-size:16px;"><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
|
|||
|
</span>
|
|||
|
<?php }} ?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="span4">
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Форма обучения</label>
|
|||
|
<div class="controls">
|
|||
|
<input type="CHECKBOX" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения заочная, отметьте если и для заочников рабочая программа эта же" name="fo2" value="заоч" style=" width:26px;" <?php if ($_smarty_tpl->tpl_vars['form']->value['p']['fo2']=="заоч"){?>CHECKED<?php }?> /> <span style="font-size:16px;">заочная</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Курс</label>
|
|||
|
<div class="controls">
|
|||
|
<?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int)ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? 5+1 - (0) : 0-(5)+1)/abs($_smarty_tpl->tpl_vars['i']->step));
|
|||
|
if ($_smarty_tpl->tpl_vars['i']->total > 0){
|
|||
|
for ($_smarty_tpl->tpl_vars['i']->value = 0, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++){
|
|||
|
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total;?>
|
|||
|
<input type="CHECKBOX" class="span12" name="kursz[<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
|
|||
|
]" value="1" style=" width:26px;" <?php if ($_smarty_tpl->tpl_vars['form']->value['p']['kursz'][$_smarty_tpl->tpl_vars['i']->value]==1){?>CHECKED<?php }?>/> <span style="font-size:16px;"><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
|
|||
|
</span>
|
|||
|
<?php }} ?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Семестр</label>
|
|||
|
<div class="controls">
|
|||
|
<?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int)ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? 11+1 - (0) : 0-(11)+1)/abs($_smarty_tpl->tpl_vars['i']->step));
|
|||
|
if ($_smarty_tpl->tpl_vars['i']->total > 0){
|
|||
|
for ($_smarty_tpl->tpl_vars['i']->value = 0, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++){
|
|||
|
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total;?>
|
|||
|
<input type="CHECKBOX" class="span12" name="semestrz[<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
|
|||
|
]" value="1" style=" width:26px;" <?php if ($_smarty_tpl->tpl_vars['form']->value['p']['semestrz'][$_smarty_tpl->tpl_vars['i']->value]==1){?>CHECKED<?php }?>/> <span style="font-size:16px;"><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
|
|||
|
</span>
|
|||
|
<?php }} ?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="span4">
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Форма обучения</label>
|
|||
|
<div class="controls">
|
|||
|
<input type="CHECKBOX" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения очно-заочная, отметьте если и для очно-заочной формы обучения рабочая программа эта же" name="fo3" value="оч-заоч" style=" width:26px;" <?php if ($_smarty_tpl->tpl_vars['form']->value['p']['fo3']=="оч-заоч"){?>CHECKED<?php }?> /> <span style="font-size:16px;">очно-заочная</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Курс</label>
|
|||
|
<div class="controls">
|
|||
|
<?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int)ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? 5+1 - (0) : 0-(5)+1)/abs($_smarty_tpl->tpl_vars['i']->step));
|
|||
|
if ($_smarty_tpl->tpl_vars['i']->total > 0){
|
|||
|
for ($_smarty_tpl->tpl_vars['i']->value = 0, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++){
|
|||
|
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total;?>
|
|||
|
<input type="CHECKBOX" class="span12" name="kursoz[<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
|
|||
|
]" value="1" style=" width:26px;" <?php if ($_smarty_tpl->tpl_vars['form']->value['p']['kursoz'][$_smarty_tpl->tpl_vars['i']->value]==1){?>CHECKED<?php }?>/> <span style="font-size:16px;"><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
|
|||
|
</span>
|
|||
|
<?php }} ?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Семестр</label>
|
|||
|
<div class="controls">
|
|||
|
<?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int)ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? 11+1 - (0) : 0-(11)+1)/abs($_smarty_tpl->tpl_vars['i']->step));
|
|||
|
if ($_smarty_tpl->tpl_vars['i']->total > 0){
|
|||
|
for ($_smarty_tpl->tpl_vars['i']->value = 0, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++){
|
|||
|
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total;?>
|
|||
|
<input type="CHECKBOX" class="span12" name="semestroz[<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
|
|||
|
]" value="1" style=" width:26px;" <?php if ($_smarty_tpl->tpl_vars['form']->value['p']['semestroz'][$_smarty_tpl->tpl_vars['i']->value]==1){?>CHECKED<?php }?>/> <span style="font-size:16px;"><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
|
|||
|
</span>
|
|||
|
<?php }} ?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Название дисциплины</label>
|
|||
|
<div class="controls">
|
|||
|
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Полное название программы (не более 255 символов)" name="name" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['name'];?>
|
|||
|
" />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Описание материала</label>
|
|||
|
<div class="controls">
|
|||
|
<textarea class="span12 tooltips" rows="3" data-trigger="hover" data-original-title="Опишите в кратце о чем материал" name="descrip"><?php echo $_smarty_tpl->tpl_vars['form']->value['p']['descrip'];?>
|
|||
|
</textarea>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Файл программы</label>
|
|||
|
<div class="controls">
|
|||
|
<input type="file" class="span12 tooltips" data-trigger="hover" data-original-title="Загрузить файл программы (не более 8 Мб)" name="file" />
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['form']->value['p']['file']!=''){?>
|
|||
|
скачать: <i class="icon-file"></i> <a href="/upload/workprogram/<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['file'];?>
|
|||
|
"><?php echo $_smarty_tpl->tpl_vars['form']->value['p']['file'];?>
|
|||
|
</a>
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['ofile'];?>
|
|||
|
|
|||
|
<?php }?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label">Группы</label>
|
|||
|
<div class="controls">
|
|||
|
<select data-placeholder="Укажите для каких групп доступен материал" class="chzn-select span12" multiple="multiple" tabindex="6" name="l_g[]">
|
|||
|
<option value=""></option>
|
|||
|
<?php $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['form']->value['p']['grupp']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['gr']->key => $_smarty_tpl->tpl_vars['gr']->value){
|
|||
|
$_smarty_tpl->tpl_vars['gr']->_loop = true;
|
|||
|
?>
|
|||
|
<option<?php if ($_smarty_tpl->tpl_vars['gr']->value['sel']==1){?> selected<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['gr']->value['id'];?>
|
|||
|
"><?php echo $_smarty_tpl->tpl_vars['gr']->value['sokr'];?>
|
|||
|
-<?php echo $_smarty_tpl->tpl_vars['gr']->value['kurs'];?>
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['gr']->value['fo'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="form-actions">
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['form']->value['id'];?>
|
|||
|
|
|||
|
<button type="submit" name="<?php echo $_smarty_tpl->tpl_vars['form']->value['btn_url'];?>
|
|||
|
" class="btn btn-success"><?php echo $_smarty_tpl->tpl_vars['form']->value['btn_name'];?>
|
|||
|
</button>
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php }?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php }} ?>
|