EIOS/inc/smarty/templates_c/2979101d00e86547ac7aa71ea1d...

695 lines
35 KiB
PHP
Raw Permalink 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 2023-07-12 13:48:16
compiled from "tpl/tpl_byPass.html" */ ?>
<?php /*%%SmartyHeaderCode:10427255756254ac38346268-71692637%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2979101d00e86547ac7aa71ea1d28ef65611c040' =>
array (
0 => 'tpl/tpl_byPass.html',
1 => 1689158894,
2 => 'file',
),
),
'nocache_hash' => '10427255756254ac38346268-71692637',
'function' =>
array (
),
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_6254ac3842c088_94633812',
'variables' =>
array (
'obhod_stud' => 0,
'user' => 0,
'faculties' => 0,
'fak' => 0,
'kafedres' => 0,
'kaf' => 0,
'grupps' => 0,
'grupp' => 0,
'faks' => 0,
'k' => 0,
'lib' => 0,
'objs' => 0,
'libs' => 0,
'kafs' => 0,
'bfus' => 0,
'truds' => 0,
'kadres' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6254ac3842c088_94633812')) {function content_6254ac3842c088_94633812($_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="/byPass/">Обходные листы</a><span class="divider">/</span></li>
<li class="active"><a href="#"></a></li>
</ul>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<?php if (!(count($_smarty_tpl->tpl_vars['obhod_stud']->value))){?>
<div class="alert alert-info">
<button data-dismiss="alert" class="close">×</button>
<i><b>Подсказки:</b>
<ol>
<li>Для быстрого поиска студента в списке можно и нужно пользоваться встроенными средствами поиска браузера. Для этого нажмите Ctrl-F и начните вводить фамилию студента - браузер направит в нужную часть страницы :)</li>
<li>Отклоненные обходные листы попадают в конец списка с отметкой "ранее был отклонен". После устранения замечаний студентом, его обходной лист можно одобрить. </li>
<li>Одобренные обходные исчезают, но в деканате и студ. кадрах остаются. Для деканата они становятся нередактируемыми с отметкой "Одобрено деканатом", остается только возможность печати.</li>
</ol></i>
</div>
<?php }?>
<?php if (((isset($_smarty_tpl->tpl_vars['user']->value['statuses'][21]))||(isset($_smarty_tpl->tpl_vars['user']->value['statuses'][25])))){?>
<div class="widget green">
<div class="widget-title">
<h4><i class="icon-reorder"></i> (Зам декана) Создание обходных листов</h4>
<span class="tools"><a href="javascript:;" class="icon-chevron-up"> Развернуть/Свернуть</a></span>
</div>
<div class="widget-body" style="display: none;">
<form name="add_napr" action="#" method="post" class="form-horizontal">
<div class="control-group">
<label class="control-label">Факультет</label>
<div class="controls">
<div class="input-prepend">
<select name="fakultet" class="form-control">
<?php $_smarty_tpl->tpl_vars['fak'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fak']->_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['fak']->key => $_smarty_tpl->tpl_vars['fak']->value){
$_smarty_tpl->tpl_vars['fak']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['fak']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['fak']->value['name'];?>
</option>
<?php } ?>
</select>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label">Выпускающая кафедра</label>
<div class="controls">
<div class="input-prepend">
<select name="kafedra" class="form-control">
<?php $_smarty_tpl->tpl_vars['kaf'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['kaf']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['kafedres']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['kaf']->key => $_smarty_tpl->tpl_vars['kaf']->value){
$_smarty_tpl->tpl_vars['kaf']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['kaf']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['kaf']->value['code'];?>
<?php echo $_smarty_tpl->tpl_vars['kaf']->value['name'];?>
</option>
<?php } ?>
</select>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label">Группа студента</label>
<div class="controls">
<div class="input-prepend">
<select name="grupp_v" class="form-control">
<?php $_smarty_tpl->tpl_vars['grupp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['grupp']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['grupps']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['grupp']->key => $_smarty_tpl->tpl_vars['grupp']->value){
$_smarty_tpl->tpl_vars['grupp']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['grupp']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['grupp']->value['sokr'];?>
-<?php echo $_smarty_tpl->tpl_vars['grupp']->value['kurs'];?>
<?php echo $_smarty_tpl->tpl_vars['grupp']->value['fo'];?>
</option>
<?php } ?>
</select>
</div>
<span class="help-inline"> Начните вводить первые буквы...</span>
</div>
</div>
<div class="hide-content" style="display: none;">
<div class="control-group">
<label class="control-label">
Студенты<br />
<span class="badge badge-info sel-all-stud">Выбрать все</span><br />
<span class="badge badge-success sel-vib-stud">Все студенты</span><br />
<span class="badge badge-success sel-obj-stud">Общежитие</span><br />
<span class="badge badge-success sel-lib-stud">Библиотека</span><br />
<span class="badge badge-success sel-bfu-stud">БФУ</span><br />
<span class="badge badge-success sel-trud-stud">Трудоустройство</span><br />
</label>
<div class="controls">
<div class="input-prepend student-ved">
</div>
</div>
</div>
<input type="button" value="Сформировать обходные листы" class="btn btn-success add_obh" />
</div>
</form>
</div>
</div>
<div class="widget blue">
<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>№</th>
<th>ФИО</th>
<th>Группа</th>
<th>Общежитие</th>
<th>Библиотека</th>
<th>Кафедра</th>
<th>БФУ</th>
<th>Трудоустройство</th>
<th>Операции</th>
</tr>
</thead>
<tbody class="load-faculties">
<?php $_smarty_tpl->tpl_vars['lib'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lib']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['faks']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['lib']->key => $_smarty_tpl->tpl_vars['lib']->value){
$_smarty_tpl->tpl_vars['lib']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['lib']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lib']->value['fio'];?>
<?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_fakult']=="-1")){?><br /><span style="color: red; font-style: italic;">(ранее был отклонен)</span><?php }?>
<?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_fakult']=="1")){?><br /><span style="color: green; font-style: italic;">(одобрено деканатом)</span><?php }?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['sokr'];?>
-<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['kurs'];?>
<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['num_grupp'];?>
<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['fo'];?>
</td>
<td><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_obj']=="1")){?><span style="color: green;">+</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_obj']=="0")){?><span style="color: orange;">?</span><?php }else{ ?><span style="color: red;">-</span><?php }?><?php }?></td>
<td><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_lib']=="1")){?><span style="color: green;">+</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_lib']=="0")){?><span style="color: orange;">?</span><?php }else{ ?><span style="color: red;">-</span><?php }?><?php }?></td>
<td><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_kaf']=="1")){?><span style="color: green;">+</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_kaf']=="0")){?><span style="color: orange;">?</span><?php }else{ ?><span style="color: red;">-</span><?php }?><?php }?></td>
<td><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_bfu']=="1")){?><span style="color: green;">+</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_bfu']=="0")){?><span style="color: orange;">?</span><?php }else{ ?><span style="color: red;">-</span><?php }?><?php }?></td>
<td><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_trud']=="1")){?><span style="color: green;">+</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_trud']=="0")){?><span style="color: orange;">?</span><?php }else{ ?><span style="color: red;">-</span><?php }?><?php }?></td>
<td>
<?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_fakult']!="1")){?><span class="btn btn-success obhod-ok" data-place="0" data-id="<?php echo $_smarty_tpl->tpl_vars['lib']->value['id_ob'];?>
">Одобрить</span>
<!--span class="btn btn-danger obhod-no" data-place="0" data-id="<?php echo $_smarty_tpl->tpl_vars['lib']->value['id_ob'];?>
">Отклонить</span--><?php }?>
<a href="/byPass/<?php echo $_smarty_tpl->tpl_vars['lib']->value['id_ob'];?>
/" class="btn btn-primary">Печатать</a>
<?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_fakult']!="1")){?><span class="btn btn-warning delete-obhod" data-id="<?php echo $_smarty_tpl->tpl_vars['lib']->value['id_ob'];?>
">Удалить</span><?php }?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<?php }?>
<?php if (((isset($_smarty_tpl->tpl_vars['user']->value['statuses'][35])))){?>
<div class="widget blue">
<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>№</th>
<th>ФИО</th>
<th>Группа</th>
<th>Операции</th>
</tr>
</thead>
<tbody class="load-faculties">
<?php $_smarty_tpl->tpl_vars['lib'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lib']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['objs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['lib']->key => $_smarty_tpl->tpl_vars['lib']->value){
$_smarty_tpl->tpl_vars['lib']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['lib']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lib']->value['fio'];?>
<?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_obj']=="-1")){?><br /><span style="color: red; font-style: italic;">(ранее был отклонен)</span><?php }?></td>
<td><?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['sokr'];?>
-<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['kurs'];?>
<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['num_grupp'];?>
<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['fo'];?>
</td>
<td><span class="btn btn-success obhod-ok" data-place="1" data-id="<?php echo $_smarty_tpl->tpl_vars['lib']->value['id_ob'];?>
">Одобрить</span> <span class="btn btn-danger obhod-no" data-place="1" data-id="<?php echo $_smarty_tpl->tpl_vars['lib']->value['id_ob'];?>
">Отклонить</span></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<?php }?>
<?php if (((isset($_smarty_tpl->tpl_vars['user']->value['statuses'][29])))){?>
<div class="widget blue">
<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>№</th>
<th>ФИО</th>
<th>Группа</th>
<th>Операции</th>
</tr>
</thead>
<tbody class="load-faculties">
<?php $_smarty_tpl->tpl_vars['lib'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lib']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['libs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['lib']->key => $_smarty_tpl->tpl_vars['lib']->value){
$_smarty_tpl->tpl_vars['lib']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['lib']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lib']->value['fio'];?>
<?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_lib']=="-1")){?><br /><span style="color: red; font-style: italic;">(ранее был отклонен)</span><?php }?></td>
<td><?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['sokr'];?>
-<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['kurs'];?>
<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['num_grupp'];?>
<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['fo'];?>
</td>
<td><span class="btn btn-success obhod-ok" data-place="2" data-id="<?php echo $_smarty_tpl->tpl_vars['lib']->value['id_ob'];?>
">Одобрить</span> <span class="btn btn-danger obhod-no" data-place="2" data-id="<?php echo $_smarty_tpl->tpl_vars['lib']->value['id_ob'];?>
">Отклонить</span></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<?php }?>
<?php if (((isset($_smarty_tpl->tpl_vars['user']->value['statuses'][23])))){?>
<div class="widget blue">
<div class="widget-title">
<h4><i class="icon-reorder"></i> Выпускающая кафедра</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>№</th>
<th>ФИО</th>
<th>Группа</th>
<th>Операции</th>
</tr>
</thead>
<tbody class="load-faculties">
<?php $_smarty_tpl->tpl_vars['lib'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lib']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['kafs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['lib']->key => $_smarty_tpl->tpl_vars['lib']->value){
$_smarty_tpl->tpl_vars['lib']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['lib']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lib']->value['fio'];?>
<?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_kaf']=="-1")){?><br /><span style="color: red; font-style: italic;">(ранее был отклонен)</span><?php }?></td>
<td><?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['sokr'];?>
-<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['kurs'];?>
<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['num_grupp'];?>
<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['fo'];?>
</td>
<td><span class="btn btn-success obhod-ok" data-place="3" data-id="<?php echo $_smarty_tpl->tpl_vars['lib']->value['id_ob'];?>
">Одобрить</span> <span class="btn btn-danger obhod-no" data-place="3" data-id="<?php echo $_smarty_tpl->tpl_vars['lib']->value['id_ob'];?>
">Отклонить</span></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<?php }?>
<?php if (((isset($_smarty_tpl->tpl_vars['user']->value['statuses'][36])))){?>
<div class="widget blue">
<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>№</th>
<th>ФИО</th>
<th>Группа</th>
<th>Операции</th>
</tr>
</thead>
<tbody class="load-faculties">
<?php $_smarty_tpl->tpl_vars['lib'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lib']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['bfus']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['lib']->key => $_smarty_tpl->tpl_vars['lib']->value){
$_smarty_tpl->tpl_vars['lib']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['lib']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lib']->value['fio'];?>
<?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_bfu']=="-1")){?><br /><span style="color: red; font-style: italic;">(ранее был отклонен)</span><?php }?></td>
<td><?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['sokr'];?>
-<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['kurs'];?>
<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['num_grupp'];?>
<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['fo'];?>
</td>
<td><span class="btn btn-success obhod-ok" data-place="4" data-id="<?php echo $_smarty_tpl->tpl_vars['lib']->value['id_ob'];?>
">Одобрить</span> <span class="btn btn-danger obhod-no" data-place="4" data-id="<?php echo $_smarty_tpl->tpl_vars['lib']->value['id_ob'];?>
">Отклонить</span></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<?php }?>
<?php if (((isset($_smarty_tpl->tpl_vars['user']->value['statuses'][10])))){?>
<div class="widget blue">
<div class="widget-title">
<h4><i class="icon-reorder"></i> Трудоустройство</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>№</th>
<th>ФИО</th>
<th>Группа</th>
<th>Операции</th>
</tr>
</thead>
<tbody class="load-faculties">
<?php $_smarty_tpl->tpl_vars['lib'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lib']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['truds']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['lib']->key => $_smarty_tpl->tpl_vars['lib']->value){
$_smarty_tpl->tpl_vars['lib']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['lib']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lib']->value['fio'];?>
<?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_trud']=="-1")){?><br /><span style="color: red; font-style: italic;">(ранее был отклонен)</span><?php }?></td>
<td><?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['sokr'];?>
-<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['kurs'];?>
<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['num_grupp'];?>
<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['fo'];?>
</td>
<td><span class="btn btn-success obhod-ok" data-place="5" data-id="<?php echo $_smarty_tpl->tpl_vars['lib']->value['id_ob'];?>
">Одобрить</span> <span class="btn btn-danger obhod-no" data-place="5" data-id="<?php echo $_smarty_tpl->tpl_vars['lib']->value['id_ob'];?>
">Отклонить</span></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<?php }?>
<?php if (((isset($_smarty_tpl->tpl_vars['user']->value['statuses'][26])))){?>
<div class="widget blue">
<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>№</th>
<th>ФИО</th>
<th>Группа</th>
<th>Деканат</th>
<th>Общежитие</th>
<th>Библиотека</th>
<th>Кафедра</th>
<th>БФУ</th>
<th>Трудоустройство</th>
</tr>
</thead>
<tbody class="load-faculties">
<?php $_smarty_tpl->tpl_vars['lib'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lib']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['kadres']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['lib']->key => $_smarty_tpl->tpl_vars['lib']->value){
$_smarty_tpl->tpl_vars['lib']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['lib']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td id="obid_<?php echo $_smarty_tpl->tpl_vars['lib']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['lib']->value['fio'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['sokr'];?>
-<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['kurs'];?>
<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['num_grupp'];?>
<?php echo $_smarty_tpl->tpl_vars['lib']->value['stud']['fo'];?>
</td>
<td><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_fakult']=="1")){?><span style="color: green;">+</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_fakult']=="0")){?><span style="color: orange;">?</span><?php }else{ ?><span style="color: red;">-</span><?php }?><?php }?></td>
<td><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_obj']=="1")){?><span style="color: green;">+</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_obj']=="0")){?><span style="color: orange;">?</span><?php }else{ ?><span style="color: red;">-</span><?php }?><?php }?></td>
<td><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_lib']=="1")){?><span style="color: green;">+</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_lib']=="0")){?><span style="color: orange;">?</span><?php }else{ ?><span style="color: red;">-</span><?php }?><?php }?></td>
<td><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_kaf']=="1")){?><span style="color: green;">+</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_kaf']=="0")){?><span style="color: orange;">?</span><?php }else{ ?><span style="color: red;">-</span><?php }?><?php }?></td>
<td><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_bfu']=="1")){?><span style="color: green;">+</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_bfu']=="0")){?><span style="color: orange;">?</span><?php }else{ ?><span style="color: red;">-</span><?php }?><?php }?></td>
<td><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_trud']=="1")){?><span style="color: green;">+</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['lib']->value['pl_trud']=="0")){?><span style="color: orange;">?</span><?php }else{ ?><span style="color: red;">-</span><?php }?><?php }?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<?php }?>
<?php if ((count($_smarty_tpl->tpl_vars['obhod_stud']->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">
<b>Деканат факультета:</b> <?php if (($_smarty_tpl->tpl_vars['obhod_stud']->value['info']['pl_fakult']=="1")){?><span style="color: green;">Нет задолженности</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['obhod_stud']->value['info']['pl_fakult']=="0")){?><span style="color: orange;">Ожидается</span><?php }else{ ?><span style="color: red;">Есть задолженности (см. комментарий)</span><?php }?><?php }?><br />
<b>Отдел по СБ и ВР (общежитие):</b> <?php if (($_smarty_tpl->tpl_vars['obhod_stud']->value['info']['pl_obj']=="1")){?><span style="color: green;">Нет задолженности</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['obhod_stud']->value['info']['pl_obj']=="0")){?><span style="color: orange;">Ожидается</span><?php }else{ ?><span style="color: red;">Есть задолженности (см. комментарий)</span><?php }?><?php }?><br />
<b>Научная библиотека МГТУ:</b> <?php if (($_smarty_tpl->tpl_vars['obhod_stud']->value['info']['pl_lib']=="1")){?><span style="color: green;">Нет задолженности</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['obhod_stud']->value['info']['pl_lib']=="0")){?><span style="color: orange;">Ожидается</span><?php }else{ ?><span style="color: red;">Есть задолженности (см. комментарий)</span><?php }?><?php }?><br />
<b>Выпускающая кафедра:</b> <?php if (($_smarty_tpl->tpl_vars['obhod_stud']->value['info']['pl_kaf']=="1")){?><span style="color: green;">Нет задолженности</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['obhod_stud']->value['info']['pl_kaf']=="0")){?><span style="color: orange;">Ожидается</span><?php }else{ ?><span style="color: red;">Есть задолженности (см. комментарий)</span><?php }?><?php }?><br />
<b>Бюджетно-финансовое управление:</b> <?php if (($_smarty_tpl->tpl_vars['obhod_stud']->value['info']['pl_bfu']=="1")){?><span style="color: green;">Нет задолженности</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['obhod_stud']->value['info']['pl_bfu']=="0")){?><span style="color: orange;">Ожидается</span><?php }else{ ?><span style="color: red;">Есть задолженности (см. комментарий)</span><?php }?><?php }?><br />
<b>Центр карьеры, профориентации и содействия трудоустройству:</b> <?php if (($_smarty_tpl->tpl_vars['obhod_stud']->value['info']['pl_trud']=="1")){?><span style="color: green;">Нет задолженности</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['obhod_stud']->value['info']['pl_trud']=="0")){?><span style="color: orange;">Ожидается</span><?php }else{ ?><span style="color: red;">Есть задолженности (см. комментарий)</span><?php }?><?php }?><br />
<hr />
<p>Комментарии: <br /><?php echo $_smarty_tpl->tpl_vars['obhod_stud']->value['comm'];?>
</p>
</div>
</div>
<?php }?>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
//выбрать все
$('.sel-all-stud').click(function(){
$('input[type=checkbox]').prop('checked', true);
});
//все студенты
$('.sel-vib-stud').click(function(){
$('input[name=vib]').prop('checked', true);
});
//общежитие
$('.sel-obj-stud').click(function(){
$('input[name=obj]').prop('checked', true);
});
//библиотека
$('.sel-lib-stud').click(function(){
$('input[name=lib]').prop('checked', true);
});
//БФУ
$('.sel-bfu-stud').click(function(){
$('input[name=bfu]').prop('checked', true);
});
//Трудоустройство
$('.sel-trud-stud').click(function(){
$('input[name=trud]').prop('checked', true);
});
//полное удаление обходного деканатом факультета
$('.delete-obhod').click(function(){
var id = $(this).data('id');
if (confirm('Вы уверены, что хотите удалить обходной лист? Эта операция необратима, вся информация будет утеряна.')){
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=obhod_delete&id='+id,
success: function(data){
alert('Обходной лист удален');
location.href='/byPass/';
}
});
}
});
//одобрение обходного
$('.obhod-ok').click(function(){
let place = $(this).data('place');
let id = $(this).data('id');
$('.obhod-ok[data-id='+id+']').css('display', 'none');
$('.obhod-no[data-id='+id+']').css('display', 'none');
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=obhod_ok&place='+place+'&id='+id,
success: function(data){
alert('Обходной лист одобрен');
//location.href='/byPass/';
}
});
});
//отклонение обходного
$('.obhod-no').click(function(){
let comm = prompt('Ваш комментарий: ', '-');
let place = $(this).data('place');
let id = $(this).data('id');
$('.obhod-ok[data-id='+id+']').css('display', 'none');
$('.obhod-no[data-id='+id+']').css('display', 'none');
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=obhod_no&place='+place+'&id='+id+'&comm='+comm,
success: function(data){
alert('Обходной лист отклонен');
//location.href='/byPass/';
}
});
});
//формирование обходных листов
$('.add_obh').click(function(){
let fak = $('select[name=fakultet]').val();
let kaf = $('select[name=kafedra]').val();
//перебираем элементы строк
$('tr.stud-obhod').each(function(i,elem) {
let user = $('.stud-obhod:nth-child(' + (i+1) + ') input[name=obj]').data('id');
let vib = $('.stud-obhod:nth-child(' + (i+1) + ') input[name=vib]').attr("checked");
let obj = $('.stud-obhod:nth-child(' + (i+1) + ') input[name=obj]').attr("checked");
let lib = $('.stud-obhod:nth-child(' + (i+1) + ') input[name=lib]').attr("checked");
let bfu = $('.stud-obhod:nth-child(' + (i+1) + ') input[name=bfu]').attr("checked");
let trud = $('.stud-obhod:nth-child(' + (i+1) + ') input[name=trud]').attr("checked");
//alert(user);
//alert(obj);
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=add_obhod&user='+user+'&vib='+vib+'&obj='+obj+'&lib='+lib+'&bfu='+bfu+'&trud='+trud+'&fak='+fak+'&kaf='+kaf,
success: function(data){
}
});
});
/**/
alert('Обходные листы успешно созданы');
location.href='/byPass/';
});
//выбор группы и вывод списка необходимых студентов - ДЛЯ ВЕДОМОСТЕЙ
$("select[name=grupp_v]").change(function(){
var id_grupp = $(this).val();
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=show_students_obh&id_grupp='+id_grupp,
success: function(data){
//alert(123);
$('.student-ved').html(data.html);
$('.hide-content').css('display', 'block');
}
});
});
});
</script><?php }} ?>