<?php
defined('IN_PHPCMS') or exit('Access Denied');
include admin_tpl('header');
?>
<body>
<form name="myform" method="post" action="?file=setting&action=save" id="sys_setting">
<div class="tag_menu" style="width:99%;margin-top:10px;">
<ul>
<li><a href="#" id='TabTitle0' onclick='ShowTabs(0)' class="selected">基本信息</a></li>
<li><a href="#" id='TabTitle1' onclick='ShowTabs(1)'>网站设置</a></li>
<li><a href="#" id='TabTitle2' onclick='ShowTabs(2)'>性能优化</a></li>
<li><a href="#" id='TabTitle3' onclick='ShowTabs(3)'>安全设置</a></li>
<li><a href="#" id='TabTitle4' onclick='ShowTabs(4)'>附件设置</a></li>
<li><a href="#" id='TabTitle5' onclick='ShowTabs(5)'>邮件设置</a></li>
<li><a href="#" id='TabTitle6' onclick='ShowTabs(6)'>FTP设置</a></li>
<li><a href="#" id='TabTitle7' onclick='ShowTabs(7)'>通行证</a></li>
<li><a href="#" id='TabTitle8' onclick='ShowTabs(8)'>扩展设置</a></li>
</ul>
</div>
<table cellpadding="0" cellspacing="1" class="table_form">
<tbody id='Tabs0' style='display:'>
<tr>
<th width="35%"><strong>Phpcms 官方网站帐号</strong><br />在线升级等在线服务将基于此帐号,请正确填写</th>
<td><input name='setting[phpcmsusername]' type='text' id='phpcms_username' value='<?=$phpcmsusername?>' size='20' maxlength='20' datatype="limit" require="true" min="3" max="20" msg="Phpcms 官方网站帐号必须是3到20个字符" mode=2> <a href="http://www.phpcms.cn/member/register.php" target="_blank" style="color:red">点击免费注册</a></td>
</tr>
<tr>
<th><strong>Phpcms 官方网站密码</strong></th>
<td><input name='setting[phpcmspassword]' type='password' id='phpcms_password' value='<?=$phpcmspassword?>' size='20' class="noime" maxlength='32' datatype="limit" require="true" min="4" max="32" msg="Phpcms 官方网站密码必须是4到32个字符" mode=2> <input type="button" name="check_user" value="检测帐号密码" onClick="test_user();"></td>
</tr>
<tr>
<th width="35%"><strong>网站名称</strong></th>
<td><input name='setting[sitename]' type='text' id='sitename' value='<?=$sitename?>' size='40' maxlength='50'></td>
</tr>
<tr>
<th><strong>网站地址</strong><br>请填写完整URL地址,以“/”结尾</th>
<td><input name='setting[siteurl]' type='text' id='siteurl' value='<?=$siteurl?>' size='40' class="noime" maxlength='255' datatype="custom" require="true" regexp=".+\/$" msg="URL地址不能为空且要以 / 结束 "> </td>
</tr>
<tr>
<th><strong>生成Html</strong></th>
<td>
<input type='radio' name='setting[ishtml]' value='1' <?php if($ishtml){ ?>checked <?php } ?>> 是
<input type='radio' name='setting[ishtml]' value='0' <?php if(!$ishtml){ ?>checked <?php } ?>> 否
</td>
</tr>
<tr>
<th><strong>生成文件扩展名</strong></th>
<td><?=fileext_select('setting[fileext]', $fileext)?></td>
</tr>
<tr>
<th><strong>启用内容页URL加密转换</strong></th>
<td>
<input type='radio' name='setting[enable_urlencode]' value='1' <?php if($enable_urlencode){ ?>checked <?php } ?>> 是
<input type='radio' name='setting[enable_urlencode]' value='0' <?php if(!$enable_urlencode){ ?>checked <?php } ?>> 否
</td>
</tr>
<tr>
<th><strong>Title(网站标题)</strong><br>针对搜索引擎设置的网页标题</th>
<td><input name='setting[meta_title]' type='text' id='seo_title' value='<?=$meta_title?>' size='40' maxlength='50'></td>
</tr>
<tr>
<th><strong>Meta Keywords(网页关键词)</strong><br>针对搜索引擎设置的关键词</th>
<td><textarea name='setting[meta_keywords]' cols='60' rows='2' id='seo_keywords'><?=$meta_keywords?></textarea></td>
</tr>
<tr>
<th><strong>Meta Description(网页描述)</strong><br>针对搜索引擎设置的网页描述</th>
<td><textarea name='setting[meta_description]' cols='60' rows='2' id='seo_description'><?=$meta_description?></textarea></td>
</tr>
<tr>
<th><strong>版权信息</strong><br>将显示在网站底部</th>
<td><textarea name='setting[copyright]' id="copyright" cols="60" rows="4"><?=$copyright?></textarea> <?=form::editor('copyright','introduce','100%',200)?>
</td>
</tr>
<tr>
<th><strong>网站ICP备案序号</strong><br>请在信息产业部管理网站申请<br><a href="http://www.miibeian.gov.cn" target="_blank">http://www.miibeian.gov.cn</a></th>
<td><input name='setting[icpno]' type='text' id='linklogo' value='<?=$icpno?>' size='40' maxlength='255'></td>
</tr>
</tbody>
<tbody id='Tabs1' style='display:none'>
<tr>
<th width="35%"><strong>切换分页方式</strong></th>
<td>
<label onclick="javascript:$('#pagemode').hide();"><input type='radio' name='setting[pagemode]' value='1' <?php if($pagemode){ ?>checked <?php } ?>> 多页显示方式</label>
<label onclick="javascript:$('#pagemode').show();"><input type='radio' name='setting[pagemode]' value='0' <?php if(!$pagemode){ ?>checked <?php } ?>> 上下分页方式</label>
</td>
</tr>
<tr id="pagemode" style="display:<?php if($pagemode) echo 'none';?>">
<th width="35%"><strong>分页代码</strong><br />可自定义分页html代码, {$name} 格式的字符串是变量</th>
<td><textarea name='setting[pageshtml]' cols='60' rows='5' id='pageshtml' style="width:100%;height:130px"><?=$pageshtml?></textarea></td>
</tr>
<tr>
<th><strong>中文分词方式</strong></th>
<td>
<input type='radio' name='setting[segmentclass]' value='segment' <?=$segmentclass=='segment' ? 'checked' : ''?> /> 系统自带分词 <br/>
<input type='radio' name='setting[segmentclass]' value='scws' <?=$segmentclass == 'scws' ? 'checked' : ''?> <?=extension_loaded('scws') ? '' : 'disabled'?>/> SCWS分词扩展
</td>
</tr>
<tr>
<th><strong>开启后台左侧菜单滚动条</strong></th>
<td>
<input type='radio' name='setting[enablegetscrollbar]' value='1' <?php if($enablegetscrollbar){ ?>checked <?php } ?>> 是
<input type='radio' name='setting[enablegetscrollbar]' value='0' <?php if(!$enablegetscrollbar){ ?>checked <?php } ?>> 否
</td>
</tr>
<tr>
<th><strong>启用自动提取关键词功能</strong></th>
<td>
<input type='radio' name='setting[enablegetkeywords]' value='1' <?php if($enablegetkeywords){ ?>checked <?php } ?>> 是
<input type='radio' name='setting[enablegetkeywords]' value='0' <?php if(!$enablegetkeywords){ ?>checked <?php } ?>> 否
</td>
</tr>
<tr>
<th><strong>网站默认地区</strong></th>
<td>
<input type="hidden" name="setting[areaid]" id="areaid" value="<?=$areaid?>">
<?php if($areaid){ ?>
<span onClick="this.style.display='none';$('#reselect_areaid').show();" style="cursor:pointer;"><?=$AREA[$areaid]['name']?><font color="red">点击重选</font></span>
<span id="reselect_areaid" style="display:none;">
<?php } ?>
<span id="load_areaid"></span>
<a href="javascript:areaid_reload();">重选</a>
<?php if($areaid){ ?>
</span>
<?php } ?>
<script type="text/javascript">
function areaid_load(id)
{
$.get('load.php', { field: 'areaid', id: id },
function(data){
$('#load_areaid').append(data);
});
}
function areaid_reload()
{
$('#load_areaid').html('');
areaid_load(0);
}
areaid_load(0);
</script>
</td>
</tr>
<tr>
<th><strong>数据恢复保留时间</strong><br>编辑器数据自动保存的最长时间</th>
<td><select name='setting[editor_max_data_hour]' >
<option value="1" <?php if($editor_max_data_hour==1)echo('selected');?>> 1小时</option>
<option value="2" <?php if($editor_max_data_hour