262 lines
11 KiB
PHP
262 lines
11 KiB
PHP
<?php /* Smarty version Smarty-3.1.13, created on 2023-02-07 09:39:40
|
||
compiled from "tpl/tpl_teacher_liquidation_prepod.html" */ ?>
|
||
<?php /*%%SmartyHeaderCode:459390390625465508c1572-29881871%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||
'file_dependency' =>
|
||
array (
|
||
'61afb715ac8561f85ac5f8daa3508a45d473b650' =>
|
||
array (
|
||
0 => 'tpl/tpl_teacher_liquidation_prepod.html',
|
||
1 => 1675751972,
|
||
2 => 'file',
|
||
),
|
||
),
|
||
'nocache_hash' => '459390390625465508c1572-29881871',
|
||
'function' =>
|
||
array (
|
||
),
|
||
'version' => 'Smarty-3.1.13',
|
||
'unifunc' => 'content_625465508f8046_28391589',
|
||
'variables' =>
|
||
array (
|
||
'msg' => 0,
|
||
'naprs' => 0,
|
||
'napr' => 0,
|
||
'statements' => 0,
|
||
'stat' => 0,
|
||
'stud' => 0,
|
||
),
|
||
'has_nocache_code' => false,
|
||
),false); /*/%%SmartyHeaderCode%%*/?>
|
||
<?php if ($_valid && !is_callable('content_625465508f8046_28391589')) {function content_625465508f8046_28391589($_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/liquidation_prepod/">Заполнение ведомостей и направлений</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-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 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">
|
||
<table class="table table-striped table-bordered table-advance table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th width="2%">№</th>
|
||
<th width="15%">Сроки</th>
|
||
<th width="20%">Дисциплина</th>
|
||
<th width="25%">Студент</th>
|
||
<th width="10%">Дополнительно</th>
|
||
<th>Оценка</th>
|
||
<th></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php $_smarty_tpl->tpl_vars['napr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['napr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['naprs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['napr']->key => $_smarty_tpl->tpl_vars['napr']->value){
|
||
$_smarty_tpl->tpl_vars['napr']->_loop = true;
|
||
?>
|
||
<tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['napr']->value['i'];?>
|
||
</td>
|
||
<td>с <?php echo $_smarty_tpl->tpl_vars['napr']->value['date_create'];?>
|
||
до <?php echo $_smarty_tpl->tpl_vars['napr']->value['date_end'];?>
|
||
</td>
|
||
<td><b><?php echo $_smarty_tpl->tpl_vars['napr']->value['name'];?>
|
||
</b><br /> </td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['napr']->value['id_student'];?>
|
||
<br /><i>(группа: <?php echo $_smarty_tpl->tpl_vars['napr']->value['gruppa'];?>
|
||
)</i><br /><a href="/pm/writeuser/<?php echo $_smarty_tpl->tpl_vars['napr']->value['id_user'];?>
|
||
/" class="badge badge-warning">Написать студенту</a></td>
|
||
<td>
|
||
<b><?php echo $_smarty_tpl->tpl_vars['napr']->value['iup'];?>
|
||
(<?php echo $_smarty_tpl->tpl_vars['napr']->value['semestr'];?>
|
||
семестр)</b><br />
|
||
Форма контроля: <?php echo $_smarty_tpl->tpl_vars['napr']->value['control'];?>
|
||
<br />
|
||
Вид: <?php echo $_smarty_tpl->tpl_vars['napr']->value['type'];?>
|
||
<br />
|
||
|
||
</td>
|
||
<td>
|
||
<select name="mark-<?php echo $_smarty_tpl->tpl_vars['napr']->value['id_liq'];?>
|
||
" class="form-control">
|
||
<option value="зачтено">зачтено</option>
|
||
<option value="не зачтено">не зачтено</option>
|
||
<option value="отлично">отлично</option>
|
||
<option value="хорошо">хорошо</option>
|
||
<option value="удовлетворительно">удовлетворительно</option>
|
||
<option value="неудовлетворительно">неудовлетворительно</option>
|
||
<!--option value="не допущен">не допущен</option-->
|
||
<option value="не явился">не явился</option>
|
||
</select>
|
||
<td><button class="btn btn-success mark-liq" data-id="<?php echo $_smarty_tpl->tpl_vars['napr']->value['id_liq'];?>
|
||
">Выставить</button></td>
|
||
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
</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: 48px;">
|
||
<h4><i class="icon-reorder"></i> Ведомость группы <?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['control'];?>
|
||
) <span class="badge badge-info"><?php echo $_smarty_tpl->tpl_vars['stat']->value['date_end'];?>
|
||
</span><br />
|
||
<i><?php echo $_smarty_tpl->tpl_vars['stat']->value['fakultet'];?>
|
||
<!--<?php echo $_smarty_tpl->tpl_vars['stat']->value['id_stat'];?>
|
||
--></i></h4>
|
||
<span class="tools"><a href="javascript:;" class="icon-chevron-up"> Развернуть/Свернуть</a></span>
|
||
</div>
|
||
<div class="widget-body" style="display: none;">
|
||
<p><b>Тип ведомости: </b><?php echo $_smarty_tpl->tpl_vars['stat']->value['type'];?>
|
||
</p>
|
||
<table class="table table-striped table-bordered table-advance table-hover">
|
||
<thead>
|
||
<tr>
|
||
<th width="5%">№</th>
|
||
<th width="35%">Студент</th>
|
||
<th>Оценка</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?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;
|
||
?>
|
||
<?php if (($_smarty_tpl->tpl_vars['stud']->value['mark']==null)){?><tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['stud']->value['j'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['stud']->value['fio'];?>
|
||
</td>
|
||
<td>
|
||
<select name="mark-stat-<?php echo $_smarty_tpl->tpl_vars['stud']->value['id_liq'];?>
|
||
" data-id="<?php echo $_smarty_tpl->tpl_vars['stud']->value['id_liq'];?>
|
||
" class="form-control stat-<?php echo $_smarty_tpl->tpl_vars['stat']->value['id_stat'];?>
|
||
">
|
||
<option value="0">НЕ ВЫБРАНО</option>
|
||
<option value="зачтено">зачтено</option>
|
||
<option value="не зачтено">не зачтено</option>
|
||
<option value="отлично">отлично</option>
|
||
<option value="хорошо">хорошо</option>
|
||
<option value="удовлетворительно">удовлетворительно</option>
|
||
<option value="неудовлетворительно">неудовлетворительно</option>
|
||
<!--option value="не допущен">не допущен</option-->
|
||
<option value="не явился">не явился</option>
|
||
</select>
|
||
</td>
|
||
|
||
</tr><?php }?>
|
||
<?php } ?>
|
||
|
||
</tbody>
|
||
</table><br />
|
||
<!--font color="red">Пожалуйста, перед отправкой проверьте все еще раз. <br />
|
||
НИ В КОЕМ СЛУЧАЕ НИКОМУ НЕ СООБЩАЙТЕ ПАРОЛЬ ОТ СВОЕГО ЛИЧНОГО КАБИНЕТА. ЗА ДОСТОВЕРНОСТЬ ВВЕДЕННЫХ В ВЕДОМОСТЬ (НАПРАВЛЕНИЙ) ДАННЫХ НЕСЕТ ОТВЕТСТВЕННОСТЬ САМ ПРЕПОДАВАТЕЛЬ</font><br />
|
||
|
||
<input type="password" name="password_<?php echo $_smarty_tpl->tpl_vars['stat']->value['id_stat'];?>
|
||
" placeholder="Введите еще раз свой пароль" /><br /-->
|
||
<span class="btn btn-success mark-stat" data-id="<?php echo $_smarty_tpl->tpl_vars['stat']->value['id_stat'];?>
|
||
">Выставить оценки</span>
|
||
</div>
|
||
</div>
|
||
|
||
<?php } ?>
|
||
|
||
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<script type="text/javascript">
|
||
$(document).ready(function(){
|
||
|
||
//выставление оценки
|
||
$('.mark-liq').click(function(){
|
||
var id = $(this).data('id');
|
||
|
||
var mark = $('select[name=mark-' + id + ']').val();
|
||
|
||
/*alert(id);
|
||
alert(mark);*/
|
||
|
||
$.ajax({
|
||
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=mark_liq&id='+id+'&mark='+mark,
|
||
success: function(data){
|
||
alert('Оценка выставлена');
|
||
location.href='/teach/liquidation_prepod/';
|
||
}
|
||
});
|
||
|
||
});
|
||
|
||
//выставление оценок в ведомость
|
||
$('.mark-stat').click(function(){
|
||
var id = $(this).data("id");
|
||
var pass = $('input[name=password_'+ id + ']').val();
|
||
//alert(pass);
|
||
var result = '';
|
||
$('.stat-'+id).each(function(){
|
||
result = result + $(this).val() + "-" + $(this).data("id") + ";";
|
||
});
|
||
|
||
$.ajax({
|
||
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=mark_stat&id='+id+'&pass='+pass+'&result='+result,
|
||
success: function(data){
|
||
//alert(id);
|
||
//alert(result);
|
||
|
||
//alert(data.error);
|
||
if (data.error == 1) alert('Ведомость отправлена!'); else alert('Ошибка! Неверный пароль!');
|
||
location.href='/teach/liquidation_prepod/';
|
||
}
|
||
});
|
||
|
||
//document.write(result);
|
||
//alert(id);
|
||
});
|
||
|
||
|
||
});
|
||
</script>
|
||
<?php }} ?>
|