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

📄 supply.asp

📁 购物系统(本版为正式商业版
💻 ASP
字号:
<!--
┌─9911.com.cn────────────┐
│  动感购物 WWW.9911.com.cn 版权所有  │
│  动感购物2005Vb  联系:web@snsn.net │
└───────────9911.com.cn──┘
-->
<!--#include file="../conn.asp"-->
<!--#include file="../webconfig.asp"-->
<!--#include file="../fuction.asp" -->
<!--#include file="webconfig.asp"-->
<%if info<>1 then
response.Write "<script language='javascript'>alert('对不起,页面调用错误!');history.go(-1);</script>"
response.End
end if
%>
<html>
<head>
<title><%=webname%>--供求信息</title>
<html>
<link rel="SHORTCUT ICON" href="/shortcut.ico">
<meta name="generator" content="snsn-shop">
<meta name=keywords content="<%=webgjz%>">
<meta name="description" content="<%=webmx%>">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<meta http-equiv="MSThemeCompatible" content="Yes">
<link href="/css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.style1 {color: #FF0000}
.style2 {color: #666666}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦!:)';return true">-->
<!--#include file="../webtop.asp"-->
<table width="940" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="6" colspan="3"></td>
  </tr>
  <tr>
    <td width="17"><img src="/img/index_1.gif" width="15" height="16"></td>
    <td valign="bottom">您现在的位置是:<a href="<%=weburl%>"><%=webname%></a> ->
 供求信息</td>
    <td valign="bottom"> </td>
  </tr>
  <tr>
    <td height="6" colspan="3"></td>
  </tr>
</table>
<table width="945" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="200" valign="top">
      <!--#include file="info_left.asp"-->     </div></td>
    <td valign="top">
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><div align="center"> <%=infod1%> <%=infod2%> </div></td>
        </tr>
      </table>
      <!--#include file="top.asp"-->      <div align="center">
        <table width="98%" height="22" border="0" cellpadding="0" cellspacing="1">
          
          <%action=request.QueryString("action")
		  set rs=server.CreateObject("adodb.recordset")
		  if action="my" then
		  if session("username")="" then
		  response.Write "<script language='javascript'>alert('对不起,你还没有登录!');history.go(-1);</script>"
		  response.End
		  end if
		  rs.open"select * from shop_infomsg where userid='"&nosql(session("username"))&"' order by itop asc,id desc",conn,3,3 
		  elseif action="gong" then
		  rs.open"select*from shop_infomsg where  gq='出售' order by itop asc,id desc",conn,3,3 
		  elseif action="qiu" then
		  rs.open"select*from shop_infomsg where  gq='求购' order by itop asc,id desc",conn,3,3 
		  elseif action="hot" then
		  rs.open"select*from shop_infomsg order by itop asc,lls desc",conn,3,3 
		  elseif action="tj" then
		  rs.open"select*from shop_infomsg order by itop asc,good desc",conn,3,3 
		  else
rs.open"select * from shop_infomsg  ORDER BY id DESC",conn,3,3    
end if
if rs.recordcount=0 then 
		%>
<table width="370" border="0" cellspacing="0" cellpadding="5" align="center">
  <tr>
    <td align=center>暂无</td>
  </tr>
</table>
<%
		else
rs.PageSize =inc14 '每页记录条数
			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
	For i=1 To x%>
          <tr onMouseOver='JavaScript:this.style.backgroundColor="#f1f1f1"' onMouseOut='JavaScript:this.style.backgroundColor=""'>
            <td width="31" height="23" valign="middle">
              <div align="center"> <img src="/img/top1.gif" border="0"></div></td>
            <td class=f14> &nbsp;
                <%response.write  "[" & (rs(10)) & "]"%>
                <a href="show.asp?n=<%response.write rs(0)%>" target="_blank">
                <%response.write rs(2)%>
                </a>
                
                <%if rs(17)=0 then%>
                <font color="#FF0000">顶</font>
                <%end if%>
				<%if rs(16)<>false then%>
                <font color="#0000ff">荐</font>
                <%end if%>
                <%if session("username")<>"" and action="my" then%><a href="mysave.asp?action=save&id=<%response.write rs(0)%>">修改</a>/<a href="save.asp?action=del&id=<%response.write rs(0)%>">删除</a><%end if%></td>
            <td colspan="3" class=f14> 
              <div align="right">价格: 
                <font color="#FF0000">
                <%response.write rs(13)%>
                </font> 元
               |
                <%response.write rs(4)%>            
              | 浏览
              <%response.write rs(9)%>
              次          </div></td>
          </tr>
          <tr>
            <td height="1" background="/img/skin<%=cssid%>/x.gif"></td>
            <td height="1" background="/img/skin<%=cssid%>/x.gif"></td>
            <td height="1" background="/img/skin<%=cssid%>/x.gif"></td>
            <td height="1" background="/img/skin<%=cssid%>/x.gif"></td>
            <td height="1" background="/img/skin<%=cssid%>/x.gif"></td>
          </tr>
          <%rs.movenext
		    next%>
        </table>
        <table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="30">
              <%
		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 " & Table_style & ">" & vbCrLf )        
    Response.Write("<form method=get onsubmit=""document.location = '" & action & "?" & temp & "Page='+ this.page.value;return false;""><TR>" & vbCrLf )
    Response.Write("<TD align=right>" & 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=1 Maxlength=5 VALUE=" & page & ">" & " 页"  & vbCrLf & "<input name=go type=image  src=/img/butn_go.gif alt=GO align=absMiddle  border=0>")
    Response.Write("</TD>" & vbCrLf )                
    Response.Write("</TR></form>" & vbCrLf )        
    Response.Write("</table>" & vbCrLf )        
End Sub
%></td>
          </tr>
          <tr>
            <td>&nbsp;
            </td>
          </tr>
        </table>
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><div align="center"> <%=infod3%> <%=infod4%> </div></td>
          </tr>
        </table>
</div></td>
  </tr>
</table>
<!--#include file="../copyright.asp"-->
</body>
</html>

⌨️ 快捷键说明

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