- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
newslx.asp
资源名称:shop2.rar [点击查看]
上传用户:btntkt
上传日期:2021-04-16
资源大小:5296k
文件大小:7k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
DOS
- <!--#include file="conn.asp"-->
- <!--#include file="config.asp"-->
- <html><head><title>网软天下购物系统,网络购物系统,asp购物系统,免费购物系统,网上商城购物系统。--商城新闻</title>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <meta name="description" content="<%=des%>">
- <meta name="keywords" content="<%=keya%>">
- <link href="skin/skin<%=skinid%>/css.css" rel="stylesheet" type="text/css">
- </head>
- <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
- <!--#include file="include/head.asp"-->
- <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td width="39" valign="top"><table width="100%" height="184" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="30" align="right" valign="top"><img src="skin/skin<%=skinid%>/jiao.gif" width="15" height="17"></td>
- </tr>
- <tr>
- <td height="90"><div align="right"><img src="images/ttts.gif" width="26" height="110" /></div></td>
- </tr>
- <tr>
- <td height="30"> </td>
- </tr>
- </table></td>
- <td width="190"valign="top" style="BORDER-bottom:<%=skincolor%> 1px solid;BORDER-left:<%=skincolor%> 1px solid; BORDER-right:<%=skincolor%> 1px solid;">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><table width="190" height="190" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td align="center" valign="middle" background="skin/skin<%=skinid%>/index_2.gif"><!--#include file="logins.asp"--></td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td><img src="images/index_4.gif" width="190" height="12"></td>
- </tr>
- <tr>
- <td><% if sltype=1 then %><!--#include file="include/info_class1.asp"--><%else %><!--#include file="include/sort.asp"--><%end if %></td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- </table></td>
- <td valign="top"><table width="100%" align="center" border="0" cellspacing="0" cellpadding="0" >
- <tr>
- <td background="skin/skin<%=skinid%>/pdbg01.gif" height=28> <a href=index.asp>网软天下购物系统,网络购物系统,asp购物系统,免费购物系统,网上商城购物系统。</a> >> 商城新闻</td>
- </tr>
- <tr>
- <td valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td align=center><span class="style12">
- <a href="trend.asp">全部新闻</a><%
- set rs2=server.CreateObject("adodb.recordset")
- rs2.open "select * from newslei order by id",conn,1,1
- do while not rs2.eof
- response.write "| <A href=newslx.asp?newstype="&rs2("danweiname")&">"&trim(rs2("danweiname"))&"</A> "
- rs2.movenext
- loop
- rs2.close
- set rs2=nothing
- %>
- </span></td>
- </tr>
- </table>
- <br>
- <table width="580" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td><img src="images/mingle/informtop.gif" width="580" height="35"></td>
- </tr>
- </table>
- <br>
- <%
- newslx=request.querystring("newstype")
- set rs=server.createobject("adodb.recordset")
- rs.open "select * from news where newstype='"&newslx&"' order by adddate desc",conn,1,1
- if rs.recordcount=0 then
- %>
- <table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
- <tr>
- <td align=center>暂无新闻</td>
- </tr>
- </table>
- <%
- else
- rs.PageSize =20
- iCount=rs.RecordCount
- iPageSize=rs.PageSize
- maxpage=rs.PageCount
- page=request("page")
- if Not IsNumeric(page) or page="" then
- page=1
- else
- page=cint(page)
- end if
- if page<1 then
- page=1
- elseif page>maxpage then
- page=maxpage
- end if
- rs.AbsolutePage=Page
- if page=maxpage then
- x=iCount-(maxpage-1)*iPageSize
- else
- x=iPageSize
- end if
- %>
- <table width="580" border="0" align="center" cellpadding="2" cellspacing="1">
- <%
- For i=1 To x
- %>
- <tr>
- <td width="6%" height=24 align=center bgcolor="#FFFFFF" ><img src="images/body/dian3.gif"></td>
- <td height=24 bgcolor="#FFFFFF" ><a href="trends.asp?id=<%=rs("newsid")%>"><%=trim(rs("newsname"))%></a> <font color=red>(<%=rs("viewcount")%>)</font></td>
- <td width="19%" height=24 align=center bgcolor="#FFFFFF" ><%=year(rs("adddate"))&"."&month(rs("adddate"))&"."&day(rs("adddate"))%></td>
- </tr>
- <tr>
- <td height=1 colspan="3"background="images/mingle/inbg.gif"></td>
- </tr>
- <%
- rs.movenext
- next
- %>
- </table>
- <%
- call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
- end if
- rs.close
- set rs=nothing
- Sub PageControl(iCount,pagecount,page,table_style,font_style)
- Dim query, a, x, temp
- action = "http://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("SCRIPT_NAME")
- query = Split(Request.ServerVariables("QUERY_STRING"), "&")
- For Each x In query
- a = Split(x, "=")
- If StrComp(a(0), "page", vbTextCompare) <> 0 Then
- temp = temp & a(0) & "=" & a(1) & "&"
- End If
- Next
- Response.Write("<table width=90% border=0 cellpadding=0 cellspacing=0 align=center >" & vbCrLf )
- Response.Write("<form method=get onsubmit=""document.location = '" & action & "?" & temp & "Page='+ this.page.value;return false;""><TR>" & vbCrLf )
- Response.Write("<TD align=center height=35>" & vbCrLf )
- Response.Write(font_style & vbCrLf )
- if page<=1 then
- Response.Write ("首页 " & vbCrLf)
- Response.Write ("上页 " & vbCrLf)
- else
- Response.Write("<A HREF=" & action & "?" & temp & "Page=1>首页</A> " & vbCrLf)
- Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page-1) & ">上页</A> " & vbCrLf)
- end if
- if page>=pagecount then
- Response.Write ("下页 " & vbCrLf)
- Response.Write ("尾页 " & vbCrLf)
- else
- Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page+1) & ">下页</A> " & vbCrLf)
- Response.Write("<A HREF=" & action & "?" & temp & "Page=" & pagecount & ">尾页</A> " & vbCrLf)
- end if
- Response.Write(" 页次:" & page & "/" & pageCount & "页" & vbCrLf)
- Response.Write(" 共有" & iCount & "条新闻" & vbCrLf)
- Response.Write(" 转到" & "<INPUT TYEP=TEXT CLASS=wenbenkuang NAME=page SIZE=2 Maxlength=5 VALUE=" & page & ">" & "页" & vbCrLf & "<INPUT CLASS=go-wenbenkuang type=submit value=GO>")
- Response.Write("</TD>" & vbCrLf )
- Response.Write("</TR></form>" & vbCrLf )
- Response.Write("</table>" & vbCrLf )
- End Sub
- %>
- </td>
- </tr>
- </table></td>
- <td width="68"style="BORDER-left:<%=skincolor%> 1px solid;"> </td>
- </tr>
- </table>
- <!--#include file="include/foot.asp"-->
- </body>
- </html>