<!--#include file="inc/conn.asp"-->
<!--#include file="inc/safe.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>红嫂视屏交友网</title>
<meta name="keywords" content="情感,在线,新新,照片,动感影片,诗歌,爱情,纯洁,心连心">
<meta name="description" content="红嫂视屏交友情缘 情感在线">
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-image: url();
	font-family: "宋体"; font-size: 9pt;
}
.STYLE8 {
	color: #CC0099;
	font-size: 12px;
	font-weight: bold;
}
.STYLE31 {color: #666666; font-size: 12px;}
-->
</style>
<script type="text/javascript" src="js/tips.js"></script>
</head>
<body>
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="top.asp"--></td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="204" height="328" valign="top"><!--#include file="memberleft.asp"-->
&nbsp;</td>
    <td width="583" valign="top"><table width="565" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><TABLE width="100%" border=0 
            cellPadding=0 cellSpacing=0 bgColor=white class="STYLE4" style="BORDER-BOTTOM: #9DCCF6 1px solid">
              <TBODY>
                <TR>
                  <TD width="2%" align=left background="image/tiao_4.gif"><img src="image/tiao_3.gif" width="10" height="31"></TD>
                  <TD width="14%" align=center background="image/tiao_4.gif"><table width="86" height="25" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td align="center" class="pgd">热门文章</td>
                      </tr>
                  </table></TD>
                  <TD width="50%" height="20" align="center" background="image/tiao_4.gif">&nbsp;</TD>
                  <TD width="32%" align="center" background="image/tiao_4.gif">&nbsp;</TD>
                  <TD width="2%" align="right" background="image/tiao_4.gif"><img src="image/tiao_2.gif" width="10" height="31"></TD>
                </TR>
              </TBODY>
          </TABLE></td>
        </tr>
        <tr>
          <td height="299" valign="top" style="border-left:#C7C8CC 1px solid;border-right:#C7C8CC 1px solid;border-bottom:#C7C8CC 1px solid"><br>
            <table width="520" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="32"><table width="400" border="0" align="center" cellpadding="0" cellspacing="0" class="STYLE4">
                  <form name="form1" method="post" action="searchnews.asp">
                    <tr>
                      <td width="75">文章搜索：</td>
                      <td width="130"><input name="keys" type="text" id="keys" style=" height:19px; width:120px;"></td>
                      <td width="100"><select name="classid" id="classid">
                          <option value="">全部文章</option>
                          <%
					  set rst=server.CreateObject("adodb.recordset")
					  sql="select * from art_class"
					  rst.open sql,conn,1
					  do while not rst.eof
					   response.Write "<option value="""& rst("classid") &""">"& rst("classname") &"</option>"
					  rst.movenext
					  loop
					  rst.close
					  set rst=nothing
					  %>
                        </select>
                      </td>
                      <td align="left"><input type="image" name="imageField" src="image/s.jpg"></td>
                    </tr>
                  </form>
                </table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table>
            <table width="520" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ececec">
              <tr>
                <td height="161" align="center"><%
dim rowcount,page,pcount
set rs=server.CreateObject("adodb.recordset")
sql="select top 40 id,title,weather,username,userid,dtime from article order by lcount desc"
rs.open sql,conn,1
if rs.eof and rs.bof then
   response.Write "<p class='style4'><br>暂无信息！<br><br></p>"
else
               rs.pagesize=20
			   msg_per_page=rs.pagesize
			   page=request("page")
			   if page<1 or page="" then page=1
			   if clng(page)>clng(rs.pagecount) then page=clng(rs.pagecount)
			   page=clng(page)
			   rs.absolutepage=page
			   rowcount=rs.pagesize
			   pcount=clng(rs.pagecount)	
			   precordcount=rs.recordcount
%>
                    <table width="520" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="8" colspan="5"></td>
                      </tr>
                      <tr>
                        <td height="2" colspan="5" bgcolor="#EAF4FE"></td>
                      </tr>
                      <tr>
                        <td height="28" align="center" bgcolor="#FFFFFF" class="style895"><STRONG class="style895">时 间</STRONG></td>
                        <td height="28" align="center" bgcolor="#FFFFFF" class="style895"><STRONG>天气</STRONG></td>
                        <td width="285" height="28" align="left" bgcolor="#FFFFFF" class="style895"><STRONG>&nbsp;文章标题</STRONG></td>
                        <td height="28" align="center" bgcolor="#FFFFFF" class="style895"><STRONG>文章类别</STRONG></td>
                        <td align="center" bgcolor="#FFFFFF" class="style895"><STRONG>作 者</STRONG></td>
                      </tr>
                      <%do while not rs.eof and rowcount>0%>
                      <tr>
                        <td width="93" height="28" align="center" bgcolor="#FFFFFF" class="STYLE31"><%=formatdatetime(rs("dtime"),2)%></td>
                        <td width="35" height="28" align="center" bgcolor="#FFFFFF"><img src="ima/weather/<%=rs("weather")%>"></td>
                        <td height="28" bgcolor="#FFFFFF" class="STYLE88">&nbsp;<a href="showdiary.asp?id=<%=rs("id")%>" class="a1" target="_blank" title="<%=rs("title")%>"><%=rs("title")%></a></td>
                        <td width="94" height="28" align="center" bgcolor="#FFFFFF" class="STYLE31"><%=classname%></td>
                        <td width="94" align="center" bgcolor="#FFFFFF" class="STYLE88"><a href="userinfo.asp?user_id=<%=rs("userid")%>" class="a4"><%=rs("username")%></a></td>
                      </tr>
                      <%
rs.movenext
rowcount=rowcount-1
loop
%>
                  </table>
                    <%if pcount>1 then%>
                    <table width="520" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="25"><%
  response.Write "<TABLE align='center' class='STYLE4'>"
response.Write "<form name='form1' method='post' action='diary_hot.asp'>"
response.Write "<TBODY><TR><TD>"
if page>1 then
    response.Write "<a href='diary_hot.asp?page=1' class='b2'>首页</a>&nbsp;"
	response.Write "<a href='diary_hot.asp?page="& page-1 &"' class='b2'>上一页</a>&nbsp;"
else
    response.Write "首页&nbsp;上一页&nbsp;"
end if			 
if page<pcount then
    response.Write "<a href='diary_hot.asp?page="& page+1 &"' class='b2'>下一页</a>&nbsp;"
	response.Write "<a href='diary_hot.asp?page="& pcount &"' class='b2'>尾页</a>&nbsp;"
else
    response.Write "下一页&nbsp;尾页&nbsp;"
end if	

response.Write "页次:<STRONG><font color='#FF0000'>"&page&"</font>/"&pcount&"</STRONG>页&nbsp; <strong>"&rs.pagesize&"</strong>条/页&nbsp;共<strong>"& precordcount &"</strong>条&nbsp;转到:"
response.Write "<input name='page' type='text' id='page' size='2' style='height:18px;' maxlength='5' value='"&page&"'>"
response.Write "<input name='submit' type='submit' style='height:20px;' id='submit' value='GO'>"
response.Write "</TD></TR></TBODY></form></TABLE>"
			%></td>
                      </tr>
                  </table>
                    <%
 end if	
 end if%>
                </td>
              </tr>
            </table></td>
        </tr>
    </table></td>
    <td width="163" valign="top"><!--#include file="fenlei.asp"-->
&nbsp;</td>
  </tr>
</table>
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="root.asp"--></td>
  </tr>
</table>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
