<!--#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("ad2441")=trim(request("ad2441"))
rs("ad2441url")=trim(request("ad2441url"))
rs("ad2441name")=trim(request("ad2441name"))
rs("ad2441class")=int(request("ad2441class"))

rs("ad2442")=trim(request("ad2442"))
rs("ad2442url")=trim(request("ad2442url"))
rs("ad2442name")=trim(request("ad2442name"))
rs("ad2442class")=int(request("ad2442class"))

rs("ad2443")=trim(request("ad2443"))
rs("ad2443url")=trim(request("ad2443url"))
rs("ad2443name")=trim(request("ad2443name"))
rs("ad2443class")=int(request("ad2443class"))


rs.update
rs.close
set rs=nothing
  response.write"<SCRIPT language=JavaScript>alert('修改广告成功！');"
   response.write"this.location.href='ad4.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="ad4.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="ad2441class" <%if rs("ad2441class")=0 then%> checked <%end if%>><label for="sex1">图片</label>
			<input class="input1" id="sex2" type="radio" value="1" name="ad2441class" <%if rs("ad2441class")=1 then%> checked <%end if%>><label for="sex2">FLASH</label><input name="ad2441" type="text" id="1451" size="ad24" value=<%=trim(rs("ad2441"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad2441name" type="text" id="1452" size="20" value=<%=trim(rs("ad2441name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad2441url" type="text" id="1446url0" size="20" value=<%=trim(rs("ad2441url"))%>></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="ad2442class" <%if rs("ad2442class")=0  then%> checked <%end if%>><label for="sex3">图片</label>
			<input class="input1" id="sex4" type="radio" value="1" name="ad2442class" <%if rs("ad2442class")=1  then%> checked <%end if%>><label for="sex4">FLASH</label><input name="ad2442" type="text" id="1453" size="ad24" value=<%=trim(rs("ad2442"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad2442name" type="text" id="1454" size="20" value=<%=trim(rs("ad2442name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad2442url" type="text" id="144url1" size="20" value=<%=trim(rs("ad2442url"))%>></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="ad2443class" <%if rs("ad2443class")=0  then%> checked <%end if%>><label for="sex5">图片</label>
			<input class="input1" id="sex6" type="radio" value="1" name="ad2443class" <%if rs("ad2443class")=1  then%> checked <%end if%>><label for="sex6">FLASH</label><input name="ad2443" type="text" id="1453" size="ad24" value=<%=trim(rs("ad2443"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7" >
			<input name="ad2443name" type="text" id="1454" size="20" value=<%=trim(rs("ad2443name"))%>></td>
             <td class="forumRowHighlight" align="center" bgcolor="#F7F7F7">
			<input name="ad2443url" type="text" id="144url1" size="20" value=<%=trim(rs("ad2443url"))%>></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> 
  