<!--#include file="conn.asp"-->
<!--#include file="const.asp"-->
<!-- #include file="se.asp" -->
<LINK 
href="../7thcss.css" type=text/css rel=stylesheet>
<script src="../alt.js"></script>
<%
if Request("method") = 1 then
		set fso=Server.CreateObject("Scripting.FileSystemObject")
	set hf=fso.CreateTextFile(Server.MapPath("const.asp"),true)
    hf.write "<" & "%" & vbcrlf
	hf.write "Const NetName=" & chr(34) & trim(request("NetName")) & chr(34) & "        '站点名称" & vbcrlf
	hf.write "Const NetUrl=" & chr(34) & trim(request("NetUrl")) & chr(34) & "        '站点网址" & vbcrlf
	hf.write "Const Logo=" & chr(34) & trim(request("Logo")) & chr(34) & "        '站点LOGO" & vbcrlf
	hf.write "Const Ads=" & chr(34) & trim(request("Ads")) & chr(34) & "        '顶部广告" & vbcrlf
	hf.write "Const Email=" & chr(34) & trim(request("Email")) & chr(34) & "        '管理员Email" & vbcrlf
	hf.write "Const accredit=" & chr(34) & trim(request("accredit")) & chr(34) & "        '授权信息" & vbcrlf
	hf.write "Const Pages=" & trim(request("Pages")) & "        '分页显示数" & vbcrlf
	hf.write "Const MaxFileSize=" & trim(request("MaxFileSize")) & "        '上传文件大小限制" & vbcrlf
	hf.write "Const p=" & chr(34) & trim(request("p")) & chr(34) & "        '存放上传文件的目录大图" & vbcrlf
	hf.write "%" & ">"
	hf.close
	set hf=nothing
	set fso=nothing
	
	Response.write "<script>alert(""修改成功"");location.href=""admin_setup.asp"";</script>"
	Response.end
end if
%>
<body background="images/01.gif">
<br>
<br>
<table width="95%" border="1" cellspacing="0" cellpadding="3" align="center" bordercolorlight="#ECEEE4" bordercolordark="#CCCABC">
  <form name="form1" method="post" action="">
    <tr> 
      <td colspan="2" align="center" height="30" background="dbsj/image/tablebg.gif"><b>系 
        统 初 始 设 置 </b> </td>
    </tr>
    <tr valign="middle"> 
      <td width="50%" height="25">站点名称：</td>
      <td width="85%" height="25"> 
        <input name="NetName" type="text" id="NetName" size="50" maxlength="50" value="<%=NetName%>">
      </td>
    </tr>
    <tr valign="middle"> 
      <td width="50%" height="25">站点网址：</td>
      <td width="85%" height="25"> 
        <input name="NetUrl" type="text" id="NetUrl" value="<%=NetUrl%>" size="50" maxlength="50">
      </td>
    </tr>
    <tr valign="middle"> 
      <td width="50%" height="25">站点LOGO：</td>
      <td width="85%" height="25"> 
        <input name="Logo" type="text" id="Logo" size="50" maxlength="255" value="<%=Logo%>">
      </td>
    </tr>
    <tr valign="middle"> 
      <td width="50%" height="25">顶部广告：</td>
      <td width="85%" height="25"> 
        <textarea name="ads" cols="50" rows="8" id="ads"><%=ads%></textarea>
      </td>
    </tr>
    <tr valign="middle"> 
      <td width="50%" height="25">管理员Email：</td>
      <td height="25"> 
        <input name="Email" type="text" id="Email" size="50" maxlength="50" value="<%=Email%>">
      </td>
    </tr>
    <tr valign="middle"> 
      <td width="50%" height="25">授权信息：</td>
      <td height="25"> 
        <input name="accredit" type="text" id="accredit" size="50" maxlength="100" value="<%=accredit%>">
      </td>
    </tr>
    <tr valign="middle"> 
      <td width="50%" height="25">每页显示个数</td>
      <td height="25"> 
        <input type="text" name="Pages" size="5"  value="<%=Pages%>">
      </td>
    </tr>
    <tr> 
      <td colspan="2" align="center" height="30" background="dbsj/image/tablebg.gif"><b>上 
        传 文 件 设 置</b> </td>
    </tr>
    <tr valign="middle"> 
      <td width="50%" height="25">上传文件大小限制：<br>
        最大输入限制4位</td>
      <td width="85%" height="25"> 
        <input name="MaxFileSize" type="text" id="MaxFileSize" size="4" maxlength="4" value="<%=MaxFileSize%>">
        K</td>
    </tr>
    <tr valign="middle"> 
      <td width="50%" height="25">存放上传文件的目录：<br>
        请输入相对路径</td>
      <td width="85%" height="25"> 
        <input name="p" type="text" id="SaveUpFilesPath" value="<%=p%>" size="50" maxlength="100">
      </td>
    </tr>
    <tr valign="middle"> 
      <td height="25" colspan="2" align="center"> 
        <input type="submit" name="Submit" value=" 提 交 " class="tbutton">
        <input type="reset" name="Submit2" value=" 重 置 " class="tbutton">
      </td>
    </tr>
    <input type="hidden" name="method" value="1">
  </form>
</table>
