435 lines
25 KiB
PHP
435 lines
25 KiB
PHP
|
<?php /* Smarty version Smarty-3.1.13, created on 2022-04-19 15:47:21
|
|||
|
compiled from "tpl/tpl_rejtnpr_anketa.html" */ ?>
|
|||
|
<?php /*%%SmartyHeaderCode:443899595625eaf59727e20-28130890%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|||
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|||
|
'file_dependency' =>
|
|||
|
array (
|
|||
|
'8b54591982179dfd673907280b78c858d5b89a4b' =>
|
|||
|
array (
|
|||
|
0 => 'tpl/tpl_rejtnpr_anketa.html',
|
|||
|
1 => 1560787591,
|
|||
|
2 => 'file',
|
|||
|
),
|
|||
|
),
|
|||
|
'nocache_hash' => '443899595625eaf59727e20-28130890',
|
|||
|
'function' =>
|
|||
|
array (
|
|||
|
),
|
|||
|
'variables' =>
|
|||
|
array (
|
|||
|
'otchgods' => 0,
|
|||
|
'chjs' => 0,
|
|||
|
'dan' => 0,
|
|||
|
'dan1' => 0,
|
|||
|
'k1' => 0,
|
|||
|
'rejteu' => 0,
|
|||
|
'users_kaf' => 0,
|
|||
|
'us' => 0,
|
|||
|
'items' => 0,
|
|||
|
'it' => 0,
|
|||
|
'rd' => 0,
|
|||
|
'kol' => 0,
|
|||
|
'ip' => 0,
|
|||
|
'pl' => 0,
|
|||
|
),
|
|||
|
'has_nocache_code' => false,
|
|||
|
'version' => 'Smarty-3.1.13',
|
|||
|
'unifunc' => 'content_625eaf597c4915_07696481',
|
|||
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|||
|
<?php if ($_valid && !is_callable('content_625eaf597c4915_07696481')) {function content_625eaf597c4915_07696481($_smarty_tpl) {?><br>
|
|||
|
<link href="/tpl/css/rejt_anketa.css" rel="stylesheet" />
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span6">
|
|||
|
<h1>Базовые показатели <span style="font-size:18px;font-weight:bold;">НПР</span></h1>
|
|||
|
</div>
|
|||
|
<div class="span6">
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['otchgods']->value)){?>
|
|||
|
<h3><span class="tooltips" data-trigger="hover" data-original-title="Отчетный период: <?php echo $_smarty_tpl->tpl_vars['otchgods']->value['descrip'];?>
|
|||
|
"><?php echo $_smarty_tpl->tpl_vars['otchgods']->value['name'];?>
|
|||
|
</span> <span class="text-success"><?php echo date('d.m.Y',$_smarty_tpl->tpl_vars['otchgods']->value['data_s1']);?>
|
|||
|
</span>-<span class="text-success"><?php echo date('d.m.Y',$_smarty_tpl->tpl_vars['otchgods']->value['data_s2']);?>
|
|||
|
</span></h3>
|
|||
|
<?php }else{ ?>
|
|||
|
<div class="alert alert-error"><strong>Не установлен отчетный период!</strong> Администратор отключил заполнение анкеты, для подсчета баллов</div>
|
|||
|
<?php }?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<!--div class="alert alert-error"><button class="close" data-dismiss="alert">×</button><strong>Внимание!</strong> Система в режиме тестирования(данные скорее всего удалятся). Вы можете попробовать использовать систему и написать свой отзыв на it@mkgtu.ru. Это поможет сделать систему более удобной.<!--<pre><?php echo print_r($_smarty_tpl->tpl_vars['chjs']->value);?>
|
|||
|
</pre>></div-->
|
|||
|
<div class="alert alert-warning"><strong>Данные из расчета часов!</strong> <?php $_smarty_tpl->tpl_vars['dan'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['dan']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['chjs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['dan']->key => $_smarty_tpl->tpl_vars['dan']->value){
|
|||
|
$_smarty_tpl->tpl_vars['dan']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['dan']->key;
|
|||
|
?><?php $_smarty_tpl->tpl_vars['dan1'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['dan1']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k1'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['dan']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['dan1']->key => $_smarty_tpl->tpl_vars['dan1']->value){
|
|||
|
$_smarty_tpl->tpl_vars['dan1']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k1']->value = $_smarty_tpl->tpl_vars['dan1']->key;
|
|||
|
?>
|
|||
|
<br>
|
|||
|
<?php if (isset($_smarty_tpl->tpl_vars['dan1']->value['dan']['stavnumer'])){?>
|
|||
|
доля занимаемой ставки НПР "<?php echo $_smarty_tpl->tpl_vars['k1']->value;?>
|
|||
|
" <u><?php echo $_smarty_tpl->tpl_vars['dan1']->value['dan']['stavnumer'];?>
|
|||
|
</u><br>
|
|||
|
общий объем годовой нагрузки "<?php echo $_smarty_tpl->tpl_vars['k1']->value;?>
|
|||
|
" <u><?php echo 1560*$_smarty_tpl->tpl_vars['dan1']->value['dan']['stavnumer'];?>
|
|||
|
</u><br>
|
|||
|
годовой объем учебной нагрузки "<?php echo $_smarty_tpl->tpl_vars['k1']->value;?>
|
|||
|
" <u><?php echo $_smarty_tpl->tpl_vars['dan1']->value['vsego'];?>
|
|||
|
</u><br>
|
|||
|
годовой объем внеучебной нагрузки "<?php echo $_smarty_tpl->tpl_vars['k1']->value;?>
|
|||
|
" <u><?php echo 1560*$_smarty_tpl->tpl_vars['dan1']->value['dan']['stavnumer']-$_smarty_tpl->tpl_vars['dan1']->value['vsego'];?>
|
|||
|
</u>
|
|||
|
<?php }?>
|
|||
|
<?php } ?><?php } ?></div>
|
|||
|
<hr>
|
|||
|
|
|||
|
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['rejteu']->value==0){?>
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['otchgods']->value)&&$_smarty_tpl->tpl_vars['otchgods']->value['konec']==1){?>
|
|||
|
<h3 align="center">Работа Эффективного контракта временно приостановлена!</h3>
|
|||
|
<h4 align="center">Для заведующего кафедрой, доступна возможность редактировать рейтинг сотрудников</h4>
|
|||
|
|
|||
|
<table class="table">
|
|||
|
<thead><tr><th>№</th><th>ФИО</th><th>Должность</th><th>Степень</th><th>Звание</th><th>-</th></tr></thead>
|
|||
|
<tbody>
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['users_kaf']->value)){?>
|
|||
|
<?php $_smarty_tpl->tpl_vars['us'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['us']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['users_kaf']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['us']->key => $_smarty_tpl->tpl_vars['us']->value){
|
|||
|
$_smarty_tpl->tpl_vars['us']->_loop = true;
|
|||
|
?>
|
|||
|
<tr><td><?php echo $_smarty_tpl->tpl_vars['us']->value['id'];?>
|
|||
|
</td><td><?php echo $_smarty_tpl->tpl_vars['us']->value['fio'];?>
|
|||
|
</td><td><?php echo $_smarty_tpl->tpl_vars['us']->value['dolgnost'];?>
|
|||
|
</td><td><?php echo $_smarty_tpl->tpl_vars['us']->value['stepen'];?>
|
|||
|
</td><td><?php echo $_smarty_tpl->tpl_vars['us']->value['zvanie'];?>
|
|||
|
</td><td><a href="/rejtnpr/maineu/<?php echo $_smarty_tpl->tpl_vars['us']->value['id'];?>
|
|||
|
/" class="btn btn-warning">Рейтинг НПР</a></td></tr>
|
|||
|
<?php } ?>
|
|||
|
<?php }else{ ?>
|
|||
|
<tr><td colspan="6">Не нашли сотрудников</td></tr>
|
|||
|
<?php }?>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
<?php }?>
|
|||
|
<?php }?>
|
|||
|
<?php if ((count($_smarty_tpl->tpl_vars['otchgods']->value)&&$_smarty_tpl->tpl_vars['otchgods']->value['konec']==0)||($_smarty_tpl->tpl_vars['rejteu']->value!=0)){?>
|
|||
|
<div id="page-wrap">
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<form method="POST" name="form_rejt" id="form_rejt">
|
|||
|
<?php $_smarty_tpl->tpl_vars['it'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['it']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['items']->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;
|
|||
|
?><?php if (count($_smarty_tpl->tpl_vars['it']->value['razdel'])){?>
|
|||
|
<div class="widget purple">
|
|||
|
<div class="widget-title">
|
|||
|
<h4><?php echo $_smarty_tpl->tpl_vars['it']->value['name'];?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['it']->value['descr']!=''){?> <a href="#" class="tooltips" data-trigger="hover" data-original-title="<?php echo $_smarty_tpl->tpl_vars['it']->value['descr'];?>
|
|||
|
"><i class="icon-info-sign"></i></a><?php }?></h4>
|
|||
|
<span class="tools"><a href="javascript:;" class="icon-chevron-up">Свернуть/Развернуть</a></span>
|
|||
|
</div>
|
|||
|
<div class="widget-body" style="display: none;">
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['it']->value['razdel'])){?>
|
|||
|
<h2><?php echo $_smarty_tpl->tpl_vars['it']->value['razdel']['name'];?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['it']->value['razdel']['descr']!=''){?> <a href="#" class="tooltips" data-trigger="hover" data-original-title="<?php echo $_smarty_tpl->tpl_vars['it']->value['razdel']['descr'];?>
|
|||
|
"><i class="icon-info-sign"></i></a><?php }?></h2>
|
|||
|
|
|||
|
<?php $_smarty_tpl->tpl_vars['rd'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['rd']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['it']->value['razdel']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['rd']->key => $_smarty_tpl->tpl_vars['rd']->value){
|
|||
|
$_smarty_tpl->tpl_vars['rd']->_loop = true;
|
|||
|
?>
|
|||
|
|
|||
|
<?php if (!count($_smarty_tpl->tpl_vars['rd']->value['itemspolyas'])){?>
|
|||
|
<table class="table table-striped table-advance table-hover table-mini">
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td style="width:50%;">
|
|||
|
<strong><?php echo $_smarty_tpl->tpl_vars['rd']->value['name'];?>
|
|||
|
</strong>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['rd']->value['descr']!=''){?> <a href="#" class="tooltips" data-trigger="hover" data-original-title="<?php echo $_smarty_tpl->tpl_vars['rd']->value['descr'];?>
|
|||
|
"><i class="icon-info-sign"></i></a><?php }?>
|
|||
|
</td>
|
|||
|
<td style="width:50%;" nowrap>
|
|||
|
<input type="TEXT" name="an[<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
][<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
][]" class="span12 tooltips" data-trigger="hover" data-original-title="Введите значение" value="">
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
<table class="table table-striped table-advance table-hover table-mini">
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td style="width:100%;text-align:right;">
|
|||
|
<span id="pbomes_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
"></span>
|
|||
|
|
|||
|
<a href="#" class="btn btn-success tooltips panels_body_save" id="pbos_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
" data-trigger="hover" data-original-title="Записать в базу данных текущую информацию в блоке"><i class="icon-save"></i></a>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
<?php }else{ ?>
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span6">
|
|||
|
<strong>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['rd']->value['tip']==1){?><a href="#" class="btn btn-primary tooltips panels_buttons_add" id="pba_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
" data-trigger="hover" data-original-title="Добавить поле"><i class="icon-plus"></i></a> <?php }?>
|
|||
|
<?php echo $_smarty_tpl->tpl_vars['rd']->value['name'];?>
|
|||
|
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['rd']->value['descr']!=''){?> <a href="#" class="tooltips" data-trigger="hover" data-original-title="<?php echo $_smarty_tpl->tpl_vars['rd']->value['descr'];?>
|
|||
|
"><i class="icon-info-sign"></i></a><?php }?>
|
|||
|
<span id="pbmes_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
"></span>
|
|||
|
</strong>
|
|||
|
</div>
|
|||
|
<div class="span6 panels_buttons" id="pb_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
">
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['rd']->value['tip']==1){?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['rd']->value['kolsaves']>0){?>
|
|||
|
<?php $_smarty_tpl->tpl_vars['kol'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['kol']->step = 1;$_smarty_tpl->tpl_vars['kol']->total = (int)ceil(($_smarty_tpl->tpl_vars['kol']->step > 0 ? $_smarty_tpl->tpl_vars['rd']->value['kolsaves']+1 - (1) : 1-($_smarty_tpl->tpl_vars['rd']->value['kolsaves'])+1)/abs($_smarty_tpl->tpl_vars['kol']->step));
|
|||
|
if ($_smarty_tpl->tpl_vars['kol']->total > 0){
|
|||
|
for ($_smarty_tpl->tpl_vars['kol']->value = 1, $_smarty_tpl->tpl_vars['kol']->iteration = 1;$_smarty_tpl->tpl_vars['kol']->iteration <= $_smarty_tpl->tpl_vars['kol']->total;$_smarty_tpl->tpl_vars['kol']->value += $_smarty_tpl->tpl_vars['kol']->step, $_smarty_tpl->tpl_vars['kol']->iteration++){
|
|||
|
$_smarty_tpl->tpl_vars['kol']->first = $_smarty_tpl->tpl_vars['kol']->iteration == 1;$_smarty_tpl->tpl_vars['kol']->last = $_smarty_tpl->tpl_vars['kol']->iteration == $_smarty_tpl->tpl_vars['kol']->total;?>
|
|||
|
<a href='#' class='btn <?php if ($_smarty_tpl->tpl_vars['kol']->value==1){?>btn-info<?php }else{ ?>btn-info1<?php }?> panels_buttons_item' id='pbni_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['kol']->value;?>
|
|||
|
'><?php echo $_smarty_tpl->tpl_vars['kol']->value;?>
|
|||
|
</a>
|
|||
|
<?php }} ?>
|
|||
|
<?php }else{ ?>
|
|||
|
<a href='#' class='btn btn-info panels_buttons_item' id='pbni_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
_1'>1</a>
|
|||
|
<?php }?>
|
|||
|
<?php }?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="panels_body" id="pbb_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
">
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['rd']->value['kolsaves']>0){?>
|
|||
|
<?php $_smarty_tpl->tpl_vars['kol'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['kol']->step = 1;$_smarty_tpl->tpl_vars['kol']->total = (int)ceil(($_smarty_tpl->tpl_vars['kol']->step > 0 ? $_smarty_tpl->tpl_vars['rd']->value['kolsaves']+1 - (1) : 1-($_smarty_tpl->tpl_vars['rd']->value['kolsaves'])+1)/abs($_smarty_tpl->tpl_vars['kol']->step));
|
|||
|
if ($_smarty_tpl->tpl_vars['kol']->total > 0){
|
|||
|
for ($_smarty_tpl->tpl_vars['kol']->value = 1, $_smarty_tpl->tpl_vars['kol']->iteration = 1;$_smarty_tpl->tpl_vars['kol']->iteration <= $_smarty_tpl->tpl_vars['kol']->total;$_smarty_tpl->tpl_vars['kol']->value += $_smarty_tpl->tpl_vars['kol']->step, $_smarty_tpl->tpl_vars['kol']->iteration++){
|
|||
|
$_smarty_tpl->tpl_vars['kol']->first = $_smarty_tpl->tpl_vars['kol']->iteration == 1;$_smarty_tpl->tpl_vars['kol']->last = $_smarty_tpl->tpl_vars['kol']->iteration == $_smarty_tpl->tpl_vars['kol']->total;?>
|
|||
|
<div class="row-fluid" id="pbi_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['kol']->value;?>
|
|||
|
" <?php if ($_smarty_tpl->tpl_vars['kol']->value!=1){?>style="display:none;"<?php }?>><div class="span12">
|
|||
|
<?php $_smarty_tpl->tpl_vars['ip'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ip']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['rd']->value['itemspolyas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['ip']->key => $_smarty_tpl->tpl_vars['ip']->value){
|
|||
|
$_smarty_tpl->tpl_vars['ip']->_loop = true;
|
|||
|
?>
|
|||
|
<table class="table table-striped table-advance table-hover table-mini">
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td style="width:50%;text-align:right;padding-right:10px;"><?php echo $_smarty_tpl->tpl_vars['ip']->value['name'];?>
|
|||
|
</td>
|
|||
|
<td style="width:50%;" nowrap>
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['ip']->value['polyas'])>1){?>
|
|||
|
<select name="an[<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
][<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
][<?php echo $_smarty_tpl->tpl_vars['ip']->value['id'];?>
|
|||
|
][]" class="span12 tooltips" data-trigger="hover" data-original-title="Данные сохранили <?php echo date('H:i d.m.Y',$_smarty_tpl->tpl_vars['ip']->value['saves'][$_smarty_tpl->tpl_vars['kol']->value]['data_c']);?>
|
|||
|
">
|
|||
|
<option value="0">Выберите</option>
|
|||
|
<?php $_smarty_tpl->tpl_vars['pl'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pl']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['ip']->value['polyas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['pl']->key => $_smarty_tpl->tpl_vars['pl']->value){
|
|||
|
$_smarty_tpl->tpl_vars['pl']->_loop = true;
|
|||
|
?>
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['pl']->value['id'];?>
|
|||
|
|<?php echo $_smarty_tpl->tpl_vars['pl']->value['value'];?>
|
|||
|
"<?php if ($_smarty_tpl->tpl_vars['ip']->value['saves'][$_smarty_tpl->tpl_vars['kol']->value]['id_polyas']==$_smarty_tpl->tpl_vars['pl']->value['id']){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['pl']->value['name'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
<?php }else{ ?>
|
|||
|
<input type="TEXT" name="an[<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
][<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
][<?php echo $_smarty_tpl->tpl_vars['ip']->value['id'];?>
|
|||
|
][]" class="span12 tooltips" data-trigger="hover" data-original-title="Данные сохранили <?php echo date('H:i d.m.Y',$_smarty_tpl->tpl_vars['ip']->value['saves'][$_smarty_tpl->tpl_vars['kol']->value]['data_c']);?>
|
|||
|
" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ip']->value['saves'][$_smarty_tpl->tpl_vars['kol']->value]['value'], ENT_QUOTES, 'UTF-8', true);?>
|
|||
|
"<?php if ($_smarty_tpl->tpl_vars['rd']->value['edit']==false){?> disabled<?php }?>>
|
|||
|
<?php }?>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
<?php } ?>
|
|||
|
<table class="table table-striped table-advance table-hover table-mini">
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td style="width:100%;text-align:right;padding-right:10px;">
|
|||
|
<span id="pbomes_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['kol']->value;?>
|
|||
|
">Баллов: <?php echo $_smarty_tpl->tpl_vars['rd']->value['formuls']['itogo'];?>
|
|||
|
, текущая запись: <?php echo $_smarty_tpl->tpl_vars['rd']->value['formuls'][$_smarty_tpl->tpl_vars['kol']->value-1];?>
|
|||
|
</span>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['rd']->value['tip']==1){?><a href="#" class="btn btn-danger tooltips panels_body_dele" id="pbod_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['kol']->value;?>
|
|||
|
" data-trigger="hover" data-original-title="Удалить из базы данных текущую информацию в блоке"><i class="icon-trash"></i></a> <?php }?>
|
|||
|
<a href="#" class="btn btn-success tooltips panels_body_save" id="pbos_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['kol']->value;?>
|
|||
|
" data-trigger="hover" data-original-title="Записать в базу данных текущую информацию в блоке"><i class="icon-save"></i></a>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
</div></div>
|
|||
|
<?php }} ?>
|
|||
|
<?php }else{ ?>
|
|||
|
<div class="row-fluid" id="pbi_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
_1"><div class="span12">
|
|||
|
<?php $_smarty_tpl->tpl_vars['ip'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ip']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['rd']->value['itemspolyas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['ip']->key => $_smarty_tpl->tpl_vars['ip']->value){
|
|||
|
$_smarty_tpl->tpl_vars['ip']->_loop = true;
|
|||
|
?>
|
|||
|
<table class="table table-striped table-advance table-hover table-mini">
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td style="width:50%;text-align:right;padding-right:10px;"><?php echo $_smarty_tpl->tpl_vars['ip']->value['name'];?>
|
|||
|
</td>
|
|||
|
<td style="width:50%;" nowrap>
|
|||
|
<?php if (count($_smarty_tpl->tpl_vars['ip']->value['polyas'])>1){?>
|
|||
|
<select name="an[<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
][<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
][<?php echo $_smarty_tpl->tpl_vars['ip']->value['id'];?>
|
|||
|
][]" class="span12 tooltips" data-trigger="hover" data-original-title="Выберите значение">
|
|||
|
<option value="0">Выберите</option>
|
|||
|
<?php $_smarty_tpl->tpl_vars['pl'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pl']->_loop = false;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['ip']->value['polyas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['pl']->key => $_smarty_tpl->tpl_vars['pl']->value){
|
|||
|
$_smarty_tpl->tpl_vars['pl']->_loop = true;
|
|||
|
?>
|
|||
|
<option value="<?php echo $_smarty_tpl->tpl_vars['pl']->value['id'];?>
|
|||
|
|<?php echo $_smarty_tpl->tpl_vars['pl']->value['value'];?>
|
|||
|
"><?php echo $_smarty_tpl->tpl_vars['pl']->value['name'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
<?php }else{ ?>
|
|||
|
<input type="TEXT" name="an[<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
][<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
][<?php echo $_smarty_tpl->tpl_vars['ip']->value['id'];?>
|
|||
|
][]" class="span12 tooltips" data-trigger="hover" data-original-title="Введите значение" value="<?php if (isset($_smarty_tpl->tpl_vars['rd']->value['formuls2']['itogo'])){?><?php echo $_smarty_tpl->tpl_vars['rd']->value['formuls2']['itogo'];?>
|
|||
|
<?php }?>"<?php if ($_smarty_tpl->tpl_vars['rd']->value['edit']==false){?> disabled<?php }?>>
|
|||
|
<?php }?>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
<?php } ?>
|
|||
|
<table class="table table-striped table-advance table-hover table-mini">
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td style="width:100%;text-align:right;">
|
|||
|
<span id="pbomes_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
_1"></span>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['rd']->value['tip']==1){?><a href="#" class="btn btn-danger tooltips panels_body_dele" id="pbod_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
_1" data-trigger="hover" data-original-title="Удалить из базы данных текущую информацию в блоке"><i class="icon-trash"></i></a> <?php }?>
|
|||
|
<a href="#" class="btn btn-success tooltips panels_body_save" id="pbos_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
_1" data-trigger="hover" data-original-title="Записать в базу данных текущую информацию в блоке"><i class="icon-save"></i></a>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
</div></div>
|
|||
|
<?php }?>
|
|||
|
</div>
|
|||
|
<?php }?>
|
|||
|
<hr>
|
|||
|
<?php } ?>
|
|||
|
|
|||
|
<?php }?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php }?><?php } ?>
|
|||
|
</form>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php }?>
|
|||
|
<script>$(document).ready(function(){
|
|||
|
$(".panels_buttons_add").click(function(){
|
|||
|
var id = $(this).attr("id").split("_");
|
|||
|
//console.log(id);
|
|||
|
var num=$("#pb_"+id[1]+"_"+id[2]+".panels_buttons").find("a").length + 1;
|
|||
|
var formdata = $("#form_rejt").serialize();
|
|||
|
$.ajax({
|
|||
|
url: '/json.php',dataType:'json',type:'POST',async:false,data:'ajdes=rejtnpr_pba&r='+id[1]+'&i='+id[2]+'&num='+num+'&'+formdata,
|
|||
|
success: function(data){
|
|||
|
$("#pbb_"+id[1]+"_"+id[2]+".panels_body").find("div.row-fluid").hide();
|
|||
|
$("#pb_"+id[1]+"_"+id[2]+".panels_buttons").find("a").removeClass("btn-info").addClass("btn-info1");
|
|||
|
|
|||
|
$("#pb_"+id[1]+"_"+id[2]+".panels_buttons").append("<a href='#' class='btn btn-info panels_buttons_item' id='pbni_"+id[1]+"_"+id[2]+"_"+num+"'>"+num+"</a> ");
|
|||
|
$("#pbb_"+id[1]+"_"+id[2]+".panels_body").append("<div class='row-fluid' id='pbi_"+id[1]+"_"+id[2]+"_"+num+"'><div class='span12'>"+data.html+"</div></div>");
|
|||
|
|
|||
|
$("#pbi_"+id[1]+"_"+id[2]+"_"+num).show();
|
|||
|
$("#pbmes_"+id[1]+"_"+id[2]).html(data.debug);
|
|||
|
}
|
|||
|
});
|
|||
|
return false;
|
|||
|
});
|
|||
|
|
|||
|
$(document).on("click", ".panels_body_dele", function(){
|
|||
|
var id =$(this).attr("id").split("_");
|
|||
|
$.ajax({
|
|||
|
url: '/json.php',dataType:'json',type:'POST',async:false,data:'ajdes=rejtnpr_dele&r='+id[1]+'&i='+id[2]+'&num='+id[3],
|
|||
|
success: function(data){
|
|||
|
$("#pbmes_"+id[1]+"_"+id[2]).html(data.info);
|
|||
|
$("#pbni_"+id[1]+"_"+id[2]+"_"+id[3]).remove();
|
|||
|
$("#pbi_"+id[1]+"_"+id[2]+"_"+id[3]).remove();
|
|||
|
$("#pbni_"+id[1]+"_"+id[2]+"_"+(id[3]-1)).removeClass("btn-info1").addClass("btn-info");
|
|||
|
$("#pbi_"+id[1]+"_"+id[2]+"_"+(id[3]-1)).show();
|
|||
|
}
|
|||
|
});
|
|||
|
return false;
|
|||
|
});
|
|||
|
$(document).on("click", ".panels_body_save", function(){
|
|||
|
var id =$(this).attr("id").split("_");
|
|||
|
var formdata = $("#form_rejt").serialize();
|
|||
|
$.ajax({
|
|||
|
url: '/json.php',dataType:'json',type:'POST',async:false,data:'ajdes=rejtnpr_save&r='+id[1]+'&i='+id[2]+'&num='+id[3]+'&'+formdata,
|
|||
|
success: function(data){
|
|||
|
$("#pbomes_"+id[1]+"_"+id[2]+"_"+id[3]).html(data.info);
|
|||
|
}
|
|||
|
});
|
|||
|
return false;
|
|||
|
});
|
|||
|
$(document).on("click", ".panels_buttons_item", function(){
|
|||
|
var id =$(this).attr("id").split("_");
|
|||
|
$("#pbb_"+id[1]+"_"+id[2]+".panels_body").find("div.row-fluid").hide();
|
|||
|
$("#pb_"+id[1]+"_"+id[2]+".panels_buttons").find("a").removeClass("btn-info").addClass("btn-info1");
|
|||
|
$("#pbni_"+id[1]+"_"+id[2]+"_"+id[3]).removeClass("btn-info1").addClass("btn-info");
|
|||
|
$("#pbi_"+id[1]+"_"+id[2]+"_"+id[3]).show();
|
|||
|
return false;
|
|||
|
});
|
|||
|
});</script>
|
|||
|
|
|||
|
<?php }} ?>
|