📄 viewitem.asp
字号:
<!--#include file="conn.asp" -->
<!-- #include file="inc/info.asp" -->
<!-- #include file="inc/const.asp" -->
<%response.buffer=true
'=========================================================
'Copyright (C) 2003-2004 AspEase.Com. All rights reserved.
'Web: http://www.aspease.com
'Email: byhucn@126.com,lzz9812@163.com
'=========================================================
'
'FileName: viewitem.asp
'Version:2.0
'UpdateTime: 2004-10-6 11:50:29
'Script Written by www.aspease.com
'=========================================================
activeonline
id=FVal(rst("aucid"))
conn.execute("update auctions set auc_clicknum=auc_clicknum+1 where auc_id="&sqlval(id))
strsql = "SELECT * FROM Auctions WHERE auc_ID = " & sqlval(id)
set rs=conn.execute(strsql)
if rs.eof then
rs.close
stats=easeerrmsgname
header
err_msg="<B><li>" & easeerrpage & "</B>"
aspease_err
footer
response.end
end if
auc_id=FVal(rs("auc_id"))
auc_ItemOwner=FVal(rs("auc_ItemOwner"))
auc_itemtitle=rs("auc_ItemTitle")
auc_Meansofpayment=rs("auc_Meansofpayment")
auc_Feeofdeliver=rs("auc_Feeofdeliver")
auc_buyprice=FVal(rs("auc_buyprice"))
auc_CurrentBid=FVal(rs("auc_CurrentBid"))
auc_MinimumIncrement=FVal(rs("auc_MinimumIncrement"))
auc_numleft=FVal(rs("auc_numleft"))
auc_Limitornot=FVal(rs("auc_Limitornot"))
auc_Isbuygoods=FVal(rs("auc_Isbuygoods"))
auc_CloseDate=rs("auc_CloseDate")
auc_place=easeshowfldvalue("users","regid",sqlVal(rs("auc_ItemOwner")),"regState,regCity")
stats=easeviewitemstats & "--"&rs("auc_itemtitle")&""
header
strsqls1="select * from users where regID="&sqlVal(rs("auc_ItemOwner"))
set rss=conn.execute(strsqls1)
if not rs.eof then
response.Write("<table width=""760"" border=""0"" cellspacing=""1"" cellpadding=""3"" class=border1y align=""center"">")
response.Write(" <tr align=""left""> ")
response.Write(" <th colspan=3 width=""956""> <font color=#dc6900><a href=index.asp>" & webname & "</a></font>")
response.Write(" > " & easeviewitemstats & " >")
response.Write(seeauctitle(FVal(rst("aucid"))))
response.Write("</font></th>")
response.Write(" </tr>")
response.Write("</table>")
response.Write("<TABLE cellSpacing=0 cellPadding=2 width=760 align=center border=0 class=border1y style=margin-top:3px>")
response.Write(" <TR id=bg06> ")
response.Write(" <TD class=p12h vAlign=top width=""521""> ")
response.Write(" <table cellspacing=0 cellpadding=2 width=""100%"" align=center border=0> ")
response.Write(" <tr> ")
response.Write(" <td class=p12h valign=middle align=""center"" width=""80""><a href=""?aucid=")
response.Write(FVal(rs("auc_ID")))
response.Write("#pic""><img src=""")
response.Write(rs(5))
response.Write(""" width=""78"" height=""60"" border=""0""></a></td>")
response.Write(" <td class=p12h valign=top width=""189""> ")
response.Write(" <table border=0 cellpadding=1 cellspacing=0 width=""100%"">")
response.Write(" <tr> ")
response.Write(" <td id=b2 align=right><nobr><font id=f4>"&easecurrentbid&":</font></nobr> ")
response.Write("</td><td align=left><nobr>" & easemoneysymbol)
response.Write(FVal(rs("auc_CurrentBid"))&easeviewitemlaststr)
response.Write("</nobr></td>")
response.Write(" </tr>")
if FVal(rs("auc_Isbuygoods"))=1 then
response.Write(" <tr> ")
response.Write(" <td id=b2 align=right><nobr><font id=f4>"&easeykjname&":</font></nobr> ")
response.Write("</td><td align=left><nobr>" & easemoneysymbol)
response.Write(FVal(rs("auc_buyprice"))&easeviewitemlaststr)
response.Write("</nobr></td>")
response.Write(" </tr>")
end if
response.Write(" <tr> ")
response.Write(" <td id=b2 align=right><nobr><font id=f4>"&easestartprice&":</font></nobr>")
response.Write("</td><td align=left><nobr>" & easemoneysymbol)
response.Write(FVal(rs("auc_StartingBid"))&easeviewitemlaststr)
response.Write("</nobr></td>")
response.Write(" </tr>")
response.Write(" <tr> ")
response.Write(" <td id=b2 align=right><nobr><font id=f4>"&easegoodsleftnum&":</font></nobr>")
response.Write("</td><td align=left><nobr>")
response.write FVal(rs("auc_numleft"))
response.Write("</nobr> </td>")
response.Write(" </tr>")
response.Write(" <tr> ")
response.Write(" <td id=b2 align=right><nobr><font id=f4>"&easelefttime&":</font></nobr> ")
response.Write("</td><td align=left><nobr>")
response.Write(auclefttime(rs("auc_id"),"long"))
response.Write("</nobr></td>")
response.Write(" </tr>")
response.Write(" <tr> ")
response.Write(" <td id=b2 align=right><nobr><font id=f4>"&easegoodsplace&":</font> </nobr>")
response.Write("</td><td align=left><nobr>")
response.Write(auc_place)
response.Write("</nobr></td>")
response.Write(" </tr>")
response.Write(" <tr> ")
response.Write(" <td id=b2 align=right><nobr><font id=f4>"&easeviewitemmerchstr&":</font></nobr> ")
response.Write("</td><td align=left><nobr>"&easeviewitemviewstr)
response.Write(FVal(rs("auc_Clicknum"))&easeviewitemtimesstr)
response.Write(" "&easeviewitemchujiabtn)
response.Write(FVal(rs("auc_bidtimes"))&easeviewitemtimesstr)
response.Write("</nobr></td>")
response.Write(" </tr>")
response.Write(" </table>")
response.Write(" </td>")
response.Write(" <td class=p12h valign=top align=""right"" width=""68""> ")
response.Write(" <table border=0 cellpadding=0 cellspacing=0 height=""26"" width=60>")
response.Write(" <tr align=""center""> ")
response.Write(" <td height=26>")
response.Write(uonline(auc_ItemOwner))
response.Write(" </td>")
response.Write(" </tr>")
response.Write(" </table>")
response.Write(" <table border=0 cellpadding=0 cellspacing=0 width=65>")
response.Write(" <tr> ")
response.Write(" <td height=10> </td>")
response.Write(" </tr>")
response.Write(" <tr> ")
response.Write(" <td height=10><a href=""care_auc.asp?id=")
response.Write(FVal(rs("auc_id")))
response.Write(""" target=""_blank"">"&easeviewitemgz1&"</a></td>")
response.Write(" </tr>")
response.Write(" <tr> ")
response.Write(" <td height=10><a href=""care_shop.asp?ownerid=")
response.Write(auc_ItemOwner)
response.Write(""" target=""_blank"">"&easeviewitemgz2&"</a></td>")
response.Write(" </tr>")
response.Write(" <tr> ")
response.Write(" <td height=15> </td>")
response.Write(" </tr>")
response.Write(" <tr> ")
response.Write(" <td height=10></td>")
response.Write(" </tr>")
response.Write(" </table>")
response.Write(" </td>")
response.Write(" </tr>")
response.Write(" </table> ")
response.Write(" </TD> ")
response.Write(" <TD class=p14h width=436 valign=""middle"" align=""right""> ")
response.Write(" <table border=0 cellpadding=1 cellspacing=0 width=""80%"">")
response.Write(" <tr> ")
response.Write(" <td colspan=""2"" nowrap id=b1>"&easecontactseller&":")
response.Write(aspeaseusername(sqlval(auc_ItemOwner)))
response.Write(" ")
response.Write(ugrade(auc_ItemOwner))
response.Write("</td>")
response.Write(" </tr>")
response.Write(" <tr> ")
response.Write(" <td nowrap id=b1>"&easemycredithpl&":")
response.Write(uhaoping(sqlval(auc_ItemOwner)))
response.Write("</td>")
response.Write(" <td nowrap id=b1>"&easemycreditxyd&":")
response.Write(FVal(rss("regcredit")))
response.Write("</td>")
response.Write(" </tr>")
response.Write(" <tr> ")
response.Write(" <td nowrap id=b1> "&easeviewitemregtime&":</td>")
response.Write(" <td nowrap id=b1>")
response.Write(SQLDate(rss("regTime")))
response.Write("</td>")
response.Write(" </tr>")
response.Write(" <tr> ")
response.Write(" <td id=b1 colspan=""2""><a href=usercredit.asp?userid=")
response.Write(auc_ItemOwner)
response.Write(" target=_blank>"&easeviewitemviewcreditstr&"</a></td>")
response.Write(" </tr>")
response.Write(" <tr> ")
response.Write(" <td colspan=""2"" id=b1><a href=ask.asp?auc_id=")
response.Write(FVal(rs("auc_id")))
response.Write("&ownerid=")
response.Write(fval(auc_ItemOwner))
response.Write(">"&easeviewitemaskseller&"</a></td>")
response.Write(" </tr>")
response.Write(" <tr> ")
response.Write(" <td id=b1 colspan=""2""><a href=""bidhistory.asp?aucid=")
response.Write(FVal(id))
response.Write(""" target=""_blank"">"&easebidhistorystats&"</a></td>")
response.Write(" </tr>")
response.Write(" <tr> ")
response.Write(" <td colspan=2 id=b1><a href=#other>"&easeviewitemselling)
response.Write("<b>"&usellingall(sqlval(rss("regID")))&"</b>")
response.Write(easeviewitemlaststr1&"</a></td>")
response.Write(" </tr>")
response.Write(" </table>")
response.Write(" </TD>")
response.Write(" </TR>")
response.Write(" ")
if auc_Isbuygoods=1 then
response.Write(" ")
response.Write(" <TR class=tdbg2> <TD colspan=2 height=10> <table width=97% >")
response.Write(" <form action=bid.asp method=post name=bidf1 onSubmit=""return ckck1()"">")
response.Write(" <tr><td> <input type=hidden name=auc_id value=""")
response.Write(auc_id)
response.Write(""">")
response.Write(" <input type=hidden name=aucItemOwner value=""")
response.Write(auc_ItemOwner)
response.Write(""">")
response.Write(" <input type=hidden name=auc_title value='")
response.Write(auc_itemtitle)
response.Write("'>")
response.Write(" <input type=hidden name=auc_place value='")
response.Write(auc_place)
response.Write("'>")
response.Write(" <input type=hidden name=zhifu value='")
response.Write(auc_Meansofpayment)
response.Write("'>")
response.Write(" <input type=hidden name=yunfei value='")
response.Write(auc_Feeofdeliver)
response.Write("'>")
response.Write(" <input type=hidden name=right_price value=""")
response.Write(FVal(c))
response.Write(""">")
response.Write(" <input type=hidden name=left_num value=""")
response.Write(auc_numleft)
response.Write(""">")
response.Write(" "&easeviewitemneednum&": ")
response.Write(" <input type=""text"" name=""getnum"" id=""B2"" value=""1"" size=""4"">")
response.Write(" "&easeviewitemchujiaper1&": ")
response.Write(" <input type=""text"" name=""bid_price"" id=""B2"" value=""")
a=auc_CurrentBid
b=auc_MinimumIncrement
c=a+b
response.write c
response.Write(""" size=""6"">")
response.Write(" "&easeviewitemyuan&"("&easeviewitemnotlow)
response.Write(c)
response.Write(easeviewitemyuan&")")
if auc_Limitornot<=FVal(rss("reggrade")) then
response.Write(" <input name=""bid_x"" type=submit id=""b1"" style=""color: white;border-color: #CECBCE; background-color: #EF7508;"" value=""出价"" onClick=""ckck1""")
if auc_numleft<=0 or datediff("s",now(),sqldate(auc_CloseDate))<0 then
response.write "disabled"
end if
response.Write(">")
else
response.Write(" <input type=""submit"" value="""&easeviewitemchujiabtn&""" disabled name=""submit2"">")
end if
response.Write(" </td>")
response.Write(" </form>")
response.Write(" <form action=buy.asp method=post name=bidf onsubmit=""return ckck()"">")
response.Write(" <td><input type=hidden name=auc_id value=""")
response.Write(auc_id)
response.Write(""">")
response.Write(" <input type=hidden name=aucItemOwner value=""")
response.Write(auc_ItemOwner)
response.Write(""">")
response.Write(" <input type=hidden name=auc_title value='")
response.Write(auc_itemTitle)
response.Write("'>")
response.Write(" <input type=hidden name=auc_place value='")
response.Write(auc_place)
response.Write("'>")
response.Write(" <input type=hidden name=zhifu value='")
response.Write(auc_Meansofpayment)
response.Write("'>")
response.Write(" <input type=hidden name=yunfei value='")
response.Write(auc_Feeofdeliver)
response.Write("'>")
response.Write(" <Input type=hidden name=ykj value=""")
response.Write(auc_buyprice)
response.Write(""">")
response.Write(" <Input type=hidden name=place_num value=""")
response.Write(auc_numleft)
response.Write(""">")
response.Write(" <font id=f4>"&easeviewitemgetit&"</font><span id=""O2"">(")
response.Write(auc_buyprice)
response.Write(easeviewitemlaststr&")</span> ")
response.Write(" <input type=""hidden"" name=""getnum"" id=""B2"" value=""1"" size=""10"">")
response.Write(" <nobr>")
if auc_Limitornot<=FVal(rss("reggrade")) then
response.Write(" <input name=""buy_y"" type=submit id=""b1"" STYLE=""color: white;border-color: #CECBCE; background-color: #63BE18;"" value="""&easeviewitemgetit&""" ")
if auc_numleft<=0 or datediff("s",now(),sqldate(auc_CloseDate))<0 then
response.write "disabled"
end if
response.Write(">")
else
response.Write(" <input type=""submit"" value="""&easeviewitemgetit&""" disabled>")
end if
response.Write(" </td></tr> ")
response.Write(" </form> </table></td></TR>")
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -