Модуль управления полями рубрик v0.26.2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
5.3 KiB

9 years ago
<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&amp;cp={$sess}">{#MODULES_SUB_TITLE#}</a></li>
<li><a href="index.php?do=modules&action=modedit&mod=fieldsmanager&moduleaction=1&amp;cp={$sess}">Управление полями</a></li>
<li>Список рубрик</li>
<li><strong class="code">{$main.name}</strong></li>
</ul>
</div>
</div>
{foreach from=$rubrics item=rubric}
<div class="widget">
<div class="head">
<h5>{$rubric.rubric_title}</h5>
</div>
<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic mainForm">
<col width="10" />
<col />
<col width="100" />
<col width="100" />
<col width="100" />
<col width="80" />
<col width="80" />
<thead>
<tr>
<td colspan="1" rowspan="2">Id</td>
<td colspan="1" rowspan="2">Наименование поля</td>
<td colspan="3" rowspan="1">Шаблон ID</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=$rubric.fields item=field}
<tr class="center">
<td align="center">{$field.id}</td>
<td><strong>{$field.title}</strong></td>
<td align="center" id="adm_{$main.id}_{$field.id}">
{if $field.adm_main}
{if $field.adm_tpl}
<a data-dialog="rft-{$field.id}" href="index.php?do=modules&action=modedit&mod=fieldsmanager&moduleaction=edit&amp;id={$field.id}&amp;fld={$main.id}&amp;type=adm&amp;cp={$sess}&pop=1&onlycontent=1" data-height="650" data-modal="true" class="openDialog">Редактировать</a>
<br />
<a href="index.php?do=modules&action=modedit&mod=fieldsmanager&moduleaction=delete&amp;id={$field.id}&amp;fld={$main.id}&amp;type=adm&amp;cp={$sess}" class="link">Удалить</a>
{else}
<a data-dialog="rft-{$field.id}" href="index.php?do=modules&action=modedit&mod=fieldsmanager&moduleaction=create&amp;id={$field.id}&amp;fld={$main.id}&amp;type=adm&amp;cp={$sess}&pop=1&onlycontent=1" data-height="650" data-modal="true" class="openDialog">Создать</a>
{/if}
{else}
<small>Нет шаблона</small>
{/if}
</td>
<td align="center" id="doc_{$main.id}_{$field.id}">
{if $field.doc_main}
{if $field.doc_tpl}
<a data-dialog="rft-{$field.id}" href="index.php?do=modules&action=modedit&mod=fieldsmanager&moduleaction=edit&amp;id={$field.id}&amp;fld={$main.id}&amp;type=doc&amp;cp={$sess}&pop=1&onlycontent=1" data-height="650" data-modal="true" class="openDialog">Редактировать</a>
<br />
<a href="index.php?do=modules&action=modedit&mod=fieldsmanager&moduleaction=delete&amp;id={$field.id}&amp;fld={$main.id}&amp;type=doc&amp;cp={$sess}" class="link">Удалить</a>
{else}
<a data-dialog="rft-{$field.id}" href="index.php?do=modules&action=modedit&mod=fieldsmanager&moduleaction=create&amp;id={$field.id}&amp;fld={$main.id}&amp;type=doc&amp;cp={$sess}&pop=1&onlycontent=1" data-height="650" data-modal="true" class="openDialog">Создать</a>
{/if}
{else}
<small>Нет шаблона</small>
{/if}
</td>
<td align="center" id="req_{$main.id}_{$field.id}">
{if $field.req_main}
{if $field.req_tpl}
<a data-dialog="rft-{$field.id}" href="index.php?do=modules&action=modedit&mod=fieldsmanager&moduleaction=edit&amp;id={$field.id}&amp;fld={$main.id}&amp;type=req&amp;cp={$sess}&pop=1&onlycontent=1" data-height="650" data-modal="true" class="openDialog">Редактировать</a>
<br />
<a href="index.php?do=modules&action=modedit&mod=fieldsmanager&moduleaction=delete&amp;id={$field.id}&amp;fld={$main.id}&amp;type=req&amp;cp={$sess}" class="link">Удалить</a>
{else}
<a data-dialog="rft-{$field.id}" href="index.php?do=modules&action=modedit&mod=fieldsmanager&moduleaction=create&amp;id={$field.id}&amp;fld={$main.id}&amp;type=req&amp;cp={$sess}&pop=1&onlycontent=1" data-height="650" data-modal="true" class="openDialog">Создать</a>
{/if}
{else}
<small>Нет шаблона</small>
{/if}
</td>
<td align="center">
<a data-dialog="rft-{$field.id}" title="{#RUBRIK_FILED_TEMPLATE_H#}" href="index.php?do=rubs&action=field_template&field_id={$field.id}&rubric_id={$rubric.rubric_id}&cp={$sess}&pop=1&onlycontent=1" data-height="700" data-modal="true" data-title="{#RUBRIK_FILED_TEMPLATE_H#}" class="openDialog icon_sprite ico_template topleftDir"></a>
</td>
<td align="center">
<a class="icon_sprite ico_delete_no"></a>
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/foreach}
{include file="$codemirror_connect"}