132 lines
6.1 KiB
PHP
132 lines
6.1 KiB
PHP
|
<?php /* Smarty version Smarty-3.1.13, created on 2022-09-22 17:09:24
|
||
|
compiled from "tpl/tpl_rejtnpr_admin1.html" */ ?>
|
||
|
<?php /*%%SmartyHeaderCode:1029401569632c6c940c1029-45324349%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
||
|
'file_dependency' =>
|
||
|
array (
|
||
|
'a001423c671bf134d7997554782cf7055fdd510f' =>
|
||
|
array (
|
||
|
0 => 'tpl/tpl_rejtnpr_admin1.html',
|
||
|
1 => 1552932075,
|
||
|
2 => 'file',
|
||
|
),
|
||
|
),
|
||
|
'nocache_hash' => '1029401569632c6c940c1029-45324349',
|
||
|
'function' =>
|
||
|
array (
|
||
|
),
|
||
|
'variables' =>
|
||
|
array (
|
||
|
'des' => 0,
|
||
|
'item' => 0,
|
||
|
'items' => 0,
|
||
|
'it' => 0,
|
||
|
),
|
||
|
'has_nocache_code' => false,
|
||
|
'version' => 'Smarty-3.1.13',
|
||
|
'unifunc' => 'content_632c6c940e1438_37596040',
|
||
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
||
|
<?php if ($_valid && !is_callable('content_632c6c940e1438_37596040')) {function content_632c6c940e1438_37596040($_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="/rejtnpr/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="/rejtnpr/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="/rejtnpr/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 }} ?>
|