202 lines
10 KiB
HTML
Executable File
202 lines
10 KiB
HTML
Executable File
{if $smarty.session.dostup=='a' || $smarty.session.dostup=='e'} {include file=$header_admin title="Создать страницу" h1="Новая страница" settings_mod="1"} {else} {include file=$header title="Создать страницу" h1="Новая страница"} {/if}
|
||
|
||
<h1 class="title text-center">
|
||
<!-- i class="fa fa-cog" style="font-size: 25pt;" title="Настройки" data-toggle="modal" data-target="#mod_settings"></i -->
|
||
</h1>
|
||
<!-- form id="form__upload_main_img" action="" method="post" style="display: none;">
|
||
<input type="file" name="main_img" id="input__main_img">
|
||
<input type="hidden" name="act" value="upload_main_img">
|
||
<input type="hidden" name="id" value="{$smarty.const.ID}">
|
||
<input type="hidden" name="mod" value="{$smarty.const.MOD}">
|
||
|
||
</form -->
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="ibox">
|
||
<div class="ibox-head">
|
||
<div class="ibox-title">Редактирование страницы</div>
|
||
<ul class="nav nav-tabs tabs-line pull-right">
|
||
<li class="nav-item">
|
||
<a class="nav-link active" href="#tab-8-1" data-toggle="tab"><i class="fa fa-taxi"></i>Редактор</a>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a class="nav-link" href="#tab-8-2" data-toggle="tab"><i class="fa fa-bus"></i> Картинки</a>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a class="nav-link" href="#tab-8-3" data-toggle="tab"><i class="fa fa-plane"></i> Tab</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<div class="ibox-body">
|
||
<div class="tab-content">
|
||
<div class="tab-pane fade show active" id="tab-8-1">
|
||
<form action="/page_edit/{$smarty.get.id}" method="post" enctype='multipart/form-data'>
|
||
|
||
<input type='text' name='title' class="form-control mt-3 mb-3" tabindex='1' value='{$page[0].title}' placeholder="Введите заголовок страницы">
|
||
|
||
<textarea tabindex='2' name='txt' id='editarea' style="height: 600px;">{$page[0].txt}</textarea>
|
||
|
||
<input type='text' name='description' class="form-control mt-3" tabindex='3' value='{$page[0].description}' placeholder="description">
|
||
|
||
<input type='text' name='keywords' class="form-control mt-3" tabindex='4' value='{$page[0].keywords}' placeholder="keywords">
|
||
|
||
<input type='text' name='d' class="form-control mt-3" tabindex='5' value='{if $page[0].d}{$page[0].d}{else}{$smarty.now|date_format:"%Y-%m-%d"}{/if}' placeholder="2017-12-31">
|
||
|
||
<input type='text' name='alias' class="form-control mt-3" tabindex='6' value='{$page[0].alias}' placeholder="ЧПУ/Алиас">
|
||
|
||
<input type='text' name='rdir' class="form-control mt-3" tabindex='6' value='{$page[0].rdir}' placeholder="301-й редирект на новую страницу">
|
||
|
||
<b>Публиковать?</b>
|
||
<select name="public" class="form-control mt-3">
|
||
<option value="0">Нет</option>
|
||
<option value="1" {if $page[0].public==1}selected{/if}>Да</option>
|
||
</select>
|
||
|
||
<b>Категория</b>
|
||
<select name="parent" class="form-control mt-3">
|
||
<option value="0">Нет</option>
|
||
{section name=customer loop=$list}
|
||
{if $list[customer].id}{assign var=json value=$list[customer].json|uns}
|
||
<option value="{$list[customer].id}" {if $page[0].cat==$list[customer].id}selected{/if}>{$json.title}</option>
|
||
{/if}
|
||
{/section}
|
||
</select>
|
||
<br>
|
||
<input type='submit' value='Сохранить' tabindex='5' name="ok" class="btn btn-dark mt-3 mb-3">
|
||
</form>
|
||
{$editor}
|
||
</div>
|
||
<div class="tab-pane" id="tab-8-2">
|
||
<div id="drop-area" class="container mt-2">
|
||
<form class="my-form">
|
||
<p>Загрузите фотографии</p>
|
||
<input type="file" id="fileElem" multiple accept="image/*" onchange="handleFiles(this.files)">
|
||
<label class="button" for="fileElem">Выбрать файлы</label>
|
||
</form>
|
||
<progress id="progress-bar" max=100 value=0></progress>
|
||
<div id="gallery"></div>
|
||
</div>
|
||
<div class="row">
|
||
{section name=customer loop=$img} {if $img[customer].id}
|
||
<div class="col-md-4">
|
||
<img src="/api/img/gray/gif/gray.gif" class="lazy" data-original="/img/users/{$smarty.session.user_id}/{$img[customer].rnd_name}.jpg" style="width: 100%;">
|
||
</div>
|
||
{/if} {/section}
|
||
</div>
|
||
</div>
|
||
<div class="tab-pane fade" id="tab-8-3">Third tab</div>
|
||
</div>
|
||
<br>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<div id="tabs">
|
||
<ul class="tabs-nav">
|
||
<li><a href="#tab-1">Основная информация</a></li>
|
||
<li><a href="#tab-2">Дополнительные изображения</a></li>
|
||
<li><a href="#tab-3">Опции</a></li>
|
||
<li><a href="#tab-4">Файлы</a></li>
|
||
<li><a href="#tab-5">Настройки модуля</a></li>
|
||
</ul>
|
||
<div class="tabs-items">
|
||
<div class="tabs-item" id="tab-1">
|
||
|
||
|
||
</div>
|
||
<div id="tab-2">
|
||
|
||
</div>
|
||
|
||
<div id="tab-3" class="pt-3 pb-3 pl-3 pr-3">
|
||
<b>Показывать обложку на странице</b>
|
||
<select name="oblozhka_show" class="form-control mt-3">
|
||
<option value="0">Нет</option>
|
||
<option value="1" {if $page[0].oblozhka_show==1}selected{/if}>Да</option>
|
||
</select>
|
||
<b>RSS (турбо страницы в Яндекс!)</b>
|
||
<select name="rss" class="form-control mt-3">
|
||
<option value="0">Нет</option>
|
||
<option value="1" {if $page[0].rss==1}selected{/if}>Да</option>
|
||
</select>
|
||
|
||
<b>Показывать форму сбор денег</b>
|
||
<select name="sbor_deneg" class="form-control mt-3">
|
||
<option value="0">Нет</option>
|
||
<option value="1" {if $page[0].sbor_deneg==1}selected{/if}>Да</option>
|
||
</select>
|
||
<b>Разрешить коментарии?</b>
|
||
<select name="comments" class="form-control mt-3">
|
||
<option value="0">Нет</option>
|
||
<option value="1" {if $page[0].comments==1}selected{/if}>Да</option>
|
||
</select>
|
||
<b>Показывать социальные кнопки?</b>
|
||
<select name="show_soc_btn" class="form-control mt-3">
|
||
<option value="0">Нет</option>
|
||
<option value="1" {if $page[0].show_soc_btn==1}selected{/if}>Да</option>
|
||
</select>
|
||
</div>
|
||
|
||
<div id="tab-4" class="pt-3 pb-3 pl-3 pr-3">
|
||
{if ($smarty.get.id)}
|
||
<p>Файлы:</p>
|
||
<input type="file" name="file"><button type="button" class="btn btn-dark">Загрузить</button> {/if}
|
||
<p><b>Внешние ссылки</b></p>
|
||
<input type='text' name='link_yandex_disk' class="form-control mt-3" value='{$page[0].link_yandex_disk}' placeholder="Яндекс-диск">
|
||
<input type='text' name='link_yandex_disk_txt' class="form-control mt-3" value='{$page[0].link_yandex_disk_txt}' placeholder="Текст ссылки">
|
||
<input type='text' name='link_my_disk' class="form-control mt-3" value='{$page[0].link_my_disk}' placeholder="Свое облако">
|
||
<input type='text' name='link_my_disk_txt' class="form-control mt-3" value='{$page[0].link_my_disk_txt}' placeholder="Текст ссылки">
|
||
</div>
|
||
|
||
|
||
<div id="tab-5" class="pt-3 pb-3 pl-3 pr-3">
|
||
|
||
<form id="form_modal_mod_settings">
|
||
<input type="hidden" name='act' value="save_settings_mod">
|
||
<input type="hidden" name="mod" value="{$smarty.get.mod}">
|
||
<h6>Размер обложки</h6>
|
||
<div class="row">
|
||
<div class="col col-sm col-md col-lg col-xl col-xxl">
|
||
<input name="w" value="{$mod_settings.w}" class="form-control"> Ширина (px)
|
||
</div>
|
||
<div class="col col-sm col-md col-lg col-xl col-xxl">
|
||
<input name="h" value="{$mod_settings.h}" class="form-control"> Высота (px)
|
||
</div>
|
||
</div>
|
||
<h6>Размер превью</h6>
|
||
<div class="row">
|
||
<div class="col col-sm col-md col-lg col-xl col-xxl">
|
||
<input name="p_w" value="{$mod_settings.p_w}" class="form-control"> Ширина (px)
|
||
</div>
|
||
<div class="col col-sm col-md col-lg col-xl col-xxl">
|
||
<input name="p_h" value="{$mod_settings.p_h}" class="form-control"> Высота (px)
|
||
</div>
|
||
</div>
|
||
<h6>Редактор</h6>
|
||
<div class="row">
|
||
<div class="col col-sm col-md col-lg col-xl col-xxl">
|
||
<select name="editor" class="form-control">
|
||
<option value="1">Tinymce</option>
|
||
<option value="2" {if $mod_settings.editor==2}selected{/if}>CKE</option>
|
||
</select>
|
||
<small>Эта настройка будет применена после обновления страницы</small>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
|
||
{if $smarty.session.dostup=='a' || $smarty.session.dostup=='e'} {include file=$footer_admin} {else} {include file=$footer} {/if} |