EIOS/inc/smarty/templates_c/1bce9632d301aff25e363934880...

570 lines
29 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php /* Smarty version Smarty-3.1.13, created on 2022-11-01 09:52:55
compiled from "tpl/tpl_teacher_grupp.html" */ ?>
<?php /*%%SmartyHeaderCode:1703500106625472427573a5-41375043%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1bce9632d301aff25e36393488020f6eef8dc770' =>
array (
0 => 'tpl/tpl_teacher_grupp.html',
1 => 1667285574,
2 => 'file',
),
),
'nocache_hash' => '1703500106625472427573a5-41375043',
'function' =>
array (
),
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_625472427d62a3_93269291',
'variables' =>
array (
'user' => 0,
'regim' => 0,
'form' => 0,
'er' => 0,
'items0' => 0,
'sokr' => 0,
'lc0' => 0,
'lc' => 0,
'items' => 0,
'areas' => 0,
'area' => 0,
'gr' => 0,
'faculties' => 0,
'fac' => 0,
'passs' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_625472427d62a3_93269291')) {function content_625472427d62a3_93269291($_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/grupp/">Обучать - группы</a></li>
<li><a class="btn btn-warning" href="/teach/grupp/connect/"><i class="icon-plus icon-white"></i> Привязать</a></li>
<?php if ($_smarty_tpl->tpl_vars['user']->value['status']==99){?>
<li><a class="btn btn-success" href="/teach/grupp/add/"><i class="icon-plus icon-white"></i> Добавить</a></li>
<li><a class="btn btn-default" href="/teach/grupp/pass/"><i class="icon-eye-open icon-white"></i> Пароли</a></li>
<!--li><a class="btn btn-primary" href="/teach/grupp/import/"><i class="icon-eye-open icon-random"></i> Импортировать</a></li-->
<?php }?>
</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['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['items0']->value)){?>
<?php $_smarty_tpl->tpl_vars['lc0'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lc0']->_loop = false;
$_smarty_tpl->tpl_vars['sokr'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['items0']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['lc0']->key => $_smarty_tpl->tpl_vars['lc0']->value){
$_smarty_tpl->tpl_vars['lc0']->_loop = true;
$_smarty_tpl->tpl_vars['sokr']->value = $_smarty_tpl->tpl_vars['lc0']->key;
?>
<div class="span6" style="margin-left:2px!important;"><div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="widget default">
<div class="widget-title">
<h4><i class="icon-reorder"></i> <span style="width:200px;display: inline-block;"><?php echo $_smarty_tpl->tpl_vars['sokr']->value;?>
</span> Кол-во элементов <?php echo count($_smarty_tpl->tpl_vars['lc0']->value);?>
</h4>
<span class="tools"><a href="javascript:;" class="icon-chevron-up"></a></span>
</div>
<div class="widget-body" style="display: none;">
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th width="20%"><i class="icon-bullhorn"></i> Даты</th>
<th width="15%" class="hidden-phone"><i class="icon-question-sign"></i> Спец./Курс</th>
<!--th width="35%"><i class="icon-bookmark"></i> Название/Описание</th-->
<th width="5%">Кол-во студ.</th>
<th width="5%">Оценки</th>
<th width="5%">Перевод</th>
<th width="30%"><i class=" icon-edit"></i> </th>
<th width="5%"></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['lc0']->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_c'];?>
<br><?php echo $_smarty_tpl->tpl_vars['lc']->value['data_u'];?>
</td>
<td class="hidden-phone"><?php echo $_smarty_tpl->tpl_vars['lc']->value['specialnost'];?>
<br><?php echo $_smarty_tpl->tpl_vars['lc']->value['sokr'];?>
-<?php echo $_smarty_tpl->tpl_vars['lc']->value['kurs'];?>
<?php echo $_smarty_tpl->tpl_vars['lc']->value['fo'];?>
</td>
<!--td><?php echo $_smarty_tpl->tpl_vars['lc']->value['name'];?>
<?php if ($_smarty_tpl->tpl_vars['lc']->value['descrip']!=''){?><br><?php echo $_smarty_tpl->tpl_vars['lc']->value['descrip'];?>
<?php }?><?php if ($_smarty_tpl->tpl_vars['lc']->value['teacher']['fio']!=''){?><br><?php echo $_smarty_tpl->tpl_vars['lc']->value['teacher']['fio'];?>
<?php }?></td-->
<?php if ($_smarty_tpl->tpl_vars['lc']->value['students']!=0){?><td><?php echo $_smarty_tpl->tpl_vars['lc']->value['students'];?>
</td><td><a class="btn btn-success" href="/teach/ocenki/grupp/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-gear"></i></a></td><td><a class="btn btn-danger" href="/teach/grupp_transport/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-exchange"></i></a></td><?php }else{ ?><td colspan="3">нет студентов</td><?php }?>
<td nowarp>
<?php if ($_smarty_tpl->tpl_vars['lc']->value['edde']=='1'){?>
<a class="btn btn-primary" href="/teach/grupp/edit/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-pencil"></i></a>
<a class="btn btn-danger" href="/teach/grupp/del/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/" onclick="return confirm('Вы уверены, что хотите удалить?')"><i class="icon-trash "></i></a>
<?php }else{ ?>
<a class="btn btn-danger" href="/teach/grupp/unconnect/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/" onclick="return confirm('Вы уверены, что хотите удалить?')"><i class="icon-trash "></i></a>
<?php }?>
</td>
<td></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div></div>
<?php } ?>
<?php }?>
<?php if (count($_smarty_tpl->tpl_vars['items']->value)){?>
<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">
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th><i class="icon-bullhorn"></i> Даты</th>
<th class="hidden-phone"><i class="icon-question-sign"></i> Специальность<br>Курс</th>
<th><i class="icon-bookmark"></i> Название</th>
<th><i class="icon-bookmark"></i> Описание</th>
<th>Количество<br>студентов</th>
<th>Выставить<br>оценки</th>
<?php if ($_smarty_tpl->tpl_vars['user']->value['status']==99){?><th>Перенести<br>студентов</th><?php }?>
<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['items']->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_c'];?>
<br><?php echo $_smarty_tpl->tpl_vars['lc']->value['data_u'];?>
</td>
<td class="hidden-phone"><?php echo $_smarty_tpl->tpl_vars['lc']->value['specialnost'];?>
<br><?php echo $_smarty_tpl->tpl_vars['lc']->value['sokr'];?>
<!-- -<?php echo $_smarty_tpl->tpl_vars['lc']->value['kurs'];?>
--> <?php echo $_smarty_tpl->tpl_vars['lc']->value['fo'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['name'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['descrip'];?>
<br><?php echo $_smarty_tpl->tpl_vars['lc']->value['teacher']['fio'];?>
</td>
<?php if ($_smarty_tpl->tpl_vars['lc']->value['students']!=0){?>
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['students'];?>
</td>
<td><a class="btn btn-success" href="/teach/ocenki/grupp/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-gear"></i></a></td>
<?php if ($_smarty_tpl->tpl_vars['user']->value['status']==99){?><td><a class="btn btn-danger" href="/teach/grupp_transport/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-exchange"></i></a></td><?php }?>
<?php }else{ ?><td colspan="3">нет студентов</td><?php }?>
<td nowarp>
<?php if ($_smarty_tpl->tpl_vars['lc']->value['edde']=='1'){?>
<a class="btn btn-primary" href="/teach/grupp/edit/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-pencil"></i></a>
<a class="btn btn-danger" href="/teach/grupp/del/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-trash "></i></a>
<?php }else{ ?>
<a class="btn btn-danger" href="/teach/grupp/unconnect/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-trash "></i></a>
<?php }?>
</td>
<td></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<?php }?>
<?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 name="specialnost" class="form-control">
<option value="">Не выбрано<option>
<?php $_smarty_tpl->tpl_vars['area'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['area']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['areas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['area']->key => $_smarty_tpl->tpl_vars['area']->value){
$_smarty_tpl->tpl_vars['area']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['area']->value['code'];?>
" <?php if (($_smarty_tpl->tpl_vars['form']->value['p']['specialnost']==$_smarty_tpl->tpl_vars['area']->value['code'])){?>selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['area']->value['code'];?>
<?php echo $_smarty_tpl->tpl_vars['area']->value['name'];?>
</option>
<?php } ?>
</select>
<!--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="control-group">
<label class="control-label">Курс</label>
<div class="controls">
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Курс 1-6 (только цифра)" name="kurs" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['kurs'];?>
" />
</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="sokr" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['sokr'];?>
" />
</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="year_start" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['year_start'];?>
" />
</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="fo" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['fo'];?>
" /-->
<?php if (isset($_smarty_tpl->tpl_vars['form']->value['p']['fo2'])){?>
<input type="CHECKBOX" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения ОФО" name="fo1" value="ОФО" style=" width:32px;" <?php if ($_smarty_tpl->tpl_vars['form']->value['p']['fo1']=="ОФО"){?>CHECKED<?php }?>/> <span style="font-size:18px;">очная</span>
<input type="CHECKBOX" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения ЗФО" name="fo2" value="ЗФО" style=" width:32px;" <?php if ($_smarty_tpl->tpl_vars['form']->value['p']['fo2']=="ЗФО"){?>CHECKED<?php }?> /> <span style="font-size:18px;">заочная</span>
<input type="CHECKBOX" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения ОЗФО" name="fo3" value="ОЗФО" style=" width:32px;" <?php if ($_smarty_tpl->tpl_vars['form']->value['p']['fo3']=="ОЗФО"){?>CHECKED<?php }?> /> <span style="font-size:18px;">очно-заочная</span>
- при выборе нескольких форм обучения создается несколько форм обучения для группы соответственно
<?php }else{ ?>
<input type="RADIO" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения ОФО" name="fo" value="ОФО" style=" width:32px;" <?php if ($_smarty_tpl->tpl_vars['form']->value['p']['fo']=="ОФО"){?>CHECKED<?php }?>/> <span style="font-size:18px;">очная</span>
<input type="RADIO" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения ЗФО" name="fo" value="ЗФО" style=" width:32px;" <?php if ($_smarty_tpl->tpl_vars['form']->value['p']['fo']=="ЗФО"){?>CHECKED<?php }?> /> <span style="font-size:18px;">заочная</span>
<input type="RADIO" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения ОЗФО" name="fo" value="ОЗФО" style=" width:32px;" <?php if ($_smarty_tpl->tpl_vars['form']->value['p']['fo']=="ОЗФО"){?>CHECKED<?php }?> /> <span style="font-size:18px;">очно-заочная</span>
<?php }?>
</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">
<select data-placeholder="Укажите преподавателя для группы" class="chzn-select span12" tabindex="6" name="id_teacher">
<option value="0">нет преподавателя</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_teacher']; 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="id_facult">
<option value="0">не указан</option>
<?php $_smarty_tpl->tpl_vars['fac'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fac']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['faculties']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['fac']->key => $_smarty_tpl->tpl_vars['fac']->value){
$_smarty_tpl->tpl_vars['fac']->_loop = true;
?>
<option<?php if ($_smarty_tpl->tpl_vars['form']->value['p']['id_facult']==$_smarty_tpl->tpl_vars['fac']->value['id']){?> selected<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['fac']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['fac']->value['name'];?>
</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></div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='connect'){?>
<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" 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']['sel_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></div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='pass'){?>
<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 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" 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'];?>
</option>
<?php } ?>
</select>
</div>
</div>
<div class="form-actions">
<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 }?>
<?php if (count($_smarty_tpl->tpl_vars['passs']->value)){?>
<div class="row-fluid"><div class="span12">
<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">
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th><i class="icon-bullhorn"></i> группа</th>
<th><i class="icon-bookmark"></i> ФИО</th>
<th><i class="icon-bookmark"></i> e-mail</th>
<th><i class="icon-bookmark"></i> Пароль</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['passs']->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['grupp'];?>
<?php echo $_smarty_tpl->tpl_vars['lc']->value['num_grupp'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['fio'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['email'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['pass'];?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div></div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='import'){?>
<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 href="javascript:;" class="icon-chevron-down"></a>
</span>
</div>
<div class="widget-body">
<h3>Импортировать из расчета часов данные о группах</h3>
<?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 ($_smarty_tpl->tpl_vars['form']->value['html']!=''){?>
<?php echo $_smarty_tpl->tpl_vars['form']->value['html'];?>
<?php }?>
<form action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
<div class="form-actions">
<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 }} ?>