<!--#include file="pysjzx_conn.asp"-->
<!--#include file="session.asp"-->

<%if request.QueryString("action")="save" then
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from ad",conn,1,3

rs("ad1701url")=trim(request("ad1701url"))
rs("ad1701name")=trim(request("ad1701name"))

rs("ad1702url")=trim(request("ad1702url"))
rs("ad1702name")=trim(request("ad1702name"))

rs("ad1703url")=trim(request("ad1703url"))
rs("ad1703name")=trim(request("ad1703name"))

rs("ad1704url")=trim(request("ad1704url"))
rs("ad1704name")=trim(request("ad1704name"))

rs("ad1705url")=trim(request("ad1705url"))
rs("ad1705name")=trim(request("ad1705name"))

rs.update
rs.close
set rs=nothing
  response.write"<SCRIPT language=JavaScript>alert('修改广告成功！');"
   response.write"this.location.href='ad2.asp';</SCRIPT>" 
   response.end 
end if
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select * from ad",conn,1,1%>
<div align="center">
<table class="tableBorder" width="100%" border="1" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF" style="border-collapse: collapse" bordercolor="#C0C0C0">

<td colspan=3  height="25" bgcolor="#E8F1FF">
<p align="center">文字广告设置</td>


<form name="form1" method="post" action="ad2.asp?action=save">
          <tr bgcolor="#E8F1FF"> 
             <td class="forumRowHighlight"  align="center" bgcolor="#F7F7F7" >广告说明</td>
             <td class="forumRowHighlight"  align="center" bgcolor="#F7F7F7" >
				<span lang="zh-cn">链接说明</span></td>
             <td class="forumRowHighlight"  align="center" bgcolor="#F7F7F7">链接地址</td>
          </tr>
       
         
          <tr bgcolor="#E8F1FF"> 
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
				幻灯片下(首页)</td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad1701name" type="text" id="1452" size="20" value=<%=trim(rs("ad1701name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1701url" type="text"  size="20" value=<%=trim(rs("ad1701url"))%>></td>
          </tr>
          
         
          <tr bgcolor="#E8F1FF"> 
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
				优惠信息上<span lang="en-us">1</span>(首页)</td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad1702name" type="text" id="1454" size="20" value=<%=trim(rs("ad1702name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1702url" type="text" id="144url1" size="20" value=<%=trim(rs("ad1702url"))%>></td>
          </tr>
          
                    <tr bgcolor="#E8F1FF"> 
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
				优惠信息上<span lang="en-us">2</span>(首页)</td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad1703name" type="text" id="1454" size="20" value=<%=trim(rs("ad1703name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1703url" type="text" id="144url1" size="20" value=<%=trim(rs("ad1703url"))%>></td>
          </tr>


          <tr bgcolor="#E8F1FF"> 
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
				优惠信息上<span lang="en-us">3</span>(首页)</td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad1704name" type="text" id="1454" size="20" value=<%=trim(rs("ad1704name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1704url" type="text" id="144url1" size="20" value=<%=trim(rs("ad1704url"))%>></td>
          </tr>

          <tr bgcolor="#E8F1FF"> 
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
				优惠信息上<span lang="en-us">4</span>(首页)</td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad1705name" type="text" id="1454" size="20" value=<%=trim(rs("ad1705name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1705url" type="text" id="144url1" size="20" value=<%=trim(rs("ad1705url"))%>></td>
          </tr>


         
          <tr> 
             <td class="forumRowHighlight" colspan="3" bgcolor="#F7F7F7" align="center">
			<input type="submit" name="Submit" value="提交更改">
            </td>
          </tr>
</form>
</table>
</td>
</tr>
</table>
</div>

</body>
</html> 
  