<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>网站基本设置</title>
<LINK href="<?=base_url()?>csdj/admin/images/admin.css" type="text/css" rel="stylesheet">
<SCRIPT type="text/javascript" src="<?=base_url()?>csdj/admin/js/admin.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/dialog.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/setcolor.js"></script>
<script>
//转换
function menu(id,t) {
   if(t==1){
      document.getElementById('jingtai2').style.display='none';
      document.getElementById('jingtai').style.display='';
      document.getElementById('mb1').style.display='';
   } else if(t==2){
      document.getElementById('jingtai').style.display='none';
      document.getElementById('jingtai2').style.display='';
      for(var i=1;i<=5;i++){
          document.getElementById('mb'+i).style.display='none';
      }
   }else{
      document.getElementById('jingtai').style.display='none';
      document.getElementById('jingtai2').style.display='none';
      for(var i=1;i<=5;i++){
          document.getElementById('mb'+i).style.display='none';
      }
   }
}
function html(id) {
   for(var i=1;i<=5;i++){
        if(id==i){
            document.getElementById('mb'+i).style.display='';
        }else{
            document.getElementById('mb'+i).style.display='none';
        }
   }
}
function html2(id) {
   for(var i=1;i<=5;i++){
        if(id==i){
            document.getElementById('mbs'+i).style.display='';
        }else{
            document.getElementById('mbs'+i).style.display='none';
        }
   }
}
</script>
</head>
<BODY style="margin:2px">
 
	<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#A2DAE7" width="98%" style="border-collapse:collapse;">
	<form method="post" Name="myForm" action="<?=site_url('admin/setting/edit')?>"> 
	<tr><td align="center" height="20" colspan="3" class="title">网站基本设置</td></tr>
	<tr><td width="20%" align="right"><strong>网站名称：</strong></td>
		<td width="35%"><input size="50" name="Web_Name" value="<?=Web_Name?>"></td>
		<td width="45%">可以在模板里通过{cscms:webname}标签调用</td>
	</tr>
	<tr><td align="right"><strong>网站标题：</strong></td>
		<td><input size="50" name="Web_Title" value="<?=stripslashes(html_entity_decode(Web_Title))?>"></td>
		<td>可以在模板里通过{cscms:title}标签调用</td>
	</tr>
	<tr><td align="right"><strong>网站域名：</strong></td>
		<td><input size="50" name="Web_Url" value="<?=Web_Url?>"></td>
		<td>请不要带http://,最后面不要带&quot;/&quot;符号。{cscms:weburl}</td>
	</tr>
	<tr><td align="right"><strong>网站路径：</strong></td>
		<td><input size="50" name="Web_Path" value="<?=Web_Path?>"></td>
		<td>二级目录可以填写&quot;/XX/&quot;,其中XX为二级目录名。{cscms:path}</td>
	</tr>
	<tr><td align="right"><strong>后台访问域名：</strong></td>
		<td><input size="50" name="Admin_Url" value="<?=Admin_Url?>"></td>
		<td>比如：admin.chshcms.com，绑定后,只能通过该域名登入后台，留空为取消。</td>
	</tr>
	<tr><td align="right"><strong>后台认证码：</strong></td>
		<td><input size="50" name="Admin_Code" value="<?=Admin_Code?>"></td>
		<td>登入后台时输入的认证码</td>
	</tr>
	<tr><td align="right"><strong>站长QQ：</strong></td>
		<td><input size="50" name="Admin_QQ" value="<?=Admin_QQ?>"></td>
		<td>可以在模板里通过{cscms:qq}标签调用</td>
	</tr>
	<tr><td align="right"><strong>站长电话：</strong></td>
		<td><input size="50" name="Admin_Tel" value="<?=Admin_Tel?>"></td>
		<td>可以在模板里通过{cscms:tel}标签调用</td>
	</tr>
	<tr><td align="right"><strong>站长邮箱：</strong></td>
		<td><input size="50" name="Admin_Mail" value="<?=Admin_Mail?>"></td>
		<td>可以在模板里通过{cscms:webmail}标签调用</td>
	</tr>
	<tr><td align="right"><strong>网站META关键词：</strong></td>
		<td><textarea name="Web_Keywords" cols="50" rows="3"><?=stripslashes(html_entity_decode(Web_Keywords))?></textarea></td>
		<td>针对搜索引擎设置的网页关键词,多个描述请用,号分隔。<br>可以在模板里通过{cscms:keywords}标签调用</td>
	</tr>
	<tr><td align="right"><strong>网站META网页描述：</strong></td>
		<td><textarea name="Web_Description" cols="50" rows="3"><?=stripslashes(html_entity_decode(Web_Description))?></textarea></td>
		<td>针对搜索引擎设置的网页描述,多个描述请用,号分隔。<br>可以在模板里通过{cscms:description}标签调用</td>
	</tr>

	<tr><td align="center" height="20" colspan="3" class="title">网站模式设置&nbsp;&nbsp;&nbsp;&nbsp;(<font color=red>静态URL地址中不能使用中文和特殊符号！&nbsp;&nbsp;纯静态后缀只支持：html、htm、shtml、shtm、php，其他后缀会出错!</font>)</td></tr>
	<tr><td align="right"><strong>网站运行状态：</strong></td>
		<td><input id="zt1" type="radio" name="Web_Off" onClick="document.getElementById('yxzt').style.display='none';" value="0"<?php if(Web_Off==0) echo ' checked';?>/><label for="zt1">开启</label>&nbsp;&nbsp;
			<input id="zt2" type="radio" name="Web_Off" onClick="document.getElementById('yxzt').style.display='';" value="1"<?php if(Web_Off==1) echo ' checked';?>/><label for="zt2">关闭</label></td>
		<td>可以做为升级时用！</td>
	</tr>
        <tbody id="yxzt" <?php if(Web_Off==0){echo 'style="display:none"';}?>>
	<tr><td align="right"><strong>关闭提示信息：</strong></td>
		<td><input size="50" name="Web_Onneir" value="<?=stripslashes(html_entity_decode(Web_Onneir))?>"></td>
		<td>不能使用HTML代码！</td>
	</tr>
        </tbody>

	<tr><td align="right"><strong>网站运行模式：</strong></td>
		<td><input id="ms1" type="radio" name="Web_Mode" onClick="menu('jingtai',1);" value="3"<?php if(Web_Mode==3) echo ' checked';?>/><label for="ms1">纯静态</label>&nbsp;&nbsp;
			<input id="ms2" type="radio" name="Web_Mode" onClick="menu('jingtai',2);" value="2"<?php if(Web_Mode==2) echo ' checked';?>/><label for="ms2">伪静态</label>&nbsp;&nbsp;
			<input id="ms3" type="radio" name="Web_Mode" onClick="menu('jingtai',3);" value="1"<?php if(Web_Mode==1) echo ' checked';?>/><label for="ms3">ID动态</label></td>
		<td>注意：开启伪静态需要你的空间支持《伪静态》组建！</td>
	</tr>

        <!--纯静态-->
        <tbody id="jingtai" <?php if(Web_Mode!=3){echo 'style="display:none"';}?>>
	<tr><td align="right"><strong>生成间隔秒数：</strong></td>
		<td><input size="10" name="Html_StopTime" value="<?=Html_StopTime?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">&nbsp;秒</td>
		<td>数字越小越快，慢点可以减轻服务器压力！</td>
	</tr>
	<tr><td align="right"><strong>网站首页文件：</strong></td>
		<td><select name="Html_Index" style="width:180px;">
				<option value="index.html"<?php if(Html_Index=='index.html') echo ' selected';?>>index.html</option>
				<option value="index.htm"<?php if(Html_Index=='index.htm') echo ' selected';?>>index.htm</option>
				<option value="index.shtml"<?php if(Html_Index=='index.shtml') echo ' selected';?>>index.shtml</option>
				<option value="index.shtm"<?php if(Html_Index=='index.shtm') echo ' selected';?>>index.shtm</option>
		</select></td>
		<td>纯静态模式有效</td>
	</tr>
	<tr><td align="right"><strong>歌曲主页URL：</strong></td>
		<td><input size="50" name="Html_Dindex" value="<?=Html_Dindex?>"></td>
		<td>可以在模板里通过{cscms:dancelink}标签调用</td>
	</tr>
	<tr><td align="right"><strong>文章主页URL：</strong></td>
		<td><input size="50" name="Html_Nindex" value="<?=Html_Nindex?>"></td>
		<td>可以在模板里通过{cscms:newslink}标签调用</td>
	</tr>
	<tr><td align="right"><strong>歌手主页URL：</strong></td>
		<td><input size="50" name="Html_Sindex" value="<?=Html_Sindex?>"></td>
		<td>可以在模板里通过{cscms:singerlink}标签调用</td>
	</tr>
	<tr><td align="right"><strong>视频主页URL：</strong></td>
		<td><input size="50" name="Html_Vindex" value="<?=Html_Vindex?>"></td>
		<td>可以在模板里通过{cscms:vodlink}标签调用</td>
	</tr>
	<tr><td align="right"><strong><font color=red>选择要操作的版区：</font></strong></td>
		<td><input id="mmbS1" type="radio" name="mbS" onClick="html(1);" value="1" checked/><label for="mmbS1">歌曲版块</label>&nbsp;
			<input id="mmbS2" type="radio" name="mbS" onClick="html(2);" value="2"><label for="mmbS2">文章版块</label>&nbsp;
			<input id="mmbS3" type="radio" name="mbS" onClick="html(3);" value="3"><label for="mmbS3">歌手版块</label>&nbsp;
			<input id="mmbS4" type="radio" name="mbS" onClick="html(4);" value="4"><label for="mmbS4">视频版块</label>&nbsp;
			<input id="mmbS5" type="radio" name="mbS" onClick="html(5);" value="5"><label for="mmbS5">专集版块</label></td>
		<td><font color=red>注意：分类URL里面的&nbsp;<font color=#0000ff>{id}</font>&nbsp;可以用别名&nbsp;<font color=#0000ff>{aliasname}</font>&nbsp;来替代<br>&nbsp;&nbsp;<font color=#0000ff>专集是类容URL</font></font></td>
	</tr>
        </tbody>

        <tbody id="mb1" <?php if(Web_Mode!=3){echo 'style="display:none"';}?>>
	<tr><td align="right"><strong>歌曲分类URL：</strong></td>
		<td><input size="50" name="Html_Dlist" value="<?=Html_Dlist?>"></td>
		<td>URL地址里面必须包含<font color=red>{sort}</font>&nbsp;&nbsp;<font color=red>{id}</font>&nbsp;&nbsp;<font color=red>{page}</font>这三个标签！</td>
	</tr>
	<tr><td align="right"><strong>歌曲播放URL：</strong></td>
		<td><input size="50" name="Html_Dplay" value="<?=Html_Dplay?>"></td>
		<td>URL地址里面必须包含<font color=red>{id}</font>标签！</td>
	</tr>
        </tbody>


        <tbody id="mb2" style="display:none">
	<tr><td align="right"><strong>文章分类URL：</strong></td>
		<td><input size="50" name="Html_Nlist" value="<?=Html_Nlist?>"></td>
		<td>URL地址里面必须包含<font color=red>{sort}</font>&nbsp;&nbsp;<font color=red>{id}</font>&nbsp;&nbsp;<font color=red>{page}</font>这三个标签！</td>
	</tr>
	<tr><td align="right"><strong>文章内容URL：</strong></td>
		<td><input size="50" name="Html_Nshow" value="<?=Html_Nshow?>"></td>
		<td>URL地址里面必须包含<font color=red>{id}</font>标签！</td>
	</tr>
        </tbody>

        <tbody id="mb3" style="display:none">
	<tr><td align="right"><strong>歌手分类URL：</strong></td>
		<td><input size="50" name="Html_Slist" value="<?=Html_Slist?>"></td>
		<td>URL地址里面必须包含<font color=red>{sort}</font>&nbsp;&nbsp;<font color=red>{id}</font>&nbsp;&nbsp;<font color=red>{page}</font>这三个标签！</td>
	</tr>
	<tr><td align="right"><strong>歌手内容URL：</strong></td>
		<td><input size="50" name="Html_Sshow" value="<?=Html_Sshow?>"></td>
		<td>URL地址里面必须包含<font color=red>{id}</font>&nbsp;&nbsp;<font color=red>{page}</font>标签！</td>
	</tr>
        </tbody>

        <tbody id="mb4" style="display:none">
	<tr><td align="right"><strong>视频分类URL：</strong></td>
		<td><input size="50" name="Html_Vlist" value="<?=Html_Vlist?>"></td>
		<td>URL地址里面必须包含<font color=red>{sort}</font>&nbsp;&nbsp;<font color=red>{id}</font>&nbsp;&nbsp;<font color=red>{page}</font>这三个标签！</td>
	</tr>
	<tr><td align="right"><strong>视频内容URL：</strong></td>
		<td><input size="50" name="Html_Vshow" value="<?=Html_Vshow?>"></td>
		<td>URL地址里面必须包含<font color=red>{id}</font>标签！</td>
	</tr>
        </tbody>

        <tbody id="mb5" style="display:none">
	<tr><td align="right"><strong>专集分类URL：</strong></td>
		<td><input size="50" name="Html_Tlist" value="<?=Html_Tlist?>"></td>
		<td>URL地址里面必须包含<font color=red>{sort}</font>&nbsp;&nbsp;<font color=red>{page}</font>这三个标签！</td>
	</tr>
	<tr><td align="right"><strong>专集内容URL：</strong></td>
		<td><input size="50" name="Html_Tshow" value="<?=Html_Tshow?>"></td>
		<td>URL地址里面必须包含<font color=red>{sort}</font>&nbsp;&nbsp;<font color=red>{id}</font>&nbsp;&nbsp;<font color=red>{page}</font>标签！</td>
	</tr>
        </tbody>
        <!--纯静态 END-->


        <!--伪静态-->
        <tbody id="jingtai2" <?php if(Web_Mode!=2){echo 'style="display:none"';}?>>
	<tr><td align="right"><strong><font color=red>您系统支持的伪静态规则：</font></strong></td>
		<td><input id="mbswS1" type="radio" name="Html_Wjt" value="httpd.ini"<?php if(Html_Wjt=="httpd.ini")echo ' checked';?>/><label for="mbswS1">httpd.ini</label>&nbsp;
			<input id="mbswS2" type="radio" name="Html_Wjt" value=".htaccess"<?php if(Html_Wjt==".htaccess")echo ' checked';?>><label for="mbswS2">.htaccess</label>&nbsp;
			<input id="mbswS3" type="radio" name="Html_Wjt" value="nginx.conf"<?php if(Html_Wjt=="nginx.conf")echo ' checked';?>><label for="mbswS3">nginx.conf</label></td>
		<td><font color=red>请正确选择您的系统支持的伪静态规则，不懂可以咨询您的空间商！</font></td>
	</tr>
        </tbody>
       <!--伪静态 END-->


	<tr><td align="center" height="20" colspan="3" class="title">网站页面缓存</td></tr>
	<tr><td align="right"><strong>缓存状态：</strong></td>
		<td><input id="hc1" onClick="javascript:document.getElementById('hczt').style.display='';" type="radio" name="Cache_Is" value="1"<?php if(Cache_Is==1) echo ' checked';?>/><label for="hc1">开启</label>&nbsp;&nbsp;
		    <input id="hc2" onClick="javascript:document.getElementById('hczt').style.display='none';" type="radio" name="Cache_Is" value="0"<?php if(Cache_Is==0) echo ' checked';?>/><label for="hc2">关闭</label></td>
		<td>如果开启了数据库缓存可以关闭此功能。</td>
	</tr>
        <tbody id="hczt" <?php if(Cache_Is==0){echo 'style="display:none"';}?>>
	<tr><td align="right"><strong>缓存时间：</strong></td>
		<td><input size="10" name="Cache_Time" value="<?=Cache_Time?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">&nbsp;秒</td>
		<td>页面更新时间，为秒数！</td>
	</tr>
	<tr><td align="right"><strong>缓存目录：</strong></td>
		<td><input size="20" name="Cache_Name" value="<?=Cache_Name?>"></td>
		<td>缓存文件存储目录！</td>
	</tr>
        </tbody>

	<tr><td align="center" height="20" colspan="3" class="title">播放器设置</td></tr>
	<tr><td align="right"><strong>音乐播放器宽度：</strong></td>
		<td><input size="10" name="CS_Play_w" value="<?=CS_Play_w?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">&nbsp;Px</td>
		<td>音乐播放器宽度！</td>
	</tr>
	<tr><td align="right"><strong>音乐播放器高度：</strong></td>
		<td><input size="10" name="CS_Play_h" value="<?=CS_Play_h?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">&nbsp;Px</td>
		<td>音乐播放器高度！</td>
	</tr>
	<tr><td align="right"><strong>视频播放器宽度：</strong></td>
		<td><input size="10" name="CS_Play_sw" value="<?=CS_Play_sw?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">&nbsp;Px</td>
		<td>视频播放器宽度！</td>
	</tr>
	<tr><td align="right"><strong>视频播放器高度：</strong></td>
		<td><input size="10" name="CS_Play_sh" value="<?=CS_Play_sh?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">&nbsp;Px</td>
		<td>视频播放器高度！</td>
	</tr>
	<tr><td align="right"><strong>视频播放广告时间：</strong></td>
		<td><input size="10" name="CS_Play_AdloadTime" value="<?=CS_Play_AdloadTime?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">&nbsp;秒</td>
		<td>视频播放广告时间,为秒数！</td>
	</tr>

	<tr><td align="center" height="20" colspan="3" class="title">其他设置</td></tr>
	<tr><td align="right"><strong>网站ICP备案号：</strong></td>
		<td><input size="50" name="Web_Icp" value="<?=Web_Icp?>"></td>
		<td>可以在模板里通过{cscms:icp}标签调用</td>
	</tr>
	<tr><td align="right"><strong>网站热门搜索：</strong></td>
		<td><input size="50" name="Web_Key" value="<?=Web_Key?>"></td>
		<td>多个用|阁开，可以在模板里通过{cscms:keyword}标签调用</td>
	</tr>
	<tr><td align="right"><strong>网站公告：</strong></td>
		<td><textarea name="Web_Notice" cols="50" rows="3"><?=stripslashes(html_entity_decode(Web_Notice))?></textarea></td>
		<td>可以在模板里通过{cscms:notice}标签调用</td>
	</tr>
	<tr><td align="right"><strong>第三方统计：</strong></td>
		<td><textarea name="Web_Count" cols="50" rows="3"><?=stripslashes(html_entity_decode(Web_Count))?></textarea></td>
		<td>可以在模板里通过{cscms:stat}标签调用</td>
	</tr>

	<tr><td align="right"><strong>评论状态：</strong></td>
		<td><input id="pl1" onClick="javascript:document.getElementById('plts').style.display='';" type="radio" name="Pl_Modes" value="0"<?php if(Pl_Modes==0) echo ' checked';?>/><label for="pl1">站内</label>&nbsp;&nbsp;
			<input id="pl2" onClick="javascript:document.getElementById('plts').style.display='none';" type="radio" name="Pl_Modes" value="1"<?php if(Pl_Modes==1) echo ' checked';?>/><label for="pl2">友言</label>&nbsp;&nbsp;
			<input id="pl3" onClick="javascript:document.getElementById('plts').style.display='none';" type="radio" name="Pl_Modes" value="2"<?php if(Pl_Modes==2) echo ' checked';?>/><label for="pl3">关闭</label></td>
		<td>“友言”是直接调用第三方平台的。</td>
	</tr>
	<tr id="plts" <?php if(Pl_Modes!=0){echo "style=\"display:none\"";} ?>><td align="right"><strong>评论每页显示条数：</strong></td>
		<td><input size="10" name="Pl_Num" value="<?=Pl_Num?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">&nbsp;条</td>
		<td>只对站内评论有效!</td>
	</tr>
	<tr><td align="right"><strong>限制评论非法字符：</strong></td>
		<td><textarea name="Pl_Str" cols="50" rows="5"><?=stripslashes(html_entity_decode(Pl_Str))?></textarea></td>
		<td>针对发表评论、留言,多个请用,号分隔。</td>
	</tr>
        <!-------默认模版列表--------->
        <input type="hidden" name="Skins_dir" value="<?=Skins_dir?>"/>
        <input type="hidden" name="Skins_home_dir" value="<?=Skins_home_dir?>"/>
        <input type="hidden" name="Skins_user_dir" value="<?=Skins_user_dir?>"/>

  	<tr align="center">
    		<td height="36" colspan="3" ><input type="submit" name="Submit" class="italk-bt" value=" 保 存 "></td>
  	</tr></form>
	</table>
</body>
</html>

