<!--#include file="Const.Asp"-->
<!--#include file="error.ini"-->
<%
dim i
i=0 
MaxList=80
set rs=server.createobject("adodb.recordset")

sql="select * from ylmv_class order by classid"
rs.open sql,conn,1,1
i=request("id")
if i="" then i=rs("Classid")
%>
<!--#include file="Top.Asp"-->
<link href="Images/Admin_Style.Css" rel="stylesheet" type="text/css">
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="border"> 
  <tr class="title">
    <td height="30"> 
      <table cellpadding=3 cellspacing=1 border=0 width=100%>
        <tr class="title">
        <td height="22" colspan="3" align="center">服务器链接地址管理页面</td>
        </tr>
            <tr >              
          <td width="100%" valign=top class=tdbg>
<%
dim objFSO
dim fdata
dim objCountFile
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
if request("save")="" then
  Set objCountFile = objFSO.OpenTextFile(Server.MapPath("../Path.Asp"),1,True)
  If Not objCountFile.AtEndOfStream Then fdata = objCountFile.ReadAll
 else
  fdata=request("fdata")
  Set objCountFile=objFSO.CreateTextFile(Server.MapPath("../Path.Asp"),True)
  objCountFile.Write fdata
 end if
 objCountFile.Close
 Set objCountFile=Nothing
 Set objFSO = Nothing
%> 
<form method=post>
            <table width="100%" border="0" cellspacing="3" cellpadding="0">
              <tr> 
                <td class=tdbg width="3%" height="23"> </td>
                <td class=tdbg width="97%" height="23">                      注意：文件将被保存在你安装目录下的<font color=red>Path.Asp</font>文件里，如果您的空间不支持<font color=red>FSO</font>，请直接编辑该文件！<br>
                　　　如果您对html和js代码不了解，请只修改链接地址，其他不要随意编辑。</td>
              </tr>
              <tr> 
                <td class=tdbg width="3%"></td>
                <td class=tdbg width="97%"> 
                  <textarea name="fdata" cols="110" rows="20"><%=fdata%></textarea>
                </td>
              </tr>
              <tr> 
                <td width="3%"> </td>
                <td class=tdbg width="97%">
                  <input type="reset" name="Reset" value="重新修改">
                  <input type="submit" name="save" value="提交修改"> 当前文件路径：<b><%=Server.MapPath("../Path.Asp")%></b>
                </td>
              </tr>
            </table>
</form>
            <p> </p>
            </td>
            </tr>
        </table>
        </td>
    </tr>
      </table>
<% 
set rs=nothing
conn.close
set conn=nothing
%>