📄 dingdansub.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<%
if request.Cookies("days6")("username")="" then
response.write "<script language=javascript>alert('您没用会员帐号登陆,不支持商家出价!!');window.close;</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="savedingdansub.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>
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select bookid,shjiatejiabook,kucun,bookchuban,name,closedate,vipjia,newsbook from shop_books where bookid="&id,conn,1,1
if rs("name")=request.cookies("days6")("userzhenshiname") then
response.write "<script language=javascript>alert('这是你自己的商品!');history.go(-1);</script>"
cl
response.end
end if
if DateDiff("s",rs("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">
<%=rs("shjiatejiabook")%>
</font></td>
</tr>
<tr>
<td><div align="center"><font color="#C061D1">商品运费</font></div></td>
<td><font color="#C061D1"> <%=rs("vipjia")%>/<%=rs("bookchuban")%></font></td>
</tr>
<tr>
<td><div align="center"><font color="#C061D1">运费支付</font></div></td>
<td> <font color="#C061D1">
<%if rs("newsbook")=1 then
response.write "[买家支付]"
elseif rs("newsbook")=2 then
response.write "[卖家支付]"
elseif rs("newsbook")=3 then
response.write "[双方各半]"
elseif rs("newsbook")=4 then
response.write "[双方协商]"
end if
%>
</font></td>
</tr>
<tr>
<td><div align="center"><font color="#C061D1">购买数量</font></div></td>
<td><font color="#C061D1">
<input name="shuliang" type="text" id="shuliang" size="8" ONKEYPRESS="event.returnValue=IsDigit();" >
<%=rs("bookchuban")%> </font></td>
</tr>
<tr>
<td><div align="center"><font color="#C061D1">库存数量</font></div></td>
<td><font color="#C061D1"> <%=rs("kucun")%><%=rs("bookchuban")%></font></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="出价">
</div></td>
</tr>
</table>
</form>
</body>
</html>
<%
rs.close
set rs=nothing
sub cl()%>
<body onLoad="setTimeout(window.close, 1000)">
<%end sub%>
<%closedb%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -