EIOS/inc/smarty/templates_c/32d8dd05ddd914cf448cf723a31...

614 lines
33 KiB
PHP
Raw Permalink Normal View History

2023-12-28 15:39:22 +03:00
<?php /* Smarty version Smarty-3.1.13, created on 2022-04-12 08:53:01
compiled from "tpl/tpl_iup_lkkafedry.html" */ ?>
<?php /*%%SmartyHeaderCode:776378889625513bdcbb019-86597064%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'32d8dd05ddd914cf448cf723a319d0948f408776' =>
array (
0 => 'tpl/tpl_iup_lkkafedry.html',
1 => 1637130954,
2 => 'file',
),
),
'nocache_hash' => '776378889625513bdcbb019-86597064',
'function' =>
array (
),
'variables' =>
array (
'des' => 0,
'user' => 0,
'zayavks' => 0,
'it' => 0,
'statuses' => 0,
'zamdeknaprav' => 0,
'zd' => 0,
'napravlenie' => 0,
'nap' => 0,
'grup' => 0,
'tip' => 0,
'profile' => 0,
'zayavka' => 0,
'iup_lkkafedry_search_naprav' => 0,
'iup_lkkafedry_search_god' => 0,
'rez_nav' => 0,
'p' => 0,
'shahtplans' => 0,
'er' => 0,
'shpl' => 0,
'fl' => 0,
'kol' => 0,
'k' => 0,
'predmet' => 0,
'chat' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_625513bdd73e09_56601335',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_625513bdd73e09_56601335')) {function content_625513bdd73e09_56601335($_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['des']->value=="show"){?>
<?php echo $_smarty_tpl->getSubTemplate ("tpl_messager.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<div class="row-fluid">
<div class="span12">
<div class="widget blue">
<div class="widget-title">
<h4><i class="icon-reorder"></i>4.1 Личный кабинет кафедры</h4>
<span class="tools"><a href="javascript:;" class="<?php if ($_smarty_tpl->tpl_vars['user']->value['status']==99){?>icon-chevron-up<?php }else{ ?>icon-chevron-down<?php }?>"></a></span>
</div>
<div class="widget-body" <?php if ($_smarty_tpl->tpl_vars['user']->value['status']==99){?>style="display: none;"<?php }?>>
<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 <?php if ($_smarty_tpl->tpl_vars['it']->value['status']==5){?> class="success"<?php }?>>
<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'];?>
</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 }?>&nbsp;<?php echo $_smarty_tpl->tpl_vars['it']->value['pret_naprav'];?>
</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/lkkafedry/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/lkkafedry/attved2/<?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-danger tooltips" href="/iup/lkkafedry/attved4/<?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['status']==3){?>
<a class="btn btn-primary" href="/iup/lkkafedry/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 if ($_smarty_tpl->tpl_vars['it']->value['status']>4){?><br>УМУ сделала ИУП скачать:
<a href="/downloadfile.php?dwfile=/<?php echo $_smarty_tpl->tpl_vars['it']->value['filesk']['file'];?>
"><?php echo $_smarty_tpl->tpl_vars['it']->value['filesk']['namefile'];?>
</a><?php }?>
<?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>
<div class="row-fluid">
<div class="span12">
<div class="widget blue">
<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 method="POST" enctype="multipart/form-data">
<div class="row-fluid">
<div class="span3">
<input type="FILE" name="shaht_prog">
</div>
<div class="span4">
выберите файл шахтинской программы в формате <b>XML</b> или формат <b>PLX</b>, после загрузки, необходимо будет занести в Базу(это сделано для снижения нагрузки на сервер)
</div>
<div class="span5">
<!--input type="TEXT" name="shaht_napravlenie" value="Направление"-->
<!--input type="TEXT" name="shaht_godob" value="Год"-->
Направление <select data-placeholder="Выберите направление" class="span12" tabindex="1" name="naprav">
<option value="">Выберите направление</option>
<?php $_smarty_tpl->tpl_vars['nap'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['nap']->_loop = false;
$_smarty_tpl->tpl_vars['fakid'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['napravlenie']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['nap']->key => $_smarty_tpl->tpl_vars['nap']->value){
$_smarty_tpl->tpl_vars['nap']->_loop = true;
$_smarty_tpl->tpl_vars['fakid']->value = $_smarty_tpl->tpl_vars['nap']->key;
?>
<option value="0" disabled style="color:red;font-weight:bold;">Факультет: <?php echo $_smarty_tpl->tpl_vars['nap']->value['fak'];?>
</option>
<?php $_smarty_tpl->tpl_vars['grup'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['grup']->_loop = false;
$_smarty_tpl->tpl_vars['napravid'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['nap']->value['naprav']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['grup']->key => $_smarty_tpl->tpl_vars['grup']->value){
$_smarty_tpl->tpl_vars['grup']->_loop = true;
$_smarty_tpl->tpl_vars['napravid']->value = $_smarty_tpl->tpl_vars['grup']->key;
?>
<?php $_smarty_tpl->tpl_vars['tip'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tip']->_loop = false;
$_smarty_tpl->tpl_vars['tipsid'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['grup']->value['tips']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tip']->key => $_smarty_tpl->tpl_vars['tip']->value){
$_smarty_tpl->tpl_vars['tip']->_loop = true;
$_smarty_tpl->tpl_vars['tipsid']->value = $_smarty_tpl->tpl_vars['tip']->key;
?>
<?php $_smarty_tpl->tpl_vars['profile'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['profile']->_loop = false;
$_smarty_tpl->tpl_vars['profilesid'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['tip']->value['profiles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['profile']->key => $_smarty_tpl->tpl_vars['profile']->value){
$_smarty_tpl->tpl_vars['profile']->_loop = true;
$_smarty_tpl->tpl_vars['profilesid']->value = $_smarty_tpl->tpl_vars['profile']->key;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['grup']->value['sname'];?>
:<?php echo $_smarty_tpl->tpl_vars['grup']->value['fname'];?>
:<?php echo $_smarty_tpl->tpl_vars['profile']->value;?>
:<?php echo $_smarty_tpl->tpl_vars['tip']->value['tname'];?>
"<?php if ($_smarty_tpl->tpl_vars['zayavka']->value['pret_naprav']==((string)$_smarty_tpl->tpl_vars['grup']->value['sname']).":".((string)$_smarty_tpl->tpl_vars['grup']->value['fname']).":".((string)$_smarty_tpl->tpl_vars['profile']->value).":".((string)$_smarty_tpl->tpl_vars['tip']->value['tname'])){?> SELECTED<?php }?>>--<?php echo $_smarty_tpl->tpl_vars['grup']->value['fname'];?>
<?php if ($_smarty_tpl->tpl_vars['tip']->value['tname']!="Специалитет"){?>(профиль "<?php echo $_smarty_tpl->tpl_vars['profile']->value;?>
")<?php }?>, <?php echo $_smarty_tpl->tpl_vars['tip']->value['tname'];?>
</option>
<?php } ?>
<?php } ?>
<?php } ?>
<?php } ?>
</select>
<input type="SUBMIT" name="shaht_save" value="Загрузить">
</div>
</div>
</form>
<?php if ($_smarty_tpl->tpl_vars['user']->value['status']==99){?>
<form method="POST">
<div class="row-fluid">
<div class="span3">
<p>Поиск по планам</p>
</div>
<div class="span3">
<input type="TEXT" name="iup_lkkafedry_search_naprav" value="<?php if (isset($_smarty_tpl->tpl_vars['iup_lkkafedry_search_naprav']->value)){?><?php echo $_smarty_tpl->tpl_vars['iup_lkkafedry_search_naprav']->value;?>
<?php }?>" placeholder="Направление" class="span12">
</div>
<div class="span3">
<input type="TEXT" name="iup_lkkafedry_search_god" value="<?php if (isset($_smarty_tpl->tpl_vars['iup_lkkafedry_search_god']->value)){?><?php echo $_smarty_tpl->tpl_vars['iup_lkkafedry_search_god']->value;?>
<?php }?>" placeholder="год" class="span12">
</div>
<div class="span3">
<input type="SUBMIT" name="iup_lkkafedry_search" value="Найти">
</div>
</div>
</form>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['rez_nav']->value)){?><?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['p']->step = 1;$_smarty_tpl->tpl_vars['p']->total = (int)ceil(($_smarty_tpl->tpl_vars['p']->step > 0 ? $_smarty_tpl->tpl_vars['rez_nav']->value['all']+1 - (1) : 1-($_smarty_tpl->tpl_vars['rez_nav']->value['all'])+1)/abs($_smarty_tpl->tpl_vars['p']->step));
if ($_smarty_tpl->tpl_vars['p']->total > 0){
for ($_smarty_tpl->tpl_vars['p']->value = 1, $_smarty_tpl->tpl_vars['p']->iteration = 1;$_smarty_tpl->tpl_vars['p']->iteration <= $_smarty_tpl->tpl_vars['p']->total;$_smarty_tpl->tpl_vars['p']->value += $_smarty_tpl->tpl_vars['p']->step, $_smarty_tpl->tpl_vars['p']->iteration++){
$_smarty_tpl->tpl_vars['p']->first = $_smarty_tpl->tpl_vars['p']->iteration == 1;$_smarty_tpl->tpl_vars['p']->last = $_smarty_tpl->tpl_vars['p']->iteration == $_smarty_tpl->tpl_vars['p']->total;?>
<a href="/iup/lkkafedry/show/p<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
/" class="btn btn-sm btn-info"><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
</a>
<?php }} ?><?php }?>
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th width="5%"></th>
<th width="15%">Дата</th>
<th width="60%">Направление</th>
<th width="5%">Год</th>
<th width="15%"></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['shahtplans']->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['napravlenie'];?>
<br><?php echo $_smarty_tpl->tpl_vars['it']->value['naprav'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['it']->value['godob'];?>
</td>
<td nowrap>
<?php if ($_smarty_tpl->tpl_vars['it']->value['db']==0){?><a class="btn btn-primary" href="/iup/lkkafedry/editshp/<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
/">Занести в Базу</a> <a class="btn btn-danger" href="/iup/lkkafedry/deleshpall/<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
/">Удалить файл</a><?php }else{ ?><a class="btn btn-danger" href="/iup/lkkafedry/deleshp/<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
/" onclick="return confirm('<?php if ($_smarty_tpl->tpl_vars['it']->value['ispolzuetsya']>0){?>Удаление повлечет за собой удаление выставленных оценок в ИУП студентов. Количество предметов из данного учебного плана, использующихся в оценивании: <?php echo $_smarty_tpl->tpl_vars['it']->value['ispolzuetsya'];?>
шт.<?php }else{ ?>Данный учебный план еще не использовался в оценивании, можно спокойно удалять!<?php }?> Удалить учебный план?') ? true : false;">Удалить из Базы</a><?php }?>
</td>
</tr>
<?php if ($_smarty_tpl->tpl_vars['it']->value['db']!=0){?>
<tr class="tr_last">
<td>-</td>
<td colspan="3"><?php echo $_smarty_tpl->tpl_vars['it']->value['plans']['obrpro'];?>
<?php echo $_smarty_tpl->tpl_vars['it']->value['plans']['forobu'];?>
<?php echo $_smarty_tpl->tpl_vars['it']->value['plans']['uroobr'];?>
<?php echo $_smarty_tpl->tpl_vars['it']->value['plans']['fakult'];?>
<?php echo $_smarty_tpl->tpl_vars['it']->value['plans']['shifr1'];?>
<?php echo $_smarty_tpl->tpl_vars['it']->value['plans']['godnap'];?>
<?php echo $_smarty_tpl->tpl_vars['it']->value['plans']['nappodgo'];?>
<?php echo $_smarty_tpl->tpl_vars['it']->value['plans']['propodgo'];?>
<?php if (isset($_smarty_tpl->tpl_vars['it']->value['err'])&&count($_smarty_tpl->tpl_vars['it']->value['err'])){?><br><span class="label label-important"><?php $_smarty_tpl->tpl_vars['er'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['er']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['it']->value['err']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['er']->key => $_smarty_tpl->tpl_vars['er']->value){
$_smarty_tpl->tpl_vars['er']->_loop = true;
?><?php echo $_smarty_tpl->tpl_vars['er']->value;?>
; <br><?php } ?></span><a href="#" class="btn btn-sm btnerrisp" data-id="<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
">Исправить</a><?php }?></td>
<td><a href="/<?php echo $_smarty_tpl->tpl_vars['it']->value['file'];?>
" target="_blank">Скачать</a> : <?php echo $_smarty_tpl->tpl_vars['it']->value['userfio'];?>
</td>
</tr>
<?php }else{ ?>
<tr class="tr_last">
<td></td>
<td colspan="3">надо занести в базу</td>
<td><a href="/<?php echo $_smarty_tpl->tpl_vars['it']->value['file'];?>
" target="_blank">Скачать</a> : <?php echo $_smarty_tpl->tpl_vars['it']->value['userfio'];?>
</td>
</tr>
<?php }?>
<?php } ?>
</tbody>
</table>
<?php if (isset($_smarty_tpl->tpl_vars['rez_nav']->value)){?><?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['p']->step = 1;$_smarty_tpl->tpl_vars['p']->total = (int)ceil(($_smarty_tpl->tpl_vars['p']->step > 0 ? $_smarty_tpl->tpl_vars['rez_nav']->value['all']+1 - (1) : 1-($_smarty_tpl->tpl_vars['rez_nav']->value['all'])+1)/abs($_smarty_tpl->tpl_vars['p']->step));
if ($_smarty_tpl->tpl_vars['p']->total > 0){
for ($_smarty_tpl->tpl_vars['p']->value = 1, $_smarty_tpl->tpl_vars['p']->iteration = 1;$_smarty_tpl->tpl_vars['p']->iteration <= $_smarty_tpl->tpl_vars['p']->total;$_smarty_tpl->tpl_vars['p']->value += $_smarty_tpl->tpl_vars['p']->step, $_smarty_tpl->tpl_vars['p']->iteration++){
$_smarty_tpl->tpl_vars['p']->first = $_smarty_tpl->tpl_vars['p']->iteration == 1;$_smarty_tpl->tpl_vars['p']->last = $_smarty_tpl->tpl_vars['p']->iteration == $_smarty_tpl->tpl_vars['p']->total;?>
<a href="/iup/lkkafedry/show/p<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
/" class="btn btn-sm btn-info"><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
</a>
<?php }} ?><?php }?>
</div>
</div>
</div>
</div>
<div class="btnerrisp_div">
<div class="btnerrisp_head"><a href="#" class="btn btn-sm btnerrisp_div_close">Закрыть</a> | Изменения данных в загруженном плане.<hr></div>
<div class="btnerrisp_body"></div>
</div>
<style>
.btnerrisp_div{display:none; position:fixed; bottom:80px; right:20px; width:500px; height:600px; background-color:#fff; padding:20px; border:1px solid gray;}
.btnerrisp_body{overflow:auto; height:550px;}
.tr_last td{ border-bottom: 2px solid #000; }
</style>
<script>$(document).ready(function(){
$(document).on("click", ".btnerrisp_save", function(){
let id = $(".btnerrisp_id").val();
let name = '', value = '';
let json=[];
$(".btnerrisp_item").each(function( index ) {
name = $(this).data('pp');
value = $(this).val();
json.push({'name':name,'value':value});
});
$.ajax({url: '/iup/lkkafedry/',cache:false,datatype:'json',method:'POST',type:'POST',
data: 'ajdes=btnerrisp_save&id='+id+'&json='+JSON.stringify(json),
success:function(data){
$(".btnerrisp_save_msg").html(data.html);
}
});
return false;
});
$(".btnerrisp_div_close").click(function(){
$(".btnerrisp_div").hide();
$(".btnerrisp_body").html("");
return false;
});
$(".btnerrisp").click(function(){
let id = $(this).data("id");
$(".btnerrisp_div").show();
$(".btnerrisp_body").html("загружаем "+id+"...");
$.ajax({url: '/iup/lkkafedry/',cache:false,datatype:'json',method:'POST',type:'POST',
data: 'ajdes=btnerrisp&id='+id,
success:function(data){
$(".btnerrisp_body").html(data.html);
}
});
return false;
});
});</script>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['des']->value=="viewshp"){?>
<div class="row-fluid">
<div class="span12">
<h2>Результат обработки файла плана, просто просмотр!</h2>
<p><?php echo $_smarty_tpl->tpl_vars['shpl']->value['msg'];?>
</p>
<p><?php echo $_smarty_tpl->tpl_vars['shpl']->value['err'];?>
</p>
</div>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['des']->value=="editshp"){?>
<div class="row-fluid">
<div class="span12">
<h2>Результат обработки файла плана!</h2>
<p><?php echo $_smarty_tpl->tpl_vars['shpl']->value['msg'];?>
</p>
<p><?php echo $_smarty_tpl->tpl_vars['shpl']->value['err'];?>
</p>
</div>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['des']->value=="edit"){?>
<div class="row-fluid">
<div class="span12">
<div class="widget blue">
<div class="widget-title">
<h4><i class="icon-reorder"></i>5.2. Интерфейс работника УМУ окно информация о студенте</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="form-horizontal" method="POST" enctype="multipart/form-data">
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th width="5%">№п/п</th>
<th width="5%">Код</th>
<th width="5%">Курс<br>Семестр</th>
<th width="25%">Дисциплина</th>
<th width="15%">Преподаватель</th>
<th width="5%">З.Е.</th>
<th width="5%">Тип</th>
<th width="10%">-</th>
<th width="10%">Оценка</th>
<th width="15%">Комментарий</th>
</tr>
</thead>
<tbody>
<?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']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
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;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['predmet']->value['discid'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['predmet']->value['kurs'];?>
/<?php echo $_smarty_tpl->tpl_vars['predmet']->value['sem'];?>
</td>
<td>
<?php echo $_smarty_tpl->tpl_vars['predmet']->value['name_disp'];?>
<input type="HIDDEN" name="predmets_n[<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
]" value="<?php echo $_smarty_tpl->tpl_vars['predmet']->value['name_disp'];?>
" />
</td>
<td>
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['prepodfio']!=''){?><?php echo $_smarty_tpl->tpl_vars['predmet']->value['prepodfio'];?>
<?php }else{ ?><span class="label label-danger">не указан</span><?php }?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['predmet']->value['zet'];?>
</td>
<td><?php if ($_smarty_tpl->tpl_vars['predmet']->value['ekz']!=''){?><span class="text-error">Э</span><?php }?><?php if ($_smarty_tpl->tpl_vars['predmet']->value['zach']!=''){?><span class="text-success">З</span><?php }?> <span class="text-info"><?php if ($_smarty_tpl->tpl_vars['predmet']->value['kpro']!=''){?>КП<?php }?><?php if ($_smarty_tpl->tpl_vars['predmet']->value['krab']!=''){?>КР<?php }?></span></td>
<td>
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['tip']==1){?><b class="text-info">Перезачет</b><?php }?>
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['tip']==2){?><b class="text-warning">Переаттестация</b><?php }?>
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['tip']==3){?><b class="text-error">нет соответствия</b><?php }?>
</td>
<td>
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['tip']==1){?><b class="text-info"><?php echo $_smarty_tpl->tpl_vars['predmet']->value['ocenki']['ocenka'];?>
</b><?php }?>
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['tip']==2){?><?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['ocenka']!=''){?><b class="text-warning"><?php echo $_smarty_tpl->tpl_vars['predmet']->value['ocenki']['ocenka'];?>
</b><?php }else{ ?><b class="text-warning">пока нет</b><?php }?><?php }?>
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['tip']==3){?>-<?php }?>
</td>
<td>
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['tip']==2){?>Время: <?php echo date("H:i d.m.Y",$_smarty_tpl->tpl_vars['predmet']->value['ocenki']['data_time']);?>
<br><?php }?>
<?php echo $_smarty_tpl->tpl_vars['predmet']->value['ocenki']['comment'];?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<hr>
<h3>Файлы для сотрудников УМУ</h3>
<div class="row-fluid">
<div class="span6">
<label class="control-label">Прикрепить файл для УМУ</label>
<div class="controls">
<input type="FILE" name="umu_file">
</div>
</div>
<div class="span6">
<?php if (isset($_smarty_tpl->tpl_vars['zayavka']->value['filesk'])){?><div class="row-fluid">
<?php $_smarty_tpl->tpl_vars['fl'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fl']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['zayavka']->value['filesk']; 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="span12">
<p class="info">
<span class="badge small"><?php echo $_smarty_tpl->tpl_vars['fl']->value['data_c'];?>
</span> <a href="/downloadfile.php?dwfile=/<?php echo $_smarty_tpl->tpl_vars['fl']->value['file'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['fl']->value['tipfile'];?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['fl']->value['namefile'];?>
</a> <?php if ($_smarty_tpl->tpl_vars['fl']->value['status']==1){?><input type="CHECKBOX" name="del_file[<?php echo $_smarty_tpl->tpl_vars['fl']->value['id'];?>
]" class="tooltips" data-trigger="hover" data-original-title="Удалить файл из заявки" data-placement="top" > - удалить файл<?php }?></p>
</div><?php } ?>
</div><?php }?>
</div>
</div>
<h3>Чат с сотрудником УМУ</h3>
<div class="row-fluid">
<div class="span12">
<div class="chat"><?php $_smarty_tpl->tpl_vars['chat'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['chat']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['zayavka']->value['chat_umu']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['chat']->key => $_smarty_tpl->tpl_vars['chat']->value){
$_smarty_tpl->tpl_vars['chat']->_loop = true;
?>
<?php if ($_smarty_tpl->tpl_vars['chat']->value['status']==2){?>
<div class="span12" style="margin-left:30px!important;"><span class="badge"><?php echo $_smarty_tpl->tpl_vars['chat']->value['data_c'];?>
</span> <span class="badge badge-info"><?php echo $_smarty_tpl->tpl_vars['chat']->value['fiouser'];?>
</span> <?php echo $_smarty_tpl->tpl_vars['chat']->value['text'];?>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['chat']->value['status']==1){?>
<div class="span12" style="margin-left:0!important;"><span class="badge"><?php echo $_smarty_tpl->tpl_vars['chat']->value['data_c'];?>
</span> <?php echo $_smarty_tpl->tpl_vars['chat']->value['text'];?>
</div>
<?php }?>
<?php } ?></div>
<div class="chat_input">
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Напишите сотруднику УМУ сообщение" name="chat_umu" value="" placeholder="введите сообщение"/>
</div>
</div>
</div>
<hr>
<div class="row-fluid">
<div class="span4">
<button type="submit" name="lkkafedry_back" class="btn btn-danger">Вернуть атт.ком.</button>
</div>
<div class="span4">
<button type="submit" name="lkkafedry_gotovo" class="btn btn-success">Отправить УМУ</button>
</div>
<div class="span4">
<button type="submit" name="lkkafedry_zaversh" class="btn btn-warning">Сохранить</button>
<input type="HIDDEN" name="id_zayavka" value="<?php echo $_smarty_tpl->tpl_vars['zayavka']->value['id'];?>
">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<?php }?><?php }} ?>