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

📄 findauc.asp

📁 . 缓存处理技术
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--#include file="sysconfig.asp"-->
<!--#include file="checkadmin.asp"-->

<script language="javascript">
<!--
 function chkform(){
    var theform=document.myform;
    if (theform.id.value==""){
	alert("商品ID参数有误!");
	theform.id.focus();
	return false;
    }
    if (isNaN(theform.id.value)){
	alert("商品ID参数有误!");
	theform.id.focus();
	return false;
    }
    if (theform.itemtitle.value==""||theform.itemtitle.value.length<4){
	alert("请填写商品名称,长度至少为4个字符!");
	theform.itemtitle.focus();
	return false;
    }
    if (theform.itemowner.value==""){
	alert("商品卖家ID参数有误!");
	theform.itemowner.focus();
	return false;
    }
    if (isNaN(theform.itemowner.value)){
	alert("商品卖家ID参数有误!");
	theform.itemowner.focus();
	return false;
    }
if (isNaN(theform.s1.value) || theform.s1.value<=0)
{
alert("请选择商品分类!");
theform.s1.focus();
return false;
}
    if (theform.auctotalnum.value==""){
	alert("商品总数量不能为空!");
	theform.auctotalnum.focus();
	return false;
    }
    if (isNaN(theform.auctotalnum.value)){
	alert("商品总数量必须为数字!");
	theform.auctotalnum.focus();
	return false;
    }
    if (theform.aucnum.value==""){
	alert("商品数量不能为空!");
	theform.aucnum.focus();
	return false;
    }
    if (isNaN(theform.aucnum.value)){
	alert("商品数量必须为数字!");
	theform.aucnum.focus();
	return false;
    }
    if (theform.availdate.value==""){
	alert("商品拍卖的起始时间不能为空!");
	theform.availdate.focus();
	return false;
    }
    if (theform.closedate.value==""){
	alert("商品拍卖的结束时间不能为空!");
	theform.colsedate.focus();
	return false;
    }
    if (theform.startingbid.value==""){
	alert("商品起拍价不能为空!");
	theform.startingbid.focus();
	return false;
    }
    if (isNaN(theform.startingbid.value)){
	alert("商品起拍价必须为数字!");
	theform.startingbid.focus();
	return false;
    }
    if (theform.minimumincrement.value==""){
	alert("商品竞价阶梯幅度不能为空!");
	theform.minimumincrement.focus();
	return false;
    }
    if (isNaN(theform.minimumincrement.value)){
	alert("商品竞价阶梯幅度必须为数字!");
	theform.minimumincrement.focus();
	return false;
    }
    if (theform.reserveprice.value==""){
	alert("商品保留价格不能为空!");
	theform.reserveprice.focus();
	return false;
    }
    if (isNaN(theform.reserveprice.value)){
	alert("商品保留价格必须为数字!");
	theform.reserveprice.focus();
	return false;
    }
    if (theform.buyprice.value==""){
	alert("商品一口价不能为空!");
	theform.buyprice.focus();
	return false;
    }
    if (isNaN(theform.buyprice.value)){
	alert("商品一口价必须为数字!");
	theform.buyprice.focus();
	return false;
    }
    if (theform.currentbid.value==""){
	alert("商品当前竞价不能为空!");
	theform.currentbid.focus();
	return false;
    }
    if (isNaN(theform.currentbid.value)){
	alert("商品当前竞价必须为数字!");
	theform.currentbid.focus();
	return false;
    }
    if (theform.currentbidder.value==""){
	alert("商品当前买家不能为空!");
	theform.currentbidder.focus();
	return false;
    }
    if (isNaN(theform.currentbidder.value)){
	alert("商品当前买家ID必须为数字!");
	theform.currentbidder.focus();
	return false;
    }
    if (theform.bidtimes.value==""){
	alert("商品竞价次数不能为空!");
	theform.bidtimes.focus();
	return false;
    }
    if (isNaN(theform.bidtimes.value)){
	alert("商品竞价次数必须为数字!");
	theform.bidtimes.focus();
	return false;
    }
    if (theform.ykjbidtimes.value==""){
	alert("商品一口价次数不能为空!");
	theform.ykjbidtimes.focus();
	return false;
    }
    if (isNaN(theform.ykjbidtimes.value)){
	alert("商品一口价次数必须为数字!");
	theform.ykjbidtimes.focus();
	return false;
    }
    if (theform.description.value==""){
	alert("商品描述信息不能为空!");
	theform.description.focus();
	return false;
    }
 return true;
 }
//-->
</script>
<%
Call CheckAdminFlag(TempAdminFlag,2)

dim id:id=rst("AucId")
if not isNum(id) then
   response.write "<script language=""javascript"">alert('无效的商品id!');history.back(-1);</script>"
   response.end
end if
dim rsauc
set rsauc=server.createobject("adodb.recordset")
sql="select * from auctions where aucid="&id
rsauc.open sql,conn,1,3
  if rsauc.eof then
	response.write"<center><font class=fontcolor_2>没有找到此商品记录!请 <a href=""javascript: history.back();"">返回</a></font></center>"
	response.end
  end if
  set rs=server.createobject("adodb.recordset")
  sql="select regid,regusername from users where regid="& rsauc("aucitemowner")
  rs.open sql,conn,1,1
  if rs.eof then
	response.write"<center><font class=fontcolor_2>没有找到此商品的卖家信息,此商品已过期!请 <a href=""javascript: history.back();"">返回</a></font></center>"
	response.end
  end if

With ReSponse
  .Write"<table width=98% border=0 align=center cellpadding=0 cellspacing=0>"& vbcrlf
  .Write" <tr> "& vbcrlf
  .Write"	 <td colspan=2 width=100% align=center height=2 class=menutdbg_1></td> "& vbcrlf
  .Write"	</tr> "& vbcrlf
  .Write" <tr height=32> "& vbcrlf
  .Write"  <td width=100% colspan=2 background=""../Skins/"& SKINS_FOLDER &"/GrayBg.gif"">&nbsp;<img src=""../Skins/"& Skins_Folder &"/Go.gif"" border=""0""><a href=""help.asp"" class=menuColor_1><b>后台管理</b></a>&gt;&gt;&gt; <a href=""###"" class=menuColor_1><b>商品管理</b></a>&gt;&gt;&gt; <a href=""###"" class=menuColor_1><b>更新商品信息</b></a> </td>"& vbcrlf
  .Write"  </tr>"& vbcrlf
  .Write"</table>" & Vbcrlf
End With
%>
<table align=center cellpadding=0 cellspacing=0 width=98% border=0>
  <tr>
   <td width=100% align=center>
	<table align=center cellpadding=0 cellspacing=1 width=100% border=0 class="tablebg">
	<form action="editauc.asp" method=post name=myform onSubmit="return chkform();">
	  <tr class=td><td align=center width=100% colspan=3 height=28 class="titletd"><b> <%=rsauc("aucitemtitle")%> ---当前信息</td></tr>
	  <tr class=td><td align=right width=32%>商品编号:</td><td width=3%>&nbsp;</td><td align=left><input type=text name=id value="<%=rsauc("aucid")%>" readonly></td></tr>
	  <tr class=td><td align=right>商品名称:</td><td>&nbsp;</td><td align=left><input type=text name=itemtitle value="<%=rsauc("aucitemtitle")%>"></td></tr>
	  <tr class=td><td align=right>所 有 者:</td><td>&nbsp;</td><td align=left><input type=hidden name=itemowner value="<%=rs("regid")%>"><input type=text name=itemownername value="<%=rs("regusername")%>"></td></tr>
	  <tr class=td><td align=right>商品类别:</td><td>&nbsp;</td> 
	     <td align=left><!--#include file="../js/search_Class.asp"--></td>
	  </tr>

<%
response.write"<tr class=td>"& vbcrlf
response.write"  <td align=right>商品数量:</td><td>&nbsp;</td><td align=left><input type=text name=auctotalnum value="& rsauc("auctotalnum") &"> 件</td>"& vbcrlf
response.write"</tr>"& vbcrlf
response.write"<tr class=td>"& vbcrlf
response.write"  <td align=right>可购数量:</td><td>&nbsp;</td><td align=left><input type=text name=aucnum value="& rsauc("aucnum") &"> 件</td>"& vbcrlf
response.write"</tr>"& vbcrlf

⌨️ 快捷键说明

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