EIOS/inc/smarty/templates_c/d895c87ac71f2d859da4c32ec00...

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-10-28 08:52:23
compiled from "tpl/tpl_rejtnr_admin1.html" */ ?>
<?php /*%%SmartyHeaderCode:1778545666635b6e175efc70-55766095%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'd895c87ac71f2d859da4c32ec008a40e97d7ad07' =>
array (
0 => 'tpl/tpl_rejtnr_admin1.html',
1 => 1553435053,
2 => 'file',
),
),
'nocache_hash' => '1778545666635b6e175efc70-55766095',
'function' =>
array (
),
'variables' =>
array (
'des' => 0,
'item' => 0,
'items' => 0,
'it' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.13',
'unifunc' => 'content_635b6e17605259_50463448',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_635b6e17605259_50463448')) {function content_635b6e17605259_50463448($_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 purple">
<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 purple">
<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="/rejtnr/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="/rejtnr/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="/rejtnr/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 }} ?>