EIOS/inc/smarty/templates_c/6b2b577eac7c5d5d81a72b06aa4...

198 lines
9.0 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 13:44:26
compiled from "tpl/tpl_alneo_blog_cat.html" */ ?>
<?php /*%%SmartyHeaderCode:16799499625d410adadbe3-05394409%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'6b2b577eac7c5d5d81a72b06aa4bc7edfbca0525' =>
array (
0 => 'tpl/tpl_alneo_blog_cat.html',
1 => 1392034521,
2 => 'file',
),
),
'nocache_hash' => '16799499625d410adadbe3-05394409',
'function' =>
array (
),
'variables' =>
array (
'page1' => 0,
'regim' => 0,
'form' => 0,
'er' => 0,
'itshow' => 0,
'lc' => 0,
'gr' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_625d410ae01450_48994923',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_625d410ae01450_48994923')) {function content_625d410ae01450_48994923($_smarty_tpl) {?><!-- 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="<?php echo $_smarty_tpl->tpl_vars['page1']->value['url'];?>
">Блог - категории</a></li>
<li><a class="btn btn-warning" href="<?php echo $_smarty_tpl->tpl_vars['page1']->value['url'];?>
add/"><i class="icon-plus icon-white"></i> Добавить</a></li>
</ul>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='show'){?>
<div class="span12">
<div class="row-fluid">
<div class="widget green">
<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 if (count($_smarty_tpl->tpl_vars['form']->value['err'])){?><?php $_smarty_tpl->tpl_vars['er'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['er']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['form']->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['form']->value['msg'])){?>
<div class="alert alert-success">
<button data-dismiss="alert" class="close">×</button>
<strong>Успешно!</strong> <?php echo $_smarty_tpl->tpl_vars['form']->value['msg'];?>
</div>
<?php }?>
<?php if (count($_smarty_tpl->tpl_vars['itshow']->value)){?>
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th><i class="icon-bullhorn"></i> Имя</th>
<th><i class="icon-question-sign"></i> англ.имя</th>
<th><i class="icon-bookmark"></i> поз.</th>
<th><i class=" icon-edit"></i> </th>
<th></th>
</tr>
</thead>
<tbody>
<?php $_smarty_tpl->tpl_vars['lc'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lc']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['itshow']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['lc']->key => $_smarty_tpl->tpl_vars['lc']->value){
$_smarty_tpl->tpl_vars['lc']->_loop = true;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['name'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['alt_name'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['pos'];?>
</td>
<td nowarp>
<a class="btn btn-primary" href="<?php echo $_smarty_tpl->tpl_vars['page1']->value['url'];?>
edit/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-pencil"></i></a>
<a class="btn btn-danger" href="<?php echo $_smarty_tpl->tpl_vars['page1']->value['url'];?>
del/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-trash "></i></a>
</td>
<td></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php }?>
</div>
</div>
</div>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='aded'){?>
<div class="span12">
<div class="widget red">
<div class="widget-title">
<h4><i class="icon-reorder"></i> <?php echo $_smarty_tpl->tpl_vars['form']->value['title'];?>
</h4>
<span class="tools">
<a href="javascript:;" class="icon-chevron-down"></a>
</span>
</div>
<div class="widget-body">
<?php if (count($_smarty_tpl->tpl_vars['form']->value['err'])){?><?php $_smarty_tpl->tpl_vars['er'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['er']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['form']->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 }?>
<form action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
<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['form']->value['p']['name'];?>
" />
</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="Английское название, допустимы только символы англ. алфавита, цифры и знак _ (не более 255 символов)" name="alt_name" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['p']['alt_name'];?>
" />
</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['form']->value['p']['pos'];?>
" />
</div>
</div>
<div class="control-group">
<label class="control-label">Редактор категории</label>
<div class="controls">
<select data-placeholder="Укажите пользователи которые смогут публиковать в разделе записи" class="chzn-select span12" multiple="multiple" tabindex="6" name="b_u[]">
<option value=""></option>
<?php $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['form']->value['p']['users']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['gr']->key => $_smarty_tpl->tpl_vars['gr']->value){
$_smarty_tpl->tpl_vars['gr']->_loop = true;
?>
<option<?php if ($_smarty_tpl->tpl_vars['gr']->value['sel']==1){?> selected<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['gr']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['gr']->value['fio'];?>
</option>
<?php } ?>
</select>
</div>
</div>
<div class="form-actions">
<?php echo $_smarty_tpl->tpl_vars['form']->value['id'];?>
<button type="submit" name="<?php echo $_smarty_tpl->tpl_vars['form']->value['btn_url'];?>
" class="btn btn-success"><?php echo $_smarty_tpl->tpl_vars['form']->value['btn_name'];?>
</button>
</div>
</form>
</div>
</div>
</div>
<?php }?>
</div>
</div>
</div>
<?php }} ?>