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

📄 news.asp

📁 个人网站系统,本人基于第三方源码进行更改!
💻 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>
<title><% = strSiteName%></title>
<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 bgColor="#ffffff" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0">
<!--#include file="Top.asp"-->
<table align="center" border="0" width="760" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%">
      <p align="center"><img height="14" src="images/pic_top_01.gif" width="760" border="0"></td>
  </tr>
</table>
<div align="center">
<center>
<table id="AutoNumber8" style="BORDER-COLLAPSE: collapse" cellSpacing="0" cellPadding="0" width="760" border="0">
  <tbody>
  <tr>
    <td vAlign="top" width="1" background="images/space_01.gif"><img height="1" src="images/space_01.gif" width="1" border="0"></td>
    <td vAlign="top" width="10"><img height="1" src="images/space.gif" width="10" border="0"></td>
    <td vAlign="top" width="580">
      <div align="center">
      <center>
      <table id="AutoNumber12" style="BORDER-COLLAPSE: collapse" height="103" cellSpacing="0" cellPadding="0" width="580" border="0">
        <tbody>
        <tr>
          <td vAlign="top" height="3"></td>
        <tr>
          <td vAlign="top" height="100"><img src="images/ad_01.gif" width="580" height="100" alt="一号广告位"></td></tr></tbody></table></center></div>
      <div align="center">
      <center>
      <table id="AutoNumber11" style="BORDER-COLLAPSE: collapse" height="73" cellSpacing="0" cellPadding="0" width="580" border="0">
        <tbody>
        <tr>
          <td vAlign="center" background="images/bg_quick_search_01.gif" height="63" align="center"><!--#include file="Common/Inc_Searchnews.asp"--></td>
        </tr>
        <tr>
          <td vAlign="top" height="10"></td></tr></tbody></table></center></div>
      <table border="0" width="100%" cellspacing="0" cellpadding="0" height="25">
        <tr>
          <td width="100%" height="30">&nbsp;您的位置:<a href="index.asp" class="links">首 页</a> -&gt;&gt; 行业新闻</td>         
        </tr>
      </table>
      <table border="0" width="100%" cellspacing="0" cellpadding="0" background="images/002.gif" height="25">
        <tr>
          <td width="100%">
            <table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td width="70%"><font color="#FFFFFF">&nbsp; 信 息 主 题</font></td>                  
                <td width="21%" align="center"><font color="#FFFFFF">发 布 时 间</font></td>
                <td width="9%" align="center"><font color="#FFFFFF">浏 览</font></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <div align="center">
            <center>
            <table borderColor="#111111" cellSpacing="0" cellPadding="0" width="100%" bordercolordark="#FFFFFF" borderColorLight="#3986CE" border="1"><tbody>
              <tr>
                <td vAlign="top" width="100%">
                <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">
<%
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">&nbsp;<img border="0" src="images/arrow_01.gif">&nbsp;<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="4" height="1" background="images/dotline.gif"></td>
						</tr>
<%
  		rdsNews.MoveNext
	loop
else
%>
						<tr>
						  <td width="100%" colspan="3" height="22">&nbsp;<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" cellspacing="0" width="100%" cellpadding="0">
				  <tr>
					<td width="100%" height="30" align="center" valign="top">
	  <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>
				</table>
               </td>
              </tr>
              </tbody></table></center></div>
    </td>
    <td vAlign="top" width="10"><img height="1" src="images/space.gif" width="10" border="0"></td>
    <td vAlign="top" width="1" background="images/space_01.gif"><img height="1" src="images/space_01.gif" width="1" border="0"></td>
    <td class="bg01" vAlign="top" width="157">
      <div align="center">
      <center>
      <table id="AutoNumber11" style="BORDER-COLLAPSE: collapse" borderColor="#111111" height="176" cellSpacing="0" cellPadding="0" width="157" border="0">
        <tbody>
        <tr>
          <td vAlign="top" height="35"><img height="35" src="images/pic_520_passport_01.gif" width="157" border="0"></td></tr>
        <tr>
          <td vAlign="top" background="images/pic_520_passport_02.gif" bgColor="#ffffff" height="120" align="center"><!--#include file="Common/Inc_Login.asp"--></td>
        </tr>
        <tr>
          <td vAlign="top" height="21"><img height="21" src="images/pic_520_passport_03.gif" width="157" border="0"></td></tr></tbody></table></center></div>
      <div align="center">
      <center>
      <table borderColor="#111111" cellSpacing="0" cellPadding="0" width="157" border="0">
        <tbody>
        <tr>
          <td vAlign="center" background="images/space_01.gif" height="25" width="155">&nbsp;&nbsp;<img src="images/arrow_02.gif" border="0">&nbsp;<b><font color="#FFFFFF">信息分类</font></b></td></tr>                                                                                   
        <tr>
          <td height="8" width="155"></td></tr>
        <tr>
          <td width="155" align="center" valign="top"><!--#INCLUDE FILE="Common/Inc_Catalog.asp"--></td>
        </tr>
        <tr>
          <td height="8" width="155" colspan="2"></td></tr></tbody></table></center></div>
      <div align="center">
      <center>
      <table borderColor="#111111" cellSpacing="0" cellPadding="0" width="157" border="0">
        <tbody>
        <tr>
          <td vAlign="center" background="images/space_01.gif" height="25">&nbsp;&nbsp;<img src="images/arrow_02.gif" border="0">&nbsp;<b><font color="#FFFFFF">合作伙伴</font></b></td></tr>
        <tr>
          <td height="8"></td>
        </tr>
        <tr>
          <td width="155" align="center" valign="top"><!--#INCLUDE FILE="Common/Inc_Cooperate.asp"--></td>
        </tr>
        <tr>
          <td height="8"></td>
        </tr>
        </tbody>
      </table>
      </center>
      </div>
      <div align="center">
      <center>
      <table borderColor="#111111" cellSpacing="0" cellPadding="0" width="157" border="0">
        <tbody>
        <tr>
          <td vAlign="center" background="images/space_01.gif" height="25">&nbsp;&nbsp;<img src="images/arrow_02.gif" border="0">&nbsp;<b><font color="#FFFFFF">友情链接</font></b></td></tr>
        <tr>
          <td height="8"></td>
        </tr>
        <tr>
          <td width="155" align="center" valign="top"><!--#INCLUDE FILE="Common/Inc_Link.asp"--></td>
        </tr>
        <tr>
          <td height="8"></td>
        </tr>
        </tbody>
      </table>
      </center>
      </div>
      </td>
    <td vAlign="top" width="1" background="images/space_01.gif"><img height="1" src="images/space_01.gif" width="1" border="0"></td></tr>
  <tr>
    <td vAlign="top" width="760" colSpan="7" height="14"><img height="14" src="images/pic_bottom_01.gif" width="760" border="0"></td></tr></tbody></table></div>
<!--#include file="End.asp"-->
</body>
</html>

⌨️ 快捷键说明

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