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

📄 jingjia.asp

📁 闲置物品免费交易的平台
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<%
if request.Cookies("days6")("username")="" then
response.write "<script language=javascript>alert('您没用会员帐号登陆!!');history.go(-1);</script>"
cl
response.End
end if%>
<html>
<head>
<title><%=webname%>--竞价</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css">
<%
dim id
id=request.QueryString("id")
if not isnumeric(id) then 
response.write"<script>alert(""非法访问!"");location.href=""index.asp"";</script>"
response.end
end if%>
<script>
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>

</head>
<body>
<form name="myform" method="post" action="savejingjia.asp?id=<%=id%>">
  <table width="100%" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#E0E0E0" class="css03">
    <tr> 
      <td colspan="2"><div align="center"><font color="#C061D1">我要竞价</font></div></td>
    </tr>
    <%dim rs1,rs2,rs3
set rs1=server.CreateObject("adodb.recordset")
rs1.open "select bookid,jjtdu,kucun,bookchuban,shjianame,name,closedate,shichangjia from shop_books where bookid="&id,conn,1,1
set rs2=server.CreateObject("adodb.recordset")
rs2.open "select jiage from bookjia where bookid="&id&" order by jiage desc,adddate",conn,1,1
%>
<%
if rs1("name")=request.cookies("days6")("userzhenshiname") then
  response.write "<script language=javascript>alert('朋友啊…要记住…你不能参与自己商品的竞价');history.go(-1);</script>"
  cl
  response.end
end if%>
<%
  if DateDiff("s",rs1("closedate"),Now())>0 then
  response.write "此商品已经过了竞价期!!"
  cl
  response.end
  end if
%>


    <tr> 
      <td width="34%"> <div align="center"><font color="#C061D1">竞价次数</font></div></td>
      <td width="66%"><font color="#C061D1">&nbsp; 
        <%if rs2.recordcount=0 then
	  response.write "暂无竞价记录!"
	  else
	  response.write ""&rs2.recordcount&""
	  end if
	  %>
        </font></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#C061D1">竞价梯度</font></div></td>
      <td><font color="#C061D1">&nbsp;<%=rs1("jjtdu")%></font></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#C061D1">有效竞价</font></div></td>
      <td> <font color="#C061D1">&nbsp; 
        <% dim tidu
	  if rs2.eof or rs2.bof then
	  tidu=rs1("shichangjia")+rs1("jjtdu")
	  else
	  tidu=rs2("jiage")+rs1("jjtdu")
	  end if
	  %>
        <%=tidu%> 元/ <%=rs1("bookchuban")%>
        <%
	  session("tidu")=tidu
	  %>
        </font></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#C061D1">我的竞价</font></div></td>
      <td><font color="#C061D1">&nbsp; 
        <input name="jiage" type="text" id="jiage" value="<%=tidu%>" size="8" ONKEYPRESS="event.returnValue=IsDigit();" >
        元/<%=rs1("bookchuban")%></font></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#C061D1">竞价数量</font></div></td>
      <td><font color="#C061D1">&nbsp; 
        <input name="shuliang" type="text" id="shuliang" size="8" ONKEYPRESS="event.returnValue=IsDigit();" >
<%=rs1("bookchuban")%>        </font></td>
    </tr>
    <tr> 
      <td><div align="center"><font color="#C061D1">可购数量</font></div></td>
      <td><font color="#C061D1">&nbsp; <%=rs1("kucun")%><%=rs1("bookchuban")%></font></td>
    </tr>
    <tr> 
      <td colspan="2"><div align="center"> 
          <input type="submit" name="Submit" value="出价">
        </div></td>
    </tr>
  </table>
</form>

</body>
</html>
<%
rs1.close
set rs1=nothing
rs2.close
set rs2=nothing
rs3.close
set rs3=nothing
%>
<%sub cl()%>
<body onLoad="setTimeout(window.close, 1000)">
<%end sub%>
<%closedb%>

⌨️ 快捷键说明

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