129 lines
5.1 KiB
HTML
Executable File
129 lines
5.1 KiB
HTML
Executable File
{include file=$header_admin title="Управление опросами" h1="Управление опросами" settings_mod="1"}
|
|
|
|
|
|
<input type="hidden" id="global_id" value="{$smarty.get.id}">
|
|
|
|
<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">
|
|
{if ($smarty.get.id)}
|
|
<div class="ibox-title">Редактирование опроса: {$page.title}</div>
|
|
{else}
|
|
<div class="ibox-title">Список опросов</div>
|
|
{/if}
|
|
<ul class="nav nav-tabs tabs-line pull-right">
|
|
<li class="nav-item">
|
|
<a class="nav-link active" href="#tab-8-0" data-toggle="tab"><i class="fa-solid fa-bars"></i>Список</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</div>
|
|
<div class="ibox-body">
|
|
<div class="tab-content">
|
|
<div class="tab-pane fade show active" id="tab-8-0">
|
|
<form class="input-group" id="formNewOpros" action="/act/aopros">
|
|
<input type="text" placeholder="Новый опрос" class="form-control" name="txt">
|
|
{if ($smarty.get.id)}
|
|
<input type="hidden" value="newvopros" name="act">
|
|
{else}
|
|
<input type="hidden" value="newopros" name="act">
|
|
{/if}
|
|
{if ($smarty.get.id)}
|
|
<input type="hidden" value="{$smarty.get.id}" name="id" id="idopros">
|
|
{else}
|
|
<input type="hidden" value="0" name="category">
|
|
{/if}
|
|
<button type="submit" class="btn btn-dark">Создать</button>
|
|
</form>
|
|
|
|
<table class="table" id="filter-table">
|
|
|
|
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">ID</th>
|
|
<th scope="col">Заголовок</th>
|
|
<th scope="col">Сортировка</th>
|
|
<th scope="col">Действия</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tr class='table-filters'>
|
|
<td>
|
|
<input type="text" class="form-control">
|
|
</td>
|
|
<td>
|
|
<input type="text" class="form-control">
|
|
</td>
|
|
|
|
<td><input type="text" class="form-control"></td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
|
|
{if ($smarty.get.id)}
|
|
|
|
<tr class='table-data' id="li_{$childrenPages[customer].id}">
|
|
<td><a href="/aopros/{$page.category}">..</a></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
{section name=customer loop=$list}
|
|
<tr class='table-data' id="li_{$list[customer].id}">
|
|
<td><a href="/aopros/{$list[customer].id}">{$list[customer].id}</a></td>
|
|
<td>{$list[customer].txt}</td>
|
|
<td><input type="text" class="form-control" value="{$list[customer].sort}"></td>
|
|
<td><button class="btn btn-danger delPage" data-id="{$list[customer].id}">Удалить</button></td>
|
|
</tr>
|
|
{/section}
|
|
|
|
{else}
|
|
|
|
{section name=customer loop=$list}
|
|
<tr class='table-data' id="li_{$childrenPages[customer].id}">
|
|
<td><a href="/aopros/{$list[customer].id}">{$list[customer].id}</a></td>
|
|
<td>{$list[customer].txt}</td>
|
|
<td><input type="text" class="form-control" value="{$list[customer].sort}"></td>
|
|
<td><input type="checkbox" title="Публиковать?" data-id="{$list[customer].id}"
|
|
class="checkboxStatus" {if ($list[customer].status==1)} checked{/if}></td>
|
|
</tr>
|
|
|
|
|
|
|
|
{/section}
|
|
{/if}
|
|
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div id="div_log" style="border: 1px solid gray; border-radius: 10px; padding:15px;">
|
|
<p><b>Лог:</b></p>
|
|
</div>
|
|
|
|
<a href="/editmod/{$smarty.get.mod}" target="_blank" type="button" class="btn btn-danger"><i
|
|
class="fa-solid fa-gear"></i></a>
|
|
|
|
|
|
{include file=$footer_admin} |