464 lines
23 KiB
PHP
464 lines
23 KiB
PHP
<?php /* Smarty version Smarty-3.1.13, created on 2022-12-09 09:56:51
|
||
compiled from "tpl/tpl_trudo_stranket.html" */ ?>
|
||
<?php /*%%SmartyHeaderCode:3211107136392dc33b8a234-75735815%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||
'file_dependency' =>
|
||
array (
|
||
'2f45a84e3deab903d0832d77f7737e435dab1f23' =>
|
||
array (
|
||
0 => 'tpl/tpl_trudo_stranket.html',
|
||
1 => 1392034523,
|
||
2 => 'file',
|
||
),
|
||
),
|
||
'nocache_hash' => '3211107136392dc33b8a234-75735815',
|
||
'function' =>
|
||
array (
|
||
),
|
||
'variables' =>
|
||
array (
|
||
'info' => 0,
|
||
'er' => 0,
|
||
'ft' => 0,
|
||
'ib' => 0,
|
||
'bi' => 0,
|
||
),
|
||
'has_nocache_code' => false,
|
||
'version' => 'Smarty-3.1.13',
|
||
'unifunc' => 'content_6392dc33c28da3_82110929',
|
||
),false); /*/%%SmartyHeaderCode%%*/?>
|
||
<?php if ($_valid && !is_callable('content_6392dc33c28da3_82110929')) {function content_6392dc33c28da3_82110929($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_truncate')) include '/home/admin/web/eios.mkgtu.ru/public_html/inc/smarty/plugins/modifier.truncate.php';
|
||
?><!-- BEGIN PAGE HEADER-->
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<h3 class="page-title">Структура анкет</h3>
|
||
<ul class="breadcrumb">
|
||
<li><a href="/">Главная</a><span class="divider">/</span></li>
|
||
<li class="active"><a href="/trudo/stranket/">Структура анкет</a></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<div class="row-fluid"><!--инфочасть-->
|
||
<div class="span12">
|
||
<div class="row-fluid">
|
||
<div class="widget gray">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> Информация по разделу </h4>
|
||
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
|
||
</div>
|
||
<div class="widget-body">
|
||
<?php echo $_smarty_tpl->tpl_vars['info']->value['descrip'];?>
|
||
|
||
<?php if (count($_smarty_tpl->tpl_vars['info']->value['err'])){?><?php $_smarty_tpl->tpl_vars['er'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['er']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['info']->value['err']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['er']->key => $_smarty_tpl->tpl_vars['er']->value){
|
||
$_smarty_tpl->tpl_vars['er']->_loop = true;
|
||
?>
|
||
<div class="alert alert-error">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>Ошибка!</strong> <?php echo $_smarty_tpl->tpl_vars['er']->value;?>
|
||
|
||
</div>
|
||
<?php } ?><?php }?>
|
||
<?php if (isset($_smarty_tpl->tpl_vars['info']->value['msg'])){?>
|
||
<div class="alert alert-success">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>Успешно!</strong> <?php echo $_smarty_tpl->tpl_vars['info']->value['msg'];?>
|
||
|
||
</div>
|
||
<?php }?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php if ($_smarty_tpl->tpl_vars['info']->value['des']=='add_block'){?>
|
||
<div class="row-fluid"><!--добавление блоков-->
|
||
<div class="span12">
|
||
<div class="row-fluid">
|
||
<div class="widget orange">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> Добавление корневого раздела </h4>
|
||
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
|
||
</div>
|
||
<div class="widget-body"><form method="POST" class="form-horizontal" >
|
||
<div class="control-group">
|
||
<label class="control-label">Название раздела</label>
|
||
<div class="controls">
|
||
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="наименование раздела (не более 255 символов)" name="name" value="" />
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Родитель раздела</label>
|
||
<div class="controls">
|
||
<select name="par">
|
||
<option value="0">Корень</option>
|
||
<?php echo $_smarty_tpl->tpl_vars['info']->value['form']['pars'];?>
|
||
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Тип раздела</label>
|
||
<div class="controls">
|
||
<select name="type">
|
||
<?php $_smarty_tpl->tpl_vars['ft'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ft']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['info']->value['form']['types']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['ft']->key => $_smarty_tpl->tpl_vars['ft']->value){
|
||
$_smarty_tpl->tpl_vars['ft']->_loop = true;
|
||
?>
|
||
<option value="<?php echo $_smarty_tpl->tpl_vars['ft']->value['id'];?>
|
||
"<?php if ($_smarty_tpl->tpl_vars['info']->value['form']['type']==$_smarty_tpl->tpl_vars['ft']->value['id']){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['ft']->value['name'];?>
|
||
</option>
|
||
<?php } ?>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Позиция раздела</label>
|
||
<div class="controls">
|
||
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="расположение раздела в списке" name="pos" value="" />
|
||
</div>
|
||
</div>
|
||
<div class="form-actions">
|
||
<button type="submit" name="add_block" class="btn btn-success">Добавить</button>
|
||
</div>
|
||
</form></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['info']->value['des']=='edit_block'){?>
|
||
<div class="row-fluid"><!--редактирование блоков-->
|
||
<div class="span12">
|
||
<div class="row-fluid">
|
||
<div class="widget blue">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> Редактирование раздела </h4>
|
||
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
|
||
</div>
|
||
<div class="widget-body"><form method="POST" class="form-horizontal" >
|
||
<div class="control-group">
|
||
<label class="control-label">Название раздела</label>
|
||
<div class="controls">
|
||
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="наименование раздела (не более 255 символов)" name="name" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['form']['name'];?>
|
||
" />
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Родитель раздела</label>
|
||
<div class="controls">
|
||
<select name="par">
|
||
<option value="0">Корень</option>
|
||
<?php echo $_smarty_tpl->tpl_vars['info']->value['form']['pars'];?>
|
||
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Тип раздела</label>
|
||
<div class="controls">
|
||
<select name="type">
|
||
<?php $_smarty_tpl->tpl_vars['ft'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ft']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['info']->value['form']['types']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['ft']->key => $_smarty_tpl->tpl_vars['ft']->value){
|
||
$_smarty_tpl->tpl_vars['ft']->_loop = true;
|
||
?>
|
||
<option value="<?php echo $_smarty_tpl->tpl_vars['ft']->value['id'];?>
|
||
"<?php if ($_smarty_tpl->tpl_vars['info']->value['form']['type']==$_smarty_tpl->tpl_vars['ft']->value['id']){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['ft']->value['name'];?>
|
||
</option>
|
||
<?php } ?>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Позиция раздела</label>
|
||
<div class="controls">
|
||
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="расположение раздела в списке" name="pos" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['form']['pos'];?>
|
||
" />
|
||
</div>
|
||
</div>
|
||
<div class="form-actions">
|
||
<input type="HIDDEN" name="id" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['form']['id'];?>
|
||
">
|
||
<button type="submit" name="edit_block" class="btn btn-success">Редактировать</button>
|
||
</div>
|
||
</form></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['info']->value['des']=='delete_block'){?>
|
||
<div class="row-fluid"><!--удаление блоков-->
|
||
<div class="span12">
|
||
<div class="row-fluid">
|
||
<div class="widget red">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> Удаление раздела </h4>
|
||
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
|
||
</div>
|
||
<div class="widget-body"><form method="POST" class="form-horizontal" >
|
||
<div class="control-group">
|
||
<label class="control-label">Название раздела</label>
|
||
<div class="controls"><?php echo $_smarty_tpl->tpl_vars['info']->value['form']['name'];?>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Позиция раздела</label>
|
||
<div class="controls"><?php echo $_smarty_tpl->tpl_vars['info']->value['form']['pos'];?>
|
||
</div>
|
||
</div>
|
||
<div class="form-actions">
|
||
<input type="HIDDEN" name="id" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['form']['id'];?>
|
||
">
|
||
<button type="submit" name="delete_block" class="btn btn-success">Удалить</button>
|
||
</div>
|
||
</form></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['info']->value['des']=='add_item'){?>
|
||
<div class="row-fluid"><!--добавление пунктов в блоки-->
|
||
<div class="span12">
|
||
<div class="row-fluid">
|
||
<div class="widget orange">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> Добавление пункта в блок </h4>
|
||
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
|
||
</div>
|
||
<div class="widget-body"><form method="POST" class="form-horizontal" >
|
||
<div class="control-group">
|
||
<label class="control-label">Название пункта</label>
|
||
<div class="controls">
|
||
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="наименование раздела (не более 255 символов)" name="name" value="" />
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Описание пункта</label>
|
||
<div class="controls">
|
||
<textarea class="span12 tooltips" rows="3" data-trigger="hover" data-original-title="Опишите в кратце о чем пункт" name="descrip"><?php echo $_smarty_tpl->tpl_vars['info']->value['form']['descrip'];?>
|
||
</textarea>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Позиция пункта</label>
|
||
<div class="controls">
|
||
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="расположение пункта в списке" name="pos" value="" />
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Тип раздела</label>
|
||
<div class="controls">
|
||
<select name="type">
|
||
<?php $_smarty_tpl->tpl_vars['ft'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ft']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['info']->value['form']['types']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['ft']->key => $_smarty_tpl->tpl_vars['ft']->value){
|
||
$_smarty_tpl->tpl_vars['ft']->_loop = true;
|
||
?>
|
||
<option value="<?php echo $_smarty_tpl->tpl_vars['ft']->value['id'];?>
|
||
"<?php if ($_smarty_tpl->tpl_vars['info']->value['form']['type']==$_smarty_tpl->tpl_vars['ft']->value['id']){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['ft']->value['name'];?>
|
||
</option>
|
||
<?php } ?>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div class="form-actions">
|
||
<input type="HIDDEN" name="id_block" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['form']['id_block'];?>
|
||
" />
|
||
<button type="submit" name="add_item" class="btn btn-success">Добавить</button>
|
||
</div>
|
||
</form></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['info']->value['des']=='edit_item'){?>
|
||
<div class="row-fluid"><!--редактирование пунктов в блоки-->
|
||
<div class="span12">
|
||
<div class="row-fluid">
|
||
<div class="widget blue">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> Редактирование пункта в блоке </h4>
|
||
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
|
||
</div>
|
||
<div class="widget-body"><form method="POST" class="form-horizontal" >
|
||
<div class="control-group">
|
||
<label class="control-label">Название пункта</label>
|
||
<div class="controls">
|
||
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="наименование раздела (не более 255 символов)" name="name" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['form']['name'];?>
|
||
" />
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Описание пункта</label>
|
||
<div class="controls">
|
||
<textarea class="span12 tooltips" rows="3" data-trigger="hover" data-original-title="Опишите в кратце о чем пункт" name="descrip"><?php echo $_smarty_tpl->tpl_vars['info']->value['form']['descrip'];?>
|
||
</textarea>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Позиция пункта</label>
|
||
<div class="controls">
|
||
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="расположение пункта в списке" name="pos" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['form']['pos'];?>
|
||
" />
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Тип раздела</label>
|
||
<div class="controls">
|
||
<select name="type">
|
||
<?php $_smarty_tpl->tpl_vars['ft'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ft']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['info']->value['form']['types']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['ft']->key => $_smarty_tpl->tpl_vars['ft']->value){
|
||
$_smarty_tpl->tpl_vars['ft']->_loop = true;
|
||
?>
|
||
<option value="<?php echo $_smarty_tpl->tpl_vars['ft']->value['id'];?>
|
||
"<?php if ($_smarty_tpl->tpl_vars['info']->value['form']['type']==$_smarty_tpl->tpl_vars['ft']->value['id']){?> SELECTED<?php }?>><?php echo $_smarty_tpl->tpl_vars['ft']->value['name'];?>
|
||
</option>
|
||
<?php } ?>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div class="form-actions">
|
||
<input type="HIDDEN" name="id_block" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['form']['id_block'];?>
|
||
" />
|
||
<input type="HIDDEN" name="id" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['form']['id'];?>
|
||
" />
|
||
<button type="submit" name="edit_item" class="btn btn-success">Редактировать</button>
|
||
</div>
|
||
</form></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['info']->value['des']=='delete_item'){?>
|
||
<div class="row-fluid"><!--добавление пунктов в блоки-->
|
||
<div class="span12">
|
||
<div class="row-fluid">
|
||
<div class="widget red">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> Удаление пункта из блока </h4>
|
||
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
|
||
</div>
|
||
<div class="widget-body"><form method="POST" class="form-horizontal" >
|
||
<div class="control-group">
|
||
<label class="control-label">Название пункта</label>
|
||
<div class="controls"><?php echo $_smarty_tpl->tpl_vars['info']->value['form']['name'];?>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Описание пункта</label>
|
||
<div class="controls"><?php echo $_smarty_tpl->tpl_vars['info']->value['form']['descrip'];?>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Позиция пункта</label>
|
||
<div class="controls"><?php echo $_smarty_tpl->tpl_vars['info']->value['form']['pos'];?>
|
||
</div>
|
||
</div>
|
||
<div class="form-actions">
|
||
<input type="HIDDEN" name="id_block" value="<?php echo $_smarty_tpl->tpl_vars['info']->value['form']['id_block'];?>
|
||
" />
|
||
<button type="submit" name="delete_item" class="btn btn-success">Удалить</button>
|
||
</div>
|
||
</form></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
<div class="row-fluid"><!--отображение блоков-->
|
||
<div class="span12">
|
||
<div class="row-fluid">
|
||
<div class="widget gray">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> Корень анкеты </h4> <a href="/trudo/stranket/add_block/" class="btn btn-warning"style="margin: 4px 0px 0px 5%;"><i class="icon-plus icon-white"></i> Добавить раздел</a>
|
||
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
|
||
</div>
|
||
<div class="widget-body">
|
||
<p>Анкета разбивается на блоки в которых собранны вопросы по группам. В принципе можно все делать в одном блоке!</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php if (count($_smarty_tpl->tpl_vars['info']->value['blocks'])){?>
|
||
<?php $_smarty_tpl->tpl_vars['ib'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ib']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['info']->value['blocks']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['ib']->key => $_smarty_tpl->tpl_vars['ib']->value){
|
||
$_smarty_tpl->tpl_vars['ib']->_loop = true;
|
||
?>
|
||
<div class="row-fluid"><div class="span12">
|
||
<div class="row-fluid">
|
||
<div class="widget green">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> <?php echo $_smarty_tpl->tpl_vars['ib']->value['name'];?>
|
||
</h4>
|
||
<span class="tools">
|
||
<a href="/trudo/stranket/add_item/<?php echo $_smarty_tpl->tpl_vars['ib']->value['id'];?>
|
||
/" class="btn btn-warning" style="margin: -4px 0px 0px 0px;"><i class="icon-plus icon-white"></i> пункт</a>
|
||
<a href="/trudo/stranket/edit_block/<?php echo $_smarty_tpl->tpl_vars['ib']->value['id'];?>
|
||
/" class="btn btn-primary" style="margin: -4px 0px 0px 0px;"><i class="icon-pencil icon-white"></i> раздел</a>
|
||
<a href="/trudo/stranket/delete_block/<?php echo $_smarty_tpl->tpl_vars['ib']->value['id'];?>
|
||
/" class="btn btn-danger" style="margin: -4px 0px 0px 0px;"><i class="icon-remove icon-white"></i> раздел</a>
|
||
<a href="javascript:;" class="icon-chevron-up"></a></span>
|
||
</div>
|
||
<div class="widget-body" style="display:none;">
|
||
<?php if (count($_smarty_tpl->tpl_vars['ib']->value['items'])){?>
|
||
<div class="tabbable custom-tab tabs-left"><ul class="nav nav-tabs tabs-left">
|
||
<?php $_smarty_tpl->tpl_vars['bi'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['bi']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ib']->value['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['foo']['iteration']=0;
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['bi']->key => $_smarty_tpl->tpl_vars['bi']->value){
|
||
$_smarty_tpl->tpl_vars['bi']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['foo']['iteration']++;
|
||
?>
|
||
<li <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['foo']['iteration']==1){?>class="active"<?php }?>><a href="#tab_1_<?php echo $_smarty_tpl->tpl_vars['bi']->value['id'];?>
|
||
" data-toggle="tab"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['bi']->value['name']);?>
|
||
</a></li>
|
||
<?php } ?>
|
||
</ul>
|
||
<div class="tab-content">
|
||
<?php $_smarty_tpl->tpl_vars['bi'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['bi']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ib']->value['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['foo']['iteration']=0;
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['bi']->key => $_smarty_tpl->tpl_vars['bi']->value){
|
||
$_smarty_tpl->tpl_vars['bi']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['foo']['iteration']++;
|
||
?>
|
||
<div class="tab-pane <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['foo']['iteration']==1){?>active<?php }?>" id="tab_1_<?php echo $_smarty_tpl->tpl_vars['bi']->value['id'];?>
|
||
">
|
||
<p><?php echo $_smarty_tpl->tpl_vars['bi']->value['name'];?>
|
||
</p>
|
||
<p><?php echo $_smarty_tpl->tpl_vars['bi']->value['descrip'];?>
|
||
</p>
|
||
<p>
|
||
<a href="/trudo/stranket/edit_item/<?php echo $_smarty_tpl->tpl_vars['bi']->value['id'];?>
|
||
/" class="btn btn-primary"><i class="icon-pencil icon-white"></i> пункт</a>
|
||
<a href="/trudo/stranket/delete_item/<?php echo $_smarty_tpl->tpl_vars['bi']->value['id'];?>
|
||
/" class="btn btn-danger"><i class="icon-remove icon-white"></i> пункт</a>
|
||
</p>
|
||
</div>
|
||
<?php } ?>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div></div>
|
||
<?php } ?>
|
||
<?php }?>
|
||
</div>
|
||
</div>
|
||
<?php }} ?>
|