618 lines
32 KiB
PHP
618 lines
32 KiB
PHP
|
<?php /* Smarty version Smarty-3.1.13, created on 2022-04-12 08:52:00
|
|||
|
compiled from "tpl/tpl_iup_zamdekan.html" */ ?>
|
|||
|
<?php /*%%SmartyHeaderCode:774318860625513807e8376-40963109%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|||
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|||
|
'file_dependency' =>
|
|||
|
array (
|
|||
|
'9eedbe5c902eb76d195bf82129698c3cba0940f9' =>
|
|||
|
array (
|
|||
|
0 => 'tpl/tpl_iup_zamdekan.html',
|
|||
|
1 => 1639742961,
|
|||
|
2 => 'file',
|
|||
|
),
|
|||
|
),
|
|||
|
'nocache_hash' => '774318860625513807e8376-40963109',
|
|||
|
'function' =>
|
|||
|
array (
|
|||
|
),
|
|||
|
'variables' =>
|
|||
|
array (
|
|||
|
'des' => 0,
|
|||
|
'fios' => 0,
|
|||
|
'user' => 0,
|
|||
|
'zayavks' => 0,
|
|||
|
'it' => 0,
|
|||
|
'statuses' => 0,
|
|||
|
'zamdeknaprav' => 0,
|
|||
|
'zd' => 0,
|
|||
|
'zayavka' => 0,
|
|||
|
'fl' => 0,
|
|||
|
'kol' => 0,
|
|||
|
'predmet' => 0,
|
|||
|
'k' => 0,
|
|||
|
'pvyb' => 0,
|
|||
|
),
|
|||
|
'has_nocache_code' => false,
|
|||
|
'version' => 'Smarty-3.1.13',
|
|||
|
'unifunc' => 'content_62551380875508_53082768',
|
|||
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|||
|
<?php if ($_valid && !is_callable('content_62551380875508_53082768')) {function content_62551380875508_53082768($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("tpl_messager.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
|
|||
|
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['des']->value=="show"){?>
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<div class="widget red">
|
|||
|
<div class="widget-title">
|
|||
|
<h4><i class="icon-reorder"></i>Настройки ФИО для ведомостей </h4>
|
|||
|
<span class="tools"><a href="javascript:;" class="<?php if (!count($_smarty_tpl->tpl_vars['fios']->value)){?>icon-chevron-down<?php }else{ ?>icon-chevron-up<?php }?>"></a></span>
|
|||
|
</div>
|
|||
|
<div class="widget-body"<?php if (count($_smarty_tpl->tpl_vars['fios']->value)){?> style="display: none;"<?php }?>>
|
|||
|
<form method="POST">
|
|||
|
<table class="table table-striped table-bordered table-advance table-hover">
|
|||
|
<tr>
|
|||
|
<td width="30%">ФИО декана факультета</td>
|
|||
|
<td width="70%"><input type="TEXT" class="form-control" name="fio_dek" value="<?php echo $_smarty_tpl->tpl_vars['fios']->value['dek'];?>
|
|||
|
"></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>ФИО председателя аттестационной комиссии</td>
|
|||
|
<td><input type="TEXT" class="form-control" name="fio_pak" value="<?php echo $_smarty_tpl->tpl_vars['fios']->value['pak'];?>
|
|||
|
"></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>ФИО секретаря аттестационной комиссии</td>
|
|||
|
<td><input type="TEXT" class="form-control" name="fio_sek" value="<?php echo $_smarty_tpl->tpl_vars['fios']->value['sek'];?>
|
|||
|
"></td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
<div class="form-actions">
|
|||
|
<button type="submit" name="fio_save" class="btn btn-warning">Сохранить</button>
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<div class="widget green">
|
|||
|
<div class="widget-title">
|
|||
|
<h4><i class="icon-reorder"></i><?php if (isset($_smarty_tpl->tpl_vars['user']->value['statuses'][24])){?>Интерфейс декана<?php }else{ ?>Интерфейс зам.декана <?php }?></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>№</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['it'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['it']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['zayavks']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['it']->key => $_smarty_tpl->tpl_vars['it']->value){
|
|||
|
$_smarty_tpl->tpl_vars['it']->_loop = true;
|
|||
|
?>
|
|||
|
<tr>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['it']->value['data_c'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['it']->value['fio'];?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['it']->value['tel']!=''){?><br><b><?php echo $_smarty_tpl->tpl_vars['it']->value['tel'];?>
|
|||
|
<?php }?></b></td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['it']->value['pred_obraz'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['it']->value['obraz_uchr'];?>
|
|||
|
</td>
|
|||
|
<td><?php if ($_smarty_tpl->tpl_vars['it']->value['perevod']==1){?><span class="label label-info">ПЕРЕВОД</span><?php }?><?php if ($_smarty_tpl->tpl_vars['it']->value['perevod']==2){?><span class="label label-warning">ПЕРЕЗАЧЕТ</span><?php }?> <?php echo $_smarty_tpl->tpl_vars['it']->value['pret_naprav'];?>
|
|||
|
<?php if (($_smarty_tpl->tpl_vars['it']->value['pret_format']!='')){?><span class="badge badge-warning"><?php echo $_smarty_tpl->tpl_vars['it']->value['pret_format'];?>
|
|||
|
</span><?php }?></td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['it']->value['pret_kurs'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['it']->value['pret_fo'];?>
|
|||
|
</td>
|
|||
|
<td nowrap>
|
|||
|
<a class="btn btn-info tooltips" href="/iup/zamdekan/attved1/<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
/" target="_blank" data-placement="top" data-original-title="протокол решения аттестационной комиссии"><i class="icon-print"></i></a><a class="btn btn-primary tooltips" href="/iup/zamdekan/attved2/<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
/" target="_blank" data-placement="top" data-original-title="аттестационная ведомость"><i class="icon-print"></i></a>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['it']->value['perevod']==1){?><a class="btn btn-success tooltips" href="/iup/zamdekan/attved3/<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
/" target="_blank" data-placement="top" data-original-title="перечень"><i class="icon-print"></i></a><?php }?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['it']->value['status']==0){?><a class="btn btn-primary" href="/iup/zamdekan/edit/<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
/"><i class="icon-pencil"></i></a><?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['statuses']->value[$_smarty_tpl->tpl_vars['it']->value['status']];?>
|
|||
|
этап <?php echo $_smarty_tpl->tpl_vars['it']->value['status']+1;?>
|
|||
|
из 7<?php }?>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
<hr>
|
|||
|
<p><b>Ваши направления на факультете, выбранные из "расчета часов"</b>:<br>
|
|||
|
<?php $_smarty_tpl->tpl_vars['zd'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['zd']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['zamdeknaprav']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['foo']['iteration']=0;
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['zd']->key => $_smarty_tpl->tpl_vars['zd']->value){
|
|||
|
$_smarty_tpl->tpl_vars['zd']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['zd']->key;
|
|||
|
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['foo']['iteration']++;
|
|||
|
?>
|
|||
|
<b><?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['foo']['iteration'];?>
|
|||
|
</b>. <?php echo $_smarty_tpl->tpl_vars['zd']->value;?>
|
|||
|
;
|
|||
|
<?php } ?></p>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php }?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['des']->value=="edit"){?><!--2.1 Интерфейс зам.декана Выбрали студента-->
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<div class="widget green">
|
|||
|
<div class="widget-title">
|
|||
|
<h4><i class="icon-reorder"></i>2.1 Интерфейс зам.декана Выбрали студента</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>Данные</th>
|
|||
|
<th>Приложения</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td>
|
|||
|
<table class="table table-hover">
|
|||
|
<tbody>
|
|||
|
<tr><td width="25%">ФИО:</td><td width="25%"><b><?php echo $_smarty_tpl->tpl_vars['zayavka']->value['fio'];?>
|
|||
|
</b></td><td width="25%">Тел:</td><td width="25%"><b><?php echo $_smarty_tpl->tpl_vars['zayavka']->value['tel'];?>
|
|||
|
</b></td></tr>
|
|||
|
<tr><td colspan="2">Предыдущее образование:</td><td colspan="2"><b><?php echo $_smarty_tpl->tpl_vars['zayavka']->value['pred_obraz'];?>
|
|||
|
</b></td></tr>
|
|||
|
<tr><td colspan="2">Образовательное учреждение:</td><td colspan="2"><b><?php echo $_smarty_tpl->tpl_vars['zayavka']->value['obraz_uchr'];?>
|
|||
|
</b></td></tr>
|
|||
|
<tr><td colspan="4">Приложения к диплому:</td></tr>
|
|||
|
<tr><td style="text-align:right;">Серия:</td><td><b><?php echo $_smarty_tpl->tpl_vars['zayavka']->value['diplom_seriya'];?>
|
|||
|
</b></td>
|
|||
|
<td style="text-align:right;">Номер:</td><td><b><?php echo $_smarty_tpl->tpl_vars['zayavka']->value['diplom_nomer'];?>
|
|||
|
</b></td></tr>
|
|||
|
<tr><td colspan="2" style="text-align:right;">от:</td><td colspan="2"><b><?php echo $_smarty_tpl->tpl_vars['zayavka']->value['diplom_data'];?>
|
|||
|
</b></td></tr>
|
|||
|
<tr><td colspan="4">Претендую на обучение:</td></tr>
|
|||
|
<tr><td colspan="2"style="text-align:right;">Направление:</td><td colspan="2"><b><?php echo $_smarty_tpl->tpl_vars['zayavka']->value['pret_naprav'];?>
|
|||
|
</b></td></tr>
|
|||
|
<tr><td style="text-align:right;">Курс:</td><td><b><?php echo $_smarty_tpl->tpl_vars['zayavka']->value['pret_kurs'];?>
|
|||
|
</b></td>
|
|||
|
<td style="text-align:right;">Форма обучения:</td><td><b><?php echo $_smarty_tpl->tpl_vars['zayavka']->value['pret_fo'];?>
|
|||
|
</b></td></tr>
|
|||
|
<?php if (isset($_smarty_tpl->tpl_vars['zayavka']->value['pret_format'])){?><tr><td colspan="2">Финансирование:</td><td colspan="2"><b><?php echo $_smarty_tpl->tpl_vars['zayavka']->value['pret_format'];?>
|
|||
|
</b></td></tr><?php }?>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<?php if (isset($_smarty_tpl->tpl_vars['zayavka']->value['files'])){?><div class="row-fluid">
|
|||
|
<?php $_smarty_tpl->tpl_vars['kol'] = new Smarty_variable(0, null, 0);?>
|
|||
|
<?php $_smarty_tpl->tpl_vars['fl'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fl']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['zayavka']->value['files']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['fl']->key => $_smarty_tpl->tpl_vars['fl']->value){
|
|||
|
$_smarty_tpl->tpl_vars['fl']->_loop = true;
|
|||
|
?><div class="span4" style="position:relative;">
|
|||
|
<a href="/<?php echo $_smarty_tpl->tpl_vars['fl']->value['file'];?>
|
|||
|
" data-lightbox="roadtrip"><img src="/<?php echo $_smarty_tpl->tpl_vars['fl']->value['file'];?>
|
|||
|
" alt="<?php echo $_smarty_tpl->tpl_vars['fl']->value['tipfile'];?>
|
|||
|
" class="img img-responsive media-object" style="min-height:120px;max-height:120px;"/></a>
|
|||
|
<div class="" style="position:absolute;top:0px;right:0px;">
|
|||
|
<a class="btn btn-success" href="/<?php echo $_smarty_tpl->tpl_vars['fl']->value['file'];?>
|
|||
|
" data-lightbox="roadtrip"><i class="icon-eye-open"></i></a><br>
|
|||
|
<a class="btn btn-primary" href="/<?php echo $_smarty_tpl->tpl_vars['fl']->value['file'];?>
|
|||
|
" target="_blank" style="margin-top:5px;"><i class="icon-download-alt"></i></a>
|
|||
|
</div>
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<p class="info"><span class="small"><?php echo $_smarty_tpl->tpl_vars['fl']->value['data_c'];?>
|
|||
|
</span><br><?php echo $_smarty_tpl->tpl_vars['fl']->value['tipfile'];?>
|
|||
|
</p>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<!--<?php echo $_smarty_tpl->tpl_vars['kol']->value++;?>
|
|||
|
--><?php if ($_smarty_tpl->tpl_vars['kol']->value==3){?></div><div class="row-fluid"><?php $_smarty_tpl->tpl_vars['kol'] = new Smarty_variable(0, null, 0);?><?php }?>
|
|||
|
<?php } ?>
|
|||
|
</div><?php }?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
|
|||
|
<form action="" class="" method="POST" enctype="multipart/form-data">
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
|
|||
|
<h3>Выбор члена аттестационной комиссии</h3>
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['zayavka']->value['predmets_prepod'])){?>
|
|||
|
<table class="table">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th width="5%">№</th>
|
|||
|
<th width="5%">Код</th>
|
|||
|
<th width="40%">предмет</th>
|
|||
|
<th width="5%">З.Е.</th>
|
|||
|
<th width="5%">УПгод</th>
|
|||
|
<th width="5%">Курс<br>Семестр</th>
|
|||
|
<th width="5%">Контроль</th>
|
|||
|
<th width="30%">Преподаватель <span style="font-size:11px;">Введите фамилию и выберите из выпадающего списка найденного человека</span></th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<?php $_smarty_tpl->tpl_vars['predmet'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['predmet']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['zayavka']->value['predmets_prepod']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['fezpp']['index']=-1;
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['predmet']->key => $_smarty_tpl->tpl_vars['predmet']->value){
|
|||
|
$_smarty_tpl->tpl_vars['predmet']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['predmet']->key;
|
|||
|
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['fezpp']['index']++;
|
|||
|
?>
|
|||
|
<tr id="trc_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
">
|
|||
|
<td><?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['fezpp']['index']+1;?>
|
|||
|
.</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['predmet']->value['discid'];?>
|
|||
|
</td>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['dispovyb']==''){?>
|
|||
|
<td style="position:relative;">
|
|||
|
<span id="name_disp_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
"><?php echo $_smarty_tpl->tpl_vars['predmet']->value['name_disp'];?>
|
|||
|
</span>
|
|||
|
<input type="HIDDEN" name="pr_teach[<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
][predmet][key]" value="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
">
|
|||
|
<input type="HIDDEN" name="pr_teach[<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
][predmet][name]" id="doppredmet_<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
" class="predmet_name" value="<?php echo $_smarty_tpl->tpl_vars['predmet']->value['name_disp'];?>
|
|||
|
">
|
|||
|
<div style="position:absolute;top:2px;right:2px;">
|
|||
|
<a class="btn btn-success btn-sm tooltips discip_copy" href="#" data-trigger="hover" data-original-title="Дублировать дисциплину с дальнейшим изменением" data-placement="top" id="trca_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
"><i class="icon-copy"></i></a>
|
|||
|
<a class="btn btn-danger btn-sm tooltips discip_dele" href="#" data-trigger="hover" data-original-title="Удалить дисциплину, как не правильную" data-placement="top" id="trcd_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
"><i class="icon-trash"></i></a>
|
|||
|
</div>
|
|||
|
</td>
|
|||
|
<?php }else{ ?>
|
|||
|
<td>
|
|||
|
<select class="form-control sdvp" style="width:99%" id="dvp_<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
">
|
|||
|
<?php $_smarty_tpl->tpl_vars['pvyb'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pvyb']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['predmet']->value['vyb']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['pvyb']->key => $_smarty_tpl->tpl_vars['pvyb']->value){
|
|||
|
$_smarty_tpl->tpl_vars['pvyb']->_loop = true;
|
|||
|
?>
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['pvyb']->value['id'];?>
|
|||
|
" zet="<?php echo $_smarty_tpl->tpl_vars['pvyb']->value['zet'];?>
|
|||
|
" god="<?php echo $_smarty_tpl->tpl_vars['pvyb']->value['godob'];?>
|
|||
|
" ks="<?php echo $_smarty_tpl->tpl_vars['pvyb']->value['kurs'];?>
|
|||
|
/<?php echo $_smarty_tpl->tpl_vars['pvyb']->value['sem'];?>
|
|||
|
" ekz="<?php if ($_smarty_tpl->tpl_vars['pvyb']->value['ekz']!=''){?>Экзамен<?php }?><?php if ($_smarty_tpl->tpl_vars['pvyb']->value['zach']!=''){?>Зачет<?php }?>"><?php echo $_smarty_tpl->tpl_vars['predmet']->value['discid'];?>
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['pvyb']->value['name_disp'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
<input type="HIDDEN" name="pr_teach[<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
][predmet][key]" id="dvp_key_<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
" value="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
">
|
|||
|
<input type="HIDDEN" name="pr_teach[<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
][predmet][name]" id="dvp_name_<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
" value="<?php echo $_smarty_tpl->tpl_vars['predmet']->value['name_disp'];?>
|
|||
|
">
|
|||
|
</td>
|
|||
|
<?php }?>
|
|||
|
<td id="zet"><?php echo $_smarty_tpl->tpl_vars['predmet']->value['zet'];?>
|
|||
|
</td>
|
|||
|
<td id="godob"><?php echo $_smarty_tpl->tpl_vars['predmet']->value['godob'];?>
|
|||
|
</td>
|
|||
|
<td id="ks"><?php echo $_smarty_tpl->tpl_vars['predmet']->value['kurs'];?>
|
|||
|
/<?php echo $_smarty_tpl->tpl_vars['predmet']->value['sem'];?>
|
|||
|
</td>
|
|||
|
<td id="ekz">
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ekz']!=''){?>Экзамен<?php }?><?php if ($_smarty_tpl->tpl_vars['predmet']->value['zach']!=''){?>Зачет<?php }?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['kpro']!=''){?>КП<?php }?><?php if ($_smarty_tpl->tpl_vars['predmet']->value['krab']!=''){?>КР<?php }?>
|
|||
|
</td>
|
|||
|
|
|||
|
<td><?php if ($_smarty_tpl->tpl_vars['predmet']->value['isk']!=''){?>
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['user']->value['fio'];?>
|
|||
|
|
|||
|
<input type="HIDDEN" name="pr_teach[<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
][prepod][id]" value="<?php echo $_smarty_tpl->tpl_vars['user']->value['id'];?>
|
|||
|
" id="dvp_prepid_<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
">
|
|||
|
<input type="HIDDEN" name="pr_teach[<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
][prepodfio]" value="<?php echo $_smarty_tpl->tpl_vars['user']->value['fio'];?>
|
|||
|
" id="dvp_prepfio_<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
">
|
|||
|
<?php }else{ ?>
|
|||
|
<div style="position:relative;" class="autocomplete_wrap">
|
|||
|
<input type="HIDDEN" name="pr_teach[<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
][prepod][id]" value="<?php echo $_smarty_tpl->tpl_vars['predmet']->value['prepod_id'];?>
|
|||
|
" class="autocomplete_input" id="dvp_prepid_<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
">
|
|||
|
<input type="TEXT" name="pr_teach[<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
][prepodfio]" value="<?php echo $_smarty_tpl->tpl_vars['predmet']->value['prepod_name'];?>
|
|||
|
" placeholder="введите ФИО, найдем его в базе" style="width:99%;" class="autocomplete" id="dvp_prepfio_<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
">
|
|||
|
|
|||
|
<p><font size="-1" color="red">Этот пункт выбирается, если Вы собираетесь за преподавателя выставлять оценку!</font></p>
|
|||
|
<select name="pr_teach[<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|||
|
][ocenka]">
|
|||
|
<option value="0">ПЕРЕЗАЧЕТ</option>
|
|||
|
<option value="отлично">отлично</option>
|
|||
|
<option value="хорошо">хорошо</option>
|
|||
|
<option value="удовлетворительно">удовлетворительно</option>
|
|||
|
<option value="зачтено">зачтено</option>
|
|||
|
<option value="нет соответствия">нет соответствия</option>
|
|||
|
</select>
|
|||
|
</div>
|
|||
|
<?php }?>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
</table>
|
|||
|
<?php }else{ ?>
|
|||
|
<center><h2 style="color:RED;">Не найден учебный план по выбранному направлению "<?php echo $_smarty_tpl->tpl_vars['zayavka']->value['pret_naprav'];?>
|
|||
|
" за
|
|||
|
<?php if ((date("n")>=1&&date("n")<=7)){?>
|
|||
|
<?php echo date('Y')-1;?>
|
|||
|
- (<?php echo $_smarty_tpl->tpl_vars['zayavka']->value['pret_kurs'];?>
|
|||
|
- 1) = <?php echo date('Y')-1-($_smarty_tpl->tpl_vars['zayavka']->value['pret_kurs']-1);?>
|
|||
|
год, форма обучения <?php echo $_smarty_tpl->tpl_vars['zayavka']->value['pret_fo'];?>
|
|||
|
<br>Обращайтесь на кафедру, они должны загрузить учебный план!</h2></center>
|
|||
|
<?php }else{ ?>
|
|||
|
<?php echo date('Y');?>
|
|||
|
- (<?php echo $_smarty_tpl->tpl_vars['zayavka']->value['pret_kurs'];?>
|
|||
|
- 1) = <?php echo date('Y')-($_smarty_tpl->tpl_vars['zayavka']->value['pret_kurs']-1);?>
|
|||
|
год, форма обучения <?php echo $_smarty_tpl->tpl_vars['zayavka']->value['pret_fo'];?>
|
|||
|
<br>Обращайтесь на кафедру, они должны загрузить учебный план!</h2></center>
|
|||
|
<?php }?>
|
|||
|
<?php }?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span4">
|
|||
|
<div class="control-group">
|
|||
|
<a href="/iup/zamdekan/" class="btn btn-warning tooltips" data-trigger="hover" data-original-title="закрыть(без сохранения) и вернуться к списку заявок" data-placement="top">Вернуться назад</a>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="span4">
|
|||
|
<div class="control-group">
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['zayavka']->value['predmets_prepod'])){?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['zayavka']->value['status']==0){?>
|
|||
|
<button type="submit" name="zdk_student_sendattest" class="btn btn-success tooltips" data-trigger="hover" data-original-title="Я подтверждаю данные студента и проверил их все, отправляю на дальнейшую проверку." data-placement="top">Отправить членам атт.комиссии</button>
|
|||
|
<input type="HIDDEN" name="id_zayavka" value="<?php echo $_smarty_tpl->tpl_vars['zayavka']->value['id'];?>
|
|||
|
" />
|
|||
|
<?php }?>
|
|||
|
<?php }?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="span4">
|
|||
|
<div class="control-group">
|
|||
|
<button type="submit" name="zdk_student_save" class="btn btn-info tooltips" data-trigger="hover" data-original-title="Сохранить изменения, но не отправлять преподавателям." data-placement="top">Сохранить</button>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
<form action="" class="" method="POST" enctype="multipart/form-data">
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span8">
|
|||
|
<div class="control-group">
|
|||
|
<p style="margin:20px 0;">Студент получит уже готовый ИУП, отправляется после всей процедуры проверок. Как документы будут готовы, можно будет отправить студенту<br></p>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="span4">
|
|||
|
<div class="form-actions">
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['zayavka']->value['status']==10){?><button type="submit" name="zdk_student_iupstudentu" class="btn btn-warning">Отправить ИУП студенту</button><?php }?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['zayavka']->value['status']==-1){?>заявка на оформлении студента<?php }?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['zayavka']->value['status']==0){?>заявка на рассмотрении у ВАС<?php }?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
<form action="" class="" method="POST" enctype="multipart/form-data">
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span8">
|
|||
|
<div class="control-group" style="margin:20px 0;">
|
|||
|
<textarea class="span12 tooltips" rows="3" data-trigger="hover" data-original-title="Опишите причину отказа, это будет видеть студент" name="descrip" placeholder="Опишите причину отказа, это будет видеть студент"></textarea>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="span4">
|
|||
|
<div class="form-actions">
|
|||
|
<button type="submit" name="zdk_student_otkaz" class="btn btn-danger">Отказать</button><input type="HIDDEN" id="id_zayavka00" name="id_zayavka" value="<?php echo $_smarty_tpl->tpl_vars['zayavka']->value['id'];?>
|
|||
|
" />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="zamdekan_copydiscip_panel" style="display:none;position: fixed;left: 35%;top: 35%;z-index: 999;background: #fff;padding: 10px;border:1px solid red;width: 270px;">
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<p>Укажите параметры для новой дисциплины "<b id="zamdekan_copydiscip_panel_namediscp"></b>"</p>
|
|||
|
<input type="HIDDEN" id="zamdekan_copydiscip_id" value="">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span6">
|
|||
|
<input type="TEXT" id="zamdekan_copydiscip_semestr" value="" placeholder="семестр" class="form-control span12">
|
|||
|
</div>
|
|||
|
<div class="span6">
|
|||
|
<input type="TEXT" id="zamdekan_copydiscip_ze" value="" placeholder="зач.ед." class="form-control span12">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<select id="zamdekan_copydiscip_forma" class="span12"><option value="З">Зачет</option><option value="Э">Экзамен</option><option value="КР">Курсовая работа</option><option value="КП">Курсовой проект</option></select>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span6">
|
|||
|
<a class="btn btn-success tooltips zamdekan_copydiscip_save" href="#" data-trigger="hover" data-original-title="Дублировать дисциплину" data-placement="top" id="">Дублировать</a>
|
|||
|
</div>
|
|||
|
<div class="span6">
|
|||
|
<a class="btn btn-info tooltips zamdekan_copydiscip_close" href="#" data-trigger="hover" data-original-title="Закрыть окно" data-placement="top" id="">Закрыть</a>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<style>
|
|||
|
.autocomplete_div{position:absolute;left:0px;top:30px;background:#fff;padding:5px;width:100%;border:1px solid gray;z-index: 999;}
|
|||
|
.autocomplete_div_a{}
|
|||
|
</style>
|
|||
|
<script>$(document).ready(function(){
|
|||
|
$(".zamdekan_copydiscip_save").click(function(){
|
|||
|
var id_zayavka = $("#id_zayavka00").val();
|
|||
|
var id = $("#zamdekan_copydiscip_id").val();
|
|||
|
var sem = $("#zamdekan_copydiscip_semestr").val();
|
|||
|
var ze = $("#zamdekan_copydiscip_ze").val();
|
|||
|
var form = $("#zamdekan_copydiscip_forma option:selected").val();
|
|||
|
$.ajax({
|
|||
|
url: '/json.php',dataType:'json',type:'POST',async:false,data:'ajdes=zamdekan_copydiscip&id='+id+'&sem='+sem+'&ze='+ze+'&form='+form+'&id_zayavka='+id_zayavka,
|
|||
|
success: function(data){
|
|||
|
/*console.log(data);
|
|||
|
var tr = '<tr id="trc_'+data.id+'">'+
|
|||
|
'<td>-</td>'+
|
|||
|
'<td>'+data.discid+'</td>'+
|
|||
|
'<td style="position:relative;">'+data.name_disp+
|
|||
|
'<input type="HIDDEN" name="pr_teach[{$k}][predmet][key]" value="{$k}">'+
|
|||
|
'<input type="HIDDEN" name="pr_teach[{$k}][predmet][name]" id="doppredmet_{$k}" class="predmet_name" value="'+data.name_disp+'">'+
|
|||
|
'<div style="position:absolute;top:2px;right:2px;">'+
|
|||
|
'<a class="btn btn-success btn-sm tooltips discip_copy" href="#" data-trigger="hover" data-original-title="Дублировать дисциплину с дальнейшим изменением" data-placement="top" id="trca_'+data.id+'"><i class="icon-copy"></i></a> '+
|
|||
|
'<a class="btn btn-danger btn-sm tooltips discip_dele" href="#" data-trigger="hover" data-original-title="Удалить дисциплину, как не правильную" data-placement="top" id="trcd_'+data.id+'"><i class="icon-trash"></i></a>'+
|
|||
|
'</div>'+
|
|||
|
'</td>'+
|
|||
|
'<td id="zet">'+data.zet+'</td>'+
|
|||
|
'<td id="godob">'+data.godob+'</td>'+
|
|||
|
'<td id="ks">'+data.kurs+'/'+data.sem+'</td>'+
|
|||
|
'<td id="ekz">'+form+'</td>'+
|
|||
|
'<td>'+
|
|||
|
'<div style="position:relative;" class="autocomplete_wrap">'+
|
|||
|
'<input type="HIDDEN" name="pr_teach[{$k}][prepod][id]" value="0" class="autocomplete_input" id="dvp_prepid_{$k}">'+
|
|||
|
'<input type="TEXT" name="pr_teach[{$k}][prepodfio]" value="" placeholder="введите ФИО, найдем его в базе" style="width:99%;" class="autocomplete" id="dvp_prepfio_{$k}">'+
|
|||
|
'</div>'+
|
|||
|
'</td>'+
|
|||
|
'</tr>';
|
|||
|
$("#trc_"+id).insertAfter(tr);
|
|||
|
$(".zamdekan_copydiscip_panel").hide();*/
|
|||
|
location.reload();
|
|||
|
}
|
|||
|
});
|
|||
|
//return false;
|
|||
|
});
|
|||
|
$(".discip_dele").click(function(){
|
|||
|
var id_zayavka = $("#id_zayavka00").val();
|
|||
|
var id = $(this).attr("id").split("_");
|
|||
|
if (confirm('Удалить дисциплину?')) {
|
|||
|
$.ajax({
|
|||
|
url: '/json.php',dataType:'json',type:'POST',async:false,data:'ajdes=zamdekan_delediscip&id='+id[1]+'&id_zayavka='+id_zayavka,
|
|||
|
success: function(data){
|
|||
|
$("#trc_"+id[1]).remove();
|
|||
|
}
|
|||
|
});
|
|||
|
}else{
|
|||
|
return false;
|
|||
|
}
|
|||
|
return false;
|
|||
|
});
|
|||
|
$(".zamdekan_copydiscip_close").click(function(){
|
|||
|
$(".zamdekan_copydiscip_panel").hide();
|
|||
|
return false;
|
|||
|
});
|
|||
|
$(".discip_copy").click(function(){
|
|||
|
//var o = $(this).offset(); $(".zamdekan_copydiscip_panel").css({'left':o.top,'top':o.left});
|
|||
|
var id = $(this).attr("id").split("_");
|
|||
|
$("#zamdekan_copydiscip_id").val(id[1]);
|
|||
|
$("#zamdekan_copydiscip_panel_namediscp").html($("#name_disp_"+id[1]).text());
|
|||
|
$(".zamdekan_copydiscip_panel").show();
|
|||
|
return false;
|
|||
|
});
|
|||
|
$(".sdvp").change(function(){
|
|||
|
var id=$(this).attr("id").split("_");
|
|||
|
var w = $( "#dvp_"+id[1]+" option:selected" );
|
|||
|
var name = w.text();
|
|||
|
var valu = w.val();
|
|||
|
var zet = w.attr("zet");
|
|||
|
var god = w.attr("god");
|
|||
|
var ks = w.attr("ks");
|
|||
|
var ekz = w.attr("ekz");
|
|||
|
$(this).closest("tr").children("td#zet").html(zet);
|
|||
|
$(this).closest("tr").children("td#god").html(god);
|
|||
|
$(this).closest("tr").children("td#ks").html(ks);
|
|||
|
$(this).closest("tr").children("td#ekz").html(ekz);
|
|||
|
$("#dvp_key_"+id[1]).attr("name","pr_teach["+valu+"][predmet][key]");
|
|||
|
$("#dvp_key_"+id[1]).val(valu);
|
|||
|
$("#dvp_name_"+id[1]).attr("name","pr_teach["+valu+"][predmet][name]");
|
|||
|
$("#dvp_name_"+id[1]).val(name);
|
|||
|
$("#dvp_prepid_"+id[1]).attr("name","pr_teach["+valu+"][prepod][id]");
|
|||
|
$("#dvp_prepfio_"+id[1]).attr("name","pr_teach["+valu+"][prepodfio]");
|
|||
|
});
|
|||
|
$(".autocomplete").keyup(function(){
|
|||
|
var val = $(this).val();
|
|||
|
var rez = '';
|
|||
|
if(val.length>=3){
|
|||
|
$.ajax({
|
|||
|
url: '/json.php',dataType:'json',type:'POST',async:false,data:'ajdes=search_prepod&fio='+val,
|
|||
|
success: function(data){
|
|||
|
$.each(data.prepods,function(i,v){
|
|||
|
rez += '<a class="autocomplete_div_a" href="#" id="'+v.uid+'">'+v.fio+'</a><br>';
|
|||
|
});
|
|||
|
}
|
|||
|
});
|
|||
|
if($(this).next().hasClass("autocomplete_div")){
|
|||
|
$(this).next().html(rez);
|
|||
|
}else{
|
|||
|
$(this).after("<div class='autocomplete_div'>"+rez+"</div>");
|
|||
|
}
|
|||
|
}
|
|||
|
});
|
|||
|
$(document).on("click", ".autocomplete_div_a", function(){
|
|||
|
var id = $(this).attr("id");
|
|||
|
var prep_id = id;
|
|||
|
var prep_fio = $(this).text();
|
|||
|
$(this).closest('.autocomplete_wrap').find('.autocomplete_input').val(prep_id);
|
|||
|
$(this).closest('.autocomplete_wrap').find('.autocomplete').val(prep_fio);
|
|||
|
|
|||
|
var tmp=$(this).closest('.autocomplete_wrap').find('.autocomplete_input').attr("id").split("_");
|
|||
|
var predmet_id = tmp[2];//получили номер предмета
|
|||
|
var predmet_name = $("#doppredmet_"+predmet_id).val();//получили имя предмета
|
|||
|
$(".predmet_name").each(function(i,e){
|
|||
|
if($(e).val()==predmet_name){//нашли такой же предмет, укажем препода для него
|
|||
|
var curid = $(e).attr("id").split("_");
|
|||
|
$("#dvp_prepid_"+curid[1]).val(prep_id);
|
|||
|
$("#dvp_prepfio_"+curid[1]).val(prep_fio);
|
|||
|
}
|
|||
|
});
|
|||
|
$(this).closest('.autocomplete_div').remove();
|
|||
|
|
|||
|
return false;
|
|||
|
});
|
|||
|
});
|
|||
|
</script>
|
|||
|
<?php }?><?php }} ?>
|