103 lines
4.6 KiB
Smarty
103 lines
4.6 KiB
Smarty
<div class="title"><h5>Управление ЧПУ всех модулей</h5></div>
|
||
|
||
<div class="breadCrumbHolder module">
|
||
<div class="breadCrumb module">
|
||
<ul>
|
||
<li class="firstB"><a href="index.php" title="{#MAIN_PAGE#}">{#MAIN_PAGE#}</a></li>
|
||
<li><a href="index.php?do=modules&cp={$sess}">Управление модулями</a></li>
|
||
<li>Список всех ЧПУ</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="widget first">
|
||
<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic mainForm">
|
||
<thead>
|
||
<tr>
|
||
<td>Название ссылки</td>
|
||
<td>Системное имя</td>
|
||
<td>Action</td>
|
||
<td>Оригинальный URL</td>
|
||
<td>ЧПУ Алиас</td>
|
||
<td>Документ (ID)</td>
|
||
<td width="40" align="center">Меню</td>
|
||
<td width="40" align="center">Правка</td>
|
||
<td width="40" align="center">Удалить</td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{foreach from=$modules_list item=mod}
|
||
<tr>
|
||
<td><strong>{$mod.module_link_name|default:$mod.title}</strong></td>
|
||
<td><span class="cmsStats">{$mod.sys_name}</span></td>
|
||
<td><span class="blue">{$mod.module_action|default:'---'}</span></td>
|
||
<td><span class="dgrey" style="font-size: 11px;">{$mod.module_link|default:'---'}</span></td>
|
||
<td>
|
||
<input type="text" value="{$mod.alias_url}" style="width: 90%; font-family: monospace;" readonly />
|
||
</td>
|
||
<td>
|
||
{if $mod.doc_id > 0}
|
||
<span class="green">{$all_docs[$mod.doc_id]|default:'Документ не найден'} (ID: {$mod.doc_id})</span>
|
||
{else}
|
||
<span class="dgrey">Без привязки</span>
|
||
{/if}
|
||
</td>
|
||
|
||
<td align="center">
|
||
{if $mod.module_admin == '1'}
|
||
<span class="icon_sprite ico_ok" title="В меню"></span>
|
||
{else}
|
||
<span class="icon_sprite ico_ok_green" title="Скрыт"></span>
|
||
{/if}
|
||
</td>
|
||
|
||
<td align="center">
|
||
<a href="index.php?do=modules&action=aliases&id={$mod.id}&cp={$sess}&ajax=1&onlycontent=1"
|
||
data-dialog="aliases-{$mod.id}"
|
||
data-height="550"
|
||
data-width="650"
|
||
data-modal="true"
|
||
data-title="Редактировать ЧПУ: {$mod.module_link_name|default:$mod.title}"
|
||
class="openDialog icon_sprite ico_edit topleftDir"
|
||
title="Редактировать"></a>
|
||
</td>
|
||
|
||
<td align="center">
|
||
<a href="javascript:void(0);"
|
||
class="icon_sprite ico_delete topleftDir"
|
||
title="Удалить"
|
||
onclick="jConfirm('Удалить алиас <strong>{$mod.alias_url}</strong>?', 'Подтверждение', function(r) {
|
||
if(r) window.location.href='index.php?do=modules&action=alias_delete&id={$mod.id}&cp={$sess}';
|
||
});"></a>
|
||
</td>
|
||
</tr>
|
||
{/foreach}
|
||
</tbody>
|
||
</table>
|
||
|
||
{if empty($modules_list)}
|
||
<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic">
|
||
<tbody>
|
||
<tr class="noborder">
|
||
<td colspan="9">
|
||
<ul class="messages">
|
||
<li class="highlight yellow">Список ЧПУ алиасов пуст. Добавьте первый алиас, чтобы настроить красивые ссылки.</li>
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
{/if}
|
||
</div>
|
||
|
||
<div class="fix" style="margin-top: 20px;">
|
||
<a href="index.php?do=modules&cp={$sess}" class="button basicBtn">Вернуться к списку модулей</a>
|
||
|
||
<a href="index.php?do=modules&action=aliases&id=0&cp={$sess}&ajax=1&onlycontent=1"
|
||
data-dialog="aliases-0"
|
||
data-height="550"
|
||
data-width="650"
|
||
data-modal="true"
|
||
data-title="Добавить новый ЧПУ алиас"
|
||
class="button basicBtn greenBtn openDialog">Добавить новый алиас</a>
|
||
</div> |