?? news.asp
字號:
<!--#include file="Common/Inc_DatConn.asp"-->
<!--#include file="Common/Inc_Config.asp"-->
<!--#include file="Common/Inc_Function.asp"-->
<%
'┌─ 風云ASP在線 ────────────────────────┐
'│ │
'│ 作者:趙振波. http://www.fyasp.com │
'│ │
'│ Q Q:176189168 │
'│ │
'│ Email:fy96@163.com │
'│ │
'│ 程序定做,系統開發,網站制作,提供高質量的網絡產品、技術和服務!│
'│ │
'│【版權聲明】 │
'│ │
'│ 本程序版權歸坐看風云所有,未經授權擅自修改、復制或散布本程序│
'│ │
'│的部分或全部,將承受嚴厲的民事和刑事處罰,對已知的違反者將給予法 │
'│ │
'│律范圍內的全面制裁。對非法使用此程序所造成的一切后果本人概不負責!│
'│ │
'└─────────────────── http://www.fyasp.com ──┘
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<title>行業動態-<% =strSiteName%></title>
<LINK href="hy/img/STYLE.css" type=text/css rel=stylesheet>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta content="分類,供求信息,北方供求,整站出售,免費源碼,交友, 征友, 風云在線, 約會, 聊天, 征婚, 婚介, 愛情, 友情, 友誼, 朋友, 伙伴, 情人, 伴侶, 同性, 異性, 女人, 男士, 女士, 男孩, 女孩, 帥哥, 美女, 單身, 獨身, 性感, 浪漫, 激情, 手機交友, 手機, 短信, 彩信, 鈴聲, 圖片, 照片, 靚照, 貼圖, 語音, 視頻, 搜索, 文章, 商城" name="keywords">
<link href="Common/Style.css" type="text/css" rel="stylesheet">
</head>
<body leftMargin="0" topMargin="0" marginheight="0" marginwidth="0">
<!--#include file="Top.asp"-->
<div align="center">
<table cellSpacing="0" cellPadding="0" width="760" border="0">
<tr vAlign="top">
<td width="170" bgcolor="#F3F5F5">
<!--#include file="left.asp"-->
</td>
<td>
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td>
<img height="39" src="images/jiansuo.gif.gif" width="587"></td>
</tr>
<tr>
<td background="images/lhtbg.gif.gif">
<table cellSpacing="0" cellPadding="0" width="550" align="center" border="0">
<tr>
<td><!--#include file="Common/Inc_Searchnews.asp"--></td>
</tr>
<tr>
<td height="6"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgColor="#85bdef" height="1"></td>
</tr>
</table>
<table height="3" cellSpacing="0" cellPadding="0" width="132" border="0">
<tr>
<td></td>
</tr>
</table>
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr vAlign="top">
<td>
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td width="587" height="32" background="images/vxinxi.gif" align="center">
<b>行業動態</b></td>
</tr>
</table>
<table cellSpacing="1" cellPadding="0" width="586" bgColor="#a8d70c" border="0">
<tr>
<td bgColor="#ffffff">
<table cellSpacing="0" cellPadding="0" width="100%" bordercolordark="#FFFFFF" borderColorLight="#3986CE" border="0">
<tbody>
<tr>
<table width="100%" height="22" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="23" valign="top">
<table width="100%" height="20" border="0" cellpadding="4" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td width="70%" height="20"><font color="#3986CE">信息主題</font></td>
<td width="21%" align="center"><font color="#3986CE">
發布時間</font></td>
<td width="9%" align="center"><font color="#3986CE">瀏覽</font></td>
</tr> <tr>
<td width="100%" colspan="3" height="1" background="images/dotline.gif"></td>
</tr><%
Dim rdsNews
Dim sqlNews
Dim rdsTotalRec
Dim intPage '/當前頁/
Dim intTotalRec '/所有記錄/
Dim intNewsCount
Dim n,p,ii '/定義一些臨時變量/
intPage = Trim(Request("Page"))
if intPage = "" then
intPage = 1
else
intPage = Clng(intPage)
end if
set rdsNews = Server.CreateObject("ADODB.Recordset")
set rdsTotalRec = Conn.Execute("Select Count(NewsKey) From Dat_News Where NewsClass = 2 And State = 1")
intTotalRec = rdsTotalRec(0)
sqlNews = "Select * From Dat_News Where NewsClass = 2 And State = 1 Order By NewsKey Desc"
rdsNews.Open sqlNews,Conn,1,1
if not rdsNews.EOF then
if intTotalRec mod intNewsCot = 0 then
n = intTotalRec \ intNewsCot
else
n = intTotalRec \ intNewsCot + 1
end if
rdsNews.MoveFirst
if intPage > n then intPage = n
if intPage < 1 then intPage = 1
rdsNews.Move (intPage - 1) * intNewsCot
do while not rdsNews.EOF and intNewsCount < Clng(intNewsCot)
intNewsCount = intNewsCount + 1
%>
<tr>
<td width="70%" height="20" class="F16"> <img border="0" src="images/arrow_01.gif"> <a href="View_News.asp?Id=<% = rdsNews("NewsKey")%>" target="_blank" class="a01"><% = rdsNews("Topic")%></a></td>
<td width="21%" align="center"><% = FormatTime(rdsNews("CreateTime"),5)%></td>
<td width="9%" align="center"><% = rdsNews("Hits")%></td>
</tr>
<tr>
<td width="100%" colspan="3" height="1" background="images/dotline.gif"></td>
</tr>
<%
rdsNews.MoveNext
loop
else
%>
<tr>
<td width="100%" colspan="3" height="22"> <font color="#FF0000">沒有行業新聞信息</font>...</td>
</tr>
<%
end if
rdsNews.Close
set rdsNews = nothing
if intPage - 1 mod 10 = 0 then
p = (intPage - 1) \ 10
else
p = (intPage - 1) \ 10
end if
%>
</table>
</td>
</tr>
</table>
<table border="0" width="98%" cellspacing="0" cellpadding="0" align="center">
<form method="post" action="News.asp" name="Form2">
<input type="hidden" name="KeyWord" value="<% = strKeyWord%>">
<tr>
<td width="30%" height="30" valign="middle">頁次:<b><%= intPage %></b>/<b><%= n %></b>頁 每頁<b><%= intNewsCot %></b>條 共<b><%= intTotalRec %></b>條</td>
<td width="70%" height="30" valign="middle"><div align="right">分頁:
<%
if intPage = 1 then
Response.Write "<font face=webdings>9</font> "
else
Response.Write "<a href='?Page=1&KeyWord="& strKeyWord &"' title=首頁><font face=webdings>9</font></a> "
end if
if p * 10 > 0 then Response.Write "<a href='?Page="&Cstr(p*10)&"&KeyWord="& strKeyWord &"' title=上十頁><font face=webdings>7</font></a> "
Response.Write "<b>"
for ii = p * 10 + 1 to P * 10 + 10
if ii = intPage then
Response.Write "<font color=""#FF0000"">"+Cstr(ii)+"</font> "
else
Response.Write "<a href='?Page="&Cstr(ii)&"&KeyWord="& strKeyWord &"'>"+Cstr(ii)+"</a> "
end if
if ii = n then exit for
next
Response.Write "</b>"
if ii < n then Response.Write "<a href='?Page="&Cstr(ii)&"&KeyWord="& strKeyWord &"' title=下十頁><font face=webdings>8</font></a> "
if intPage=n then
Response.Write "<font face=webdings>:</font> "
else
Response.Write "<a href='?Page="&Cstr(n)&"&KeyWord="& strKeyWord &"' title=尾頁><font face=webdings>:</font></a> "
end if
%>
轉到:<input type="text" name="Page" size="2" maxlength="10" value="<%= intPage %>" class="face"> <input type="submit" value="Go" name="submit" class="button">
</div></td>
</tr>
</form>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<table height="6" cellSpacing="0" cellPadding="0" width="132" border="0">
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table></div>
<!--開始-->
<div align="center">
<table border="0" style="border-collapse: collapse" width="760">
<tr>
<td background="hy/img/2005_soft_mainbg.gif" height="7"></td>
</tr> </table>
</div>
<!--結束-->
<!--#include file="end.asp"-->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -