EIOS/inc/smarty/templates_c/b8e788f6fcbe0a2e8cb5f78a4ee...

520 lines
22 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 2023-07-19 11:53:53
compiled from "tpl/tpl_teacher_liquidation_ved.html" */ ?>
<?php /*%%SmartyHeaderCode:135838506162546533bd3f50-30059763%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'b8e788f6fcbe0a2e8cb5f78a4ee93bff169dc792' =>
array (
0 => 'tpl/tpl_teacher_liquidation_ved.html',
1 => 1689756755,
2 => 'file',
),
),
'nocache_hash' => '135838506162546533bd3f50-30059763',
'function' =>
array (
'nav_pages' =>
array (
'parameter' =>
array (
'curp' => 1,
'all' => 0,
'kolpp' => 100,
),
'compiled' => '',
),
),
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_62546533c11442_44318450',
'variables' =>
array (
'all' => 0,
'kolpp' => 0,
'kol_pages' => 0,
'p' => 0,
'curp' => 0,
'msg' => 0,
'faculties' => 0,
'fak' => 0,
'fakultet' => 0,
'grupps' => 0,
'grupp' => 0,
'teachers' => 0,
'teach' => 0,
'all_group' => 0,
'gr' => 0,
'nav_cur' => 0,
'nav_all' => 0,
'nav_lim' => 0,
'statements' => 0,
'stat' => 0,
'stud' => 0,
),
'has_nocache_code' => 0,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_62546533c11442_44318450')) {function content_62546533c11442_44318450($_smarty_tpl) {?><?php if (!function_exists('smarty_template_function_nav_pages')) {
function smarty_template_function_nav_pages($_smarty_tpl,$params) {
$saved_tpl_vars = $_smarty_tpl->tpl_vars;
foreach ($_smarty_tpl->smarty->template_functions['nav_pages']['parameter'] as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);};
foreach ($params as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);}?>
<?php $_smarty_tpl->tpl_vars['kol_pages'] = new Smarty_variable(ceil($_smarty_tpl->tpl_vars['all']->value/$_smarty_tpl->tpl_vars['kolpp']->value), null, 0);?>
Всего ведомостей: <?php echo $_smarty_tpl->tpl_vars['all']->value;?>
шт. Страницы:
<?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['kol_pages']->value+1 - (1) : 1-($_smarty_tpl->tpl_vars['kol_pages']->value)+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;?>
[<?php if ($_smarty_tpl->tpl_vars['p']->value!=$_smarty_tpl->tpl_vars['curp']->value){?><a href="/dekanat/liquidation_ved/page<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
/"><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
</a> <?php }else{ ?><b><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
</b><?php }?>]
<?php }} ?>
<?php $_smarty_tpl->tpl_vars = $saved_tpl_vars;
foreach (Smarty::$global_tpl_vars as $key => $value) if(!isset($_smarty_tpl->tpl_vars[$key])) $_smarty_tpl->tpl_vars[$key] = $value;}}?>
<!-- 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/liquidation/">Создание ведомостей</a></li>
</ul>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<?php if (($_smarty_tpl->tpl_vars['msg']->value==-1)){?>
<div class="alert alert-warning">
<button data-dismiss="alert" class="close">×</button>
<strong>Направление уже есть!</strong>
</div>
<?php }?>
<?php if (($_smarty_tpl->tpl_vars['msg']->value==1)){?>
<div class="alert alert-success">
<button data-dismiss="alert" class="close">×</button>
<strong>Направление создано!</strong>
</div>
<?php }?>
<?php if (($_smarty_tpl->tpl_vars['msg']->value==2)){?>
<div class="alert alert-success">
<button data-dismiss="alert" class="close">×</button>
<strong>Ведомость создана!</strong>
</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="icon-chevron-up"> Развернуть/Свернуть</a></span>
</div>
<div class="widget-body" style="display: none;">
<form name="form_ved" 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['name'];?>
" <?php if (($_smarty_tpl->tpl_vars['fak']->value['name']==$_smarty_tpl->tpl_vars['fakultet']->value)){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['fak']->value['name'];?>
</option>
<?php } ?>
</select>
</div>
<span class="help-inline"> Начните вводить первые буквы...</span>
</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'];?>
(Год набора - <?php echo $_smarty_tpl->tpl_vars['grupp']->value['year_start'];?>
)</option>
<?php } ?>
</select>
</div>
<span class="help-inline"> Начните вводить первые буквы...</span>
</div>
</div>
<div class="hide-content2" style="display: none;">
<div class="control-group">
<label class="control-label">
Студент<br />
<span class="badge badge-info sel-all-stud">Выбрать всех</span><br /><br />
Подгруппа: <input type="text" name="numgrupp" value="1" style="max-width: 100%;"/>
<span class="badge badge-warning sel-pd-stud">Выбрать подгруппу</span><br />
</label>
<div class="controls">
<div class="input-prepend student-ved">
</div>
</div>
</div>
<div class="control-group">
<label class="control-label">Преподаватель</label>
<div class="contros">
<select data-placeholder="Укажите преподавателя" class="chzn-select span6" tabindex="6" name="teacher" style="width: 350px!important;">
<option value="0">Выберите преподавателя</option>
<?php $_smarty_tpl->tpl_vars['teach'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['teach']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['teachers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['teach']->key => $_smarty_tpl->tpl_vars['teach']->value){
$_smarty_tpl->tpl_vars['teach']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['teach']->value['id_user'];?>
"><?php echo $_smarty_tpl->tpl_vars['teach']->value['fio'];?>
</option>
<?php } ?>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">Тип</label>
<div class="controls">
<div class="input-prepend">
<select name="type" class="form-control">
<option value="1">Досрочная</option>
<option value="2">Первичная</option>
<option value="3">Повторная</option>
<option value="4">С комиссией</option>
</select>
</div>
<span class="help-inline"></span>
</div>
</div>
<div class="control-group">
<label class="control-label">Учебный план:</label>
<div class="controls">
<div class="input-prepend">
<select name="iup" class="form-control">
<option value="1">Индивидуальный</option>
<option value="0">Обычный</option>
</select>
</div>
<span class="help-inline"></span>
</div>
</div>
<div class="control-group">
<label class="control-label">Дисциплина из плана:</label>
<div class="controls">
<div class="input-prepend">
<select name="name" class="form-control">
</select>
</div>
<span class="help-inline"></span>
</div>
</div>
<!--div class="control-group">
<label class="control-label">Дисциплина</label>
<div class="controls">
<div class="input-prepend">
<input type="text" name="name" class="form-control" required />
</div>
<span class="help-inline">Например: Алгебра и геометрия</span>
</div>
</div-->
<div class="control-group">
<label class="control-label">Форма контроля</label>
<div class="controls">
<div class="input-prepend">
<select name="control" class="form-control">
<option value="1">Экзамен</option>
<option value="2">Зачет</option>
<option value="6">Зачет с оценкой</option>
<option value="3">Курсовая работа</option>
<option value="4">Курсовой проект</option>
<option value="5">Отчет по практике</option>
</select>
</div>
<span class="help-inline"></span>
</div>
</div>
<div class="control-group">
<label class="control-label">На дату:</label>
<div class="controls">
<div class="input-prepend">
<input type="date" name="date_end" class="form-control" />
</div>
<span class="help-inline"></span>
</div>
</div>
<div class="control-group">
<label class="control-label">Семестр</label>
<div class="controls">
<div class="input-prepend">
<select name="semestr" class="form-control">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>
</div>
<span class="help-inline"></span>
</div>
</div>
<input type="submit" name="add_ved" value="Сформировать ведомость и направить преподавателю" class="btn btn-success" />
</div>
</form>
</div>
</div>
<div class="span12">
<div class="row">
<form name="search_ved" method="post" action="" style="width: 100%;">
Поиск: <input type="text" name="search_predmet" class="form-control" placeholder="по дисциплине" /> <input type="number" name="search_semestr" min="1" max="12" class="form-control" placeholder="по семестру" />
<select name="search_group" class="form-control">
<?php $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['all_group']->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;
?>
<option 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>
<input type="submit" class="btn btn-info" name="clear_search" value="Сбросить поиск" />
<input type="submit" class="btn btn-success" value="Искать" />
</form>
</div>
<div class="row">
<div class="span12"><span style="color: blue; font-size: 16px;">По умолчанию отображаеся только часть ведомостей! Ищите по названию дисциплины или по семестру нужную.</span><hr /></div>
<div class="span12"><?php smarty_template_function_nav_pages($_smarty_tpl,array('curp'=>$_smarty_tpl->tpl_vars['nav_cur']->value,'all'=>$_smarty_tpl->tpl_vars['nav_all']->value,'kolpp'=>$_smarty_tpl->tpl_vars['nav_lim']->value));?>
</div>
</div>
</div>
<?php $_smarty_tpl->tpl_vars['stat'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['stat']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['statements']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['stat']->key => $_smarty_tpl->tpl_vars['stat']->value){
$_smarty_tpl->tpl_vars['stat']->_loop = true;
?>
<div class="widget blue">
<div class="widget-title" style="height: 46px!important">
<h4><i class=" icon-edit"></i>Ведомость №<?php echo $_smarty_tpl->tpl_vars['stat']->value['id_stat'];?>
. <b>Группа <?php echo $_smarty_tpl->tpl_vars['stat']->value['gruppa'];?>
<?php if (($_smarty_tpl->tpl_vars['stat']->value['fo']=='ОФО')){?><span class="badge badge-success">ОФО</span><?php }else{ ?><?php if (($_smarty_tpl->tpl_vars['stat']->value['fo']=='ЗФО')){?><span class="badge badge-important">ЗФО</span><?php }else{ ?><span class="badge badge-purple" style="background-color: #db9136;">ОЗФО</span><?php }?><?php }?>. <?php echo $_smarty_tpl->tpl_vars['stat']->value['name'];?>
(<?php echo $_smarty_tpl->tpl_vars['stat']->value['date_end'];?>
)</b> <?php if (($_smarty_tpl->tpl_vars['stat']->value['marked']==$_smarty_tpl->tpl_vars['stat']->value['all'])){?> <span class="badge badge-info">ЗАПОЛНЕНА</span> <?php }?> <?php if (($_smarty_tpl->tpl_vars['stat']->value['print_st']==1)){?><span class="badge badge-light">РАСПЕЧАТАНА</span><?php }?><br />
<i><u>Преподаватель:</u> <?php echo $_smarty_tpl->tpl_vars['stat']->value['teacher']['fio'];?>
. <u>Тип:</u> <?php echo $_smarty_tpl->tpl_vars['stat']->value['control'];?>
</i>
</h4>
<span class="tools"><a href="javascript:;" class="icon-chevron-up"> Развернуть/Свернуть</a></span>
</div>
<div class="widget-body" style="display: none;">
<ol>
<?php $_smarty_tpl->tpl_vars['stud'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['stud']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['stat']->value['students']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['stud']->key => $_smarty_tpl->tpl_vars['stud']->value){
$_smarty_tpl->tpl_vars['stud']->_loop = true;
?>
<li><?php echo $_smarty_tpl->tpl_vars['stud']->value['fio'];?>
</li>
<?php } ?>
</ol>
<a href="/dekanat/liquidationView/<?php echo $_smarty_tpl->tpl_vars['stat']->value['id'];?>
/" target="_blank" class="btn btn-success">Предварительный просмотр*</a>
<a href="/dekanat/liquidation/<?php echo $_smarty_tpl->tpl_vars['stat']->value['id'];?>
/" target="_blank" class="btn btn-primary">Распечатать ведомость</a>
<span class="btn btn-warning clear-stat" data-id="<?php echo $_smarty_tpl->tpl_vars['stat']->value['id_stat'];?>
">Очистить ведомость от оценок</span> <span class="btn btn-danger del-stat" data-id="<?php echo $_smarty_tpl->tpl_vars['stat']->value['id_stat'];?>
">Удалить ведомость</span>
<p align="right">* - не ставится отметка о печати</p>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
//сортировка по направлениям
$(".sort-napr").click(function(){
var id = $(this).data("id");
$('tr.napr-tr').css("display","none");
if (id == 0) $('tr.napr-tr').css("display","table-row"); //все
if (id == 1) $('tr.napr-tr[data-print=1]').css("display","table-row"); //только распечатанные
if (id == 2) $('tr.napr-tr[data-print=0]').css("display","table-row"); //только нераспечатанные
if (id == 3) { //с оценкой
$('tr.napr-tr[data-mark]').css("display","table-row");
$('tr.napr-tr[data-mark=Нет]').css("display","none");
}
if (id == 4) $('tr.napr-tr[data-mark=Нет]').css("display","table-row"); //без оценки
});
//выбор группы и вывод списка необходимых студентов
$("select[name=grupp]").change(function(){
var id_grupp = $(this).val();
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=show_students&id_grupp='+id_grupp,
success: function(data){
//alert(123);
$('select[name=student]').html(data.html);
$('.hide-content').css('display', 'block');
}
});
});
//выбор группы и вывод списка необходимых студентов - ДЛЯ ВЕДОМОСТЕЙ
$("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_v&id_grupp='+id_grupp,
success: function(data){
//alert(123);
$('.student-ved').html(data.html);
$('select[name=name]').html(data.predmets);
$('.hide-content2').css('display', 'block');
}
});
});
//удаление направления
$(".del-naprav").click(function(){
var id = $(this).data("id");
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=del_napr&id='+id,
success: function(data){
alert('Направление удалено!');
location.href='/dekanat/liquidation/';
}
});
});
//удаление оценки zero-naprav
$(".zero-naprav").click(function(){
var id = $(this).data("id");
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=zero_napr&id='+id,
success: function(data){
alert('Оценка удалено, преподаватель вновь может выставить оценку по направлению.');
location.href='/dekanat/liquidation/';
}
});
});
//удаление ведомости
$('.del-stat').click(function(){
var id = $(this).data('id');
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=del_stat&id='+id,
success: function(data){
alert('Ведомость удалена');
location.href='/dekanat/liquidation_ved/';
}
});
});
//очитска ведомости от отметок
$('.clear-stat').click(function(){
var id = $(this).data('id');
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=clear_stat&id='+id,
success: function(data){
alert('Ведомость очищена от отметок, преподаватель ее может перезаполнить');
location.href='/dekanat/liquidation_ved/';
}
});
});
//выбрать всех
$('.sel-all-stud').click(function(){
$('input[type=checkbox]').prop('checked', true);
});
//выбрать конкретную подгруппу
$('.sel-pd-stud').click(function(){
var num = $('input[name=numgrupp]').val();
$('input[data-num='+num+']').prop('checked', true);
});
});
</script>
<?php }} ?>