487 lines
27 KiB
PHP
487 lines
27 KiB
PHP
|
<?php /* Smarty version Smarty-3.1.13, created on 2022-04-12 09:36:07
|
|||
|
compiled from "tpl/tpl_iup_lkprepod.html" */ ?>
|
|||
|
<?php /*%%SmartyHeaderCode:203699062262551dd75ee5a0-05931034%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|||
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|||
|
'file_dependency' =>
|
|||
|
array (
|
|||
|
'a925300b9f5c8d30e6aad81d7c4c7a469e3bd6ad' =>
|
|||
|
array (
|
|||
|
0 => 'tpl/tpl_iup_lkprepod.html',
|
|||
|
1 => 1638961155,
|
|||
|
2 => 'file',
|
|||
|
),
|
|||
|
),
|
|||
|
'nocache_hash' => '203699062262551dd75ee5a0-05931034',
|
|||
|
'function' =>
|
|||
|
array (
|
|||
|
),
|
|||
|
'variables' =>
|
|||
|
array (
|
|||
|
'des' => 0,
|
|||
|
'zayavks' => 0,
|
|||
|
'it' => 0,
|
|||
|
'statuses' => 0,
|
|||
|
'zamdeknaprav' => 0,
|
|||
|
'k' => 0,
|
|||
|
'zd' => 0,
|
|||
|
'zayavka' => 0,
|
|||
|
'fl' => 0,
|
|||
|
'kol' => 0,
|
|||
|
'kk' => 0,
|
|||
|
'predmet' => 0,
|
|||
|
'times' => 0,
|
|||
|
'time' => 0,
|
|||
|
),
|
|||
|
'has_nocache_code' => false,
|
|||
|
'version' => 'Smarty-3.1.13',
|
|||
|
'unifunc' => 'content_62551dd76839f0_27511502',
|
|||
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|||
|
<?php if ($_valid && !is_callable('content_62551dd76839f0_27511502')) {function content_62551dd76839f0_27511502($_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['des']->value=="show"){?><!--3.1 Личный кабинет преподавателя - окно переаттестация-->
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<div class="widget blue">
|
|||
|
<div class="widget-title">
|
|||
|
<h4><i class="icon-reorder"></i>3.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>
|
|||
|
<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'];?>
|
|||
|
</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 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>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['it']->value['status']==2){?><a class="btn btn-primary" href="/iup/lkprepod/edit/<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
/"><i class="icon-pencil"></i></a>
|
|||
|
<a class="btn btn-warning tooltips" href="#" data-placement="top" data-original-title="Всего оценок в заявке"><?php echo $_smarty_tpl->tpl_vars['it']->value['ocenki_all'];?>
|
|||
|
</a><a class="btn btn-warning tooltips" href="#" data-placement="top" data-original-title="Всего оценок в заявке выставленных"><?php echo $_smarty_tpl->tpl_vars['it']->value['ocenki_oth'];?>
|
|||
|
</a>
|
|||
|
<a class="btn btn-danger tooltips" href="#" data-placement="top" data-original-title="Моих оценок в заявке"><?php echo $_smarty_tpl->tpl_vars['it']->value['ocenki_moi'];?>
|
|||
|
</a><a class="btn btn-danger tooltips" href="#" data-placement="top" data-original-title="Уже выставленных моих оценок"><?php echo $_smarty_tpl->tpl_vars['it']->value['ocenki_est'];?>
|
|||
|
</a>
|
|||
|
|
|||
|
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['statuses']->value[$_smarty_tpl->tpl_vars['it']->value['status']];?>
|
|||
|
<?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');}
|
|||
|
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;
|
|||
|
?>
|
|||
|
<b><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
</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"){?><!--3.2. Личный кабинет преподавателя окно информация о студенте-->
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<div class="widget blue">
|
|||
|
<div class="widget-title">
|
|||
|
<h4><i class="icon-reorder"></i>3.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><br>
|
|||
|
<a class="btn btn-danger" href="/viewfile.php?it=<?php echo $_smarty_tpl->tpl_vars['fl']->value['file'];?>
|
|||
|
" target="_blank" style="margin-top:5px;"><i class="icon-file"></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>
|
|||
|
|
|||
|
<h3>Список предметов, из учебных планов, в зависимости от выбора направления обучения студента</h3>
|
|||
|
<form action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
|
|||
|
|
|||
|
<table class="table">
|
|||
|
<thead><tr>
|
|||
|
<th width="5%">Код</th>
|
|||
|
<th width="25%">Дисциплина</th>
|
|||
|
<th width="10%">Курс/Сем.</th>
|
|||
|
<th width="5%">Форм</th>
|
|||
|
<th width="5%">З.Е.</th>
|
|||
|
<th width="20%"></th>
|
|||
|
<th width="15%">Оценка</th>
|
|||
|
<th width="15%" class="tooltips" data-placement="top" data-original-title="Комментарий, этот текст попадет в ведомости!">Комм.</th>
|
|||
|
<th class="tooltips" data-placement="top" data-original-title="Сохранение одной строки">Сохр.</th>
|
|||
|
</tr></thead>
|
|||
|
<tbody>
|
|||
|
|
|||
|
<?php $_smarty_tpl->tpl_vars['predmet'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['predmet']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['kk'] = 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['kk']->value = $_smarty_tpl->tpl_vars['predmet']->key;
|
|||
|
?>
|
|||
|
<tr>
|
|||
|
<td nowrap><span class="muted"><?php echo $_smarty_tpl->tpl_vars['kk']->value;?>
|
|||
|
</span> <?php echo $_smarty_tpl->tpl_vars['predmet']->value['discid'];?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['predmet']->value['name_disp'];?>
|
|||
|
<span class="muted"><?php echo $_smarty_tpl->tpl_vars['predmet']->value['godob'];?>
|
|||
|
</span><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'];?>
|
|||
|
" id="predmets_n_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
"/></td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['predmet']->value['kurs'];?>
|
|||
|
/<?php echo $_smarty_tpl->tpl_vars['predmet']->value['sem'];?>
|
|||
|
</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 echo $_smarty_tpl->tpl_vars['predmet']->value['zet'];?>
|
|||
|
</td>
|
|||
|
<td><?php if ($_smarty_tpl->tpl_vars['predmet']->value['isk']!=''){?>
|
|||
|
<input type="HIDDEN" name="tip[<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
]" id="p_3_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
" value="3">
|
|||
|
<?php }else{ ?>
|
|||
|
<div class="btn-group" data-toggle="buttons">
|
|||
|
<label class="btn btn-success <?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['tip']==1){?>active<?php }?> tooltips" data-placement="top" data-original-title="ПЕРЕЗАЧЕТ">
|
|||
|
<input type="radio" name="tip[<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
]" id="p_1_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
" value="1" autocomplete="off" class="pred_checkbox" <?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['tip']==1){?>checked<?php }?>> ПЗ.
|
|||
|
</label>
|
|||
|
<label class="btn btn-info <?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['tip']==2){?>active<?php }?> tooltips" data-placement="top" data-original-title="ПЕРЕАТТЕСТАЦИЯ">
|
|||
|
<input type="radio" name="tip[<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
]" id="p_2_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
" value="2" autocomplete="off" class="pred_checkbox" <?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['tip']==2){?>checked<?php }?>> ПА.
|
|||
|
</label>
|
|||
|
<label class="btn btn-danger <?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['tip']==3){?>active<?php }?> tooltips" data-placement="top" data-original-title="НЕТ СООТВЕТСТВИЯ">
|
|||
|
<input type="radio" name="tip[<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
]" id="p_3_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
" value="3" autocomplete="off" class="pred_checkbox" <?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['tip']==3){?>checked<?php }?>> НЕТ
|
|||
|
</label>
|
|||
|
</div>
|
|||
|
<?php }?>
|
|||
|
</td>
|
|||
|
<td><?php if ($_smarty_tpl->tpl_vars['predmet']->value['isk']!=''){?>
|
|||
|
нет соответствия
|
|||
|
<?php }else{ ?>
|
|||
|
<div id="pd_1_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
" class="pc_1" <?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['tip']!=1){?>style="display:none;"<?php }?>>
|
|||
|
<input type="HIDDEN" name="semestr[<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
]" placeholder="1" value="<?php echo $_smarty_tpl->tpl_vars['predmet']->value['sem'];?>
|
|||
|
" class="span4 tooltips" data-placement="top" data-original-title="СЕМЕСТР" id="semestr_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
">
|
|||
|
<select data-placeholder="Оценка" class="span8 tooltips" tabindex="1" name="predmets[<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
]" data-placement="top" data-original-title="ОЦЕНКА" style="width: 160px;" id="predmets_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
">
|
|||
|
<option value="">Выберите</option>
|
|||
|
<option value="удовлетворительно"<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['ocenka']=="удовлетворительно"){?> SELECTED<?php }?>>удовлетворительно</option>
|
|||
|
<option value="хорошо"<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['ocenka']=="хорошо"){?> SELECTED<?php }?>>хорошо</option>
|
|||
|
<option value="отлично"<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['ocenka']=="отлично"){?> SELECTED<?php }?>>отлично</option>
|
|||
|
<option value="зачтено"<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['ocenka']=="зачтено"){?> SELECTED<?php }?>>зачтено</option>
|
|||
|
</select>
|
|||
|
</div>
|
|||
|
<div id="pd_2_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
" class="pc_2" <?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['tip']!=2){?>style="display:none;"<?php }?>>
|
|||
|
<input type="TEXT" name="day[<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
]" id="idi_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
" placeholder="23.12.2017" value="<?php echo $_smarty_tpl->tpl_vars['predmet']->value['ocenki']['day'];?>
|
|||
|
" style="width:70px;" class="datepicker_iup_day">
|
|||
|
<select data-placeholder="Время" class="datepicker_iup_time tooltips" tabindex="1" name="time[<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
]" id="ids_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
" data-placement="top" data-original-title="время встречи со студентом" style="width:72px;"><?php $_smarty_tpl->tpl_vars['time'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['time']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['times']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['time']->key => $_smarty_tpl->tpl_vars['time']->value){
|
|||
|
$_smarty_tpl->tpl_vars['time']->_loop = true;
|
|||
|
?><option value="<?php echo $_smarty_tpl->tpl_vars['time']->value;?>
|
|||
|
"<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['time']==$_smarty_tpl->tpl_vars['time']->value){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['time']->value;?>
|
|||
|
</option><?php } ?></select>
|
|||
|
<select data-placeholder="Оценка" class="tooltips" tabindex="1" name="predmetsA[<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
]" id="predmetsA_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
" data-placement="top" data-original-title="ОЦЕНКА выставленная после общения со студентом" style="width: 160px;">
|
|||
|
<option value="">Выберите оценку</option>
|
|||
|
<option value="неудовлетворительно"<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['ocenka']=="неудовлетворительно"){?> SELECTED<?php }?>>неудовлетворительно</option>
|
|||
|
<option value="удовлетворительно"<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['ocenka']=="удовлетворительно"){?> SELECTED<?php }?>>удовлетворительно</option>
|
|||
|
<option value="хорошо"<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['ocenka']=="хорошо"){?> SELECTED<?php }?>>хорошо</option>
|
|||
|
<option value="отлично"<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['ocenka']=="отлично"){?> SELECTED<?php }?>>отлично</option>
|
|||
|
<option value="зачтено"<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['ocenka']=="зачтено"){?> SELECTED<?php }?>>зачтено</option>
|
|||
|
<option value="не зачтено"<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['ocenka']=="не зачтено"){?> SELECTED<?php }?>>не зачтено</option>
|
|||
|
<option value="неявка"<?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['ocenka']=="неявка"){?> SELECTED<?php }?>>неявка</option>
|
|||
|
</select>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['kpro']!=''){?><input type="TEXT" name="kpro[<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
]" id="kpro_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
" placeholder="курс.проект" value="<?php echo $_smarty_tpl->tpl_vars['predmet']->value['ocenki']['kpro'];?>
|
|||
|
" style="width:160px;"><?php }?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['predmet']->value['krab']!=''){?><input type="TEXT" name="krab[<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
]" id="krab_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
" placeholder="курс.работа" value="<?php echo $_smarty_tpl->tpl_vars['predmet']->value['ocenki']['krab'];?>
|
|||
|
" style="width:160px;"><?php }?>
|
|||
|
<input type="TEXT" name="aud[<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
]" id="aud_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
" placeholder="а. 1-117" value="<?php echo $_smarty_tpl->tpl_vars['predmet']->value['ocenki']['aud'];?>
|
|||
|
" style="width:160px;">
|
|||
|
</div>
|
|||
|
<div id="pd_3_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
" class="pc_3" <?php if ($_smarty_tpl->tpl_vars['predmet']->value['ocenki']['tip']!=3){?>style="display:none;"<?php }?>>
|
|||
|
нет соответствия
|
|||
|
</div>
|
|||
|
<?php }?>
|
|||
|
</td>
|
|||
|
<td><?php if ($_smarty_tpl->tpl_vars['predmet']->value['isk']!=''){?>
|
|||
|
<?php }else{ ?>
|
|||
|
<input type="TEXT" name="comment[<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
]" id="comment_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
" placeholder="комментарий" value="<?php echo $_smarty_tpl->tpl_vars['predmet']->value['ocenki']['comment'];?>
|
|||
|
" style="width:99%;" ><br>
|
|||
|
<div class="ajmes" id="ajmes_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
"></div>
|
|||
|
<?php }?></td>
|
|||
|
<td>
|
|||
|
<a href="#" class="btn btn-warning tr_save tooltips" data-placement="top" data-original-title="Сохранение одной строки" data-predmetid="<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
"><i class="icon-save"></i></a>
|
|||
|
<div class="ajmes_tr_save" id="ajmes_tr_save_<?php echo $_smarty_tpl->tpl_vars['predmet']->value['id'];?>
|
|||
|
"></div>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
<?php } ?>
|
|||
|
</tbody></table>
|
|||
|
<hr>
|
|||
|
<input type="hidden" name="test" value="123" />
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span4">
|
|||
|
<button type="submit" name="lkprepod_back" class="btn btn-danger">В случае некорректного отображения информации вернуть зам. декана</button>
|
|||
|
</div>
|
|||
|
<div class="span4">
|
|||
|
|
|||
|
</div>
|
|||
|
<div class="span4">
|
|||
|
<!--button type="submit" name="attestcom_save" class="btn btn-warning">Сохранить</button-->
|
|||
|
<input type="submit" name="attestcom_save" class="btn btn-warning" value="Сохранить" />
|
|||
|
<input type="HIDDEN" name="id_zayavka" id="id_zayavka" value="<?php echo $_smarty_tpl->tpl_vars['zayavka']->value['id'];?>
|
|||
|
">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">Если вы для предмета выбрали "Переаттестация" тогда студенту отправиться письмо с просьбой подойти к Вам в указанную дату и время.
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<link href="/tpl/js/datepicker/css/flora.datepick.css" rel="stylesheet">
|
|||
|
<script type="text/javascript" src="/tpl/js/datepicker/js/jquery.plugin.js"></script>
|
|||
|
<script type="text/javascript" src="/tpl/js/datepicker/js/jquery.datepick.js"></script>
|
|||
|
<script type="text/javascript" src="/tpl/js/datepicker/js/jquery.datepick-ru.js"></script>
|
|||
|
|
|||
|
<script>$(document).ready(function(){
|
|||
|
$(".tr_save").click(function(){
|
|||
|
var id_p = $(this).data("predmetid");
|
|||
|
let predmets_n = $("#predmets_n_"+id_p).val();
|
|||
|
let tip = 0;
|
|||
|
if ($("#p_1_"+id_p).is(':checked')) tip = 1;
|
|||
|
if ($("#p_2_"+id_p).is(':checked')) tip = 2;
|
|||
|
if ($("#p_3_"+id_p).is(':checked')) tip = 3;
|
|||
|
|
|||
|
let semestr = $("#semestr_"+id_p).val();
|
|||
|
let predmets = $("#predmets_"+id_p+" option:selected").text();
|
|||
|
let day = $("#idi_"+id_p).val();
|
|||
|
let time = $("#ids_"+id_p+" option:selected").text();
|
|||
|
let predmetsA = $("#predmetsA_"+id_p+" option:selected").text();
|
|||
|
let kpro = 0; if($("#kpro_"+id_p).length) kpro = $("#kpro_"+id_p).val();
|
|||
|
let krab = 0; if($("#krab_"+id_p).length) krab = $("#krab_"+id_p).val();
|
|||
|
let aud = $("#aud_"+id_p).val();
|
|||
|
let comment = $("#comment_"+id_p).val();
|
|||
|
let id_z = $("#id_zayavka").val();
|
|||
|
/*
|
|||
|
console.log("predmets_n="+predmets_n);
|
|||
|
console.log("tip="+tip);
|
|||
|
console.log("semestr="+semestr);
|
|||
|
console.log("predmets="+predmets);
|
|||
|
console.log("day="+day);
|
|||
|
console.log("time="+time);
|
|||
|
console.log("predmetsA="+predmetsA);
|
|||
|
console.log("kpro="+kpro);
|
|||
|
console.log("krab="+krab);
|
|||
|
console.log("aud="+aud);
|
|||
|
console.log("comment="+comment);
|
|||
|
return false;
|
|||
|
|
|||
|
id="predmets_n_{$predmet.id}" [predmets_n] => Array([90665] => Философия
|
|||
|
name="tip[{$predmet.id}]" id="p_1_{$predmet.id}" - checkbox [tip] => Array([90665] => 1
|
|||
|
name="tip[{$predmet.id}]" id="p_2_{$predmet.id}" - checkbox
|
|||
|
name="tip[{$predmet.id}]" id="p_3_{$predmet.id}" - checkbox
|
|||
|
|
|||
|
id="semestr_{$predmet.id}" semestr] => Array( [90665] => 3
|
|||
|
id="predmets_{$predmet.id}" - select [predmets] => Array( [90665] => хорошо
|
|||
|
name="day[{$predmet.id}]" id="idi_{$predmet.id}" [day] => Array([90665] => 28.10.2021
|
|||
|
name="time[{$predmet.id}]" id="ids_{$predmet.id}" - select [time] => Array([90665] => 8:00
|
|||
|
name="predmetsA[{$predmet.id}]" id="predmetsA_{$predmet.id}" - select [predmetsA] => Array([90665] => хорошо
|
|||
|
name="kpro[{$predmet.id}]" id="kpro_{$predmet.id}"
|
|||
|
name="krab[{$predmet.id}]" id="krab_{$predmet.id}"
|
|||
|
id="aud_{$predmet.id}" [aud] => Array([90665] => ''
|
|||
|
id="comment[{$predmet.id}]" [comment] => Array([90665] => ''
|
|||
|
[test] => 123
|
|||
|
[attestcom_save]
|
|||
|
*/
|
|||
|
$.ajax({
|
|||
|
url: '/iup/lkprepod/',dataType:'json',type:'POST',async:false,data:'ajdes=tr_save&predmets_n='+predmets_n+'&tip='+tip+'&semestr='+semestr+'&predmets='+predmets+'&day='+day+'&time='+time+'&predmetsA='+predmetsA+'&kpro='+kpro+'&krab='+krab+'&aud='+aud+'&comment='+comment+'&id_z='+id_z+'&id_p='+id_p,
|
|||
|
success: function(data){
|
|||
|
$("#ajmes_tr_save_"+id_p).html(data.html);
|
|||
|
//console.log(data);
|
|||
|
}
|
|||
|
});
|
|||
|
return false;
|
|||
|
});
|
|||
|
$(".pred_checkbox").click(function(){
|
|||
|
var id = $(this).attr("id").split("_");
|
|||
|
$("#pd_1_"+id[2]).hide(); $("#pd_2_"+id[2]).hide(); $("#pd_3_"+id[2]).hide();
|
|||
|
$("#pd_"+id[1]+"_"+id[2]).show();
|
|||
|
});
|
|||
|
var nowTemp = new Date();
|
|||
|
$(".datepicker_iup_day").datepick({
|
|||
|
minDate: new Date(),
|
|||
|
maxDate: new Date(nowTemp.getFullYear(),nowTemp.getMonth(), nowTemp.getDate()+5),
|
|||
|
onClose: function(dates) {
|
|||
|
var id=$(this).attr("id").split("_");
|
|||
|
var time = $("#ids_"+id[1]+" option:selected").val();
|
|||
|
var date = $("#idi_"+id[1]).val();
|
|||
|
iup_check_time_for_prepod(id[1],date,time);
|
|||
|
},
|
|||
|
});
|
|||
|
$(".datepicker_iup_day").change(function(){
|
|||
|
var id = $(this).attr("id").split("_");
|
|||
|
var date = $(this).val();
|
|||
|
var time = $("#ids_"+id[1]+" option:selected").val();
|
|||
|
iup_check_time_for_prepod(id[1],date,time);
|
|||
|
});
|
|||
|
$(".datepicker_iup_time").change(function(){
|
|||
|
var id = $(this).attr("id").split("_");
|
|||
|
var time = $("#ids_"+id[1]+" option:selected").val();
|
|||
|
var date = $("#idi_"+id[1]).val();
|
|||
|
iup_check_time_for_prepod(id[1],date,time);
|
|||
|
});
|
|||
|
function iup_check_time_for_prepod(id_p,date,time){
|
|||
|
var id_z=$("#id_zayavka").val();
|
|||
|
$.ajax({
|
|||
|
url: '/json.php',dataType:'json',type:'POST',async:false,data:'ajdes=iup_check_time&id_z='+id_z+'&id_p='+id_p+'&date='+date+'&time='+time,
|
|||
|
success: function(data){
|
|||
|
$("#ajmes_"+data.idp).html(data.html);
|
|||
|
}
|
|||
|
});
|
|||
|
return false;
|
|||
|
}
|
|||
|
});</script>
|
|||
|
|
|||
|
<?php }?><?php }} ?>
|