178 lines
7.5 KiB
HTML
178 lines
7.5 KiB
HTML
<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">
|
||
{if $regim=='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">
|
||
{if count($form.err)}{foreach from=$form.err item=er}
|
||
<div class="alert alert-error">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>Ошибка!</strong> {$er}
|
||
</div>
|
||
{/foreach}{/if}
|
||
{if isset($form.msg)}
|
||
<div class="alert alert-success">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>Успешно!</strong> {$form.msg}
|
||
</div>
|
||
{/if}
|
||
{if count($blogs)}
|
||
<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>
|
||
{foreach from=$blogs item=lc}
|
||
<tr{if $lc.status==0} style="background:#404040;"{/if}>
|
||
<td>{$lc.data_c}<br>{$lc.data_u}</td>
|
||
<td class="hidden-phone">{$lc.category}</td>
|
||
<td>{$lc.title}</td>
|
||
<td nowrap>
|
||
<a class="btn btn-primary" href="/help/write/edit/{$lc.id}/"><i class="icon-pencil"></i></a>
|
||
{if $lc.status==0}<a class="btn btn-success" href="/help/write/aprove/{$lc.id}/"><i class="icon-thumbs-up-alt "></i></a>{/if}
|
||
<a class="btn btn-danger" href="/help/write/del/{$lc.id}/"><i class="icon-trash "></i></a>
|
||
{if $lc.status==0}помечена на удаление{/if}
|
||
</td>
|
||
</tr>
|
||
{/foreach}
|
||
</tbody>
|
||
</table>
|
||
{if isset($pagination)}
|
||
<div class="pagination pagination-large">
|
||
<ul>
|
||
{if $pagination.kol<=15}
|
||
{for $p=1 to $pagination.kol}
|
||
<li><a href="/help/write/p{$p}/"{if $pagination.page==$p} class=" label-warning"{/if}>{$p}</a></li>
|
||
{/for}
|
||
{else}
|
||
{if $pagination.page>4}
|
||
<li><a href="/help/write/p1/">1</a></li>
|
||
<li><a href="#">...</a></li>
|
||
{for $p=($pagination.page-3) to ($pagination.page+3)}
|
||
<li><a href="/help/write/p{$p}/"{if $pagination.page==$p} class=" label-warning"{/if}>{$p}</a></li>
|
||
{/for}
|
||
<li><a href="#">...</a></li>
|
||
<li><a href="/help/write/p{$pagination.kol}/">{$pagination.kol}</a></li>
|
||
{else}
|
||
{for $p=1 to 5}
|
||
<li><a href="/help/write/p{$p}/"{if $pagination.page==$p} class=" label-warning"{/if}>{$p}</a></li>
|
||
{/for}
|
||
<li><a href="#">...</a></li>
|
||
{for $p=($pagination.kol-5) to $pagination.kol}
|
||
<li><a href="/help/write/p{$p}/"{if $pagination.page==$p} class=" label-warning"{/if}>{$p}</a></li>
|
||
{/for}
|
||
{/if}
|
||
{/if}
|
||
</ul>
|
||
</div>
|
||
{/if}
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
{if $regim=='aded'}
|
||
<div class="span12">
|
||
<div class="widget red">
|
||
<div class="widget-title">
|
||
<h4><i class="icon-reorder"></i> {$form.ftitle} </h4>
|
||
<span class="tools">
|
||
<a href="javascript:;" class="icon-chevron-down"></a>
|
||
</span>
|
||
</div>
|
||
<div class="widget-body">
|
||
{if count($form.err)}{foreach from=$form.err item=er}
|
||
<div class="alert alert-error">
|
||
<button data-dismiss="alert" class="close">×</button>
|
||
<strong>Ошибка!</strong> {$er}
|
||
</div>
|
||
{/foreach}{/if}
|
||
<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>
|
||
{foreach from=$form.categorys item=gr}
|
||
<option{if $gr.sel==1} selected{/if} value="{$gr.id}">{$gr.name}</option>
|
||
{/foreach}
|
||
</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="{$form.title}" />
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Описание материала</label>
|
||
<div class="controls">
|
||
{literal}
|
||
<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>
|
||
{/literal}
|
||
<textarea class="span12 tooltips" rows=20 id="area2" data-trigger="hover" data-original-title="Напишите текст материала" name="text_f">{$form.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"{if $form.status==1} checked="checked"{/if}>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-actions">
|
||
<input type="HIDDEN" name="id" value="{$form.id}" />
|
||
<button type="submit" name="{$form.btn_url}" class="btn btn-success">{$form.btn_name}</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
</div>
|