51 lines
2.6 KiB
HTML
51 lines
2.6 KiB
HTML
|
{include file=$header_admin title="Редактирование категорий" h1="Редактирование категорий"}
|
|||
|
<div id="tabs">
|
|||
|
<ul>
|
|||
|
<li><a href="#main_info">Основная информация</a></li>
|
|||
|
<li><a href="#sliders">Слайды</a></li>
|
|||
|
</ul>
|
|||
|
<div id="main_info">
|
|||
|
<div class="btn-group">
|
|||
|
<button type="button" data-link="/page_all/" class="btn btn-dark">Все страницы</button>
|
|||
|
<button type="button" data-link="/page_cat/" class="btn btn-dark">Все категории</button>
|
|||
|
</div>
|
|||
|
<form action="" method="post" style="margin-top: 20px;">
|
|||
|
<input placeholder="Название категории" type="text" value="{$cats[0].txt}" class="form-control" name="txt">
|
|||
|
<select name="parent" class="form-control">
|
|||
|
<option value="0">Без категории</option>
|
|||
|
{section name=customer loop=$all_cats}
|
|||
|
{if $all_cats[customer].id}
|
|||
|
<option value="{$all_cats[customer].id}" {if ($all_cats[customer].id==$cats[0].parent)}selected{/if}>{$all_cats[customer].txt}</option>
|
|||
|
{/if}
|
|||
|
{/section}
|
|||
|
</select>
|
|||
|
<select name="public" class="form-control">
|
|||
|
<option value="1">Публиковать</option>
|
|||
|
<option value="0" {if ($cats[0].public==0)}selected{/if}>Не публиковать</option>
|
|||
|
</select>
|
|||
|
<input placeholder="description" type="text" value="{$cats[0].description}" class="form-control" name="description">
|
|||
|
<input placeholder="keywords" type="text" value="{$cats[0].keywords}" class="form-control" name="keywords">
|
|||
|
<input type="submit" value="Сохранить" name="ok" class="btn btn-success">
|
|||
|
</form>
|
|||
|
</div>
|
|||
|
<div id="sliders">
|
|||
|
<form action="" method="post" id="upload-image">
|
|||
|
<input type="hidden" name="act" value="upload">
|
|||
|
<input type="hidden" name="id" value="{$smarty.get.id}">
|
|||
|
<input type="file" name="slider" class="btn btn-light" id="img_upload">
|
|||
|
</form>
|
|||
|
<div id="div_preload" class="row">
|
|||
|
{section name=customer loop=$sliders}
|
|||
|
{if $sliders[customer]}
|
|||
|
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 col-xl-3">
|
|||
|
<img src="/img/slider/{$smarty.get.id}/{$sliders[customer]}" style="width:100%;">
|
|||
|
<a href="{$sliders[customer]}" data-id="{$smarty.get.id}" class="del_img">Удалить</a>
|
|||
|
</div>
|
|||
|
{/if}
|
|||
|
{/section}
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<link rel="stylesheet" href="/api/jquery/jquery-ui/dark-hive1.12.1/jquery-ui.css">
|
|||
|
<link rel="stylesheet" href="/api/jquery/jquery-ui/dark-hive1.12.1/jquery-ui.theme.min.css">
|
|||
|
{include file=$footer_admin}
|