big-moving.ru/api/mod/page_all.html

108 lines
4.9 KiB
HTML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{include file=$header_admin h1="Все страницы" title="Все страницы"}
<input type="hidden" id="tmp" value="">
<input type="hidden" id="tmp2" value="">
<div class="input-group">
<div class="input-group-prepend">
<button type="button" data-link="/page_edit/" class="btn btn-dark" title="Новая страница" style="float:left;height: 35px;">
Создать страницу</button>
<button type="button" data-link="/page_cat/" class="btn btn-dark" title="Новая категория" style="float:left;height: 35px;">
Новая категория</button>
{if ($smarty.get.id)}
<button type="button" data-link="/page_all/{$parent}" class="btn btn-dark" title="Назад" style="float:left;height: 35px;">
Назад</button>
{/if}
</div>{*
<input type="text" class="form-control" placeholder="Search for..." style="padding-top:4px;padding-bottom:4px;" aria-label="Search for...">
<div class="input-group-prepend">
<button class="btn btn-dark" type="button" style="padding-top:4px;padding-bottom:4px;"><i class="fa fa-search" aria-hidden="true"></i></button>
</div>*}
</div>
{if $global_settings.typepage==2}
<table class="table">
{*категории*}
{section name=customer loop=$cats}
{if $cats[customer].id}
<tr id="tr_cat_{$cats[customer].id}"><td width=80px>
<a href="/page_all/{$cats[customer].id}"><img src="/api/img/gray/folder_grey_open_128x128.png" style="width: 100%;"></a>
</td><td>
<a href="/page_all/{$cats[customer].id}"><b>{$cats[customer].txt}</b></a><br>
</td>
<td width=100px><a href="/edit_cat/{$cats[customer].id}"><i class="far fa-edit" title="Изменить категорию"></i></a>
<a href="{$cats[customer].id}" class="del_cat"><i class="fas fa-trash-alt" title="Удалить"></i></a>
</td>
</tr>
{/if}
{/section}
{*страницы*}
{section name=customer loop=$list}
{if $list[customer].id}
<tr id="{$list[customer].id}"><td width=80px>
{if ($list[customer].oblozhka)}
<a href="/page/{$list[customer].id}"><img src="/img/pages/{$list[customer].oblozhka}.jpg" style="width: 80%;" title="{$list[customer].title}"></a>
{else}
<a href="/page/{$list[customer].id}"><img src="/api/img/gray/doc.png" style="width: 80%;" title="{$list[customer].title}"></a>
{/if}
</td><td>
<a href="/page/{$list[customer].id}" title="{$list[customer].title}"><b>{$list[customer].title|substr:700}</b></a>
</td>
<td>
<a href="/page_edit/{$list[customer].id}"><i class="fa fa-edit"></i></a> | <a href="{$list[customer].id}" class="del_page" title="{$list[customer].title}"><i class="fas fa-trash"></i></a>
</td>
</tr>
{/if}
{/section}
</table>
{else}
<div class="row" style="margin-top:20px;">
{*категории*}
{section name=customer loop=$cats}
{if $cats[customer].id}
<div class="col-xs-12 col-sm-12 col-md-2 col-lg-2" style="text-align:center;">
<a href="/page_all/{$cats[customer].id}"><img src="/api/img/gray/folder_grey_open_128x128.png" style="width: 80%;"></a><br>
<div style="height: 55px;">
<a href="/page_all/{$cats[customer].id}"><b>{$cats[customer].txt}</b></a><br>
</div>
<a href="/edit_cat/{$cats[customer].id}">Изменить</a> | <a href="/del_cat/{$cats[customer].id}">Удалить</a>
</div>
{/if}
{/section}
{*страницы*}
{section name=customer loop=$list}
{if $list[customer].id}
<div class="col-xs-12 col-sm-12 col-md-2 col-lg-2" style="text-align:center;">
{if ($list[customer].oblozhka)}
<a href="/page/{$list[customer].id}"><img src="/img/pages/{$list[customer].oblozhka}.jpg" style="width: 80%;" title="{$list[customer].title}"></a>
{else}
<a href="/page/{$list[customer].id}"><img src="/api/img/gray/doc.png" style="width: 80%;" title="{$list[customer].title}"></a>
{/if}
<br>
<div style="height: 55px;">
<a href="/page/{$list[customer].id}" title="{$list[customer].title}"><b>{$list[customer].title|substr:20}</b></a><br>
</div>
<a href="/page_edit/{$list[customer].id}">Изменить</a> | <a href="/del_page/{$list[customer].id}">Удалить</a>
</div>
{/if}
{/section}
</div>
{/if}
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Удалить страницу</h5>
<!-- button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button -->
</div>
<div class="modal-body">
<p id="modal_txt">Здесь могла бы быть ваша реклама</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-dark" id="del">Удалить</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Отмена</button>
</div>
</div>
</div>
</div>
{include file=$footer_admin}