465 lines
27 KiB
PHP
465 lines
27 KiB
PHP
|
<?php /* Smarty version Smarty-3.1.13, created on 2022-04-18 10:56:07
|
|||
|
compiled from "tpl/tpl_rejt_anketa.html" */ ?>
|
|||
|
<?php /*%%SmartyHeaderCode:1521365984625d1997d53757-16831442%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|||
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|||
|
'file_dependency' =>
|
|||
|
array (
|
|||
|
'6b5d28243df0d535674ab3f8892f40b7d1e12f06' =>
|
|||
|
array (
|
|||
|
0 => 'tpl/tpl_rejt_anketa.html',
|
|||
|
1 => 1622535003,
|
|||
|
2 => 'file',
|
|||
|
),
|
|||
|
),
|
|||
|
'nocache_hash' => '1521365984625d1997d53757-16831442',
|
|||
|
'function' =>
|
|||
|
array (
|
|||
|
),
|
|||
|
'variables' =>
|
|||
|
array (
|
|||
|
'BALLS' => 0,
|
|||
|
'otchgods' => 0,
|
|||
|
'rejteu' => 0,
|
|||
|
'users_kaf' => 0,
|
|||
|
'us' => 0,
|
|||
|
'items' => 0,
|
|||
|
'it' => 0,
|
|||
|
'rd' => 0,
|
|||
|
'user' => 0,
|
|||
|
'kol' => 0,
|
|||
|
'ip' => 0,
|
|||
|
'pl' => 0,
|
|||
|
'zkedit' => 0,
|
|||
|
),
|
|||
|
'has_nocache_code' => false,
|
|||
|
'version' => 'Smarty-3.1.13',
|
|||
|
'unifunc' => 'content_625d1997e0b372_89046008',
|
|||
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|||
|
<?php if ($_valid && !is_callable('content_625d1997e0b372_89046008')) {function content_625d1997e0b372_89046008($_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;">Всего баллов:<?php echo round($_smarty_tpl->tpl_vars['BALLS']->value,2);?>
|
|||
|
</span> <a href="/rejt/xlsx/" class="btn btn-sm btn-warning tooltips" data-trigger="hover" data-original-title="Скачать файл рейтинга">XLS</a></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. Это поможет сделать систему более удобной.</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="/rejt/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" enctype="multipart/form-data">
|
|||
|
<?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;
|
|||
|
?>
|
|||
|
<div class="widget green">
|
|||
|
<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="<?php if ($_smarty_tpl->tpl_vars['rd']->value['name']=='Ф.И.О. преподавателя'){?><?php echo $_smarty_tpl->tpl_vars['user']->value['fio'];?>
|
|||
|
<?php }?>">
|
|||
|
</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']!=0){?><?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 }else{ ?><?php if ($_smarty_tpl->tpl_vars['ip']->value['saves'][$_smarty_tpl->tpl_vars['kol']->value]['value']==$_smarty_tpl->tpl_vars['pl']->value['value']){?> SELECTED<?php }?><?php }?>><?php echo $_smarty_tpl->tpl_vars['pl']->value['name'];?>
|
|||
|
</option>
|
|||
|
<?php } ?>
|
|||
|
</select>
|
|||
|
<?php }else{ ?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['ip']->value['value']=="file"){?>
|
|||
|
<input type="file" 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="span6 tooltips files_<?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;?>
|
|||
|
" id="files_<?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['ip']->value['id'];?>
|
|||
|
" data-trigger="hover" data-original-title="Файл не более 500 Кб">
|
|||
|
<span class="span6" id="filesrez_<?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['ip']->value['id'];?>
|
|||
|
"><?php if ($_smarty_tpl->tpl_vars['ip']->value['saves'][$_smarty_tpl->tpl_vars['kol']->value]['value']!=''){?>
|
|||
|
Файл: <a href="<?php echo $_smarty_tpl->tpl_vars['ip']->value['saves'][$_smarty_tpl->tpl_vars['kol']->value]['value'];?>
|
|||
|
" target="_blank">Скачать</a>
|
|||
|
<?php }?></span>
|
|||
|
<?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 }?>
|
|||
|
<?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'];?>
|
|||
|
_<?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{ ?>
|
|||
|
<?php if ($_smarty_tpl->tpl_vars['ip']->value['value']=="file"){?>
|
|||
|
<input type="file" 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="span6 tooltips" data-trigger="hover" data-original-title="Файл не более 500 Кб">
|
|||
|
<span class="span6" id="filesrez_<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
|
|||
|
_<?php echo $_smarty_tpl->tpl_vars['rd']->value['id'];?>
|
|||
|
_0_<?php echo $_smarty_tpl->tpl_vars['ip']->value['id'];?>
|
|||
|
"></span>
|
|||
|
<?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 }?>
|
|||
|
<?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 } ?>
|
|||
|
<input type="HIDDEN" name="zkedit" id="zkedit" value="<?php echo $_smarty_tpl->tpl_vars['zkedit']->value;?>
|
|||
|
">
|
|||
|
</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=rejt_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=rejt_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 zkedit = $("#zkedit").val();
|
|||
|
var formdata = $("#form_rejt").serialize(); //console.log(formdata);
|
|||
|
$.ajax({
|
|||
|
url: '/json.php',dataType:'json',async:false,data:'ajdes=rejt_save&zkedit='+zkedit+'&r='+id[1]+'&i='+id[2]+'&num='+id[3]+'&'+formdata,
|
|||
|
processData: false,type:'POST',success: function(data){
|
|||
|
$("#pbomes_"+id[1]+"_"+id[2]+"_"+id[3]).html(data.info);
|
|||
|
}
|
|||
|
});
|
|||
|
//$('.files_'+id[1]+'_'+id[2]+'_'+id[3]) - это все классы полей с файлами для данной вкладки
|
|||
|
//внтури них есть поля где указывать файлы
|
|||
|
var form = document.forms.namedItem("form_rejt");
|
|||
|
oData = new FormData(form);
|
|||
|
oData.append("ajdes", "rejt_save_files");
|
|||
|
oData.append("r", id[1]);
|
|||
|
oData.append("i", id[2]);
|
|||
|
oData.append("num", id[3]);
|
|||
|
var oReq = new XMLHttpRequest();
|
|||
|
oReq.open("POST", "/json.php", true);
|
|||
|
oReq.onload = function(oEvent) {
|
|||
|
if (oReq.status == 200) {
|
|||
|
//$("#pbomes_"+id[1]+"_"+id[2]+"_"+id[3]).html('ok');//<span id="pbomes_2_5_2"
|
|||
|
//id="filesrez_2_5_2_93">
|
|||
|
$('[id^="filesrez_'+id[1]+'_'+id[2]+'_'+id[3]+'_"]').text('загрузили');
|
|||
|
} else {
|
|||
|
//$("#pbomes_"+id[1]+"_"+id[2]+"_"+id[3]).html('no');
|
|||
|
$('[id^="filesrez_'+id[1]+'_'+id[2]+'_'+id[3]+'_"]').text('не загрузили');
|
|||
|
}
|
|||
|
};
|
|||
|
oReq.send(oData);
|
|||
|
//ev.preventDefault();
|
|||
|
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;
|
|||
|
});
|
|||
|
|
|||
|
function f(){
|
|||
|
$.ajax({url: '/json.php', dataType:'json', type:'POST', async:false, data: 'ajdes=empty_post',success: function(data){}});
|
|||
|
}
|
|||
|
setInterval(f, 150000);
|
|||
|
});</script>
|
|||
|
|
|||
|
<?php }} ?>
|