<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="inc/function.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/Conn_User.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=SiteName%> >>> 日志</title>
<link href="img0415/css.CSS" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {
	color: #FF6600;
	font-weight: bold;
}
.STYLE2 {
	color: #993300;
	font-weight: bold;
}
.t3 {
	color: #ffffff;
	font-size:12px;

}
-->
</style>

</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--#include file="top.asp"-->
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="5" bgcolor="f2f2f2"></td>
    <td width="1" bgcolor="cccccc"></td>
    <td width="888" align="center" bgcolor="#FFFFFF"><table width="879" border="0" align="left" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top">
<table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="9"><img src="img0415/space.gif"></td>
              </tr>
            </table>
            <table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="9">
                  <table width="639" border="0" align="right" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td width="1" height="1"><img src="img0415/space.gif" width="1" height="1"></td>
                      <td bgcolor="#CCCCCC"></td>
                      <td width="1"></td>
                    </tr>
                    <tr> 
                      <td width="1" bgcolor="#CCCCCC"><img src="img0415/space.gif" width="1" height="1"></td>
                      <td height="40" bgcolor="f2f2f2"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <form action='blog_search.asp' method='post' name='form'>
                          <tr>
                            <td width="28" align="center"><img src="img0415/search.gif" width="15" height="16"></td>
                            <td width="225"><input name="keywords" type="text" class="input2" size="38">                            </td>
                            <td width="70"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td height="1"><img src="img0415/space.gif" width="1" height="1"></td>
                                </tr>
                              </table>
                                <input name="imageField2" type="image" src="img0415/search2.gif" width="56" height="19" border="0">                            </td>
                            <td><strong><font color="#FF6600">热门:</font></strong></td>
                          </tr>
                        </form>
                      </table></td>
                      <td width="1" bgcolor="#CCCCCC"><img src="img0415/space.gif" width="1" height="1"></td>
                    </tr>
                    <tr> 
                      <td width="1" height="1"><img src="img0415/space.gif" width="1" height="1"></td>
                      <td bgcolor="#CCCCCC"></td>
                      <td width="1"></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
            <table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="9"><img src="img0415/space.gif"></td>
              </tr>
            </table>
            <table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="9">
                  <table width="639" border="0" align="right" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
                    <tr> 
                      <td bgcolor="#FFFFFF" > 
                        <%
set rs=server.createobject("adodb.recordset")
rs.open "select * from [ArticleClass] where iselite=true order by classid asc",conn,1,1 
%>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                          <TR> 
                            <%
dim i
i=1
do while not rs.eof%>
                            <td width="50%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr> 
                                  <td width="1" height="1"><img src="img0415/space.gif" width="1" height="1"></td>
                                  <td colspan="2" bgcolor="#CCCCCC"></td>
                                  <td width="1"></td>
                                </tr>
                                <tr> 
                                  <td width="1" bgcolor="#CCCCCC"><img src="img0415/space.gif" width="1" height="1"></td>
                                  <td width="330" height="26" bgcolor="f2f2f2">&nbsp;&nbsp;<strong><img src="img0415/yuan.gif"><a href="blog_class.asp?classid=<%=rs("classid")%>" target="_blank"><font color=#FF6600><%=rs("classname")%></font></a></strong></td>
                                  <td align="right" bgcolor="f2f2f2"><a href="blog_class.asp?classid=<%=rs("classid")%>" target="_blank"><img src="img0415/MORE.gif" border="0"></a>&nbsp;&nbsp;</td>
                                  <td width="1" bgcolor="#CCCCCC"><img src="img0415/space.gif" width="1" height="1"></td>
                                </tr>
                              </table>
                              <table width="100%" border="0" cellpadding="10" cellspacing="1" bgcolor="#CCCCCC">
                                <tr bgcolor="#FFFFFF"> 
                                  <td> <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                      <%
set rsa=server.createobject("adodb.recordset")
rsa.open "select top 8 * from [Article] where classid="&rs("classid")&" order by Articleid desc",conn,1,1 
do while not rsa.eof%>
                                      <%
set rsf=server.createobject("adodb.recordset")
rsf.open "select * from [user] where username='"&rsa("editor")&"' order by userid desc",conn_user,1,1 
%>
                                      <tr> 
                                        <td height="25">&raquo;<a href=user.asp?userid=<%=rsf("userid")%>&mdid=logs&menu=userlogs.asp?userid=<%=rsf("userid")%>&htm=article_show.asp?articleid=<%=rsa("articleID")%> target="_blank"><font color="<%=rsa("TitleFontColor")%>"><%=left(rsa("title"),14)%> 
                                          <%if len(rsa("title"))>14 then
response.Write ".."
end if%>
                                          </font></a></td>
                                        <td width="78"><img src="img0415/b1.gif">&nbsp;<a href=user.asp?userid=<%=rsf("userid")%> target="_blank"><font color="#999999"><%=left(rsa("editor"),4)%> 
                                          <%
								  if len("editor")>4 then
								  response.Write ".."
								  else 
								  end if%>
                                          </font></a></td>
                                      </tr>
                                      <tr> 
                                        <td height="2" colspan="2" background="user/pic_home030.gif"></td>
                                      </tr>
                                      <%rsa.movenext
loop
rsa.close
set rsa=nothing%>
                                    </table></td>
                                </tr>
                              </table>
                              <table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
                                <tr> 
                                  <td height="9"><img src="img0415/space.gif"></td>
                                </tr>
                              </table></td><%if i mod 2<>0 then%><td width="10"><img src="img0415/space.gif" width="10"></td>  <%end if%>
                              <%if i mod 2=0 then%>
                          </Tr>
                          <Tr> 
                            <%end if%>
                            <%rs.movenext
i=i+1
loop
%>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
            
          </td>
          <td width="9"></td>
          <td width="220" valign="top" bgcolor="fafafa" class="line1">
<table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="9" style="border-top:1px #cccccc solid;"><img src="img0415/space.gif"></td>
              </tr>
            </table>
            <table border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><img src="img0415/logintop.gif" width="200" height="7" /></td>
              </tr>
              <tr>
                <td background="img0415/loginbg.gif" bgcolor="#FFFFFF"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="25"><span class="STYLE1">&raquo;&nbsp;热门日志</span>&nbsp;&nbsp;<font color="#999999" style='FONT-SIZE: 9px'>Hot 
                        Blog </font> </td>
                    </tr>
                    <tr>
                      <td height="1" background="img0415/linef.gif"></td>
                    </tr>
                    
                  </table>
                  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="5">
                    <%
set rs=server.createobject("adodb.recordset")
rs.open "select top 10 * from [article] order by hits desc",conn,1,1 
%>
                    <tr> 
                      <%

						i=1
do while not rs.eof
%>
                      <td height="22" bgcolor="fafafa"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td width="20" align="center"><img src="img0415/d<%=i%>.gif"></td>
                            <td> 
                              <%
set rsu=server.createobject("adodb.recordset")
rsu.open "select * from [user] where username='"&rs("Editor")&"' order by userid desc",conn_user,1,1 
%>
                              <a href="user.asp?userid=<%=rsu("userid")%>&mdid=logs&htm=article_show.asp?articleid=<%=rs("articleid")%>&menu=userlogs.asp?userid=<%=rsu("userid")%>" target="_blank"><%=left(replace(rs("title"),"&nbsp;",""),8)%> 
                              <%
				  if len(rs("title"))>8 then
				   response.Write"..."
				   else 
				   end if%>
                              </a> <font color="#FF6600" style="font-size:10" ><%=rs("hits")%></font></td>
                          </tr>
                        </table></td>
                    </tr>
                    <%
						i=i+1
						if i>10 then exit do
						rs.movenext
						loop
						rs.close
						set rs=nothing%>
                  </table></td>
              </tr>
              <tr>
                <td><img src="img0415/loginend.gif" width="200" height="8" /></td>
              </tr>
            </table>
            <table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="9"><img src="img0415/space.gif"></td>
              </tr>
            </table>
            </td>
        </tr>
      </table> </td>
    <td width="1" bgcolor="#CCCCCC"><img src="img0415/space.gif" width="1" height="1"><img src="img0415/space.gif"></td>
    <td width="5" bgcolor="f2f2f2"></td>
  </tr>
</table>
<!--#include file="end.asp"-->
</body>
</html>
