<!--#include file="top.htm" -->
<%
set conn=server.createobject("adodb.connection")
conn.open "DBQ="&server.mappath("admin/mdb.mdb")&";Driver={Microsoft Access Driver (*.mdb)};"
%>
<%
Set rs = Server.CreateObject("ADODB.Recordset") 
sql="select * from wallpaper order by id desc"
rs.open sql,conn,1,1
IF not IsNumeric(Request("page")) Or IsEmpty(Request("page")) Then
page=1
Else
Page=Int(Abs(Request("page")))
End if
rs.pagesize =12
total  = rs.RecordCount
'mypagesize=rs.pagesize
rs.absolutepage = page
%>
<html>
<head>
<title>广告影片</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="style.css" type="text/css">
</head>

<BODY BGCOLOR=#FFFFFF  LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<table width="760" border="0" align="center" cellspacing="0">
  <tr> 
    <td width="22" height="390" background="images/bg1.gif">&nbsp;</td>
    <td width="196"><TABLE WIDTH=195 BORDER=0 CELLPADDING=0 CELLSPACING=0>
        <TR> 
          <TD COLSPAN=9> <IMG SRC="images/rmad_1.gif" WIDTH=195 HEIGHT=48 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=48 ALT=""></TD>
        </TR>
        <TR> 
          <TD ROWSPAN=12> <IMG SRC="images/rmad_2.gif" WIDTH=12 HEIGHT=683 ALT=""></TD>
          <TD COLSPAN=7> <IMG SRC="images/rmad_3.gif" WIDTH=172 HEIGHT=2 ALT=""></TD>
          <TD ROWSPAN=12> <IMG SRC="images/rmad_4.gif" WIDTH=11 HEIGHT=683 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=2 ALT=""></TD>
        </TR>
        <TR> 
          <TD COLSPAN=3 ROWSPAN=2> <IMG SRC="images/rmad_5.gif" WIDTH=7 HEIGHT=179 ALT=""></TD>
          <TD width="157" height="176" valign="top"> <br>
            <br>
            <table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
                            <form name="UserLogin" onsubmit="return CheckForm();" action="http://www.3niao.com/home/UserChkLogin.asp" method="post">
                              <tbody>
                                <tr>
                                  <td align="right" height="25">用户名：</td>
                                  <td height="25"><input id="UserName" maxLength="20" size="10" name="UserName"></td>
                                </tr>
                                <tr>
                                  
                    <td align="right" height="25">密　码：</td>
                                  <td height="25"><input id="Password" type="password" maxLength="20" size="10" value name="Password"></td>
                                </tr>
                                <tr>
                                  <td align="right" height="25">Cookie：</td>
                                  <td height="25"><select name="CookieDate" class="input">
                                      <option value="0" selected>不保存</option>
                                      <option value="1">保存一天</option>
                                      <option value="2">保存一月</option>
                                      <option value="3">保存一年</option>
                                    </select></td>
                                </tr>
                                <tr align="middle">
                                  <td colSpan="2" height="30"><input id="Login" type="submit" value=" 登录 " name="Login" class="input"> 
                                    <input id="Reset" type="reset" value=" 清除 " name="Reset" class="input"><br>
                                    <br>
                                    <a href="../UserReg.asp" target="_blank">新用户注册</a>&nbsp;&nbsp;<a href="../GetPassword.asp">忘记密码？</a><br>
                                  </td>
                                </tr>
                                </FORM> </tbody>
                            </table>
          <TD COLSPAN=3 ROWSPAN=2> <IMG SRC="images/rmad_7.gif" WIDTH=8 HEIGHT=179 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=176 ALT=""></TD>
        </TR>
        <TR> 
          <TD> <IMG SRC="images/rmad_8.gif" WIDTH=157 HEIGHT=3 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=3 ALT=""></TD>
        </TR>
        <TR> 
          <TD COLSPAN=7> <IMG SRC="images/rmad_9.gif" WIDTH=172 HEIGHT=58 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=58 ALT=""></TD>
        </TR>
        <TR> 
          <TD COLSPAN=6> <IMG SRC="images/rmad_10.gif" WIDTH=170 HEIGHT=5 ALT=""></TD>
          <TD ROWSPAN=8> <IMG SRC="images/rmad_11.gif" WIDTH=2 HEIGHT=444 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=5 ALT=""></TD>
        </TR>
        <TR> 
          <TD COLSPAN=3 ROWSPAN=2> <IMG SRC="images/rmad_12.gif" WIDTH=7 HEIGHT=182 ALT=""></TD>
          <TD width="157" height="162"><div align="center"> <font color="#ff3399">AD推荐</font>[<a href="rm/1.ram" target="_blank">第一辑</a>]<br>
              <font color="#ff3399">AD推荐</font>[<a href="rm/2.ram" target="_blank">第二辑</a>]<br>
              <font color="#ff3399">AD推荐</font>[<a href="http://www.3niao.com/home/rm/3.ram" target="_blank">第三辑</a>]<br>
              <font color="#ff3399">AD推荐</font>[<a href="rm/4.ram" target="_blank">第四辑</a>]<br>
              <font color="#ff3399">AD推荐</font>[<a href="rm/5.ram" target="_blank">第五辑</a>]<br>
              <font color="#ff3399">AD推荐</font>[<a href="rm/6.ram" target="_blank">第六辑</a>]<br>
              <font color="#ff3399">AD推荐</font>[<a href="rm/7.ram" target="_blank">第七辑</a>]<br>
              <font color="#ff3399">AD推荐</font>[<a href="rm/8.ram" target="_blank">第八辑</a>]<br>
              </a></div></TD>
          <TD COLSPAN=2 ROWSPAN=2> <IMG SRC="images/rmad_14.gif" WIDTH=6 HEIGHT=182 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=162 ALT=""></TD>
        </TR>
        <TR> 
          <TD> <IMG SRC="images/rmad_15.gif" WIDTH=157 HEIGHT=20 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=20 ALT=""></TD>
        </TR>
        <TR> 
          <TD COLSPAN=6> <IMG SRC="images/rmad_16.gif" WIDTH=170 HEIGHT=51 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=51 ALT=""></TD>
        </TR>
        <TR> 
          <TD COLSPAN=2> <IMG SRC="images/rmad_17.gif" WIDTH=5 HEIGHT=20 ALT=""></TD>
          <TD height="169" COLSPAN=3 ROWSPAN=3><div align="center"><IMG height=6 src="http://www.3niao.com/v2/down1/images/pic.gif" width=4 border=0>　 
              <a href="http://www.3niao.com/home/link">网站推广</a><br>
              <br>
              <IMG height=6 src="http://www.3niao.com/v2/down1/images/pic.gif" width=4 border=0>　 
              <a href="http://3niao.com/home/host/" target="_blank">免费域名</a><br>
              <br>
            <IMG height=6 src="http://www.3niao.com/v2/down1/images/pic.gif" width=4 border=0>  <a href="http://www.3niao.com/home/gbooks/?action=registration&user=admin" target="_blank">免费留言本</a><br>
              <br>
             <IMG height=6 src="http://www.3niao.com/v2/down1/images/pic.gif" width=4 border=0> <a href="http://www.3niao.com/home/count2/reg.asp" target="_blank">免费统计器</a><br>
              <br>
             <IMG height=6 src="http://www.3niao.com/v2/down1/images/pic.gif" width=4 border=0> <a href="http://www.3niao.com/home/count1/" target="_blank">免费计数器</a></div></TD>
          <TD> <IMG SRC="images/rmad_19.gif" WIDTH=3 HEIGHT=20 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=20 ALT=""></TD>
        </TR>
        <TR> 
          <TD ROWSPAN=3> <IMG SRC="images/rmad_20.gif" WIDTH=2 HEIGHT=186 ALT=""></TD>
          <TD> <IMG SRC="images/rmad_21.gif" WIDTH=3 HEIGHT=28 ALT=""></TD>
          <TD> <IMG SRC="images/rmad_22.gif" WIDTH=3 HEIGHT=28 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=28 ALT=""></TD>
        </TR>
        <TR> 
          <TD ROWSPAN=2> <IMG SRC="images/rmad_23.gif" WIDTH=3 HEIGHT=158 ALT=""></TD>
          <TD ROWSPAN=2> <IMG SRC="images/rmad_24.gif" WIDTH=3 HEIGHT=158 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=131 ALT=""></TD>
        </TR>
        <TR> 
          <TD COLSPAN=3> <IMG SRC="images/rmad_25.gif" WIDTH=162 HEIGHT=27 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=27 ALT=""></TD>
        </TR>
        <TR> 
          <TD> <IMG SRC="images/spacer.gif" WIDTH=12 HEIGHT=1 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=2 HEIGHT=1 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=3 HEIGHT=1 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=2 HEIGHT=1 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=157 HEIGHT=1 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=3 HEIGHT=1 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=3 HEIGHT=1 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=2 HEIGHT=1 ALT=""></TD>
          <TD> <IMG SRC="images/spacer.gif" WIDTH=11 HEIGHT=1 ALT=""></TD>
          <TD></TD>
        </TR>
      </TABLE></td>
    <td width="512" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="8">
        <tr> 
          <td class="td200"><table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
              <tr> 
                <td><table width="100%" border="0" cellspacing="0" cellpadding="5">
                    <tr> 
                      <td><img src="images/doc_more.gif" width="9" height="9"> 
                        共有<font color=#B08291><b><%=total%></b></font>个广告</td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="5">
                    <%for j=1 to (rs.pagesize\3)%>
                    <tr> 
                      <%for i=1 to 3%>
                      <td height="160" align="center"> <table width="120" height="90" border="0" cellpadding="0" cellspacing="1" bgcolor="#999999">
                          <tr> 
                            <td><a href=click.asp?id=<%=rs("id")%> target="_blank"><img src=<%=rs("small")%> width="120" height="90" border="0" alt="==點擊下载==影片大小：<%=rs("size")%>"></a></td>
                          </tr>
                          <tr> 
                            <td height="20" align="center" bgcolor="#efefef">點擊次數：<%=rs("hit")%> 
                            </td>
                          </tr>
                        </table></td>
                      <% 
rs.movenext 
if rs.eof then 
exit for 
end if 
next 
%>
                    </tr>
                    <% 
if rs.eof then 
exit for 
end if 
next 
%>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="5">
                    <form name="form2" method="post" action="wallpaper.asp">
                      <tr> 
                        <td align="right">共<font color=#B08291><b><%=rs.pagecount%></b></font>頁<font color=#B08291><b><%=total%></b></font>个广告 當前第<font color=#B08291><b><%=page%></b></font>頁 
                          <%if page>1 then%>
                          <a href=wallpaper.asp?page=<%=page-1%> onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image231','','images/workshow/previous_o.gif',1)"><img name="Image231" border="0" src="images/workshow/previous.gif" width="51" height="13"></a> 
                          <%else%>
                          <a href=# onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image232','','images/workshow/previous_o.gif',1)"><img src="images/workshow/previous.gif" name="Image232" width="51" height="13" border="0" id="Image232"></a> 
                          <%end if%>
                          <%if page<rs.pagecount   then%>
                          <a href=wallpaper.asp?page=<%=page+1%> onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image241','','images/workshow/next_o.gif',1)"><img name="Image241" border="0" src="images/workshow/next.gif" width="32" height="13"></a> 
                          <%else%>
                          <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image242','','images/workshow/next_o.gif',1)"><img src="images/workshow/next.gif" name="Image242" width="32" height="13" border="0" id="Image242"></a> 
                          <%end if%>
                          <select name="page" class="input">
                            <%for i=1 to rs.pagecount%>
                            <option value=<%=i%>
					  <%
					  if i=page then
					  response.write" selected"
					  end if
					  %>
					  >第<%=i%>頁</option>
                            <%next%>
                          </select> <input type="submit" name="Submit2" value="轉向" class="input"> 
                        </td>
                      </tr>
                    </form>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
    <td width="22" background="images/bg1.gif">&nbsp;</td>
  </tr>
</table>
<table width="760" border="0" align="center" cellspacing="0">
  <tr> 
    <td height="39" colspan="2" background="images/footbg.gif"><div align="center">媒体中国 cn-media.com </div></td>
  </tr>
  <tr> 
    <td width="400" background="http://www.3niao.com/v2/down1/images/footgb1.gif">&nbsp;</td>
    <td width="356"><div align="right"><img src="../down1/images/foot.jpg" width="250" height="60"></div></td>
  </tr>
</table>
</BODY>
</HTML>