<!--#include file="tgzcm_Conn.asp"-->
<!--#include file="tgzcm_Check.asp"-->
<!--#include file="../tgzcm.Cache/tgzcm.Html.asp"-->
<%
Dim action,i,config,html,beiyong,j
action=Trim(Request.QueryString("action"))

If action="add" then 
	Call config_add
Else
	Call config_main
End If

Sub config_add
	config=""'初始化变量
	For i=0 to 8
	HtmlId(i)=Trim(Request.Form("HtmlId("&i&")"))
	config=config&"HtmlId("&i&")="""&HtmlId(i)&""""&vbcrlf
	Next
	For J=9 to 14
	beiyong=beiyong&"HtmlId("&j&")="""""&vbcrlf
	Next
	html="<%"&vbcrlf
	html=html&"Dim HtmlId(15)"&vbcrlf
	html=html&config&beiyong
	html=html&"%"&">"
	Call MakeHtml("../tgzcm.Cache/tgzcm.Html.asp",html)'生成配置文件
	response.redirect"?"
End Sub
Sub config_main
%><html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<TITLE>管理页面</TITLE>
<link href="skins/css/tgzcm_main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="form1" method="post" action="?action=add">
<tr >
<td width="150" class="td2" style="text-align:right; border-bottom:1px solid #FFFFFF">是否开启首页缓存：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input type="radio" name="HtmlId(0)" style="border:none" value="1" <%Call tgzcmradio(HtmlId(0),"1")%>>是 <input type="radio" name="HtmlId(0)" style="border:none" value="2" <%Call tgzcmradio(HtmlId(0),"2")%>>  否 </td>
</tr>
<tr >
<td width="150" class="td2" style="text-align:right; border-bottom:1px solid #FFFFFF">首页缓存最大时间：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input name="HtmlId(1)" type="text" style="width:50px; text-align:left;" value="<%=HtmlId(1)%>"> 单位:小时</td>
</tr>
<tr> 
<th colspan=5 style="text-align:center; height:40px;">以上为Asp/伪静态参数 以下为静态模式相关参数</th>
</tr>
<tr >
<td width="150" class="td2" style="text-align:right; border-bottom:1px solid #FFFFFF">生成HTML方式：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input type="radio" name="HtmlId(2)" style="border:none" value="1" <%Call tgzcmradio(HtmlId(2),"1")%>>全部生成</td>
</tr>

<tr >
<td width="150" class="td2" style="text-align:right; border-bottom:1px solid #FFFFFF">网站首页的扩展名：</td>
<td colspan="3" class="td1" style="padding-left:10px"><input type="radio" name="HtmlId(6)" style="border:none" value="html" <%Call tgzcmradio(HtmlId(6),"html")%>>.Html<input type="radio" name="HtmlId(6)" style="border:none" value="htm" <%Call tgzcmradio(HtmlId(6),"htm")%>>.Htm<input type="radio" name="HtmlId(6)" style="border:none" value="shtml" <%Call tgzcmradio(HtmlId(6),"shtml")%>>.Shtml<input type="radio" name="HtmlId(6)" style="border:none" value="shtm" <%Call tgzcmradio(HtmlId(6),"shtm")%>>.Shtm</td>
</tr>
<tr> 
<th colspan=5 style="text-align:center; height:40px;"><input type="submit" value="确认更新" /></th>
</tr>
</form>
</table>
</body>
</html>
<%End Sub%>
