118 lines
3.9 KiB
Smarty
118 lines
3.9 KiB
Smarty
<div class="title">
|
||
<h5>Управление полями</h5>
|
||
</div>
|
||
|
||
|
||
<div class="widget">
|
||
<div class="body">
|
||
<strong>Модуль позволяет:</strong>
|
||
<ul style="list-style: square; margin-left:15px;">
|
||
<li>Удалять/<s>Устанавливать</s> поля</li>
|
||
<li>Создавать/Редактировать/Удалять шаблоны полей (tpl)</li>
|
||
<li>Редактировать шаблоны вывода полей</li>
|
||
</ul>
|
||
</div>
|
||
</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}">{#MODULES_SUB_TITLE#}</a></li>
|
||
<li><strong class="code">Управление полями</strong></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="widget">
|
||
<div class="head">
|
||
<h5>Список полей в системе</h5>
|
||
</div>
|
||
<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic mainForm">
|
||
|
||
<col />
|
||
<col width="100" />
|
||
<col width="100" />
|
||
<col width="100" />
|
||
<col width="80" />
|
||
<col width="100" />
|
||
<col width="80" />
|
||
<thead>
|
||
<tr>
|
||
|
||
</tr>
|
||
|
||
<tr>
|
||
<td colspan="1" rowspan="2">Наименование поля</td>
|
||
<td colspan="1" rowspan="2">Функция</td>
|
||
<td colspan="3" rowspan="1">Шаблон Tpl (по умолчанию)</td>
|
||
<td colspan="1" rowspan="2">Используется</td>
|
||
<td colspan="1" rowspan="2">Удалить</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="border-left: solid 1px #C7D6E6 !important;">Панель</td>
|
||
<td>Документ</td>
|
||
<td>Запрос</td>
|
||
</tr>
|
||
|
||
</thead>
|
||
<tbody>
|
||
{foreach from=$fields item=field key=number}
|
||
<tr>
|
||
<td>
|
||
{if in_array($field.id, $enable)}
|
||
<strong><a class="link" href="index.php?do=modules&action=modedit&mod=fieldsmanager&moduleaction=showfield&type={$field.id}&cp={$sess}">{$field.name}</a></strong>
|
||
{else}
|
||
<strong>{$field.name}</strong>
|
||
{/if}
|
||
</td>
|
||
|
||
<td class="date_text dgrey" align="center">
|
||
{$field.id}
|
||
</td>
|
||
|
||
<td align="center">
|
||
{foreach from=$exists item=exist key=key}
|
||
{if $field.id == $key}
|
||
{if $exist.adm}
|
||
<a data-dialog="rft-{$field.id}" href="index.php?do=modules&action=modedit&mod=fieldsmanager&moduleaction=edit&fld={$field.id}&type=adm&cp={$sess}&pop=1&onlycontent=1" data-height="650" data-modal="true" class="openDialog">Редактировать</a>
|
||
{/if}
|
||
{/if}
|
||
{/foreach}
|
||
</td>
|
||
<td align="center">
|
||
{foreach from=$exists item=exist key=key}
|
||
{if $field.id == $key}
|
||
{if $exist.doc}
|
||
<a data-dialog="rft-{$field.id}" href="index.php?do=modules&action=modedit&mod=fieldsmanager&moduleaction=edit&fld={$field.id}&type=doc&cp={$sess}&pop=1&onlycontent=1" data-height="650" data-modal="true" class="openDialog">Редактировать</a>
|
||
{/if}
|
||
{/if}
|
||
{/foreach}
|
||
</td>
|
||
<td align="center">
|
||
{foreach from=$exists item=exist key=key}
|
||
{if $field.id == $key}
|
||
{if $exist.req}
|
||
<a data-dialog="rft-{$field.id}" href="index.php?do=modules&action=modedit&mod=fieldsmanager&moduleaction=edit&fld={$field.id}&type=req&cp={$sess}&pop=1&onlycontent=1" data-height="650" data-modal="true" class="openDialog">Редактировать</a>
|
||
{/if}
|
||
{/if}
|
||
{/foreach}
|
||
</td>
|
||
|
||
<td align="center">
|
||
<span class="icon_sprite {if in_array($field.id, $enable)}ico_ok_green{else}ico_delete_no{/if}"></span>
|
||
</td>
|
||
|
||
<td align="center">
|
||
<a class="topleftDir icon_sprite ico_delete ConfirmDelete" title="Удалить с сервера" dir="Удалить" name="Вы уверены?" href="index.php?do=modules&action=modedit&mod=fieldsmanager&moduleaction=unlink&type={$field.id}&cp={$sess}"></a>
|
||
</td>
|
||
|
||
</tr>
|
||
{/foreach}
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
{include file="$codemirror_connect"}
|