EIOS/inc/smarty/templates_c/2a33381aaae7372bd3649f04acb...

341 lines
17 KiB
PHP
Raw Permalink Normal View History

2023-12-28 15:39:22 +03:00
<?php /* Smarty version Smarty-3.1.13, created on 2023-08-23 09:09:02
compiled from "tpl/tpl_teacher_students.html" */ ?>
<?php /*%%SmartyHeaderCode:167705455662552e220f0110-41390415%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2a33381aaae7372bd3649f04acbef9604a347680' =>
array (
0 => 'tpl/tpl_teacher_students.html',
1 => 1692770940,
2 => 'file',
),
),
'nocache_hash' => '167705455662552e220f0110-41390415',
'function' =>
array (
),
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_62552e22155852_60934128',
'variables' =>
array (
'regim' => 0,
'items' => 0,
'form' => 0,
'er' => 0,
'lc' => 0,
'form1' => 0,
'items1' => 0,
'gr' => 0,
'grupp' => 0,
'sel_grupp' => 0,
'sg' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_62552e22155852_60934128')) {function content_62552e22155852_60934128($_smarty_tpl) {?><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/students/">Студенты</a></li>
<!--<li><a class="btn btn-warning" href="/teach/students/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">
<?php if (count($_smarty_tpl->tpl_vars['items']->value)){?><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 }?>
<?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 }?>
<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> Пользователь</th>
<th><i class="icon-bookmark"></i> Группа</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['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['user']['fio'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['grupp']['name'];?>
<br><?php echo $_smarty_tpl->tpl_vars['lc']->value['grupp']['sokr'];?>
-<?php echo $_smarty_tpl->tpl_vars['lc']->value['grupp']['kurs'];?>
</td>
<td nowarp>
<a class="btn btn-primary" href="/teach/students/ace/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-ok"></i></a>
<!--<a class="btn btn-primary" href="/teach/students/dec/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-remove"></i></a>-->
<a class="btn btn-danger" href="/teach/students/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>
</div>
</div><?php }?>
<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['form1']->value['err'])){?><?php $_smarty_tpl->tpl_vars['er'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['er']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['form1']->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['form1']->value['msg'])){?>
<div class="alert alert-success">
<button data-dismiss="alert" class="close">×</button>
<strong>Успешно!</strong> <?php echo $_smarty_tpl->tpl_vars['form1']->value['msg'];?>
</div>
<?php }?>
<?php if (count($_smarty_tpl->tpl_vars['items1']->value)){?>
<p>Каждому преподавателю предоставлена возможность редактировать студентов, из прикрепленных к преподавателю, групп. Если вы меняете группу у студента - он может исчезнуть из вашего списка студентов, при условии, что новая группа не прикрепленна к преподавателю(если такое случилось, можно прикрепить к себе группу и найти студента и указать нужную группу, после этого открепить группу от преподавателя)!</p>
<form method="POST">
<div class="row-fluid">
<div class="span1">
<div class="control-group">
<div class="controls controls-row">
<p>Поиск студента</p>
</div>
</div>
</div>
<div class="span3">
<div class="control-group">
<div class="controls controls-row">
<input type="text" class="input-block-level" placeholder="Введите фамилию студента" name="search_fio">
</div>
</div>
</div>
<div class="span1">
<div class="control-group">
<div class="controls controls-row">
<input type="SUBMIT" value="Поиск" class="btn btn-warning" name="search_go">
</div>
</div>
</div>
<div class="span7">
<div class="control-group">
<div class="controls controls-row">
<p>Можно искать по всем студентам системы, для распределения по группам!<br />Чтобы найти определенного студента, воспользуйтесь поиском.</p>
</div>
</div>
</div>
</div>
</form>
<hr />
<!--p><b>Вы можете выбрать одну из привязанных групп: <?php echo $_smarty_tpl->tpl_vars['gr']->value;?>
</b></p>
<?php $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['grupp']->value; 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;
?>
<a href="/teach/students/<?php echo $_smarty_tpl->tpl_vars['gr']->value['id'];?>
/"><input type="button" class="btn btn-info grupp-select" value="<?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'];?>
" style="margin-top: 2px;" /></a>
<?php } ?>
<br /><br />--><form method="POST">
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th><i class="icon-bullhorn"></i> Даты</th>
<th><i class="icon-question-sign"></i> Пользователь</th>
<th><i class="icon-bookmark"></i> Группа</th>
<th><i class="icon-bookmark"></i> Подгруппа</th>
<th><i class="icon-bookmark"></i> Ссылка на личную карточку</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['items1']->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><?php echo $_smarty_tpl->tpl_vars['lc']->value['user']['fio'];?>
</td>
<td>
<select name="grupp_change[<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
][grupp]"><option value="0" SELECTED>Выберите группу</option><?php $_smarty_tpl->tpl_vars['sg'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sg']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['sel_grupp']->value; 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;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['sg']->value['id'];?>
" <?php if ($_smarty_tpl->tpl_vars['sg']->value['id']==$_smarty_tpl->tpl_vars['lc']->value['grupp']['id']){?>SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['sg']->value['sokr'];?>
-<?php echo $_smarty_tpl->tpl_vars['sg']->value['kurs'];?>
<?php echo $_smarty_tpl->tpl_vars['sg']->value['fo'];?>
(<?php echo $_smarty_tpl->tpl_vars['sg']->value['year_start'];?>
год набора)</option>
<?php } ?></select>
</td>
<td><input type="text" name="grupp_change[<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
][pgrupp]" value="<?php echo $_smarty_tpl->tpl_vars['lc']->value['num_grupp'];?>
" placeholder="Введите подгруппу студента"/></td>
<td><a class="btn btn-success" href="/user/<?php echo $_smarty_tpl->tpl_vars['lc']->value['user']['id'];?>
/" target="_blank"><i class="icon-globe"></i></a><input type="text" value="http://learn-mkgtu.ru/user/<?php echo $_smarty_tpl->tpl_vars['lc']->value['user']['id'];?>
/"></td>
<td nowrap>
<!--<a class="btn btn-primary" href="/teach/students/ace/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-ok"></i></a>-->
<a class="btn btn-primary tooltips" data-trigger="hover" data-original-title="Отказать студенту на зачисление в группу - ИСКЛЮЧИТЬ" href="/teach/students/dec/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-remove"></i></a>
<a class="btn btn-danger tooltips" data-trigger="hover" data-original-title="Удалить анкету студента - СОВСЕМ(пользователь останется)" href="/teach/students/del/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-trash "></i></a>
</td>
<td></td>
</tr>
<?php } ?>
<tr>
<td colspan="2"></td>
<td colspan="2"><input type="submit" class="btn btn-danger" value="Сохранить группы и подгруппы" name="grupp_change_submit"></td>
<td colspan="2"></td>
</tr>
</tbody>
</table>
</form>
<?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="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="Полное название группы (не более 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="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 }} ?>