📄 editgblsettings.tpl
字号:
{strip}
<script type="text/javascript">
/* <![CDATA[ */
function validate(form,val){ldelim}
form=document.getElementById(form);
form.txtconfigvariable.value = val;
form.txtconfigvalue.value = document.getElementById('txtconfigval').value;
form.txtglblgroup.value = {$glblgroup};
form.submit();
{rdelim}
/* ]]> */
</script>
<script type="text/javascript" src="{$DOC_ROOT}javascript/picker.js"></script>
<form name="frmEditConfig" id="frmEditConfig" method="post" action="editgblsettings.php">
<input type="hidden" name="frm" value="frmEditConfig" />
<input type="hidden" name="txtconfigvariable" value="" />
<input type="hidden" name="txtconfigvalue" value="" />
<input type="hidden" name="txtglblgroup" value="" />
</form>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" valign="top">
{assign var="page_hdr01_text" value="{lang mkey='globalconfigurations'}"}
{include file="admin/admin_page_hdr01.tpl"}
</td>
</tr>
<tr><td class='module_detail_inside' colspan="2">
<form method="post" action="" name="frm1">
<table border=0>
<tr>
<td>{lang mkey='glblgroups'}: </td>
<td ><select name="glblgroup" onchange="javascript: document.frm1.submit();">{html_options options=$glblgroups selected=$glblgroup}</select>
</td>
</tr>
</table>
</form>
</td>
</tr>
{if $errormsg != ''}
<tr><td class='module_detail_inside' colspan="2">
<table border=0 >
<tr>
<td height="1"></td>
</tr>
<tr>
<td style="padding-left: 5px;"><font color="{lang mkey='required_info_indicator_color'}">{$errormsg}</font>
</td>
</tr>
<tr>
<td height="1"></td>
</tr>
</table>
</td>
</tr>
{/if}
<tr>
<td class="module_detail_inside" colspan="2">
{assign var="page_hdr02_text" value="{lang mkey='globalconfigurations'} > "|cat:$glblgroups[$glblgroup]}
{include file="admin/admin_page_hdr02.tpl"}
<form name="frm001" action="">
<table class="table" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}" border="0">
<tr align="center" class="table_head">
<th width="60%">{lang mkey='descrip'}</th>
<th width="35%">{lang mkey='col_head_value'}</th>
<th width="5%">{lang mkey='edit'}</th>
</tr>
{foreach item=item from=$confdata}
<tr class="{cycle values="oddrow,evenrow"}">
<td>{$item.description|stripslashes}<a name="{$item.config_variable}"></a></td>
{if $smarty.get.edit != $item.config_variable}
<td>{if $item.config_variable == 'default_user_level' or $item.config_variable == 'expired_user_level'}
{$memberships[$item.config_value]|stripslashes}
{else}
{$item.config_value|stripslashes}
{/if}
</td>
{elseif $smarty.get.edit eq 'cntry_mgt' or $smarty.get.edit eq 'snaps_require_approval' or $smarty.get.edit eq 'images_in_db' or $smarty.get.edit eq'default_active_status' or $smarty.get.edit eq 'feedback_info' or $smarty.get.edit eq 'use_profilepopups' or ( $item.groupid eq '4' and $smarty.get.edit != 'message_days_old' and $smarty.get.edit != 'message_count' and $smarty.get.edit != 'message_warn_days' ) or $smarty.get.edit eq 'drop_tn_also' or $smarty.get.edit eq 'use_extsearchhead' or $smarty.get.edit eq 'seo_username' or $smarty.get.edit eq 'mod_rating_allow_com' or $smarty.get.edit eq 'mod_rating_allow_rep' or $smarty.get.edit eq 'bypass_regconfirm' or $smarty.get.edit eq 'bypass_search_lookgender' or $smarty.get.edit eq 'newuser_admin_info' or $smarty.get.edit eq 'newpic_admin_info' or $smarty.get.edit eq 'newvideo_admin_info' or $smarty.get.edit eq 'display_all_menu_items' or $smarty.get.edit eq 'enable_shoutbox' or $smarty.get.edit eq 'enable_php121' or $smarty.get.edit eq 'disable_cache' or $smarty.get.edit eq 'aff_default_active_status' or $smarty.get.edit eq 'accept_timezone' or $smarty.get.edit eq 'timezone_mandatory' or $smarty.get.edit eq 'enable_mod_rewrite' or $smarty.get.edit eq 'watermark_text_shadow' or $smarty.get.edit eq 'banner_in_emails' or $smarty.get.edit eq 'flashbb_installed' or $smarty.get.edit eq 'forum_display_in_same_window' or $smarty.get.edit eq 'luckyspin_genderwise'}
<td>
<select name="txtconfigval" id="txtconfigval">
{html_options options=$lang.enabled_values selected=$item.config_value}
</select>
</td>
{* User data fields controls *}
{ elseif $smarty.get.edit eq 'country_mandatory' or $smarty.get.edit eq 'accept_country' or $smarty.get.edit eq 'state_mandatory' or $smarty.get.edit eq 'accept_state' or $smarty.get.edit eq 'county_mandatory' or $smarty.get.edit eq 'accept_county' or $smarty.get.edit eq 'city_mandatory' or $smarty.get.edit eq 'accept_city' or $smarty.get.edit eq 'zipcode_mandatory' or $smarty.get.edit eq 'accept_zipcode' or $smarty.get.edit eq 'accept_allow_viewonline' or $smarty.get.edit eq 'default_allow_viewonline' or $smarty.get.edit eq 'accept_timezone' or $smarty.get.edit eq 'accept_address_line1' or $smarty.get.edit eq 'accept_address_line2' or $smarty.get.edit eq 'accept_lookage' or $smarty.get.edit eq 'accept_lookgender' or $smarty.get.edit eq 'accept_lookcountry' or $smarty.get.edit eq 'lookcountry_mandatory' or $smarty.get.edit eq 'accept_address_line2' or $smarty.get.edit eq 'accept_lookstate' or $smarty.get.edit eq 'accept_lookcounty' or $smarty.get.edit eq 'accept_lookcity' or $smarty.get.edit eq 'accept_lookzipcode' or $smarty.get.edit eq 'nomail_for_onlineuser' or $smarty.get.edit eq 'accept_about_me' or $smarty.get.edit eq 'about_me_mandatory' or $smarty.get.edit eq 'about_me_in_smallprofile'}
<td>
<select name="txtconfigval" id="txtconfigval">
{html_options options=$lang.enabled_values selected=$item.config_value}
</select>
</td>
{elseif $smarty.get.edit eq 'forum_installed'}
<td>
<select name="txtconfigval" id="txtconfigval">
{html_options options=$lang.forum_values selected=$item.config_value}
</select>
</td>
<!-- MOD START -->
{elseif $smarty.get.edit eq 'mod_rating_inc_order'}
<td>
<select name="txtconfigval" id="txtconfigval">
{html_options options=$lang.mod_lowtohigh selected=$item.config_value}
</select>
</td>
<!-- MOD END -->
{elseif $smarty.get.edit == 'default_country'}
<td>
<select name="txtconfigval" id="txtconfigval">
{html_options options=$lang.countries selected=$item.config_value}
</select>
</td>
{elseif $smarty.get.edit == 'skin_name'}
<td>
<select name="txtconfigval" id="txtconfigval">
{html_options options=$template_dirs selected=$item.config_value}
</select>
</td>
{elseif $smarty.get.edit == 'default_user_level' or $smarty.get.edit == 'expired_user_level' }
<td>
<select name="txtconfigval" id="txtconfigval">
{html_options options=$memberships selected=$item.config_value}
</select>
</td>
{elseif $smarty.get.edit == 'search_sort_by' }
<td>
<select name="txtconfigval" id="txtconfigval">
<option value="username" {if $sort_by eq 'username'} selected="selected" {/if}>{lang mkey='username_without_colon'}</option>
<option value="age" {if $sort_by eq 'age'}selected{/if}> {lang mkey='age'} </option>
<option value="logintime" {if $sort_by eq 'logintime'}selected{/if}>{lang mkey='logintime'}</option>
<option value="online" {if $sort_by eq 'online'}selected{/if}>{lang mkey='online'}</option>
<option value="level" {if $sort_by eq 'level'}selected{/if}>{lang mkey='membership_hdr'}</option>
</select>
</td>
{else}
{if $smarty.get.value == '' }
<td>
<input type="text" name="txtconfigval" id="txtconfigval" value="{$item.config_value}" size="25" />
</td>
{else}
<td>
<input type="text" name="txtconfigval" id="txtconfigval" value="#{$smarty.get.value}" size="25" />
</td>
{/if}
{/if}
{if $smarty.get.edit != $item.config_variable}
<td>
{* Mozilla doesnot implement showModalDialog *}
<a href="?glblgroup={$glblgroup}&edit={$item.config_variable}#{$item.config_variable}">
<img src="images/button_edit.png" border="0" alt="" />
</a>
</td>
{else}
<td nowrap>
{if $smarty.get.edit == 'watermark_text_color' or $smarty.get.edit == 'bgcolor' or $smarty.get.edit == 'textcolor' }
<a href="javascript:TCP.popup(document.forms['frm001'].elements['txtconfigval'])"><img width="15" height="13" border="0" alt="Click Here to Pick up the color" src="images/sel.gif" /></a>
{/if}
<a href="javascript:validate('frmEditConfig','{$item.config_variable}');">
<img src="images/button_save.jpg" border="0" alt="" /></a>
<a href="editgblsettings.php#{$item.config_variable}">
<img src="images/button_cancel1.jpg" border="0" alt="Cancel" /></a>
</td>
{/if}
</tr>
{/foreach}
</table>
</form>
</td>
</tr>
</table>
<br />
{/strip}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -