<!--#include virtual="inc/General.inc.asp"-->
<%
set rs = server.createobject("adodb.recordset")
id=clng("0"&request("id"))
p = request("p")
if id>0 then
strsql = "select * from Marquee where id=" & id
else
if cint("0"&p)<=0 then p=1
pagesize = 6
strsql="select count(id) from Marquee"
rs.open strsql,conn,1,1
totalcount = rs(0)
rs.cancel:rs.close
totalpage = totalcount \ pagesize
if totalcount mod pagesize > 0 then totalpage = totalpage+1
if cint("0"&p)>totalpage then p=totalpage
if cint("0"&p)<=1 then
strsql = "select top " & pagesize & " * from Marquee order by id desc"
else
strsql = "select top " & pagesize & " * from Marquee where id not in (select top " & ((cint("0"&p)-1)*pagesize) & " id from Marquee order by id desc) order by id desc"
end if
end if
rs.open strsql,conn,1,1
%>
<HEAD>
<TITLE></TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<link href="../css/info.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../js/yzqm.js.asp"></script>
</HEAD>

<BODY BGCOLOR=#600000 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" height="100%">
  <tr> 
	<td height="22" background="/images/L_2_0.gif">
	  <table width="80%" border="0" align="center" cellpadding="2" cellspacing="0">
		<tr> 
		  <td align="center"><strong><font color="#996600">本站公告</font></strong></td>
		</tr>
	  </table>
	</td>
  </tr>
  <tr> 
	<td>
	  <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="F8EDD1">
		<tr>
		  <td height="100%">
			<%if id&""<>"" then%>
			<%if not rs.eof then%>
			<table width="95%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
			  <tr> 
				<td align="center" height="30" valign="bottom" style="line-height: 150%; padding-top: 10"><b><%=rs("Title")%></b></td>
			  </tr>
			  <tr> 
				<td align="center"><hr size="1" width="99%" color="#600000"></td>
			  </tr>
			  <tr> 
				<td height="100%" style="padding-top:6" valign="top" style="font-family:宋体,Arial;line-height:150%"><%=AdjustString(rs("Content")&"")%></td>
			  </tr>
			  <tr> 
				<td align="right" height="23">中国签名网客服部&nbsp;</td>
			  </tr>
			  <tr> 
				<td align="right" valign="top" style="border-top:1px dotted #600000;padding-top:5;padding-bottom:2"><a style="cursor:hand" onclick="window.close()">【关闭】</a></td>
			  </tr>
			</table>
			<%else
			  Response.Write "<script language=javascript>window.close();<script>"
			  Response.end
			end if%>
			<%else%>
			<table width="95%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
			  <%while not rs.eof%>
			  <tr> 
				<td height="22">·<a href="Marquee.asp?id=<%=rs("id")%>"><%=rs("Title")%></a></td>
			  </tr>
			  <%rs.movenext
			  wend%>
			  <tr> 
				<td height="100%"></td>
			  </tr>
			  <tr> 
				<td align="right" valign="top" style="border-top:1px dotted #600000;padding-top:5;padding-bottom:2"><%if cint("0"&p)>1 then%><a href="Marquee.asp?p=1">首页</a>　<a href="Marquee.asp?p=<%=cint("0"&p)-1%>">上一页</a>　<%end if%><%if cint("0"&p)<totalpage then%><a href="Marquee.asp?p=<%=cint("0"&p)+1%>">下一页</a>　<a href="Marquee.asp?p=<%=totalpage%>">末页</a>　<%end if%><a style="cursor:hand" onclick="window.close()">【关闭】</a></td>
			  </tr>
			</table>
			<%end if%>
		  </td>
		</tr>
	  </table>
	</td>
  </tr>
</table>
<%rs.cancel:rs.close
set rs=nothing
CloseConnection%>