<!--#include file="function.Asp"-->
<!--#include file="Conn.Asp"-->
<%CheckAdmin3%>
<!--#include file="Top.Asp"-->
<link href='images/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=2 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>
<%
c=trim(request("type"))
%>
<%
dim objFSO
dim fdata
dim objCountFile
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
if request("save")="" then
  Set objCountFile = objFSO.OpenTextFile(Server.MapPath("../ads/"&c&".html"),1,True)
  If Not objCountFile.AtEndOfStream Then fdata = objCountFile.ReadAll
 else
  fdata=request("fdata")
  Set objCountFile=objFSO.CreateTextFile(Server.MapPath("../ads/"&c&".html"),True)
  objCountFile.Write fdata
 end if
 objCountFile.Close
 Set objCountFile=Nothing
 Set objFSO = Nothing
%> 
<form method=post>
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
              <tr> 
                <td class=tdbg width="3%" height="23"> </td>
                <td class=tdbg width="97%" height="23">                      注意：文件将被保存在你安装目录下的<font color=red>../ads/<%=c%>.html</font>文件里，你也可以直接修改此文件！<br>
				
                　　　</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="submit" name="save" value="提交修改">
                  <input type="reset" name="Reset" value="重置">
                   当前文件路径：<b><%=Server.MapPath("../ads/"&c&".html")%></b>
                </td>
              </tr>
            </table>
</form>
            <p> </p>
            </td>
            </tr>
        </table>
        </td>
    </tr>
      </table>
<% 
set rs=nothing
conn.close
set conn=nothing
%>






