444 lines
19 KiB
PHP
444 lines
19 KiB
PHP
<?php /* Smarty version Smarty-3.1.13, created on 2023-02-15 11:42:37
|
||
compiled from "tpl/tpl_grant_my_order.html" */ ?>
|
||
<?php /*%%SmartyHeaderCode:40548215862548b50bd46a2-20552713%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||
'file_dependency' =>
|
||
array (
|
||
'985f8299dfe65041557adfacc0f2abcaa472ce6d' =>
|
||
array (
|
||
0 => 'tpl/tpl_grant_my_order.html',
|
||
1 => 1676450557,
|
||
2 => 'file',
|
||
),
|
||
),
|
||
'nocache_hash' => '40548215862548b50bd46a2-20552713',
|
||
'function' =>
|
||
array (
|
||
),
|
||
'version' => 'Smarty-3.1.13',
|
||
'unifunc' => 'content_62548b50c1cb16_56298544',
|
||
'variables' =>
|
||
array (
|
||
'msg' => 0,
|
||
'grants' => 0,
|
||
'grant' => 0,
|
||
'faculties' => 0,
|
||
'fac' => 0,
|
||
'areas' => 0,
|
||
'area' => 0,
|
||
'grupps' => 0,
|
||
'grupp' => 0,
|
||
'orders' => 0,
|
||
'order' => 0,
|
||
'achievements' => 0,
|
||
'k' => 0,
|
||
'ach' => 0,
|
||
'k2' => 0,
|
||
'dost' => 0,
|
||
'spr' => 0,
|
||
),
|
||
'has_nocache_code' => false,
|
||
),false); /*/%%SmartyHeaderCode%%*/?>
|
||
<?php if ($_valid && !is_callable('content_62548b50c1cb16_56298544')) {function content_62548b50c1cb16_56298544($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/home/admin/web/eios.mkgtu.ru/public_html/inc/smarty/plugins/modifier.date_format.php';
|
||
?><!-- BEGIN PAGE HEADER-->
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<h3 class="page-title">Стипендиальное обеспечение. Мои заявки</h3>
|
||
<ul class="breadcrumb">
|
||
<a href="/blog/268/" class="btn btn-primary">Инструкция</a>
|
||
|
||
</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">
|
||
|
||
<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="add_order" action="#" method="post" class="form-horizontal" enctype="multipart/form-data">
|
||
|
||
<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 class="form-control" name="grant" style="width: 90%;">
|
||
<?php $_smarty_tpl->tpl_vars['grant'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['grant']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['grants']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['grant']->key => $_smarty_tpl->tpl_vars['grant']->value){
|
||
$_smarty_tpl->tpl_vars['grant']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['grant']->key;
|
||
?>
|
||
<option value="<?php echo $_smarty_tpl->tpl_vars['grant']->value['name'];?>
|
||
"><?php echo $_smarty_tpl->tpl_vars['grant']->value['name'];?>
|
||
</option>
|
||
<?php } ?>
|
||
</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 class="form-control" name="facult" style="width: 90%;">
|
||
<?php $_smarty_tpl->tpl_vars['fac'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fac']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['faculties']->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;
|
||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['fac']->key;
|
||
?>
|
||
<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>
|
||
|
||
<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 class="form-control" name="area" style="width: 90%;">
|
||
<?php $_smarty_tpl->tpl_vars['area'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['area']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['areas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['area']->key => $_smarty_tpl->tpl_vars['area']->value){
|
||
$_smarty_tpl->tpl_vars['area']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['area']->key;
|
||
?>
|
||
<option value="<?php echo $_smarty_tpl->tpl_vars['area']->value['code'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['area']->value['name'];?>
|
||
"><?php echo $_smarty_tpl->tpl_vars['area']->value['code'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['area']->value['name'];?>
|
||
</option>
|
||
<?php } ?>
|
||
</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 class="form-control" name="grupp" style="width: 90%;">
|
||
<?php $_smarty_tpl->tpl_vars['grupp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['grupp']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
||
$_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;
|
||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['grupp']->key;
|
||
?>
|
||
<option value="<?php echo $_smarty_tpl->tpl_vars['grupp']->value['sokr'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['grupp']->value['fo'];?>
|
||
"><?php echo $_smarty_tpl->tpl_vars['grupp']->value['sokr'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['grupp']->value['fo'];?>
|
||
</option>
|
||
<?php } ?>
|
||
</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="uch_year" 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 class="form-control" name="semestr" style="width: 90%;">
|
||
<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>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<input type="checkbox" onClick="$('#save_order').removeAttr('disabled');" /> Обязуюсь в последствии предоставить оригиналы подтверждающих документов<br />
|
||
|
||
<input type="submit" id="save_order" class="btn btn-success" name="add_order" value="Сохранить" disabled />
|
||
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<?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">
|
||
<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['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['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>
|
||
<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-->
|
||
|
||
<form name="add_order_ach<?php echo $_smarty_tpl->tpl_vars['order']->value['id'];?>
|
||
" method="post" action="#" class="form-horizontal" enctype="multipart/form-data">
|
||
|
||
<input type="hidden" name="id_stip" value="<?php echo $_smarty_tpl->tpl_vars['order']->value['id'];?>
|
||
" />
|
||
<div class="control-group">
|
||
<label class="control-label" style="min-width: 200px!important;">Достижения</label>
|
||
<div class="controls">
|
||
<div class="input-prepen1d" style="width: 100%;">
|
||
<select class="form-control" name="ach">
|
||
<?php $_smarty_tpl->tpl_vars['ach'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ach']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['kk'] = 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['kk']->value = $_smarty_tpl->tpl_vars['ach']->key;
|
||
?>
|
||
|
||
<option value="<?php echo $_smarty_tpl->tpl_vars['ach']->value['id'];?>
|
||
"><?php echo $_smarty_tpl->tpl_vars['ach']->value['name'];?>
|
||
(от <?php echo $_smarty_tpl->tpl_vars['ach']->value['date_p'];?>
|
||
)</option>
|
||
|
||
<!--input type="checkbox" name="ach[]" value="<?php echo $_smarty_tpl->tpl_vars['ach']->value['id'];?>
|
||
" /><?php echo $_smarty_tpl->tpl_vars['ach']->value['name'];?>
|
||
(от <?php echo $_smarty_tpl->tpl_vars['ach']->value['date_p'];?>
|
||
) <br /-->
|
||
<?php } ?></select> <input type="submit" class="btn btn-success" value="Сохранить" name="add_order_ach" />
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<p>Мои достижения</p>
|
||
<table class="table table-bordered">
|
||
<tr style="background: antiquewhite;">
|
||
<th>№ п/п</th>
|
||
<th>Информация</th>
|
||
<th>Комментарий</th>
|
||
|
||
</tr>
|
||
<?php $_smarty_tpl->tpl_vars['dost'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['dost']->_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['dost']->key => $_smarty_tpl->tpl_vars['dost']->value){
|
||
$_smarty_tpl->tpl_vars['dost']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['k2']->value = $_smarty_tpl->tpl_vars['dost']->key;
|
||
?>
|
||
<tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['k2']->value+1;?>
|
||
</td>
|
||
<td>
|
||
<b><?php echo $_smarty_tpl->tpl_vars['dost']->value['name'];?>
|
||
</b> <br />
|
||
<a href="/<?php echo $_smarty_tpl->tpl_vars['dost']->value['file'];?>
|
||
">Скан-копия документа-основания</a> <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['dost']->value['date_p'],"%d.%m.%Y");?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['dost']->value['commento'];?>
|
||
</td>
|
||
|
||
</tr>
|
||
<?php } ?>
|
||
|
||
</table>
|
||
|
||
|
||
</form>
|
||
|
||
<hr />
|
||
|
||
|
||
<!--Удалить заявку вместе с вошедшими в нее достижениями-->
|
||
<form name="delete_stip" action="#" method="post">
|
||
<input type="hidden" name="stip" value="<?php echo $_smarty_tpl->tpl_vars['order']->value['id'];?>
|
||
" />
|
||
<a href="/grant/questionnaire/<?php echo $_smarty_tpl->tpl_vars['order']->value['id'];?>
|
||
/" class="btn btn-info">Сформировать анкету-заявление</a> <input type="submit" name="delete_stip" class="btn btn-danger" value="Удалить заявку" />
|
||
</form>
|
||
|
||
</div>
|
||
</div>
|
||
</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">
|
||
|
||
|
||
<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 />
|
||
<!--a class="btn btn-danger" href="/health/vaccine/delete/<?php echo $_smarty_tpl->tpl_vars['spr']->value['id'];?>
|
||
/">Удалить</a-->
|
||
</td>
|
||
</tr>
|
||
<?php } ?>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<script type="text/javascript">
|
||
|
||
</script><?php }} ?>
|