EIOS/inc/smarty/templates_c/f12572564b1e9b2a1ad03e58577...

381 lines
22 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-04-18 10:55:55
compiled from "tpl/tpl_rejtnr_anketa.html" */ ?>
<?php /*%%SmartyHeaderCode:1783225917625d198b604a87-16585045%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'f12572564b1e9b2a1ad03e585776c107e8c47eef' =>
array (
0 => 'tpl/tpl_rejtnr_anketa.html',
1 => 1623765356,
2 => 'file',
),
),
'nocache_hash' => '1783225917625d198b604a87-16585045',
'function' =>
array (
),
'variables' =>
array (
'otchgods' => 0,
'items' => 0,
'it' => 0,
'rd' => 0,
'kol' => 0,
'ip' => 0,
'pl' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_625d198b6a0568_06467634',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_625d198b6a0568_06467634')) {function content_625d198b6a0568_06467634($_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. Это поможет сделать систему более удобной.</div-->
<hr>
<?php if (count($_smarty_tpl->tpl_vars['otchgods']->value)&&$_smarty_tpl->tpl_vars['otchgods']->value['konec']==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']!=''){?>&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%;">
<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 }else{ ?>
<?php if ($_smarty_tpl->tpl_vars['otchgods']->value['konec']==1){?>
<h3>Закончилось время заполнения! Необходимо было заполнять до <?php echo date('H:i:s d.m.Y',$_smarty_tpl->tpl_vars['otchgods']->value['data_s2']);?>
</h3>
<?php }else{ ?>
<h3>Нет данных для отображения</h3>
<?php }?>
<?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=rejtnr_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=rejtnr_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=rejtnr_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 }} ?>