<!--#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("ad1801")=trim(request("ad1801"))
rs("ad1801url")=trim(request("ad1801url"))
rs("ad1801name")=trim(request("ad1801name"))
rs("ad1801class")=int(request("ad1801class"))

rs("ad1802")=trim(request("ad1802"))
rs("ad1802url")=trim(request("ad1802url"))
rs("ad1802name")=trim(request("ad1802name"))
rs("ad1802class")=int(request("ad1802class"))

rs("ad1803")=trim(request("ad1803"))
rs("ad1803url")=trim(request("ad1803url"))
rs("ad1803name")=trim(request("ad1803name"))
rs("ad1803class")=int(request("ad1803class"))

rs("ad1804")=trim(request("ad1804"))
rs("ad1804url")=trim(request("ad1804url"))
rs("ad1804name")=trim(request("ad1804name"))
rs("ad1804class")=int(request("ad1804class"))

rs("ad1805")=trim(request("ad1805"))
rs("ad1805url")=trim(request("ad1805url"))
rs("ad1805name")=trim(request("ad1805name"))
rs("ad1805class")=int(request("ad1805class"))

rs.update
rs.close
set rs=nothing
  response.write"<SCRIPT language=JavaScript>alert('修改广告成功！');"
   response.write"this.location.href='ad3.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="ad3.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 class="input1" id="sex1" type="radio" value="0" name="ad1801class" <%if rs("ad1801class")=0 then%> checked <%end if%>><label for="sex1">图片</label>
			<input class="input1" id="sex2" type="radio" value="1" name="ad1801class" <%if rs("ad1801class")=1 then%> checked <%end if%>><label for="sex2">FLASH</label><input name="ad1801" type="text" id="1451" size="ad18" value=<%=trim(rs("ad1801"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad1801name" type="text" id="1452" size="20" value=<%=trim(rs("ad1801name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1801url" type="text" id="1446url0" size="20" value=<%=trim(rs("ad1801url"))%>></td>
          </tr>
          
         
          <tr bgcolor="#E8F1FF"> 
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
				中部广告位2(首页)&nbsp; 120*90</td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input class="input1" id="sex3" type="radio" value="0" name="ad1802class" <%if rs("ad1802class")=0  then%> checked <%end if%>><label for="sex3">图片</label>
			<input class="input1" id="sex4" type="radio" value="1" name="ad1802class" <%if rs("ad1802class")=1  then%> checked <%end if%>><label for="sex4">FLASH</label><input name="ad1802" type="text" id="1453" size="ad18" value=<%=trim(rs("ad1802"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad1802name" type="text" id="1454" size="20" value=<%=trim(rs("ad1802name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1802url" type="text" id="144url1" size="20" value=<%=trim(rs("ad1802url"))%>></td>
          </tr>

          <tr bgcolor="#E8F1FF"> 
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
				中部广告位2(首页)&nbsp; 120*90</td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input class="input1" id="sex5" type="radio" value="0" name="ad1803class" <%if rs("ad1803class")=0  then%> checked <%end if%>><label for="sex5">图片</label>
			<input class="input1" id="sex6" type="radio" value="1" name="ad1803class" <%if rs("ad1803class")=1  then%> checked <%end if%>><label for="sex6">FLASH</label><input name="ad1803" type="text" id="1453" size="ad18" value=<%=trim(rs("ad1803"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad1803name" type="text" id="1454" size="20" value=<%=trim(rs("ad1803name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1803url" type="text" id="144url1" size="20" value=<%=trim(rs("ad1803url"))%>></td>
          </tr>

          <tr bgcolor="#E8F1FF"> 
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
				中部广告位2(首页)&nbsp; 120*90</td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input class="input1" id="sex7" type="radio" value="0" name="ad1804class" <%if rs("ad1804class")=0  then%> checked <%end if%>><label for="sex7">图片</label>
			<input class="input1" id="sex8" type="radio" value="1" name="ad1804class" <%if rs("ad1804class")=1  then%> checked <%end if%>><label for="sex8">FLASH</label><input name="ad1804" type="text" id="1453" size="ad18" value=<%=trim(rs("ad1804"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad1804name" type="text" id="1454" size="20" value=<%=trim(rs("ad1804name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1804url" type="text" id="144url1" size="20" value=<%=trim(rs("ad1804url"))%>></td>
          </tr>

          <tr bgcolor="#E8F1FF"> 
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
				中部广告位2(首页)&nbsp; 120*90</td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input class="input1" id="sex9" type="radio" value="0" name="ad1805class" <%if rs("ad1805class")=0  then%> checked <%end if%>><label for="sex9">图片</label>
			<input class="input1" id="sex10" type="radio" value="1" name="ad1805class" <%if rs("ad1805class")=1  then%> checked <%end if%>><label for="sex10">FLASH</label><input name="ad1805" type="text" id="1453" size="ad18" value=<%=trim(rs("ad1805"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad1805name" type="text" id="1454" size="20" value=<%=trim(rs("ad1805name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad1805url" type="text" id="144url1" size="20" value=<%=trim(rs("ad1805url"))%>></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> 
  