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

📄 paimai.asp

📁 电子商务系统Easy_Buy是一个在线销售系统
💻 ASP
字号:
<%qx="38"%>
<!--#include file="../login/0.asp"-->
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../conn/je.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
<STYLE>
BODY {
	SCROLLBAR-FACE-COLOR: #799ae1;
	SCROLLBAR-HIGHLIGHT-COLOR: #799ae1;
	SCROLLBAR-SHADOW-COLOR: #799ae1;
	SCROLLBAR-3DLIGHT-COLOR: #799ae1;
	SCROLLBAR-ARROW-COLOR: #fcfcfc;
	SCROLLBAR-TRACK-COLOR: #aabfec;
	SCROLLBAR-DARKSHADOW-COLOR: #799ae1;
	SCROLLBAR-BASE-COLOR: #799ae1;
	background-color: #CAD7F7;
}
.STYLE4 {
	color: #FFFFFF;
	font-weight: bold;
}
</STYLE>
</head><body>
<%
Select case request("abc")
case "s"
Set s= Server.CreateObject("abodb.recordset")
conn.execute("Update paimai_cp set p_zt=2 where id="&request("id")&"")
case "del"
Set s= Server.CreateObject("abodb.recordset")
conn.execute("Delete paimai_cp where id="&request("id")&"")
conn.execute("Delete paimai where pid="&request("id")&"")
End Select

xs=request("xs")
keywords=request("keywords")
Set rs=Server.CreateObject("ADODB.Recordset")
if xs<>""then
sql="select id,mc,p_zt,sj1,sj2,rq from paimai_cp where "&xs&" order by id desc"
elseif keywords<>"" then
Set s= Server.CreateObject("abodb.recordset")
sql="select id,mc,p_zt,sj1,sj2,rq from paimai_cp where (mc like '%"&keywords&"%' or jp like '%"&keywords&"%'  or js like '%"&keywords&"%') order by id desc "
else
sql="select id,mc,p_zt,sj1,sj2,rq from paimai_cp order by id desc"
end if
rs.open sql,conn,3,1 
if rs.eof then
response.write "<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;暂无产品"
response.end
end if
 rs.pagesize = 10
if request("page")=""  or isempty(request("page")) then
page = 1
else
page=int(request("page"))
end if
if page>rs.pagecount then
page=rs.pagecount
end if
if not rs.BOF then
Rs.Move Rs.PageSize*(page-1)
end if%>
<table width="99%" align="center" cellpadding="2" cellspacing="2">
  <tr> 
    <form name="form1" method="post" action="?">
      <td width="250" height="25" align="center"> 关键字: 
        <input name="keywords" type="text" id="keywords" size="10"> 
        <input name="Submit" type="submit" value="搜索">      </td>
    </form><form name="form3" method="post" action="?">
      <td width="600" align="center">&gt;&gt;自定义显示: 
        <input type="radio" name="xs" value="p_zt=0">
        正在拍产品 
        <input type="radio" name="xs" value="p_zt=1">
        已结拍产品 
      <input name="Submit2" type="submit" value="显示"></td>
    </form>
  </tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
  <tr align="center" valign="middle"> 
    <td width="557" height="25" background="../../images/admin_bg_11.gif"><span class="STYLE4">产品名称</span></td>
    <td width="73" background="../../images/admin_bg_11.gif" bgcolor="#CCCCCC"><span class="STYLE4">操作</span></td>
    <td width="106" background="../../images/admin_bg_11.gif" bgcolor="#CCCCCC"><span class="STYLE4">拍卖状态</span></td>
    <td width="133" background="../../images/admin_bg_11.gif" bgcolor="#CCCCCC"><span class="STYLE4">起拍时间</span></td>
    <td width="110" nowrap background="../../images/admin_bg_11.gif" bgcolor="#CCCCCC"><span class="STYLE4">截拍时间</span></td>
  </tr>
<%i=1
do while not rs.eof and i<=rs.pagesize%>
  <tr valign="middle"> 
    <td height="25" bgcolor="#E8F1FF"> <%response.write "<a href=../../paimai_x.asp?id="&rs("id")&" target=_blank>"&rs("mc")&"</a>&nbsp;<font color=#ff6600>"&rs("rq")&"</font>"%></td>
    <td width="73" align="center" bgcolor="#E8F1FF"><a href=?keywords=<%=request("keywords")%>&xs=<%=request("xs")%>&page=<%=page%>&abc=s&id=<%=rs("id")%>>消</a>|<a href=?keywords=<%=request("keywords")%>&xs=<%=request("xs")%>&page=<%=page%>&abc=del&id=<%=rs("id")%>>删</a></td>
    <td width="106" align="center" bgcolor="#E8F1FF"> 
      <%Select case rs("p_zt")
case "0"
Response.Write("<a href=paimai_ok.asp?id="&rs("id")&">正常</a>")     
case "1"
Response.Write("<a href=paimai_ok.asp?id="&rs("id")&">结标结果</a>")     
case "2"
Response.Write("<del>取消</del>")     
End Select
 %></td>
    <td width="133" align="center" bgcolor="#E8F1FF"><%=rs("sj1")%></td>
    <td width="110" align="center" bgcolor="#E8F1FF"><%=rs("sj2")%></td>
  </tr>
  <%
i=i+1
 rs.MoveNext                                              
 loop 
%>
  <tr align="center" valign="middle"> 
    <form name=form method=post action=?keywords=<%=request("keywords")%>&xs=<%=request("xs")%>>
      <td colspan="5" height="25" bgcolor="#E8F1FF"> <%
if rs.recordcount<>0 then
if page-1 mod 10=0 then
		p=(page-1) \ 10
	else
		p=(page-1) \ 10
	end if

	response.write "页次:"& page &"/"& rs.pagecount &"页 每页"& rs.pagesize &" 共"& rs.recordcount &"条记录"&_
					" 分页:"
    if rs.pagecount>1 and page<>1 then response.write "<a href=?keywords="&request("keywords")&"&xs="&request("xs")&"&page=1 title='首页'>[|<]</a> "
	if p*10>0 then response.write "<a href='?keywords="&request("keywords")&"&xs="&request("xs")&"&page="&p*10&"' title=上十页>[&lt;&lt;]</a>   "
    uming_i=1
	for ii=p*10+1 to P*10+10
		   if ii=page then
	          response.write "<font color=#ff0000>["+Cstr(ii)+"]</font> "
		   else
		      response.write "<a href='?keywords="&request("keywords")&"&xs="&request("xs")&"&page="&ii&"'>["+Cstr(ii)+"]</a>   "
		   end if
		if ii=rs.pagecount then exit for
		 uming_i=uming_i+1
	next
	if ii<=rs.pagecount and uming_i=11 then response.write "<a href='?keywords="&request("keywords")&"&xs="&request("xs")&"&page="&ii&"' title=下十页>[&gt;&gt;]</a>   "
	if rs.pagecount>1 and page<>rs.pagecount then response.write "<a href=?keywords="&request("keywords")&"&xs="&request("xs")&"&page="& rs.pagecount &" title='尾页'>[>|]</a>"
response.write("  跳页:<input type=text name=page size=2 maxlength=3 > <input type=submit name=Submit value=Go >")
end if
rs.close
set s=nothing%> </td>
    </form>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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