2023-01-14 21:17:46 +05:00
|
|
|
{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}
|
2022-12-11 13:55:49 +05:00
|
|
|
|
|
|
|
<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">
|
2023-01-14 21:17:46 +05:00
|
|
|
<div class="ibox-title">Редактирование страницы: {$page[0].title|substr:15}</div>
|
2022-12-11 13:55:49 +05:00
|
|
|
<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">
|
2022-12-17 18:15:09 +05:00
|
|
|
<a class="nav-link" href="#tab-8-4" data-toggle="tab"><i class="fa fa-plane"></i> Опции</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#tab-8-3" data-toggle="tab"><i class="fa fa-plane"></i> Настройки модуля</a>
|
2022-12-11 13:55:49 +05:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="ibox-body">
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane fade show active" id="tab-8-1">
|
2022-12-17 18:15:09 +05:00
|
|
|
{include file=$editor}
|
2022-12-11 13:55:49 +05:00
|
|
|
</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>
|
2022-12-17 18:15:09 +05:00
|
|
|
<div class="tab-pane fade" id="tab-8-3">
|
|
|
|
|
2022-12-11 13:55:49 +05:00
|
|
|
|
|
|
|
|
2022-12-17 18:15:09 +05:00
|
|
|
</div>
|
2022-12-11 13:55:49 +05:00
|
|
|
|
2022-12-17 18:15:09 +05:00
|
|
|
<div class="tab-pane fade" id="tab-8-4">
|
|
|
|
|
2022-12-11 13:55:49 +05:00
|
|
|
|
|
|
|
|
|
|
|
</div>
|
2022-12-17 18:15:09 +05:00
|
|
|
</div>
|
|
|
|
<br>
|
2022-12-11 13:55:49 +05:00
|
|
|
</div>
|
2022-12-17 18:15:09 +05:00
|
|
|
</div>
|
2022-12-11 13:55:49 +05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{if $smarty.session.dostup=='a' || $smarty.session.dostup=='e'} {include file=$footer_admin} {else} {include file=$footer} {/if}
|