EIOS/inc/smarty/templates_c/935b15d1f6b7345190c7de0088f...

439 lines
25 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php /* Smarty version Smarty-3.1.13, created on 2022-06-06 14:21:56
compiled from "tpl/tpl_rejtdek_anketa.html" */ ?>
<?php /*%%SmartyHeaderCode:1997066458629de35407de46-23360313%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'935b15d1f6b7345190c7de0088f8151c8ce87d0e' =>
array (
0 => 'tpl/tpl_rejtdek_anketa.html',
1 => 1591363291,
2 => 'file',
),
),
'nocache_hash' => '1997066458629de35407de46-23360313',
'function' =>
array (
),
'variables' =>
array (
'BALLS' => 0,
'otchgods' => 0,
'user' => 0,
'teachers' => 0,
'kafedra' => 0,
'teacher' => 0,
'items' => 0,
'it' => 0,
'rd' => 0,
'kol' => 0,
'ip' => 0,
'pl' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_629de354157dd9_06526485',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_629de354157dd9_06526485')) {function content_629de354157dd9_06526485($_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> <span style="font-size:18px;">Всего баллов:<?php echo $_smarty_tpl->tpl_vars['BALLS']->value;?>
</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. Это поможет сделать систему более удобной.</div-->
<hr>
<?php if (count($_smarty_tpl->tpl_vars['otchgods']->value)){?>
<div id="page-wrap">
<div class="row-fluid">
<div class="span12">
<div class="widget red">
<div class="widget-title">
<h4>Список НПР факультета "<?php echo $_smarty_tpl->tpl_vars['user']->value['teacher']['fakultet'];?>
"</h4>
<span class="tools"><a href="javascript:;" class="icon-chevron-up">Свернуть/Развернуть</a></span>
</div>
<div class="widget-body" style="display: none;">
<table class="table table-hover table-bordered">
<thead><tr>
<th rowspan="2">Активность</th>
<th rowspan="2">ФИО</th>
<th colspan="4" style="text-align:center;">Баллов</th>
</tr><tr>
<th style="text-align:center;">Образов.</th>
<th style="text-align:center;">Научная</th>
<th style="text-align:center;">Воспит.</th>
<th style="text-align:center;">Итого</th>
</tr></thead>
<tbody>
<?php $_smarty_tpl->tpl_vars["kafedra"] = new Smarty_variable("не определена", null, 0);?>
<?php $_smarty_tpl->tpl_vars['teacher'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['teacher']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['teachers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['teacher']->key => $_smarty_tpl->tpl_vars['teacher']->value){
$_smarty_tpl->tpl_vars['teacher']->_loop = true;
?>
<?php if ($_smarty_tpl->tpl_vars['kafedra']->value!=$_smarty_tpl->tpl_vars['teacher']->value['kafedra']){?>
<?php $_smarty_tpl->tpl_vars["kafedra"] = new Smarty_variable($_smarty_tpl->tpl_vars['teacher']->value['kafedra'], null, 0);?>
<tr><td colspan="6"><?php if ($_smarty_tpl->tpl_vars['kafedra']->value==''){?><strong class="text-error">не определена</strong><?php }else{ ?><strong><?php echo $_smarty_tpl->tpl_vars['kafedra']->value;?>
</strong><?php }?></td></tr>
<?php }?>
<tr>
<td><?php echo date('H:i d.m.Y',$_smarty_tpl->tpl_vars['teacher']->value['data_u']);?>
</td>
<td><a href="#" class="tooltips" data-trigger="hover" data-original-title="Звание:<?php echo $_smarty_tpl->tpl_vars['teacher']->value['zvanie'];?>
; Должность:<?php echo $_smarty_tpl->tpl_vars['teacher']->value['dolgnost'];?>
; Степень:<?php echo $_smarty_tpl->tpl_vars['teacher']->value['stepen'];?>
;"><i class="icon-info-sign"></i></a>&nbsp;<?php echo $_smarty_tpl->tpl_vars['teacher']->value['fio'];?>
</td>
<td style="text-align:right;"><?php if ($_smarty_tpl->tpl_vars['teacher']->value['ball1']!=''){?><?php echo round($_smarty_tpl->tpl_vars['teacher']->value['ball1'],2);?>
<?php }else{ ?><span class="muted">0</span><?php }?></td>
<td style="text-align:right;"><?php if ($_smarty_tpl->tpl_vars['teacher']->value['ball2']!=''){?><?php echo round($_smarty_tpl->tpl_vars['teacher']->value['ball2'],2);?>
<?php }else{ ?><span class="muted">0</span><?php }?></td>
<td style="text-align:right;"><?php if ($_smarty_tpl->tpl_vars['teacher']->value['ball3']!=''){?><?php echo round($_smarty_tpl->tpl_vars['teacher']->value['ball3'],2);?>
<?php }else{ ?><span class="muted">0</span><?php }?></td>
<td style="text-align:right;"><?php if ($_smarty_tpl->tpl_vars['teacher']->value['ball']!=0){?><strong><?php echo round($_smarty_tpl->tpl_vars['teacher']->value['ball'],2);?>
</strong><?php }else{ ?><span class="text-error">0</span><?php }?></td>
</tr>
<?php } ?>
</tbody></table>
</div>
</div>
</div>
</div>
</div>
<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 red">
<div class="widget-title">
<h4><?php echo $_smarty_tpl->tpl_vars['it']->value['name'];?>
<?php if ($_smarty_tpl->tpl_vars['it']->value['descr']!=''){?>&nbsp;<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']!=''){?>&nbsp;<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%;text-align:right;">
<strong><?php echo $_smarty_tpl->tpl_vars['rd']->value['name'];?>
</strong>
<?php if ($_smarty_tpl->tpl_vars['rd']->value['descr']!=''){?>&nbsp;<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>
&nbsp;&nbsp;&nbsp;&nbsp;
<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>&nbsp;<?php }?>
<?php echo $_smarty_tpl->tpl_vars['rd']->value['name'];?>
<?php if ($_smarty_tpl->tpl_vars['rd']->value['descr']!=''){?>&nbsp;<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>&nbsp;
<?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>&nbsp;
<?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];?>
&nbsp;</span>
&nbsp;&nbsp;&nbsp;&nbsp;<?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>&nbsp;&nbsp;&nbsp;&nbsp;<?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>
&nbsp;&nbsp;&nbsp;&nbsp;<?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>&nbsp;&nbsp;&nbsp;&nbsp;<?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=rejtdek_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>&nbsp;");
$("#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=rejtdek_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=rejtdek_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;
});
function f(){
$.ajax({url: '/json.php', dataType:'json', type:'POST', async:false, data: 'ajdes=empty_post',success: function(data){}});
}
setInterval(f, 150000);
});</script>
<?php }} ?>