206 lines
7.2 KiB
PHP
206 lines
7.2 KiB
PHP
<?php /* Smarty version Smarty-3.1.13, created on 2023-02-15 09:30:32
|
||
compiled from "tpl/tpl_grant_rating.html" */ ?>
|
||
<?php /*%%SmartyHeaderCode:305096259625e54f2091a99-11967749%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||
'file_dependency' =>
|
||
array (
|
||
'dde13139eec7da049daea0294b75daaa1afd655c' =>
|
||
array (
|
||
0 => 'tpl/tpl_grant_rating.html',
|
||
1 => 1676442630,
|
||
2 => 'file',
|
||
),
|
||
),
|
||
'nocache_hash' => '305096259625e54f2091a99-11967749',
|
||
'function' =>
|
||
array (
|
||
),
|
||
'version' => 'Smarty-3.1.13',
|
||
'unifunc' => 'content_625e54f20bb333_42321645',
|
||
'variables' =>
|
||
array (
|
||
'msg' => 0,
|
||
'facultet' => 0,
|
||
'user' => 0,
|
||
'all_facultets' => 0,
|
||
'fac' => 0,
|
||
'orders' => 0,
|
||
'k' => 0,
|
||
'order' => 0,
|
||
),
|
||
'has_nocache_code' => false,
|
||
),false); /*/%%SmartyHeaderCode%%*/?>
|
||
<?php if ($_valid && !is_callable('content_625e54f20bb333_42321645')) {function content_625e54f20bb333_42321645($_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>
|
||
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
<?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="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">
|
||
<form name="form_presentation" action="/grant/presentation/" method="post">
|
||
|
||
<input type="hidden" name="facultet" value="<?php echo $_smarty_tpl->tpl_vars['facultet']->value;?>
|
||
" />
|
||
|
||
<?php if (isset($_smarty_tpl->tpl_vars['user']->value['statuses'][20])){?>
|
||
<p>У Вас есть права сотрудника УМУ. Можете просматривать все факультеты</p>
|
||
<div class="control-group">
|
||
<label class="control-label" style="min-width: 200px!important;">Факультет</label>
|
||
<div class="controls">
|
||
<div class="input-prepend" style="width: 90%;">
|
||
<select name="facultet" class="form-control">
|
||
<?php $_smarty_tpl->tpl_vars['fac'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fac']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['all_facultets']->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 value="<?php echo $_smarty_tpl->tpl_vars['fac']->value['name'];?>
|
||
"><?php echo $_smarty_tpl->tpl_vars['fac']->value['name'];?>
|
||
</option>
|
||
<?php } ?>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
|
||
<div class="control-group">
|
||
<label class="control-label" style="min-width: 200px!important;">Учебный год</label>
|
||
<div class="controls">
|
||
<div class="input-prepend" style="width: 90%;">
|
||
<select name="year_start" class="form-control">
|
||
<option value="2022">2022/2023 учебный год</option>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="control-group">
|
||
<label class="control-label" style="min-width: 200px!important;">Семестр</label>
|
||
<div class="controls">
|
||
<div class="input-prepend" style="width: 90%;">
|
||
<select name="semestr" class="form-control">
|
||
<option value="1">1 семестр (зима)</option>
|
||
<option value="2">2 семестр (лето)</option>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<input type="submit" name="form_presentation" value="Сформировать представление стипендиальной комиссии" class="btn btn-success" />
|
||
|
||
|
||
</form>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
|
||
<table class="table table-bordered table_sort">
|
||
<thead>
|
||
<tr>
|
||
<th>№ заявки</th>
|
||
<th>ФИО</th>
|
||
<th>Группа</th>
|
||
<th>Дата</th>
|
||
<th>Учебная</th>
|
||
<th>Научно-исследовательская</th>
|
||
<th>Общественная</th>
|
||
<th>Культурно-творческая</th>
|
||
<th>Спортивная</th>
|
||
<th>ИТОГО</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php $_smarty_tpl->tpl_vars['order'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['order']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['orders']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['order']->key => $_smarty_tpl->tpl_vars['order']->value){
|
||
$_smarty_tpl->tpl_vars['order']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['order']->key;
|
||
?>
|
||
<tr>
|
||
<td><?php echo ($_smarty_tpl->tpl_vars['k']->value+1);?>
|
||
</td>
|
||
<td><a href="/grant/commission/#<?php echo $_smarty_tpl->tpl_vars['order']->value['id'];?>
|
||
"><?php echo $_smarty_tpl->tpl_vars['order']->value['user']['fio'];?>
|
||
<a></td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['order']->value['grupp'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['order']->value['date_create'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['order']->value['rating_up'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['order']->value['rating_ni'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['order']->value['rating_ob'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['order']->value['rating_kt'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['order']->value['rating_sp'];?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['order']->value['rating'];?>
|
||
</td>
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<script type="text/javascript">
|
||
document.addEventListener('DOMContentLoaded', () => {
|
||
|
||
const getSort = ({ target }) => {
|
||
const order = (target.dataset.order = -(target.dataset.order || -1));
|
||
const index = [...target.parentNode.cells].indexOf(target);
|
||
const collator = new Intl.Collator(['en', 'ru'], { numeric: true });
|
||
const comparator = (index, order) => (a, b) => order * collator.compare(
|
||
a.children[index].innerHTML,
|
||
b.children[index].innerHTML
|
||
);
|
||
|
||
for(const tBody of target.closest('table').tBodies)
|
||
tBody.append(...[...tBody.rows].sort(comparator(index, order)));
|
||
|
||
for(const cell of target.parentNode.cells)
|
||
cell.classList.toggle('sorted', cell === target);
|
||
};
|
||
|
||
document.querySelectorAll('.table_sort thead').forEach(tableTH => tableTH.addEventListener('click', () => getSort(event)));
|
||
|
||
});
|
||
</script>
|
||
<?php }} ?>
|