EIOS/inc/smarty/templates_c/4941e52078ae27121e1b32b47a7...

349 lines
16 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-02-16 16:22:05
compiled from "tpl/tpl_grant_commission.html" */ ?>
<?php /*%%SmartyHeaderCode:2041654586625e54ec4d0561-03203239%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'4941e52078ae27121e1b32b47a7fee6aae7a797e' =>
array (
0 => 'tpl/tpl_grant_commission.html',
1 => 1676553721,
2 => 'file',
),
),
'nocache_hash' => '2041654586625e54ec4d0561-03203239',
'function' =>
array (
),
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_625e54ec5411d7_99611403',
'variables' =>
array (
'msg' => 0,
'id_order' => 0,
'orders' => 0,
'order' => 0,
'achievements' => 0,
'k' => 0,
'ach' => 0,
'k2' => 0,
'spr' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_625e54ec5411d7_99611403')) {function content_625e54ec5411d7_99611403($_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>
<a class="btn btn-success" href="/grant/rating/">Рейтинг</a>
<span class="btn btn-primary" onClick="$('tr[data-region]').css('display', 'table-row'); $('span.btn-primary').css('background', '#2fade7'); $(this).css('background', '#ef4f4f');">ВСЕ</span>
<span class="btn btn-primary" onClick="$('tr[data-region]').css('display', 'none'); $('tr[data-region=Учебная]').css('display', 'table-row'); $('span.btn-primary').css('background', '#2fade7'); $(this).css('background', '#ef4f4f');">Учебная</span>
<span class="btn btn-primary" onClick="$('tr[data-region]').css('display', 'none'); $('tr[data-region=Спортивная]').css('display', 'table-row'); $('span.btn-primary').css('background', '#2fade7'); $(this).css('background', '#ef4f4f');">Спортивная</span>
<span class="btn btn-primary" onClick="$('tr[data-region]').css('display', 'none'); $('tr[data-region=Общественная]').css('display', 'table-row'); $('span.btn-primary').css('background', '#2fade7'); $(this).css('background', '#ef4f4f');">Общественная</span>
<span class="btn btn-primary" onClick="$('tr[data-region]').css('display', 'none'); $('tr[data-region=Культурно-творческая]').css('display', 'table-row'); $('span.btn-primary').css('background', '#2fade7'); $(this).css('background', '#ef4f4f');">Культурно-творческая</span>
<span class="btn btn-primary" onClick="$('tr[data-region]').css('display', 'none'); $('tr[data-region=Научно-исследовательская]').css('display', 'table-row'); $('span.btn-primary').css('background', '#2fade7'); $(this).css('background', '#ef4f4f');">Научно-исследовательская</span>
</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="span12">
<?php if (($_smarty_tpl->tpl_vars['id_order']->value>0)){?>
<?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;
?>
<div class="row-fluid" id="ord<?php echo $_smarty_tpl->tpl_vars['order']->value['id'];?>
" data-facultet="<?php echo $_smarty_tpl->tpl_vars['order']->value['facultet'];?>
">
<div class="widget blue">
<div class="widget-title" style="height: 50px;">
<h4><i class="icon-reorder"></i><b> <?php echo $_smarty_tpl->tpl_vars['order']->value['user']['fio'];?>
<span class="badge badge-success"><?php echo $_smarty_tpl->tpl_vars['order']->value['grupp'];?>
</span> (Заявка №<?php echo $_smarty_tpl->tpl_vars['order']->value['id'];?>
от <?php echo $_smarty_tpl->tpl_vars['order']->value['date_create'];?>
)</b> <br />(<?php echo $_smarty_tpl->tpl_vars['order']->value['type'];?>
)</h4>
<span class="tools">
<a href="javascript:;" class="icon-chevron-down"></a>
</span>
</div>
<div class="widget-body">
<p><b>ФИО студента: </b><?php echo $_smarty_tpl->tpl_vars['order']->value['user']['fio'];?>
</p>
<p><b>Факультет: </b><?php echo $_smarty_tpl->tpl_vars['order']->value['facultet'];?>
</p>
<p><b>Направление подготовки: </b><?php echo $_smarty_tpl->tpl_vars['order']->value['specialnost'];?>
</p>
<p><b>Группа: </b><?php echo $_smarty_tpl->tpl_vars['order']->value['grupp'];?>
</p>
<p><b>Семестр: </b><?php echo $_smarty_tpl->tpl_vars['order']->value['semestr'];?>
</p>
<hr />
<!--table class="table table-bordered">
<tr>
<th>№</th>
<th>Информация</th>
<th>Ссылки/документы</th>
</tr>
<?php $_smarty_tpl->tpl_vars['ach'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ach']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['achievements']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['ach']->key => $_smarty_tpl->tpl_vars['ach']->value){
$_smarty_tpl->tpl_vars['ach']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['ach']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td>
<b>Название мероприятия: </b><?php echo $_smarty_tpl->tpl_vars['ach']->value['name'];?>
<br />
<b>Вид деятельности: </b><?php echo $_smarty_tpl->tpl_vars['ach']->value['kind'];?>
<br />
<b>Область достижения: </b><?php echo $_smarty_tpl->tpl_vars['ach']->value['region'];?>
<br />
<b>Статус мероприятия: </b><?php echo $_smarty_tpl->tpl_vars['ach']->value['status'];?>
<br />
<b>Организатор(ы) мероприятия: </b><?php echo $_smarty_tpl->tpl_vars['ach']->value['organis'];?>
<br />
<b>Количество участников: </b><?php echo $_smarty_tpl->tpl_vars['ach']->value['count_m'];?>
<br />
<b>Дата получения достижения: </b><?php echo $_smarty_tpl->tpl_vars['ach']->value['date_p'];?>
(<?php echo $_smarty_tpl->tpl_vars['ach']->value['place'];?>
)<br />
</td>
<td>
<a class="btn btn-primary" href="<?php echo $_smarty_tpl->tpl_vars['ach']->value['link_doc'];?>
">Документ</a>
<a class="btn btn-success" href="<?php echo $_smarty_tpl->tpl_vars['ach']->value['link_group'];?>
">Сайт/группа</a>
<a class="btn btn-warning" href="/<?php echo $_smarty_tpl->tpl_vars['ach']->value['file'];?>
">Скан-копия</a> <br /><br />
</td>
</tr>
<?php } ?>
</table-->
<table class="table table-bordered">
<tr>
<th width="5%">№</th>
<th width="50%">Информация</th>
<th width="25%">Ссылки/документы</th>
<th width="10%">Предварительный балл*</th>
<th width="10%">Действия</th>
</tr>
<?php $_smarty_tpl->tpl_vars['ach'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ach']->_loop = false;
$_smarty_tpl->tpl_vars['k2'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['order']->value['dost']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['ach']->key => $_smarty_tpl->tpl_vars['ach']->value){
$_smarty_tpl->tpl_vars['ach']->_loop = true;
$_smarty_tpl->tpl_vars['k2']->value = $_smarty_tpl->tpl_vars['ach']->key;
?>
<tr data-region="<?php echo $_smarty_tpl->tpl_vars['ach']->value['region'];?>
">
<td><?php echo $_smarty_tpl->tpl_vars['k2']->value+1;?>
</td>
<td>
<b>Название мероприятия: </b><?php echo $_smarty_tpl->tpl_vars['ach']->value['name'];?>
<br />
<b>Вид деятельности: </b><?php echo $_smarty_tpl->tpl_vars['ach']->value['kind'];?>
<br />
<b>Область достижения: </b><?php echo $_smarty_tpl->tpl_vars['ach']->value['region'];?>
<br />
<b>Статус мероприятия: </b><?php echo $_smarty_tpl->tpl_vars['ach']->value['status'];?>
<br />
<b>Организатор(ы) мероприятия: </b><?php echo $_smarty_tpl->tpl_vars['ach']->value['organis'];?>
<br />
<b>Количество участников: </b><?php echo $_smarty_tpl->tpl_vars['ach']->value['count_m'];?>
<br />
<b>Дата получения достижения: </b><?php echo $_smarty_tpl->tpl_vars['ach']->value['date_p'];?>
(<?php echo $_smarty_tpl->tpl_vars['ach']->value['place'];?>
)<br />
</td>
<td>
<a <?php if (($_smarty_tpl->tpl_vars['ach']->value['link_doc']!='')){?> class="btn btn-primary" <?php }else{ ?>class="btn "<?php }?> href="<?php echo $_smarty_tpl->tpl_vars['ach']->value['link_doc'];?>
" target="_blank">Регламент (порядок проведения) мероприятия</a>
<a <?php if (($_smarty_tpl->tpl_vars['ach']->value['link_group']!='')){?> class="btn btn-success" <?php }else{ ?>class="btn "<?php }?> href="<?php echo $_smarty_tpl->tpl_vars['ach']->value['link_group'];?>
" target="_blank">Ссылка на мероприятие</a>
<a class="btn btn-warning" href="/<?php echo $_smarty_tpl->tpl_vars['ach']->value['file'];?>
" target="_blank">Скан-копия документа-основания</a> <br /><br />
<!--a class="btn btn-danger" href="/health/vaccine/delete/<?php echo $_smarty_tpl->tpl_vars['spr']->value['id'];?>
/">Удалить</a-->
</td>
<td style="background: #FFFACD; text-align: center; vertical-align: middle; font-size: 22px;"><?php echo $_smarty_tpl->tpl_vars['ach']->value['point'];?>
</td>
<td style="">
<?php if ((($_smarty_tpl->tpl_vars['ach']->value['status_sd']==0)&&($_smarty_tpl->tpl_vars['ach']->value['commento']==''))){?>
<span class="btn btn-success action-achievement" data-id="<?php echo $_smarty_tpl->tpl_vars['ach']->value['id_sd'];?>
" data-action="1">Одобрить достижение</span><br />
<span class="btn btn-warning action-achievement" data-id="<?php echo $_smarty_tpl->tpl_vars['ach']->value['id_sd'];?>
" data-action="2">Отправить на доработку</span><br />
<span class="btn btn-danger action-achievement" data-id="<?php echo $_smarty_tpl->tpl_vars['ach']->value['id_sd'];?>
" data-action="3">Отклонить достижение</span><br />
<?php }else{ ?>
Достижение уже отработано
<?php }?>
</td>
</tr>
<?php } ?>
</table>
<br />
<hr />
<form name="del_order" action="#" method="post">
<input type="hidden" name="order" value="<?php echo $_smarty_tpl->tpl_vars['order']->value['id'];?>
">
<input type="text" name="comm" style="width:80%;" class="form-control" placeholder="Укажите причину отклонения заявления на стипендию" />
<input type="submit" name="del_order" class="btn btn-danger" value="Отклонить" />
</form>
<!--span class="btn btn-success success-stip" data-id="<?php echo $_smarty_tpl->tpl_vars['order']->value['id'];?>
">Заявка допущена к конкурсу</span-->
</div>
</div>
</div>
<?php } ?>
<?php }else{ ?>
<!--ВСЕ ЗАЯВКИ-->
<div class="row-fluid">
<div class="widget blue">
<div class="widget-title" style="height: 50px;">
<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-bordered">
<tr style="background: antiquewhite;">
<th>№</th>
<th>Дата подачи</th>
<th>ФИО студента</th>
<th>Группа<br />Специальность</th>
<th>Уч. год</th>
<th>Семестр</th>
<th>Операции</th>
</tr>
<?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['order']->value['id'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['order']->value['date_create'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['order']->value['user']['fio'];?>
</td>
<td><b><?php echo $_smarty_tpl->tpl_vars['order']->value['grupp'];?>
</b><br /><?php echo $_smarty_tpl->tpl_vars['order']->value['specialnost'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['order']->value['uch_year'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['order']->value['semestr'];?>
</td>
<td><a href="/grant/commission/<?php echo $_smarty_tpl->tpl_vars['order']->value['id'];?>
/" class="btn btn-info">В заявку</a></td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
<?php }?>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
//удаление учебного заведения
$(".action-achievement").click(function(){
var id = $(this).data("id");
var action = $(this).data("action");
var msg = '';
if (action == 2) msg = prompt('Введите комментарий: ');
//var is = confirm("Вы уверены, что собираетесь удалить целое учебное подразделение из системы? К нему может быть привязаны факультеты, кафедры, направления подготовки и прочее. Если Вы не уверены в этом действии, лучше ничего не трогайте.");
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=action_achievement&id='+id+'&action='+action+'&msg='+msg,
success: function(data){
window.location = "/grant/commission/"+<?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;
?><?php echo $_smarty_tpl->tpl_vars['order']->value['id'];?>
<?php } ?>+"/";
//$('.load-schools').html(data.html);
}
});
/*if (is){ //подтверждение действия
}*/
});
//допуск заявки к конкурсу
$(".success-stip").click(function(){
var id = $(this).data("id");
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=success_stip&id='+id,
success: function(data){
window.location = "/grant/commission/";
//$('.load-schools').html(data.html);
}
});
});
});
</script><?php }} ?>