<!--#include file=conn.asp-->
<%
Set rs=Server.CreateObject("ADODB.Recordset")
sql="Select * from main order by id desc"
rs.open sql,conn,1,1
rs.pagesize=20
if request("page")="" then
rs.absolutepage=1
else
rs.absolutepage=request("page")
end if
count=20
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>咖啡设计--设计教学</title>
<style>
<!--
body,table,td{font:9pt "宋体";COLOR: #999999}
A {text-decoration: none; color:#B08291; font-family: "宋体"; font-size: 9pt}
A:hover {text-decoration:line-through; color: #B08291}
TABLE {	COLOR: buttontext; CURSOR: default; FONT-SIZE: 12px }
.indiv { BACKGROUND: buttonface; BORDER-BOTTOM: buttonshadow 1px solid; BORDER-LEFT: buttonhighlight 1px solid; BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: buttonhighlight 1px solid }
.outdiv { BORDER-BOTTOM: buttonhighlight 1px solid; BORDER-LEFT: buttonshadow 1px solid; BORDER-RIGHT: buttonhighlight 1px solid; BORDER-TOP: buttonshadow 1px solid; WIDTH: 100% }
.buttonover{BACKGROUND: #D6D3CE; BORDER-LEFT: #ffffff 1px solid; BORDER-RIGHT: #999999 1px solid; BORDER-top: #ffffff 1px solid;BORDER-bottom: #999999 1px solid}
.buttonout{background:#D6D3CE; border-left: #D6D3CE 1 solid; border-right: #D6D3CE 1 solid}
.buttondown{BACKGROUND: #D6D3CE; BORDER-LEFT: #999999 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-top: #999999 1px solid;BORDER-bottom: #ffffff 1px solid}
input{height:19;font:9pt;border:1 solid #000000}
-->
</style>
<SCRIPT LANUGAGE="JavaScript">
<!--
function pop(pageurl) 
{
var
popwin=window.open(pageurl,"popWin","scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width=520,height=500");
return false;
}
-->
</SCRIPT>

<base target="_self">
</head>

<body topmargin="0" leftmargin="0" oncontextmenu="return false" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td valign="top"> 
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <%do while not rs.eof and count>0%>
        <tr> 
          <td height="20"> 　→&nbsp;<a href=show.asp?id=<%=rs("id")%> onClick="return pop(this.href)" target="_blank"><%=rs("theme")%> 
            [阅读<%=rs("hit")%>次]</a>&nbsp; 
            <%if datediff("d",rs("sj"),dateadd("d",-1,now()))=-1 then 
response.write"<img src=images/new.gif>" 
end if 
%>
          </td>
        </tr>
        <%     
    rs.movenext     
    count=count-1     
    loop     
  %>
        <tr> 
          <form name=jump action=showall_art.asp>
            <td align="right"> 
              <%if rs.pagecount>1 then%>
              <a href=showall_art.asp?page=1>【首页】</a>
              <a href=showall_art.asp?page=<%=rs.pagecount%>>【尾页】</a> 
              <select name="page" onChange="jump.submit()" style="font:9pt;height:18">
                <option value="blank" selected>文章分页</option>
                <%for i=1 to rs.pagecount%>
                <option value=<%=i%>>第<%=i%>页</option>
                <% 
            next 
            end if 
            %>
              </select>
            </td>
          </form>
        </tr>
      </table>
    </td>
  </tr>
</table>     
</body>       
  <%     
  rs.close     
  set rs=nothing     
  conn.close     
  set conn=nothing     
  %>     
</html>       
