<!--#include file="../siteconfig/conn.asp"-->
<%
if session("adminlogin")<>sessionvar then
Response.Write("<script language=javascript>alert('你尚未登录，或者超时了！请重新登录');this.location.href='login.asp';</script>")
Response.End
End if
%>
<!--#include file="Admin_ClassFunction.asp"-->
<HTML>
<HEAD>
<TITLE>广告管理</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<link href="./images/admincp/admincp.css" rel="stylesheet" type="text/css" />

</HEAD>

<script language="JavaScript" type="text/javascript" src="js.js"></script>
<BODY>
<h3>广告管理</h3>
<%rs.open"select * from Mzdh",conn,1,3
dim ClassCount,pn
pn=Request("pn")
if pn="" then pn=1
ClassCount = int(rs.recordcount)
redim MzdhArray(MzdhCount,4)
dim j,i
j=0
while not rs.eof and not rs.bof
   MzdhArray(j,0)=rs("Mzdh_Id")
   MzdhArray(j,1)=Left(rs("Mzdh_Name"),6)
   MzdhArray(j,2)=rs("Mzdh_Url")
   MzdhArray(j,3)=rs("Mzdh_Class")
   MzdhArray(j,4)=rs("Mzdh_Top")
   j=j+1
rs.movenext
wend
rs.close%>
<table width="96%" border="0" cellspacing="1" cellpadding="8" align="center" class="tb tb2 fixpadding">
  <tr>
    <td class="partition">ID</td>
    <td class="partition">网站名称</td>
    <td class="partition">链接地址</td>
    <td class="partition">颜色样式</td>
    <td class="partition">名站排行</td>
    <td class="partition">编辑</td>
  </tr>
<%
for i=1 to MzdhCount%>
  <tr>
    <td class="vtop lineheight"><%=MzdhArray(i,0)%></td>
    <td class="vtop lineheight" title="<%=MzdhArray(i,1)%>"><%=Left(MzdhArray(i,1),6)%></td>
    <td class="vtop lineheight"><a href="<%=MzdhArray(i,2)%>" target="_blank"><%=MzdhArray(i,2)%></a></td>
    <td class="vtop lineheight"><%=MzdhArray(i,3)%></td>
    <td class="vtop lineheight"><%=MzdhArray(i,4)%></td>
    <td class="vtop lineheight"><a href="#" onClick="javascript:DivOpenClose('Admin_Ad_MzdhUp.asp?Mzdh_Id=<%=MzdhArray(i,0)%>',1,450,350);return false">编辑</a></td>
  </tr>
<%
next%>
</table>

<div id="DivMenu" style="position:absolute; width:100%; height:100%; z-index:1; left: 0px; top: 0px; filter:Alpha(opacity=50); background-color: #E8E8E8; layer-background-color: #E8E8E8; border: 1px none #000000; visibility: hidden;"></div>
<div id="DivIframe" style="position:absolute; width:0px; height:0px; z-index:1; visibility: hidden; overflow: visible; filter:Alpha(opacity=80);"><iframe id=OpenIframe name=OpenIframe src=londing.html width=100% height=100% frameborder=0 scrolling=no>修改分类</iframe>
</div>
</BODY>
</HTML>

