EIOS/inc/smarty/templates_c/947f94682663cc520435caaa136...

266 lines
16 KiB
PHP
Raw 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-08-21 22:33:13
compiled from "tpl/tpl_instruction_write.html" */ ?>
<?php /*%%SmartyHeaderCode:139872255263028879732c71-38278847%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'947f94682663cc520435caaa1362057cfc41b4d5' =>
array (
0 => 'tpl/tpl_instruction_write.html',
1 => 1624449477,
2 => 'file',
),
),
'nocache_hash' => '139872255263028879732c71-38278847',
'function' =>
array (
),
'variables' =>
array (
'regim' => 0,
'form' => 0,
'er' => 0,
'blogs' => 0,
'lc' => 0,
'pagination' => 0,
'p' => 0,
'gr' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_6302887979c466_67258568',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6302887979c466_67258568')) {function content_6302887979c466_67258568($_smarty_tpl) {?><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><a href="/help/">Инструкции</a><span class="divider">/</span></li>
<li class="active"><a href="/help/write/">Существующие записи</a></li>
<li><a class="btn btn-warning" href="/help/write/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['blogs']->value)){?>
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th><i class="icon-bullhorn"></i> Даты</th>
<th class="hidden-phone"><i class="icon-question-sign"></i> Раздел</th>
<th><i class="icon-bookmark"></i> Заголовок</th>
<th><i class=" icon-edit"></i> </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['blogs']->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<?php if ($_smarty_tpl->tpl_vars['lc']->value['status']==0){?> style="background:#404040;"<?php }?>>
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['data_c'];?>
<br><?php echo $_smarty_tpl->tpl_vars['lc']->value['data_u'];?>
</td>
<td class="hidden-phone"><?php echo $_smarty_tpl->tpl_vars['lc']->value['category'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['lc']->value['title'];?>
</td>
<td nowrap>
<a class="btn btn-primary" href="/help/write/edit/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-pencil"></i></a>
<?php if ($_smarty_tpl->tpl_vars['lc']->value['status']==0){?><a class="btn btn-success" href="/help/write/aprove/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-thumbs-up-alt "></i></a><?php }?>
<a class="btn btn-danger" href="/help/write/del/<?php echo $_smarty_tpl->tpl_vars['lc']->value['id'];?>
/"><i class="icon-trash "></i></a>
<?php if ($_smarty_tpl->tpl_vars['lc']->value['status']==0){?>помечена на удаление<?php }?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<?php if (isset($_smarty_tpl->tpl_vars['pagination']->value)){?>
<div class="pagination pagination-large">
<ul>
<?php if ($_smarty_tpl->tpl_vars['pagination']->value['kol']<=15){?>
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['p']->step = 1;$_smarty_tpl->tpl_vars['p']->total = (int)ceil(($_smarty_tpl->tpl_vars['p']->step > 0 ? $_smarty_tpl->tpl_vars['pagination']->value['kol']+1 - (1) : 1-($_smarty_tpl->tpl_vars['pagination']->value['kol'])+1)/abs($_smarty_tpl->tpl_vars['p']->step));
if ($_smarty_tpl->tpl_vars['p']->total > 0){
for ($_smarty_tpl->tpl_vars['p']->value = 1, $_smarty_tpl->tpl_vars['p']->iteration = 1;$_smarty_tpl->tpl_vars['p']->iteration <= $_smarty_tpl->tpl_vars['p']->total;$_smarty_tpl->tpl_vars['p']->value += $_smarty_tpl->tpl_vars['p']->step, $_smarty_tpl->tpl_vars['p']->iteration++){
$_smarty_tpl->tpl_vars['p']->first = $_smarty_tpl->tpl_vars['p']->iteration == 1;$_smarty_tpl->tpl_vars['p']->last = $_smarty_tpl->tpl_vars['p']->iteration == $_smarty_tpl->tpl_vars['p']->total;?>
<li><a href="/help/write/p<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
/"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['page']==$_smarty_tpl->tpl_vars['p']->value){?> class=" label-warning"<?php }?>><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
</a></li>
<?php }} ?>
<?php }else{ ?>
<?php if ($_smarty_tpl->tpl_vars['pagination']->value['page']>4){?>
<li><a href="/help/write/p1/">1</a></li>
<li><a href="#">...</a></li>
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['p']->step = 1;$_smarty_tpl->tpl_vars['p']->total = (int)ceil(($_smarty_tpl->tpl_vars['p']->step > 0 ? ($_smarty_tpl->tpl_vars['pagination']->value['page']+3)+1 - (($_smarty_tpl->tpl_vars['pagination']->value['page']-3)) : ($_smarty_tpl->tpl_vars['pagination']->value['page']-3)-(($_smarty_tpl->tpl_vars['pagination']->value['page']+3))+1)/abs($_smarty_tpl->tpl_vars['p']->step));
if ($_smarty_tpl->tpl_vars['p']->total > 0){
for ($_smarty_tpl->tpl_vars['p']->value = ($_smarty_tpl->tpl_vars['pagination']->value['page']-3), $_smarty_tpl->tpl_vars['p']->iteration = 1;$_smarty_tpl->tpl_vars['p']->iteration <= $_smarty_tpl->tpl_vars['p']->total;$_smarty_tpl->tpl_vars['p']->value += $_smarty_tpl->tpl_vars['p']->step, $_smarty_tpl->tpl_vars['p']->iteration++){
$_smarty_tpl->tpl_vars['p']->first = $_smarty_tpl->tpl_vars['p']->iteration == 1;$_smarty_tpl->tpl_vars['p']->last = $_smarty_tpl->tpl_vars['p']->iteration == $_smarty_tpl->tpl_vars['p']->total;?>
<li><a href="/help/write/p<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
/"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['page']==$_smarty_tpl->tpl_vars['p']->value){?> class=" label-warning"<?php }?>><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
</a></li>
<?php }} ?>
<li><a href="#">...</a></li>
<li><a href="/help/write/p<?php echo $_smarty_tpl->tpl_vars['pagination']->value['kol'];?>
/"><?php echo $_smarty_tpl->tpl_vars['pagination']->value['kol'];?>
</a></li>
<?php }else{ ?>
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['p']->step = 1;$_smarty_tpl->tpl_vars['p']->total = (int)ceil(($_smarty_tpl->tpl_vars['p']->step > 0 ? 5+1 - (1) : 1-(5)+1)/abs($_smarty_tpl->tpl_vars['p']->step));
if ($_smarty_tpl->tpl_vars['p']->total > 0){
for ($_smarty_tpl->tpl_vars['p']->value = 1, $_smarty_tpl->tpl_vars['p']->iteration = 1;$_smarty_tpl->tpl_vars['p']->iteration <= $_smarty_tpl->tpl_vars['p']->total;$_smarty_tpl->tpl_vars['p']->value += $_smarty_tpl->tpl_vars['p']->step, $_smarty_tpl->tpl_vars['p']->iteration++){
$_smarty_tpl->tpl_vars['p']->first = $_smarty_tpl->tpl_vars['p']->iteration == 1;$_smarty_tpl->tpl_vars['p']->last = $_smarty_tpl->tpl_vars['p']->iteration == $_smarty_tpl->tpl_vars['p']->total;?>
<li><a href="/help/write/p<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
/"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['page']==$_smarty_tpl->tpl_vars['p']->value){?> class=" label-warning"<?php }?>><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
</a></li>
<?php }} ?>
<li><a href="#">...</a></li>
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['p']->step = 1;$_smarty_tpl->tpl_vars['p']->total = (int)ceil(($_smarty_tpl->tpl_vars['p']->step > 0 ? $_smarty_tpl->tpl_vars['pagination']->value['kol']+1 - (($_smarty_tpl->tpl_vars['pagination']->value['kol']-5)) : ($_smarty_tpl->tpl_vars['pagination']->value['kol']-5)-($_smarty_tpl->tpl_vars['pagination']->value['kol'])+1)/abs($_smarty_tpl->tpl_vars['p']->step));
if ($_smarty_tpl->tpl_vars['p']->total > 0){
for ($_smarty_tpl->tpl_vars['p']->value = ($_smarty_tpl->tpl_vars['pagination']->value['kol']-5), $_smarty_tpl->tpl_vars['p']->iteration = 1;$_smarty_tpl->tpl_vars['p']->iteration <= $_smarty_tpl->tpl_vars['p']->total;$_smarty_tpl->tpl_vars['p']->value += $_smarty_tpl->tpl_vars['p']->step, $_smarty_tpl->tpl_vars['p']->iteration++){
$_smarty_tpl->tpl_vars['p']->first = $_smarty_tpl->tpl_vars['p']->iteration == 1;$_smarty_tpl->tpl_vars['p']->last = $_smarty_tpl->tpl_vars['p']->iteration == $_smarty_tpl->tpl_vars['p']->total;?>
<li><a href="/help/write/p<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
/"<?php if ($_smarty_tpl->tpl_vars['pagination']->value['page']==$_smarty_tpl->tpl_vars['p']->value){?> class=" label-warning"<?php }?>><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
</a></li>
<?php }} ?>
<?php }?>
<?php }?>
</ul>
</div>
<?php }?>
<?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['ftitle'];?>
</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">
<select data-placeholder="Укажите категорию записи" class="chzn-select span12" tabindex="6" name="id_category">
<option value="0">Необходимо выбрать категорию</option>
<?php $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['form']->value['categorys']; 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['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="Введите заголовок записи, краткое описание не более 255 символов" name="title" value="<?php echo $_smarty_tpl->tpl_vars['form']->value['title'];?>
" />
</div>
</div>
<div class="control-group">
<label class="control-label">Описание материала</label>
<div class="controls">
<script type="text/javascript" src="/inc/editor1/nicEdit/nicEdit.js"></script>
<script type="text/javascript">
//<![CDATA[
bkLib.onDomLoaded(function() {
new nicEditor({
fullPanel: true,
buttonList : ['imagesManager'],
iconsPath: '/inc/editor1/nicEdit/nicEditorIcons.gif',
uploadURI: '/inc/editor1/script.php?q=imanager',
imanagerURI: '/inc/editor1/script.php?q=imanager'
}).panelInstance('area2');
});
//]]>
</script>
<textarea class="span12 tooltips" rows=20 id="area2" data-trigger="hover" data-original-title="Напишите текст материала" name="text_f"><?php echo $_smarty_tpl->tpl_vars['form']->value['text_f'];?>
</textarea>
используйте [page] для разделения текста на краткое описание (до [page]) и полное описание (после [page])
</div>
</div>
<div class="control-group">
<label class="control-label">Активная страница</label>
<div class="controls">
<div id="text-toggle-button_t1">
<input type="checkbox" name="status"<?php if ($_smarty_tpl->tpl_vars['form']->value['status']==1){?> checked="checked"<?php }?>>
</div>
</div>
</div>
<div class="form-actions">
<input type="HIDDEN" name="id" value="<?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 }} ?>