90 lines
4.0 KiB
HTML
90 lines
4.0 KiB
HTML
|
<div id="page-wrap">
|
||
|
<div class="row-fluid">
|
||
|
<div class="span12">
|
||
|
{if $des=="edit"||$des=="add"}
|
||
|
<div class="widget purple">
|
||
|
<div class="widget-title">
|
||
|
<h4><i class="icon-reorder"></i>{if $des=="edit"}Редактирование{else}Добавление{/if}</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="{$item.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="{$item.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="{$item.descr}" />
|
||
|
</div>
|
||
|
<label class="control-label span2">Статус</label>
|
||
|
<div class="controls span2">
|
||
|
<select data-placeholder="Статус раздела, отображается на сайте или нет" class="span12" tabindex="1" name="status">
|
||
|
<option value="1"{if $item.status==1} SELECTED{/if}>Доступен всем</option>
|
||
|
<option value="0"{if $item.status==0} SELECTED{/if}>Черновик</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="{$item.dostup}" />
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-actions">
|
||
|
{if $des=="add"}
|
||
|
<button type="submit" name="admin1_save" class="btn btn-warning">Добавить</button>
|
||
|
{/if}
|
||
|
{if $des=="edit"}
|
||
|
<button type="submit" name="admin1_edit" class="btn btn-success">Редактировать</button>
|
||
|
<input type="HIDDEN" name="id" value="{$item.id}">
|
||
|
{/if}
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
{/if}
|
||
|
{if $des=="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="/rejtkaf/admin1/add/"><i class="icon-plus"></i></a></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{foreach from=$items item=it}
|
||
|
<tr>
|
||
|
<td>{$it.id}</td>
|
||
|
<td>{$it.name}</td>
|
||
|
<td>{$it.dostup}</td>
|
||
|
<td nowrap>
|
||
|
<a class="btn btn-danger tooltips" data-trigger="hover" data-original-title="Удалить позицию" href="/rejtkaf/admin1/dele/{$it.id}/"><i class="icon-trash"></i></a>
|
||
|
<a class="btn btn-success tooltips" data-trigger="hover" data-original-title="Редактировать позицию" href="/rejtkaf/admin1/edit/{$it.id}/"><i class="icon-pencil"></i></a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{/foreach}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
{/if}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|