443 lines
25 KiB
PHP
443 lines
25 KiB
PHP
<?php /* Smarty version Smarty-3.1.13, created on 2022-04-12 09:54:26
|
||
compiled from "tpl/tpl_setting_teacher.html" */ ?>
|
||
<?php /*%%SmartyHeaderCode:43850191762552222d001d7-99297565%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||
'file_dependency' =>
|
||
array (
|
||
'258612c5c46e21377e7c7d973a400479d9729dfe' =>
|
||
array (
|
||
0 => 'tpl/tpl_setting_teacher.html',
|
||
1 => 1600320818,
|
||
2 => 'file',
|
||
),
|
||
),
|
||
'nocache_hash' => '43850191762552222d001d7-99297565',
|
||
'function' =>
|
||
array (
|
||
),
|
||
'variables' =>
|
||
array (
|
||
'st_teacher' => 0,
|
||
'slc' => 0,
|
||
'st_teacher_s' => 0,
|
||
'regim' => 0,
|
||
'sti' => 0,
|
||
'sg' => 0,
|
||
'sgl' => 0,
|
||
'sglp' => 0,
|
||
'form' => 0,
|
||
'er' => 0,
|
||
'teacher' => 0,
|
||
'lc' => 0,
|
||
'pagination' => 0,
|
||
'p' => 0,
|
||
'gr' => 0,
|
||
'fakultets' => 0,
|
||
'fk' => 0,
|
||
'kafedras' => 0,
|
||
),
|
||
'has_nocache_code' => false,
|
||
'version' => 'Smarty-3.1.13',
|
||
'unifunc' => 'content_62552222d75794_45800603',
|
||
),false); /*/%%SmartyHeaderCode%%*/?>
|
||
<?php if ($_valid && !is_callable('content_62552222d75794_45800603')) {function content_62552222d75794_45800603($_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="/alneo/teacher/">Преподаватели сайта</a></li>
|
||
<li><a class="btn btn-warning" href="/alneo/teacher/add/"><i class="icon-plus icon-white"></i> Добавить</a></li>
|
||
<li><form method="POST" style="padding: 0px;margin: 0px;"><select name="st_teacher" onchange="submit();" style="margin: 0px;"><option value="0">Статистика</option><?php $_smarty_tpl->tpl_vars['slc'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['slc']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['st_teacher']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['slc']->key => $_smarty_tpl->tpl_vars['slc']->value){
|
||
$_smarty_tpl->tpl_vars['slc']->_loop = true;
|
||
?><option value="<?php echo $_smarty_tpl->tpl_vars['slc']->value['id_user'];?>
|
||
"><?php echo $_smarty_tpl->tpl_vars['slc']->value['fio'];?>
|
||
</option><?php } ?></select></form></li>
|
||
<li><form method="POST" style="padding: 0px;margin: 0px;">Поиск <input type="TEXT" name="st_teacher_s" onkeydown="if (event.keyCode==13){ this.form.submit(); return false;}" style="margin: 0px;" placeholder="по фамилии, не менее 3 символов" value="<?php echo $_smarty_tpl->tpl_vars['st_teacher_s']->value;?>
|
||
"></form></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='show'){?>
|
||
<?php if (count($_smarty_tpl->tpl_vars['sti']->value)>0){?>
|
||
<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">
|
||
<h3>Преподаватель: <b><?php echo $_smarty_tpl->tpl_vars['sti']->value['user']['fio'];?>
|
||
</b><br>рег.: <?php echo $_smarty_tpl->tpl_vars['sti']->value['user']['data_c'];?>
|
||
последний визит: <?php echo $_smarty_tpl->tpl_vars['sti']->value['user']['data_u'];?>
|
||
</h3>
|
||
<?php if (count($_smarty_tpl->tpl_vars['sti']->value['grupp'])){?>
|
||
<h3>Группы</h3>
|
||
<table class="table table-striped table-bordered table-advance table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Даты</th>
|
||
<th>Группа</th>
|
||
<th>описание</th>
|
||
<th>Спец. курс. фо</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php $_smarty_tpl->tpl_vars['sg'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sg']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['sti']->value['grupp']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['sg']->key => $_smarty_tpl->tpl_vars['sg']->value){
|
||
$_smarty_tpl->tpl_vars['sg']->_loop = true;
|
||
?>
|
||
<tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['sg']->value['data_c'];?>
|
||
<br><?php echo $_smarty_tpl->tpl_vars['sg']->value['data_u'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['sg']->value['name'];?>
|
||
<bR><?php echo $_smarty_tpl->tpl_vars['sg']->value['specialnost'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['sg']->value['descrip'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['sg']->value['sokr'];?>
|
||
- <?php echo $_smarty_tpl->tpl_vars['sg']->value['kurs'];?>
|
||
<bR><?php echo $_smarty_tpl->tpl_vars['sg']->value['fo'];?>
|
||
</td>
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
<?php }?>
|
||
<?php if (count($_smarty_tpl->tpl_vars['sti']->value['lections'])){?>
|
||
<h3>Лекции</h3>
|
||
<table class="table table-striped table-bordered table-advance table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Даты</th>
|
||
<th>Название</th>
|
||
<th>описание</th>
|
||
<th>Спец. курс. фо</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php $_smarty_tpl->tpl_vars['sgl'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sgl']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['sti']->value['lections']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['sgl']->key => $_smarty_tpl->tpl_vars['sgl']->value){
|
||
$_smarty_tpl->tpl_vars['sgl']->_loop = true;
|
||
?>
|
||
<tr>
|
||
<td width="15%"><?php echo $_smarty_tpl->tpl_vars['sgl']->value['data_c'];?>
|
||
<br><?php echo $_smarty_tpl->tpl_vars['sgl']->value['data_u'];?>
|
||
</td>
|
||
<td width="40%">
|
||
<?php echo $_smarty_tpl->tpl_vars['sgl']->value['name'];?>
|
||
|
||
<?php if (count($_smarty_tpl->tpl_vars['sgl']->value['controln'])){?>
|
||
<br>Контрольные:<ul><?php $_smarty_tpl->tpl_vars['sglp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sglp']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['sgl']->value['controln']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['sglp']->key => $_smarty_tpl->tpl_vars['sglp']->value){
|
||
$_smarty_tpl->tpl_vars['sglp']->_loop = true;
|
||
?>
|
||
<li><?php echo $_smarty_tpl->tpl_vars['sglp']->value['name'];?>
|
||
<?php if ($_smarty_tpl->tpl_vars['sglp']->value['file']!=''){?><span class="label label-success">файл есть</span><?php }else{ ?><span class="label label-important">файла нет</span><?php }?></li>
|
||
<?php } ?></ul>
|
||
<?php }?>
|
||
<?php if (count($_smarty_tpl->tpl_vars['sgl']->value['practich'])){?>
|
||
<br>Практические:<ul><?php $_smarty_tpl->tpl_vars['sglp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sglp']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['sgl']->value['practich']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['sglp']->key => $_smarty_tpl->tpl_vars['sglp']->value){
|
||
$_smarty_tpl->tpl_vars['sglp']->_loop = true;
|
||
?>
|
||
<li><?php echo $_smarty_tpl->tpl_vars['sglp']->value['name'];?>
|
||
<?php if ($_smarty_tpl->tpl_vars['sglp']->value['file']!=''){?><span class="label label-success">файл есть</span><?php }else{ ?><span class="label label-important">файла нет</span><?php }?></li>
|
||
<?php } ?></ul>
|
||
<?php }?>
|
||
</td>
|
||
<td width="35%"><?php echo $_smarty_tpl->tpl_vars['sgl']->value['descrip'];?>
|
||
<?php if ($_smarty_tpl->tpl_vars['sgl']->value['file']!=''){?><br>файл есть<?php }?></td>
|
||
<td width="10%"><?php echo $_smarty_tpl->tpl_vars['sgl']->value['specialnost'];?>
|
||
- <?php echo $_smarty_tpl->tpl_vars['sgl']->value['kurs'];?>
|
||
/<?php echo $_smarty_tpl->tpl_vars['sgl']->value['semestr'];?>
|
||
</td>
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
<?php }?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<?php }?>
|
||
<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="<?php if (count($_smarty_tpl->tpl_vars['sti']->value)>0){?>icon-chevron-up<?php }else{ ?>icon-chevron-down<?php }?>"></a>
|
||
</span>
|
||
</div>
|
||
<div class="widget-body"<?php if (count($_smarty_tpl->tpl_vars['sti']->value)>0){?> style="display: none;"<?php }?>>
|
||
<?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['teacher']->value)){?>
|
||
<table class="table table-striped table-bordered table-advance table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th>Посл.вход</th><th>Дата рег.</th>
|
||
<th class="hidden-phone"><i class="icon-question-sign"></i> ФИО</th>
|
||
<th><i class="icon-bookmark"></i> статус</th>
|
||
<th><i class="icon-bookmark"></i> Email</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['teacher']->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['data_u'];?>
|
||
</td><td><?php echo $_smarty_tpl->tpl_vars['lc']->value['data_c'];?>
|
||
</td>
|
||
<td class="hidden-phone"><?php echo $_smarty_tpl->tpl_vars['lc']->value['fio'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['status_name'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['email'];?>
|
||
</td>
|
||
<td nowrap>
|
||
<a class="btn btn-success" href="/alneo/teacher/active/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
|
||
/"><i class="icon-ok"></i></a>
|
||
<a class="btn btn-warning" href="/alneo/users/edit/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id_user'];?>
|
||
/"><i class="icon-user"></i></a>
|
||
<a class="btn btn-primary" href="/alneo/teacher/edit/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
|
||
/"><i class="icon-pencil"></i></a>
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['lc']->value['status']=="-1"){?>
|
||
<a class="btn btn-danger" href="/alneo/teacher/del/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
|
||
/"><i class="icon-trash "></i></a>
|
||
<?php }else{ ?>
|
||
<a class="btn btn-danger" href="/alneo/teacher/ban/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
|
||
/"><i class="icon-ban-circle "></i></a>
|
||
<?php }?>
|
||
</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="/alneo/teacher/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="/alneo/teacher/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="/alneo/teacher/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="/alneo/teacher/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="/alneo/teacher/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="/alneo/teacher/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>
|
||
</div>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='aded'){?>
|
||
<div class="row-fluid">
|
||
<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">
|
||
<select data-placeholder="Укажите пользователя" class="chzn-select span12" tabindex="6" name="id_user">
|
||
<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']['id_user']; 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['name'];?>
|
||
</option>
|
||
<?php } ?>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Статус</label>
|
||
<div class="controls">
|
||
<select data-placeholder="Укажите для каких груп доступен материал" class="chzn-select span12" tabindex="6" name="status">
|
||
<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']['status_name']; 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['name'];?>
|
||
</option>
|
||
<?php } ?>
|
||
</select>
|
||
<input type="HIDDEN" name="status_old" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['status'];?>
|
||
" />
|
||
</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="звание преподавателя" name="zvanie" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['zvanie'];?>
|
||
" />
|
||
</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="должность преподавателя" name="dolgnost" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['dolgnost'];?>
|
||
" />
|
||
</div>
|
||
</div>
|
||
|
||
<div class="control-group">
|
||
<label class="control-label">Факультет</label>
|
||
<div class="controls">
|
||
<select class="span6 " data-placeholder="Выбор Факультета" tabindex="1" name="fakultet">
|
||
<option value="0">Выберите</option>
|
||
<?php $_smarty_tpl->tpl_vars['fk'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fk']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['fakultets']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['fk']->key => $_smarty_tpl->tpl_vars['fk']->value){
|
||
$_smarty_tpl->tpl_vars['fk']->_loop = true;
|
||
?>
|
||
<option value="<?php echo $_smarty_tpl->tpl_vars['fk']->value['fakult'];?>
|
||
"<?php if ($_smarty_tpl->tpl_vars['form']->value['p']['fakultet']==$_smarty_tpl->tpl_vars['fk']->value['fakult']){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['fk']->value['fakult'];?>
|
||
</option>
|
||
<?php } ?>
|
||
</select>
|
||
<span class="help-inline">выберите факультет к которому вы принадлежите, список факультетов берется из расчета часов!</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Кафедра</label>
|
||
<div class="controls">
|
||
<select class="span6 " data-placeholder="Выбор кафедры" tabindex="1" name="kafedra">
|
||
<option value="0">Выберите</option>
|
||
<?php $_smarty_tpl->tpl_vars['fk'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fk']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['kafedras']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['fk']->key => $_smarty_tpl->tpl_vars['fk']->value){
|
||
$_smarty_tpl->tpl_vars['fk']->_loop = true;
|
||
?>
|
||
<option value="<?php echo $_smarty_tpl->tpl_vars['fk']->value['name'];?>
|
||
"<?php if ($_smarty_tpl->tpl_vars['form']->value['p']['kafedra']==$_smarty_tpl->tpl_vars['fk']->value['name']){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['fk']->value['name'];?>
|
||
</option>
|
||
<?php } ?>
|
||
</select>
|
||
<span class="help-inline">выберите кафедру к которому вы принадлежите, список кафедр берется из расчета часов!</span>
|
||
</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>
|
||
</div>
|
||
<?php }?>
|
||
</div>
|
||
</div>
|
||
<?php }} ?>
|