<!--#include file="sub/conn.asp"-->
<!--#include file="sub/webvar.asp"--> 
<!--#include file="sub/fun.asp"--> 
<!--#include file="sub/online.asp"-->
<%online%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=webtitle%></title>
<link href="sub/main.css" rel="stylesheet" type="text/css">
</head>
<%=webbody%>
<!--#include file="top.asp"-->
<table width="778" height="7" border="0" align="center" cellpadding="0" cellspacing="0" background="images/05_title_son_back.gif" bgcolor="FFC3DD">
  <tr> 
    <td width="98"><img src="images/05_title_son2.gif" width="26" height="7" hspace="58"></td>
    <td width="68"></td>
    <td width="82"></td>
    <td width="78" ></td>
    <td width="79"></td>
    <td width="79"></td>
    <td width="77"></td>
    <td width="67"></td>
    <td width="55"></td>
    <td width="95"></td>
  </tr>
</table>
<table width="778" height="9" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border-left:#FFD7E2 1px solid;border-right:#FFD7E2 1px solid;">
  <tr> 
    <td align="center" valign="top"><img src="images/hehe8.gif" width="760" height="22"></td>
  </tr>
</table>
<table width="778" height="30" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border-left:#FFD7E2 1px solid;border-right:#FFD7E2 1px solid;">
  <tr> 
    <td align="center" valign="top">
      <%
	if request.cookies("yxlove")("username")<>"" then
	   response.write topnews2
	else
	   response.write topnews1
	end if
	%>
    </td>
  </tr>
</table>
<table width="778" height="549" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border-left:#FFD7E2 1px solid;border-right:#FFD7E2 1px solid;">
  <tr valign="top"> 
    <td width="49" align="right">&nbsp;</td>
    <td width="682" align="center" ><table width="90%" height="40" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF" style="border:#CEF2FD 1px dotted;">
        <tr> 
          <td align="center" bgcolor="#D2F5FF" style="padding-top:5px;font-size:10.3pt;"><font color="#999999">『</font> 
            <b><font color="#FF6600">动态·公告</font></b><font color="#999999"> 』</font></td>
        </tr>
      </table>
      <%
set rs=Server.CreateObject("ADODB.recordset")
rs.open "select id,title,addtime,click from love_news order by id desc",conn,1,1
IF  (rs.State =adStateClosed)  or (rs.BOF=true and rs.EOF =true)  or  rs.RecordCount=0 THEN       
   RESPONSE.Write"<BR><BR>　　　暂时还没有信息...　　<br>"       
ELSE
 dim page,ipage
  rs.pagesize=15
  page=request("Page")
  pages(page)
  page=clng(Page)
  if page > rs.pagecount then response.redirect "login.asp"
  if page=empty then page=1
  rs.absolutepage=page
%>
      <table width="90%" height="30" border="0" cellPadding="1" cellSpacing="0">
        <%for ipage=1 to rs.pagesize%>
        <tr <%if ipage mod 2 =0 then response.write "bgcolor=E9FAFF" end if%>> 
          <td width="56%" height="40"  style="border-bottom:#cccccc 1px dotted;">　<img src=images/05_8.gif hspace="5" align="absmiddle"> 
            <a href=News_show.asp?classid=<%=rs("id")%> target="_blank" ><font color="#666666"><%=ChkBadWords(rs("title"))%></font></a> 
            <font color="#999999">&nbsp; </font></td>
          <td width="24%"  style="border-bottom:#cccccc 1px dotted;"> <font color="#666666">发布于</font><font color="999999">[<%=FormatDT(rs("addtime"),5)%>]</font> 
          </td>
          <td width="20%"  style="border-bottom:#cccccc 1px dotted;"><font color="#666666">阅读</font> 
            <font color="#FF0000"><%=rs("click")%></font><font color="#666666"> 
            次</font></td>
        </tr>
        <%Rs.movenext                                                    
If rs.eof Then exit For                                                    
Next%>
      </table>
      <table width="75" height="24" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td></td>
        </tr>
      </table>
      <table width="560" border="0" align="center" cellpadding="0" cellspacing="0" >
        <tr> 
          <td width="167" height="29" align="right" valign="bottom" style="padding-bottom:7px;"> 
            <% 
if page=empty then page=1            
if page < 1 then page=1            
if page > rs.pagecount then page=rs.pagecount
%>
            共<font color=ff0000><b> <%=rs.recordcount%></b></font> 条记录　共 <font color=ff0000><b><%=rs.pagecount%></b></font> 
            页</td>
          <td width="79" align="center" valign="bottom" style="padding-bottom:7px;">第 
            <select class=dh name=select onChange=mychange(value) size="1" style="font-family: 宋体;border:1px solid; font-size: 9pt;color:#333333;">
              <%for i=1 to rs.pagecount%>
              <%if i=page then%>
              <option value=<%=Request.ServerVariables("SCRIPT_NAME")%>?Page=<%=i%> selected><%=i%></option>
              <%else%>
              <option value=<%=Request.ServerVariables("SCRIPT_NAME")%>?Page=<%=i%>><%=i%></option>
              <%end if%>
              <%next%>
            </select>
            页 </td>
          <td width="324" align="center" style="color:#A5537B;"> 
            <%if page<>1 then%>
            <a href=<%=Request.ServerVariables("SCRIPT_NAME")%>?Page=1><img src="images/index.gif" alt="首页" width="72" height="17" hspace="3" border="0"></a><a href=<%=Request.ServerVariables("SCRIPT_NAME")%>?Page=<%=(page-1)%>><img src="images/pre01.gif" alt="上一页" width="72" height="17" hspace="3" border="0"></a> 
            <%else%>
            <img src="images/index.gif" alt="首页" width="72" height="17" hspace="3" border="0"><img src="images/pre01.gif" alt="上一页" width="72" height="17" hspace="3" border="0">
            <%end if%>
            <% if page<>rs.pagecount then%>
            <a href=<%=Request.ServerVariables("SCRIPT_NAME")%>?Page=<%=(page+1)%>><img src="images/next01.gif" alt="下一页" width="72" height="17" hspace="3" border="0"></a><a href=<%=Request.ServerVariables("SCRIPT_NAME")%>?Page=<%=rs.pagecount%>><img src="images/end.gif" alt="尾页" width="72" height="17" hspace="3" border="0"></a> 
            <%else%>
            <img src="images/next01.gif" alt="下一页" width="72" height="17" hspace="3" border="0"><img src="images/end.gif" alt="尾页" width="72" height="17" hspace="3" border="0">
            <%end if%>
            <script language=javascript>
function mychange(v){
if (v==""){}
else{
window.open (v,target="_self")
}
}
</script> </td>
        </tr>
      </table>
      <%
rs.close
set rs=nothing
End If%>
      <table width="75" height="24" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td></td>
        </tr>
      </table> </td>
    <td width="49" align="left">&nbsp;</td>
  </tr>
</table>
<table width="778" height="22" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border-left:#FFD7E2 1px solid;border-right:#FFD7E2 1px solid;">
  <tr> 
    <td align="center" valign="top">&nbsp; </td>
  </tr>
</table>
<table width="778" height="7" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border-top:#FFD7E2 1px solid;">
  <tr>
    <td align="center" valign="top"></td>
  </tr>
</table>
<!--#include file="bottom.asp"-->
</body>
</html>
<%Closeconn%>