<!--#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("ad1601")=trim(request("ad1601"))
rs("ad1601url")=trim(request("ad1601url"))
rs("ad1601name")=trim(request("ad1601name"))

rs("ad1602")=trim(request("ad1602"))
rs("ad1602url")=trim(request("ad1602url"))
rs("ad1602name")=trim(request("ad1602name"))

rs("ad1603")=trim(request("ad1603"))
rs("ad1603url")=trim(request("ad1603url"))
rs("ad1603name")=trim(request("ad1603name"))

rs("ad1604")=trim(request("ad1604"))
rs("ad1604url")=trim(request("ad1604url"))
rs("ad1604name")=trim(request("ad1604name"))

rs("ad1605")=trim(request("ad1605"))
rs("ad1605url")=trim(request("ad1605url"))
rs("ad1605name")=trim(request("ad1605name"))

rs("ad1606")=trim(request("ad1606"))
rs("ad1606url")=trim(request("ad1606url"))
rs("ad1606name")=trim(request("ad1606name"))

rs.update
rs.close
set rs=nothing
  response.write"<SCRIPT language=JavaScript>alert('修改广告成功！');"
   response.write"this.location.href='ad1.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=4  height="25" bgcolor="#E8F1FF">
<p align="center">幻灯片广告设置</td>


<form name="form1" method="post" action="ad1.asp?action=save">
          <tr bgcolor="#E8F1FF"> 
             <td class="forumRowHighlight"  align="center" bgcolor="#F7F7F7" >广告说明</td>
             <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" >
				广告位1(首页)&nbsp; 120*90</td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1601" type="text" id="1451" size="24" value=<%=trim(rs("ad1601"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad1601name" type="text" id="1452" size="20" value=<%=trim(rs("ad1601name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1601url" type="text" id="1446url0" size="20" value=<%=trim(rs("ad1601url"))%>></td>
          </tr>
          
         
          <tr bgcolor="#E8F1FF"> 
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
				<span lang="zh-cn">广告位</span>2(首页)&nbsp; 120*90</td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1602" type="text" id="1453" size="24" value=<%=trim(rs("ad1602"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad1602name" type="text" id="1454" size="20" value=<%=trim(rs("ad1602name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1602url" type="text" id="144url1" size="20" value=<%=trim(rs("ad1602url"))%>></td>
          </tr>
          
                    <tr bgcolor="#E8F1FF"> 
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
				<span lang="zh-cn">广告位</span>3(首页)&nbsp; 120*90</td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1603" type="text" id="1453" size="24" value=<%=trim(rs("ad1603"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad1603name" type="text" id="1454" size="20" value=<%=trim(rs("ad1603name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1603url" type="text" id="144url1" size="20" value=<%=trim(rs("ad1603url"))%>></td>
          </tr>


          <tr bgcolor="#E8F1FF"> 
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
				<span lang="zh-cn">广告位</span>4(首页)&nbsp; 120*90</td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1604" type="text" id="1453" size="24" value=<%=trim(rs("ad1604"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad1604name" type="text" id="1454" size="20" value=<%=trim(rs("ad1604name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1604url" type="text" id="144url1" size="20" value=<%=trim(rs("ad1604url"))%>></td>
          </tr>

          <tr bgcolor="#E8F1FF"> 
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
				<span lang="zh-cn">广告位</span>5(首页)&nbsp; 120*90</td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1605" type="text" id="1453" size="24" value=<%=trim(rs("ad1605"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad1605name" type="text" id="1454" size="20" value=<%=trim(rs("ad1605name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1605url" type="text" id="144url1" size="20" value=<%=trim(rs("ad1605url"))%>></td>
          </tr>

          <tr bgcolor="#E8F1FF"> 
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
				<span lang="zh-cn">广告位</span>6(首页)&nbsp; 120*90</td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1606" type="text" id="1453" size="24" value=<%=trim(rs("ad1606"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad1606name" type="text" id="1454" size="20" value=<%=trim(rs("ad1606name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1606url" type="text" id="144url1" size="20" value=<%=trim(rs("ad1606url"))%>></td>
          </tr>


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

</body>
</html> 
  