EIOS/inc/smarty/templates_c/734803f37da010206a55d1c1024...

132 lines
6.1 KiB
PHP
Raw Normal View History

2023-12-28 15:39:22 +03:00
<?php /* Smarty version Smarty-3.1.13, created on 2022-06-03 16:19:34
compiled from "tpl/tpl_rejt_admin1.html" */ ?>
<?php /*%%SmartyHeaderCode:228862393629a0a66d8f073-16627087%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'734803f37da010206a55d1c10248404f90d13f7b' =>
array (
0 => 'tpl/tpl_rejt_admin1.html',
1 => 1545655882,
2 => 'file',
),
),
'nocache_hash' => '228862393629a0a66d8f073-16627087',
'function' =>
array (
),
'variables' =>
array (
'des' => 0,
'item' => 0,
'items' => 0,
'it' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_629a0a66dddb28_15954847',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_629a0a66dddb28_15954847')) {function content_629a0a66dddb28_15954847($_smarty_tpl) {?><div id="page-wrap">
<div class="row-fluid">
<div class="span12">
<?php if ($_smarty_tpl->tpl_vars['des']->value=="edit"||$_smarty_tpl->tpl_vars['des']->value=="add"){?>
<div class="widget blue">
<div class="widget-title">
<h4><i class="icon-reorder"></i><?php if ($_smarty_tpl->tpl_vars['des']->value=="edit"){?>Редактирование<?php }else{ ?>Добавление<?php }?></h4>
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
</div>
<div class="widget-body">
<form action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
<div class="control-group">
<label class="control-label span2">Название раздела</label>
<div class="controls span6">
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Название раздела" name="name" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
" />
</div>
<label class="control-label span2">Позиция</label>
<div class="controls span2">
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Номер позиции в списке" name="pos" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['pos'];?>
" />
</div>
</div>
<div class="control-group">
<label class="control-label span2">Описание раздела</label>
<div class="controls span6">
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Описание раздела" name="descr" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['descr'];?>
" />
</div>
<label class="control-label span2">Статус</label>
<div class="controls span2">
<select data-placeholder="Статус раздела, отображается на сайте или нет" class="span12" tabindex="1" name="status">
<option value="1"<?php if ($_smarty_tpl->tpl_vars['item']->value['status']==1){?> SELECTED<?php }?>>Доступен всем</option>
<option value="0"<?php if ($_smarty_tpl->tpl_vars['item']->value['status']==0){?> SELECTED<?php }?>>Черновик</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label span2">Доступ к разделу</label>
<div class="controls span10">
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Кому доступен раздел, деканы, зав.кафедры, ППС ..." name="dostup" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['dostup'];?>
" />
</div>
</div>
<div class="form-actions">
<?php if ($_smarty_tpl->tpl_vars['des']->value=="add"){?>
<button type="submit" name="admin1_save" class="btn btn-warning">Добавить</button>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['des']->value=="edit"){?>
<button type="submit" name="admin1_edit" class="btn btn-success">Редактировать</button>
<input type="HIDDEN" name="id" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
">
<?php }?>
</div>
</form>
</div>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['des']->value=="show"){?>
<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">
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th></th>
<th>Название</th>
<th>Доступ</th>
<th><a class="btn btn-warning tooltips" data-trigger="hover" data-original-title="Добавить позицию" href="/rejt/admin1/add/"><i class="icon-plus"></i></a></th>
</tr>
</thead>
<tbody>
<?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;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['it']->value['name'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['it']->value['dostup'];?>
</td>
<td nowrap>
<a class="btn btn-danger tooltips" data-trigger="hover" data-original-title="Удалить позицию" href="/rejt/admin1/dele/<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
/"><i class="icon-trash"></i></a>
<a class="btn btn-success tooltips" data-trigger="hover" data-original-title="Редактировать позицию" href="/rejt/admin1/edit/<?php echo $_smarty_tpl->tpl_vars['it']->value['id'];?>
/"><i class="icon-pencil"></i></a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<?php }?>
</div>
</div>
</div><?php }} ?>