⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 news.asp

📁 忆风主机管理系统 忆风主机管理系统 忆风主机管理系统
💻 ASP
字号:
<!--#include file="conn.asp" -->
<!--#include file="function.asp" -->
<%
if request("page")="" then
page=1
end if
%>
<%
if IsNumeric(request("page")) then
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE><%=page_name%>&nbsp;&ndash;&nbsp;<%=page_title%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK 
href="images/style.css" type=text/css rel=stylesheet>
<SCRIPT src="images/Domain.js"></SCRIPT>
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff leftMargin=0 background=images/bg.jpg topMargin=0 
marginheight="0" marginwidth="0">
<!--#include file="head.asp" -->
<TABLE width=760 border=0 align="center" 
cellPadding=0 cellSpacing=0 borderColor=#111111 style="BORDER-COLLAPSE: collapse">
  <TBODY>
    <TR>
      <TD bgColor=#ffffff><P align=center>
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="760" height="100">
            <param name="movie" value="images/banner_special.swf">
            <param name="quality" value="high">
            <embed src="images/banner_special.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="760" height="100"></embed>
          </object>
        </P></TD>
    </TR>
    <TR>
      <TD width="100%" bgColor=#7b7d7b height=1><IMG 
            src="images/blank_2.gif" border=0></TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
  <TBODY>
    <TR>
      <TD width=136 height="376" vAlign=top background="images/bg_l.gif"><TABLE width=136 border=0 cellPadding=0 cellSpacing=0>
          <TBODY>
            <TR>
              <TD vAlign=top width=136 background=images/bg_l.gif><TABLE height=104 cellSpacing=0 cellPadding=0 width="100%" border=0>
                  <TBODY>
                    <TR>
                      <TD vAlign=top width="100%" height=104><P align=center><IMG src="images/press.gif" width="134" height="85"> </P></TD>
                    </TR>
                  </TBODY>
                </TABLE></TD>
            </TR>
          </TBODY>
        </TABLE></TD>
      <TD width=592 vAlign=top bgColor=#ffffff><TABLE cellSpacing=0 cellPadding=0 border=0>
          <TBODY>
            <TR>
              <TD width="592" valign="top"><br>
                <TABLE height=58 cellSpacing=0 cellPadding=0 width="92%" align=center 
      border=0>
                  <TBODY>
                    <TR>
                      <TD height=58 valign="top"><DIV align=center>
                          <CENTER>
                            <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 
            cellSpacing=0 cellPadding=3 width="100%" border=0>
                              <TBODY>
                                <TR>
                                  <%
pp=20
sql="select * from news order by id desc"
rs.open sql,conn,1,1 
if not rs.eof then
  count=rs.recordcount
    if count=empty then
      count=0
    end if
    if count/pp>(count\pp) then
        totalpage=(count\pp)+1
  else
   totalpage=(count\pp)
    end if
end if 
 pagecount=cint(request.querystring("page"))                              
 if pagecount<=0 then pagecount=1
 if pagecount>totalpage then pagecount=totalpage
 %>
                                  <FORM action=news.asp method=get>
                                    <TD><FONT style="FONT-SIZE: 9pt">&nbsp;输入页次:</FONT>
                                      <INPUT name=page 
                  class=border value="1" size=3>
                                      <INPUT type=image src="images/sdot.gif" alt="页次跳转" width="11" height="9">
                                      <FONT 
                  style="FONT-SIZE: 9pt"> 页次:</FONT><FONT style="FONT-SIZE: 9pt" 
                  color=red><%= pagecount %>/<%= totalpage %></FONT> 共有记录<%= count %>条 </TD>
                                  </FORM>
                                </TR>
                                <TR>
                                  <TD bgColor=#ffffff></TD>
                                </TR>
                              </TBODY>
                            </TABLE>
                          </CENTER>
                        </DIV>
                        <TABLE cellSpacing=1 cellPadding=4 width="100%" align=center 
            bgColor=#c6c6c6 border=0>
                          <TBODY>
                            <% 
if not rs.eof then
  rs.movefirst
 rs.move (pagecount-1)*pp
 i=0
 while not rs.eof and i<pp
 i=I+1
  %>
                            <TR>
                              <TD bgColor=#ffffff><IMG height=10 
                  src="images/e6t18.gif" width=10>&nbsp;<a href="show.asp?id=<%=rs("id")%>"><%= rs("title") %></a> <font color="#CCCCCC"><%= rs("dat") %></font></TD>
                            </TR>
                            <% rs.movenext
  wend 
  end if
 rs.close %>
                          </TBODY>
                        </TABLE></TD>
                    </TR>
                  </TBODY>
                </TABLE>
                <P></p></TD>
            </TR>
          </TBODY>
        </TABLE></TD>
      <TD width=32 colSpan=2 vAlign=top background="images/bg_l.gif" bgColor=#ffffff>&nbsp;</TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
  <TBODY>
    <TR>
      <TD bgColor=#999999><IMG height=1 src="images/spacer.gif" 
  width=1></TD>
    </TR>
  </TBODY>
</TABLE>
<!--#include file="foot.asp" -->
<%conn.close
set conn= nothing
end if
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -