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

📄 baodianlist1.asp

📁 我同学的毕业设计源代码
💻 ASP
字号:
<!--#include file="conn.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=name%></title>
<link href="css/css.css" rel="stylesheet" type="text/css">
</head>
<body background="images/topbj.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center">
      <!--#include file="top.asp" -->
    </td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="bk">
  <tr> 
    <td width="180" align="center" valign="top" background="images/index_00.gif">
      <!--#include file="left1.asp" -->
    </td>
    <td align="center" valign="top"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="6%" bgcolor="#ffb600"><img src="images/20080320134845251.gif" width="32" height="19"></td>
                <td width="94%" bgcolor="#ffb600"><table width="98%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><font color="#FFFFFF">市场动态</font></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td colspan="2" bgcolor="#ffb600"><img src="images/5x5.gif" width="5" height="5"></td>
              </tr>
              <tr> 
                <td colspan="2" align="center" valign="top"><table width="96%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
      <%set rs=server.createobject("adodb.recordset")
		sql="select * from news where type='市场动态' order by id desc"
		rs.open sql,conn,1,1
		rs.pagesize=25
		filename="baodianlist.asp"
		%>
         <%if not (rs.eof and rs.bof) then
		Page = cint(Request.querystring("Page"))
   		If Page < 1 Then Page = 1
   		If Page > rs.PageCount Then Page = rs.PageCount
			showpages rs,Page
	    %>
                      <%else%>
                    <tr> 
                      <td colspan=5><center>
                          <font color=red>没有信息</font> </center></td>
                    </tr>
                    <%end if%>
                    <%Sub showpages( rs,Page )
          rs.AbsolutePage = Page		
		  for i=0 to rs.pagesize-1
		    'j=j+1
			'if j mod 2 =0 then
				'bg="#ededed"
			'else 
				'bg="#ffffff"
			'end if
		%>
                    <td> <TABLE width="100%" border=0 cellPadding=2 cellSpacing=1 >
                        <TBODY>
                          <TR> 
                            <TD width="85%" background="images/lib.gif" ><img src="images/index_03.gif" width="14" height="13"> 
             <a href="newsshow.asp?id=<%=rs("id")%>" target="_blank"><%= left(rs("name"),25) %> 
                         <% If len(rs("name"))>25 Then %>
                              ...... 
                              <% End If %>
                              </a>&nbsp;&nbsp;&nbsp;<font color="#CC0033">[<%=rs("type")%>]</font></TD>
                            <TD width="15%" background="images/lib.gif" >&nbsp;<%=rs("dat")%></TD>
                          </TR>
                        </TBODY>
                      </TABLE></td>
                    </tr>
                    <%
		rs.movenext
  		If rs.EOF Then Exit For
	 	Next%>
                    <%End Sub%>
                    <tr> 
                      <td height="20" align="center" bgcolor="#f1f1f1"> 
                        <%
		response.write "共<font color=red>"&rs.recordcount&"</font>条信息&nbsp;&nbsp;"
		response.write rs.pagesize&"条一页&nbsp;&nbsp;"
		if Page=1 then 
      		 response.write"[首页]  "
   		end if 
  		 If Page <> 1 Then
  		    Response.Write "<A HREF="&filename&"?keyword="&keyword&"&Page=1>[首页]</A>

⌨️ 快捷键说明

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