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

📄 addtopre.asp

📁 一个不错的拍卖网站,fdsafdsfdfe
💻 ASP
字号:
<!--#include file="conn.asp"-->

<!-- #include file="inc/info.asp" -->
<!-- #include file="inc/const.asp" -->

<!-- #include file="inc/adovbs.inc" -->
<%

on error resume next
header
dim stitle,snum,scatid,scatsonid,sdays,sImageURL
dim sDesc,sStartBid,sIncrement,sReserve,sykj
dim soldnew,sbaoxiu,sfapiao,syunfei,szhifu,ssonghuo
dim closedate,startdate,owner
stitle=rst("title")
snum=rst("num")
scatid=rst("catid")
scatsonid=rst("catsonid")
sdays=rst("days")
sImageURL=rst("imageurl")
sdesc=rst("Description")
'sdesc=replace(sdesc,"<","&lt;")

'sdesc=replace(sdesc,">","&gt;")
'sdesc=replace(sdesc,"'","''")
'sdesc=replace(sdesc,chr(34),"“")
'sdesc=replace(sdesc,"%","%")
'sdesc=aspeasehtml(rst("Description"))
sstartbid=FVal(rst("startbid"))
sIncrement=FVal(rst("Increment"))
sReserve=rst("Reserve")
sykj=rst("ykj")
soldnew=rst("oldnew")
sbaoxiu=rst("baoxiu")
sfapiao=rst("fapiao")
syunfei=rst("yunfei")
szhifu=rst("zhifu")
ssonghuo=rst("songhuo")
closedate= DateAdd("d", sDays, NOW)
startdate=now
sql="select regID from users where regUsername='"&session("user")&"'"
set rs=conn.execute(sql)
if not rs.eof then

owner=rs("regID")
rs.close
set rs=nothing
'conn.close
'set conn=nothing
end if


If isnumeric(sstartbid)=false then 
response.write "<font color=red>起拍价应该为数字</font><br>"
er="t"
End If
If isnumeric(sReserve)=false then 
response.write "<font color=red>保留价应该为数字</font><br>"
er="t"
End If
If isnumeric(sykj)=false then 
response.write "<font color=red>一口价应该为数字</font><br>"
er="t"
End If
If len(trim(sstartbid)) = 0 then 
response.write "<font color=red>起拍价应该填写个数字</font><br>"
er="t"
End If
If cdbl(sstartbid) >cdbl(sReserve) Then
    response.write "<font color=red>保留价应该大于起拍价!</font><br>"
	er="t"
End If
If trim(sykj) <>"" Then
  
	If cdbl(sstartbid) >cdbl(sykj) Then
   	 response.write "<font color=red>一口价应该大于起拍价!</font><br>"
	er="t"
	end if
else
sykj="0"

End If

If Len(Trim(stitle)) = 0 Then
    response.write "<font color=red>商品不能不写名称吧!</font><br>"
	er="t"
End If
If instr(sImageURL,"<") <> 0 or instr(sImageURL,">") <> 0  Then
    response.write "<font color=red>图片地址中含有特殊字符!请填写正确的地址!</font><br>"
	er="t"
End If
    	
If Len(Trim(rst("Description"))) = 0  Then
    response.write "<font color=red>不写商品描述怎么行呢?</font><br>"
	er="t"
End If
    		
If Len(Trim(sReserve)) = 0 Then
    response.write "<font color=red>请填写保留价格,买方看不到此价格!</font><br>"
	er="t"
End If
if er="t" then
response.write "<B>你提交的商品信息有错误,请返回重新输入<a href=""javascript:history.back();"">返回</a></B>"
response.end 
end if
%>
		以下是你提交的商品信息,请你再看一下有没有错误!<br>
		没有错误请点击“确认”,需要修改请<B><a href="javascript:history.back();">返回</a></B>
	<hr>
	
<p>&nbsp;</p>
<table width="75%" border="1">
  <tr> 
    <td width="25%"> 商品名称:</td>
    <td width="25%"><%=stitle%> </td>
    <td width="25%">一口价:</td>
    <td width="25%"> 
      <%=sykj%>
    </td> 
  </tr>
  <tr> 
    <td width="25%">商品数量:</td>
    <td width="25%"><%=snum%> </td>
    <td width="25%">新旧程度:</td>
    <td width="25%"><%=soldnew%></td>
  </tr>
  <tr> 
    <td width="25%">发布天数:</td>
    <td width="25%"><%=sdays%> </td>
    <td width="25%">是否保修:</td>
    <td width="25%"><%=sbaoxiu%></td>
  </tr>
  <tr> 
    <td width="25%">商品描述:</td>
    <td width="25%"><%=aspeasehtml(sdesc)%> </td>
    <td width="25%">有无发票:</td>
    <td width="25%"><%=sfapiao%></td>
  </tr>
  <tr> 
    <td width="25%">起拍价格:</td>
    <td width="25%"><%=sstartbid%></td>
    <td width="25%">运费谁付:</td>
    <td width="25%"><%=syunfei%></td>
  </tr>
  <tr> 
    <td width="25%">竞价阶梯:</td>
    <td width="25%"><%=sIncrement%></td>
    <td width="25%">支付方式:</td>
    <td width="25%"><%=szhifu%></td>
  </tr>
  <tr> 
    <td width="25%">保留价格:</td>
    <td width="25%"><%=sReserve%></td>
    <td width="25%">送货方式: </td>
    <td width="25%"><%=ssonghuo%></td>
  </tr>
</table>
<br>
图片信息:<br>
<img src="<%=sImageURL%>" width="72" height="17" align="middle"> 
<p> 
 
 
   <form name="f1" method="post" action="addtosave.asp">
        	<input type="hidden" name="stitle" value="<%=stitle%>">
		<input type="hidden" name="snum" value="<%=snum%>">
		<input type="hidden" name="scatid" value="<%=scatid%>">
		<input type="hidden" name="scatsonid" value="<%=scatsonid%>">
		<input type="hidden" name="sImageURL" value="<%=sImageURL%>">
		<input type="hidden" name="sdesc" value="<%=sdesc%>">
		<input type="hidden" name="sstartbid" value="<%=sstartbid%>">
		<input type="hidden" name="sIncrement" value="<%=sIncrement%>">
		<input type="hidden" name="sReserve" value="<%=sReserve%>">
		<input type="hidden" name="sykj" value="<%=sykj%>">
		<input type="hidden" name="soldnew" value="<%=soldnew%>">
		<input type="hidden" name="sbaoxiu" value="<%=sbaoxiu%>">
		<input type="hidden" name="sfapiao" value="<%=sfapiao%>">
		<input type="hidden" name="syunfei" value="<%=syunfei%>">
		<input type="hidden" name="szhifu" value="<%=szhifu%>">
		<input type="hidden" name="ssonghuo" value="<%=ssonghuo%>">
		<input type="hidden" name="closedate" value="<%=closedate%>">
		<input type="hidden" name="startdate" value="<%=startdate%>">
		<input type="hidden" name="owner" value="<%=owner%>">
  <input type="submit" name="Submit" value="提交">
</form></p>

⌨️ 快捷键说明

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