<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>访问路径设置</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel='stylesheet' type='text/css' href='./views/css/admin_style.css'>
<script language="JavaScript" charset="utf-8" type="text/javascript" src="./views/js/jquery.js"></script>
<style type="text/css">.input{ font-size:14px}</style> 
<script language="javascript">
function showtab(mid,val,n){
 	for(var i=1;i<=n;i++){
		$('#'+mid+i).hide();
	}
	$('#'+mid+val).show();
}
function showtabs(mid,val,n){
    if(val>0){
		for(var i=1;i<=n;i++){
			$('#'+mid+i).show();
		}
	}else{
		for(var i=1;i<=n;i++){
			$('#'+mid+i).hide();
		}
	}
}
$(document).ready(function(){
	$('#url_rewrite').change(function(){
		showtab('rewrite',$(this).val(),1);
	});
	<eq name="url_rewrite" value="1">showtab('rewrite',1,1);</eq>
	$('#url_html').change(function(){
		showtabs('html',$(this).val(),13);
		if($(this).val()==1){
			if($('#url_html_rule').val()==1){
				showtabs('html',0,10);
				showtabs('html',1,5);
				$('#html13').show();
			}else{
				showtabs('html',1,13);
				$('#html13').hide();
			}
		}
	});
	<eq name="url_html" value="1">showtabs('html',1,13);</eq>
	$('#url_html_rule').change(function (){
		if($(this).val()==1){
			showtabs('html',0,10);
			showtabs('html',1,5);
			$('#html13').show();
		}else{
			showtabs('html',1,13);
			$('#html13').hide();
		}
	});	
	<eq name="url_html" value="1">
	<eq name="url_html_rule" value="1">showtabs('html',0,10);showtabs('html',1,5);$('#html13').show();<else />$('#html13').hide();</eq>
	</eq>
});
</script>
</head>
<body>
<table width="98%" border="0" cellpadding="4" cellspacing="1" class="table">
<form action="?s=Admin/Config/Updateurl" method="post" id="gxform"> 
<tr class="table_title"><td colspan="4">访问路径设置</td></tr>
<tr class="tr">
  <td class="left">伪静态重写功能</td>
  <td colspan="3"><select name="con[url_rewrite]" id="url_rewrite" class="w100"><option value="1">开启</option><option value="0" <eq name="url_rewrite" value="0">selected</eq>>关闭</option></select>　<span id="rewrite1" style="display:none">后缀名：<select name="con[url_html_suffix]"><option value=".html">.html</option><eq name="url_html_suffix" value=".htm"><option value=".htm" selected>.htm</option><else /><option value=".htm">.htm</option></eq><eq name="url_html_suffix" value=".shtml"><option value=".shtml" selected>.shtml</option><else /><option value=".shtml">.shtml</option></eq><eq name="url_html_suffix" value=".shtm"><option value=".shtm" selected>.shtm</option><else /><option value=".shtm">.shtm</option></eq></select></span>
  </td>
</tr>
<tr class="ji">
  <td class="left">网站运行模式</td>
  <td colspan="3"><select name="con[url_html]" id="url_html" class="w100"><option value="1">静态</option><option value="0" <eq name="url_html" value="0">selected</eq>>动态</option></select>　<span id="html1" style="display:none">后缀名：<select name="con[html_file_suffix]"><option value=".html">.html</option><eq name="html_file_suffix" value=".htm"><option value=".htm" selected>.htm</option><else /><option value=".htm">.htm</option></eq><eq name="html_file_suffix" value=".shtml"><option value=".shtml" selected>.shtml</option><else /><option value=".shtml">.shtml</option></eq><eq name="html_file_suffix" value=".shtm"><option value=".shtm" selected>.shtm</option><else /><option value=".shtm">.shtm</option></eq></select>　目录结构：<select name="con[url_html_rule]" id="url_html_rule"><option value="1">目录1：/[enname]/id/</option><option value="2" <eq name="url_html_rule" value="2">selected</eq>>目录2：/[dir]/[id]</option><option value="3" <eq name="url_html_rule" value="3">selected</eq>>目录3：/[dir]/[enname][id]</option></select></span>
  </td>
</tr>
<tr class="ji" id="html2" style="display:none">
  <td class="left">栏目页运行模式</td>
  <td colspan="3"><select name="con[url_html_channel]" id="url_html_channel" class="w100"><option value="1">静态生成</option><option value="0" <eq name="url_html_channel" value="0">selected</eq>>动态不生成</option></select>
  </td>
</tr> 
 <tr class="ji" id="html3" style="display:none">
  <td class="left">播放页运行模式</td>
  <td colspan="3"><select name="con[url_html_play]" id="url_html_play" class="w100"><option value="1">静态生成</option><option value="2" <eq name="url_html_play" value="2">selected</eq>>每集生成静态</option><option value="0" <eq name="url_html_play" value="0">selected</eq>>动态不生成</option></select> 如果每集生成静态则请尽量减小每页生成的数量(否则容易造成超时)
  </td>
</tr>         
<tr class="tr" id="html4" style="display:none">
  <td class="left">网页生成时间间隔</td>
  <td colspan="3"><input type="text" name="con[url_create_time]" maxlength="6" value="{$url_create_time}" class="w100"> 静态生成内容页过程中暂停几秒
  </td>
</tr>
<tr class="ji" id="html5" style="display:none">
  <td class="left">每页生成文件数量</td>
  <td colspan="3"><input type="text" name="con[url_create_num]" maxlength="6" value="{$url_create_num}" class="w100"> 静态生成网页时每一页生成的数量
  </td>
</tr>
<tr class="ji" id="html6" style="display:none">
  <td class="left">影视栏目页保存目录</td>
  <td colspan="3"><input type="text" name="con[url_dir_video]" maxlength="30" value="{$url_dir_video}" class="w100"></td>
</tr>
<tr class="ji" id="html7" style="display:none">
  <td class="left">影视详情页保存目录</td>
  <td colspan="3"><input type="text" name="con[url_dir_videoread]" maxlength="30" value="{$url_dir_videoread}" class="w100"></td>
</tr>
<tr class="ji" id="html8" style="display:none">
  <td class="left">影视播放页保存目录</td>
  <td colspan="3"><input type="text" name="con[url_dir_videoplay]" maxlength="30" value="{$url_dir_videoplay}" class="w100"></td>
</tr> 
<tr class="ji" id="html9" style="display:none">
  <td class="left">新闻栏目页保存目录</td>
  <td colspan="3"><input type="text" name="con[url_dir_info]" maxlength="30" value="{$url_dir_info}" class="w100"></td>
</tr>
<tr class="ji" id="html10" style="display:none">
  <td class="left">新闻详情页保存目录</td>
  <td colspan="3"><input type="text" name="con[url_dir_inforead]" maxlength="30" value="{$url_dir_inforead}" class="w100"></td>
</tr>
<tr class="ji" id="html11" style="display:none">
  <td class="left">网站专题页保存目录</td>
  <td colspan="3"><input type="text" name="con[url_dir_special]" maxlength="30" value="{$url_dir_special}" class="w100"></td>
</tr>
<tr class="ji" id="html12" style="display:none">
  <td class="left">地图排行榜保存目录</td>
  <td colspan="3"><input type="text" name="con[url_dir_maps]" maxlength="30" value="{$url_dir_maps}" class="w100"></td>
</tr> 
<tr class="ji" id="html13" style="display:none">
  <td class="left">是否保存到指定目录</td>
  <td colspan="3"><input type="text" name="con[url_dir_all]" maxlength="30" value="{$url_dir_all}" class="w100"> 请填写目录名称，如"html"</td>
</tr>      
<tr class="tr">
  <td colspan="4"><input type="hidden" name="setting_sub" value="true">
    <input class="bginput" type="submit" name="submit" value="提交">
    <input class="bginput" type="reset" name="Input" value="重置" >
  </td>
</tr>
</form>
</table>
<include file="footer" />
</body>
</html>