?? requirelist.asp
字號:
<!--#include file="SiteInfo.asp"-->
<%
'☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
'★ ★
'☆ 萬博中小企業(yè)網(wǎng)站管理系統(tǒng)(NWEB) ☆
'★ ★
'☆ 版權(quán)所有 Nweb.cn ☆
'★ ★
'☆ 程序制作 萬博工作室 ☆
'★ Add:四川省彭州市西大街228號/611930 ★
'☆ Tel:028-88079088 Fax:83708850 ☆
'★ E-m:duolaimi-123@163.com ★
'☆ Q Q:59309100 ☆
'★ ★
'☆ 相關(guān)網(wǎng)址 [產(chǎn)品介紹]http://www.Nweb.cn ☆
'★ [支持論壇]http://www.Nweb.cn/bbs ★
'☆ ☆
'★ 演示網(wǎng)址 http://www.Nweb.cn ★
'☆ ☆
'★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
%>
<%
dim i,intPage,page,pre,last,filepath
set RsP = server.createobject("adodb.recordset")
PSQL= "select id,Title,addtime from Nweb_Require where Putout=true order by id desc"
RsP.PageSize = 20 '這里設(shè)定每頁顯示的記錄數(shù)
RsP.CursorLocation = 3
RsP.Open PSQL,conn,0,2,1
pre = true
last = true
page = trim(Request.QueryString("page"))
if len(page) = 0 then
intpage = 1
pre = false
else
if cint(page) =< 1 then
intpage = 1
pre = false
else
if cint(page)>=RsP.PageCount then
intpage = RsP.PageCount
last = false
else
intpage = cint(page)
end if
end if
end if
if not RsP.eof then
RsP.AbsolutePage = intpage
end if
if RsP.Bof or Rsp.EOF then ContentList="還沒有相關(guān)內(nèi)容!"
for i=1 to RsP.PageSize
if RsP.EOF or RsP.BOF then exit for
ContentList=ContentList&"<tr><td height='22' Class='News-01'> <img src='Images/Arrow-Title.gif' width='4' height='7'> <a target='_blank' href='RequireView.asp?id="&RsP("id")&"'>"&RsP("Title")&"</a></td><td width='80px' Class='News-02'>"&RsP("addtime")&"</td></tr>"
RsP.movenext
next
ContentList="<table width='100%' border='0' cellpadding='0' cellspacing='0' >"&ContentList&"</table>"
'===========================
%>
<%
Sub Pagination()
response.write"<table width='100%' border='0' cellpadding='0' cellspacing='0' class='Pagination'><tr valign='middle'>"
if RsP.pagecount>0 then
response.write" <td height='24' align='center'>當(dāng)前頁"&intpage&"/"&RsP.PageCount&" "
else
response.write" <td height='24' align='center'>當(dāng)前頁0/0 "
end if
response.write"共有"&RsP.recordcount&"條信息 每頁"&RsP.PageSize&"條 <a href='RequireList.asp?page=1&id="&ID&"'>首頁</a> | "
if pre then
response.write" <a href='RequireList.asp?page="&intpage -1&"&id="&id&"'>上頁</a> | "
end if
if last then
response.write" <a href='RequireList.asp?page="&intpage +1&"&id="&ID&"'>下頁</a> | "
end if
response.write"<a href='RequireList.asp?page="&RsP.PageCount&"&id="&I&"'>尾頁</a> | 轉(zhuǎn)到第"
response.write"<select name='sel_page' onChange='javascript:location=this.options[this.selectedIndex].value;'>"
for i = 1 to RsP.PageCount
if i = intpage then
response.write" <option value='RequireList.asp?page="&i&"&id="&id&"' selected>"&i&"</option>"
else
response.write" <option value='RequireList.asp?page="&i&"&id="&id&"'>"&i&"</option>"
end if
next
response.write"</select>頁</td></tr></table>"
RsP.Close
set RsP=nothing
End Sub
'===========================
%>
<HTML>
<HEAD>
<TITLE>首頁-需求|<%=SiteName%></TITLE>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<META NAME="copyright" CONTENT="Copyright 2004-2005 - NWEB.CN-STUDIO-多來米">
<META NAME="Author" CONTENT="萬博網(wǎng)絡(luò)技術(shù)工作室,www.Nweb.cn">
<META NAME="Robots" CONTENT="all">
<META NAME="Keywords" CONTENT="<%=Keywords%>">
<META NAME="Description" CONTENT="<%=Description%>">
<link href="Images/CSS.css" type=text/css rel=stylesheet>
</HEAD>
<BODY >
<!--#include file="Top.asp" -->
<table width="868" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="190" height="96" valign="top" bgcolor="#F2F2F2" ><!--#include file="LeftNav.asp" -->
<!--#include file="RequireLeft.asp" -->
</td>
<td width="5"></td>
<td width="673" valign="top" class="Index-Center"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<!--DWLayoutTable-->
<tr>
<td height="180" colspan="2" bgcolor="#FFFFFF"><img src="Images/Banner_01.jpg" alt="萬博中小企業(yè)網(wǎng)站系統(tǒng)" width="499" height="180"></td>
<td width="172" align="right" bgcolor="#FFFFFF"><img src="Images/Banner_02.jpg" alt="萬博中小企業(yè)網(wǎng)站系統(tǒng)" width="171" height="180"></td>
</tr>
<tr>
<td width="93" height="5" bgcolor="#FFFFFF"></td>
<td width="408" bgcolor="#FFFFFF"></td>
<td bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td height="30" align="right" bgcolor="#F2F2F2"><strong><font color="#1c529b"><img src="Images/Arrow-locality.gif" width="14" height="12" align="absmiddle"> 當(dāng)前位置:</font></strong></td>
<td colspan="2" bgcolor="#F2F2F2" class="locality"><a href="index.asp">首 頁</a> >> <a href="RequireList.asp">需求信息</a></td>
</tr>
<tr>
<td height="5" align="center" bgcolor="#FFFFFF"></td>
<td colspan="2" align="center" bgcolor="#FFFFFF"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td height="12"> </td>
<td></td>
<td></td>
</tr>
<tr>
<td width="20" height="30"> </td>
<td><%=ContentList%></td>
<td width="20"></td>
</tr>
<tr>
<td height="40"> </td>
<td valign="bottom"><% Call Pagination() %></td>
<td></td>
</tr>
<tr>
<td height="30"> </td>
<td></td>
<td></td>
</tr>
</table></td>
</tr>
</table>
<!--#include file="Bot.asp" -->
</BODY>
</HTML>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -