Files
comment/templates/admin_settings.tpl

122 lines
6.5 KiB
Smarty
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.
<div class="title"><h5>{#COMMENT_MODULE_NAME#}</h5></div>
<div class="widget" style="margin-top: 0px;">
<div class="body">
{#COMMENT_MODULE_SETTINGS#}
</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=comment&moduleaction=1&cp={$sess}">{#COMMENT_MODULE_NAME#}</a></li>
<li><strong class="code">{#COMMENT_MODULE_SETTINGS#}</strong></li>
</ul>
</div>
</div>
<div class="widget first">
<div class="head">
<h5 class="iFrames">{#COMMENT_MODULE_SETTINGS#}</h5>
<div class="num"><a class="basicNum" href="index.php?do=modules&action=modedit&mod=comment&moduleaction=1&cp={$sess}">{#COMMENT_MODULE_COMENTS#}</a></div>
</div>
<form action="index.php?do=modules&action=modedit&mod=comment&moduleaction=settings&cp={$sess}&sub=save" method="post" class="mainForm">
<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic">
<thead>
<tr>
<td width="20%">{#COMMENT_HEADER_NAME#}</td>
<td width="30%">{#COMMENT_HEADER_PARAMETR#}</td>
<td width="20%">{#COMMENT_HEADER_NAME#}</td>
<td width="30%">{#COMMENT_HEADER_PARAMETR#}</td>
</tr>
</thead>
<tbody>
<tr class="noborder">
<td>{#COMMENT_ENABLE_COMMENT#}</td>
<td><input name="comment_active" type="checkbox" value="1" {if $comment_active=='1'}checked{/if} /></td>
<td>{#COMMENT_CHECK_ADMIN#}</td>
<td><input name="comment_need_approve" type="checkbox" value="1" {if $comment_need_approve=='1'}checked{/if} /></td>
</tr>
<tr>
<td>{#COMMENT_SPAMPROTECT#}</td>
<td><input name="comment_use_antispam" type="checkbox" value="1" {if $comment_use_antispam=='1'}checked{/if} /></td>
<td>{#COMMENT_USE_PAGE_NAV#}</td>
<td><input name="comment_use_page_nav" type="checkbox" value="1" {if $comment_use_page_nav=='1'}checked{/if} /></td>
</tr>
<tr>
<td>{#COMMENT_PAGE_NAV_COUNT#}</td>
<td><input name="comment_page_nav_count" type="text" value="{$comment_page_nav_count}" size="4" style="width: 50px;" /></td>
<td>{#COMMENT_MAX_CHARS#}</td>
<td><input name="comment_max_chars" type="text" id="comment_max_chars" value="{$comment_max_chars}" size="5" maxlength="5" style="width: 50px;" /></td>
</tr>
<tr>
<td style="vertical-align: top; padding-top: 15px;">{#COMMENT_FOR_GROUPS#}</td>
<td style="vertical-align: top; padding-top: 10px;">
<select name="comment_user_groups[]" multiple="multiple" size="6" style="width:90%">
{foreach from=$groups item=g}
{assign var='sel' value=''}
{if $g->user_group}
{if (in_array($g->user_group,$comment_user_groups)) }
{assign var='sel' value='selected'}
{/if}
{/if}
<option value="{$g->user_group}" {$sel}>{$g->user_group_name|escape}</option>
{/foreach}
</select>
</td>
<td style="vertical-align: top; padding-top: 15px;">{#COMMENT_FOR_GROUPS_READ#}</td>
<td style="vertical-align: top; padding-top: 10px;">
<select name="comment_user_groups_read[]" multiple="multiple" size="6" style="width:90%">
{foreach from=$groups item=g}
{assign var='sel_read' value=''}
{if $g->user_group}
{if (in_array($g->user_group,$comment_user_groups_read)) }
{assign var='sel_read' value='selected'}
{/if}
{/if}
<option value="{$g->user_group}" {$sel_read}>{$g->user_group_name|escape}</option>
{/foreach}
</select>
</td>
</tr>
<tr>
<td colspan="2" style="background: #f9f9f9; font-weight: bold; text-align: center; border-right: 1px solid #ddd;">Дополнительное поле №1</td>
<td colspan="2" style="background: #f9f9f9; font-weight: bold; text-align: center;">Дополнительное поле №2</td>
</tr>
<tr>
<td>Заголовок поля 1:</td>
<td style="border-right: 1px solid #ddd;">
<input name="comment_name_f1" type="text" value="{$comment_name_f1|escape}" style="width: 90%;" placeholder="Напр: Веб-сайт" />
<div style="margin-top: 5px;">
<label><input name="comment_show_f1" type="checkbox" value="1" {if $comment_show_f1=='1'}checked{/if} /> Показывать</label>
&nbsp;&nbsp;
<label><input name="comment_req_f1" type="checkbox" value="1" {if $comment_req_f1=='1'}checked{/if} /> Обязательное</label>
</div>
</td>
<td>Заголовок поля 2:</td>
<td>
<input name="comment_name_f2" type="text" value="{$comment_name_f2|escape}" style="width: 90%;" placeholder="Напр: Город" />
<div style="margin-top: 5px;">
<label><input name="comment_show_f2" type="checkbox" value="1" {if $comment_show_f2=='1'}checked{/if} /> Показывать</label>
&nbsp;&nbsp;
<label><input name="comment_req_f2" type="checkbox" value="1" {if $comment_req_f2=='1'}checked{/if} /> Обязательное</label>
</div>
</td>
</tr>
<tr>
<td colspan="4" class="submitArea">
<input type="submit" value="{#COMMENT_BUTTON_SAVE#}" class="basicBtn" style="float: left; margin: 10px;" />
</td>
</tr>
</tbody>
</table>
</form>
</div>