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

📄 add.asp

📁 用ASP写的二手市场程序
💻 ASP
字号:
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<LINK href="new.css" rel=stylesheet type=text/css>
<title>闽东二手交易中心</title>

</head>

<body>    
      <div align="center">
  <center>
  <table width="700" border="0" cellspacing="0" cellpadding="0">
    <tr>        
      <td>        
        <table width="100%" border="0"  cellspacing="0" cellpadding="0">        
          <tr>        
            <td width="17%" bgcolor="#f0f0f0" valign="top"> 
 <!--#include file="bar_left.asp"-->         
</td>       
            <td width="83%" bgcolor="#ffffff" valign="top">
<!--text begin--> 
<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><script Language="JavaScript"><!--
function FrontPage_Form1_Validator(theForm)
{

  var radioSelected = false;
  for (i = 0;  i < theForm.buyorsell.length;  i++)
  {
    if (theForm.buyorsell[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("请选择‘买或卖’选项中的一项!");
    return (false);
  }

  if (theForm.goods.value == "")
  {
    alert("请输入你的二手物品的名称!");
    theForm.goods.focus();
    return (false);
  }

  if (theForm.goods.value.length > 50)
  {
    alert("在‘货物名称’域中,最多只能请输入 50 个字符,你输入太多了。");
    theForm.goods.focus();
    return (false);
  }

  var radioSelected = false;
  for (i = 0;  i < theForm.kind.length;  i++)
  {
    if (theForm.kind[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("请为您的物品选定一类型。");
    return (false);
  }

  if (theForm.name.value == "")
  {
    alert("请输入你的姓名。");
    theForm.name.focus();
    return (false);
  }

  if (theForm.name.value.length > 30)
  {
    alert("你的姓名太长了,超过了 30 个字符。");
    theForm.name.focus();
    return (false);
  }

  var radioSelected = false;
  for (i = 0;  i < theForm.trademode.length;  i++)
  {
    if (theForm.trademode[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("请选择交易方式!");
    return (false);
  }
  return (true);
}
//--></script><!--webbot BOT="GeneratedScript" endspan --><form method="POST" 
    action="reg.asp" onsubmit="return FrontPage_Form1_Validator(this)" name="FrontPage_Form1"> 
      <blockquote> 
      <p align="left"><br>
    买或卖:<!--webbot bot="Validation" B-Value-Required="TRUE" --><input name="buyorsell" type="radio"                                    
  value="← 卖出">卖出<font color="#ffffff"> <input name="buyorsell" type="radio"                                                 
  value="→ 买进"></font>买进<br>
      货物名称:<!--webbot bot="Validation" B-Value-Required="TRUE"
      I-Maximum-Length="50" --><input type="text" name="goods" size="44" maxlength="50">(限制50个字符)<br>
      所属类型:<font color="#333333"><br>
      电脑配件<br>
      </font><!--webbot bot="Validation" B-Value-Required="TRUE" --><input type="radio" value="101" name="kind">台式机    
      <input type="radio" value="102" name="kind">笔记本及掌上电脑 <input type="radio" value="103"   
      name="kind">cpu <input type="radio" value="104"   
      name="kind">主板 <input type="radio" value="105"   
      name="kind">硬盘 <input type="radio" value="106"   
      name="kind">显示器 <input type="radio" value="107"   
      name="kind">内存 <input type="radio" value="108"  
      name="kind">光驱 <input type="radio" value="109"  
      name="kind">显卡 
      <input type="radio" value="110"  
      name="kind">声卡 <input type="radio" value="111"  
      name="kind">网络设备 <input type="radio" value="112"  
      name="kind">打印机 <input type="radio" value="113"  
      name="kind">扫描仪 <input type="radio" value="114"  
      name="kind">软件 <input type="radio" value="115"  
      name="kind">音箱 <input type="radio" value="117"   
      name="kind">鼠标 <input type="radio" value="118"   
      name="kind">键盘 <input type="radio" value="116"  
      name="kind">其他<br> 
      <font color="#333333">办公用具<br>  
      </font><input type="radio" value="201" 
      name="kind">复印机<input type="radio" value="202"
      name="kind">传真机 <input type="radio" value="203"    
      name="kind">投影机 <input type="radio" value="204"    
      name="kind">其他<br>  
      <font color="#333333">通讯器材<br>  
      </font><input type="radio" value="301" name="kind">普通电话     
      <input type="radio" value="302" name="kind">寻呼机 <input type="radio" value="303"    
      name="kind">移动电话及配件 <input type="radio" value="304"    
      name="kind">其他<br>  
      <font color="#333333">视听设备<br>  
      </font><input type="radio" value="401" name="kind">影碟机     
      <input type="radio" value="402" name="kind">录像机 <input type="radio" value="403"    
      name="kind">三用机 <input type="radio" value="404"    
      name="kind">摄像机 <input type="radio" value="405" name="kind">随身听     
      <input type="radio" value="406" name="kind">功放与发烧音响 <input type="radio" value="407"    
      name="kind">影碟与录像带&nbsp;<br> 
 <input type="radio" value="408" name="kind">CD与磁带     
      <input type="radio" value="409" name="kind">其他&nbsp;<br>  
      <font color="#333333">家用电器<br>  
      </font><input type="radio" value="501" name="kind">电视     
      <input type="radio" value="502" name="kind">冰箱与冰柜 <input type="radio" value="503"    
      name="kind">空调与电风扇 <input type="radio" value="504"    
      name="kind">洗衣机 <input type="radio" value="505" name="kind">微波炉与烤箱     
      <input type="radio" value="506" name="kind">吸尘器 <input type="radio" value="507"    
      name="kind">家用游戏机及游戏&nbsp;<br> 
 <input type="radio" value="508" name="kind">小家电     
      <input type="radio" value="509" name="kind">其他&nbsp;<br>  
      <font color="#333333">家居用具</font> 
      <font color="#333333"><br> 
      </font><input type="radio" value="601" name="kind">家具     
      <input type="radio" value="602" name="kind">餐具 <input type="radio" value="603"    
      name="kind">灯具 <input type="radio" value="604"    
      name="kind">装饰用具 <input type="radio" value="605" name="kind">床上用品     
      <input type="radio" value="606" name="kind">家用工具 <input type="radio" value="607"    
      name="kind">洁具 <input type="radio" value="608" name="kind">其他&nbsp;<br> 
      <font color="#333333">穿戴物品</font> 
      <font color="#333333"><br> 
      </font><input type="radio" value="701" name="kind">男式衣裤     
      <input type="radio" value="702" name="kind">女式衣裤 <input type="radio" value="703"    
      name="kind">儿童衣裤 <input type="radio" value="704"    
      name="kind">男式鞋 <input type="radio" value="705" name="kind">女式鞋     
      <input type="radio" value="706" name="kind">儿童鞋 <input type="radio" value="707"    
      name="kind">装饰品 <input type="radio" value="708" name="kind">其他&nbsp;<br> 
      <font color="#333333">交通工具<br> 
      </font><input type="radio" value="801" name="kind">自行车及配件     
      <input type="radio" value="802" name="kind">摩托车及配件 <input type="radio" value="803"    
      name="kind">汽车及配件 <input type="radio" value="804"    
      name="kind">其他<br>  
      <font color="#333333">二手杂物<br> 
      </font><input type="radio" value="901" name="kind">一切可以卖的东西     
      <input type="radio" value="902" name="kind">吃的<br> 
      单价:<input type="text" name="price" size="18" 
      maxlength="100">元.¥&nbsp;<span ><br> 
      数量:<input         
  type="text" size="18" name="amount" value="1">个/件<br> 
      新旧程度:<input         
  type="text" size="10" name="degree"> 成新(几成新? 可输入小数,例:9.9 成新)<br> 
      购买日期:<input         
  type="text" size="28" name="buydate" ><font color="#FF0000"> !</font>(请根据以下格式输入:2000-3-29)<br> 
      </span>物品描述:<br> 
      <textarea rows="4" name="content" cols="54"></textarea><br> 
      货主姓名:<!--webbot bot="Validation" B-Value-Required="TRUE"
      I-Maximum-Length="30" --><input type="text" name="name" size="31" maxlength="30"><br>
      E-mail:<input
      type="text" name="email" size="30" maxlength="50"><span ><br>
      所在省份:<span style="font-size: 9pt; letter-spacing: 1"><input type="text"                           
  size="11" name="province" > 城市:<input type="text"                               
  size="11" name="city" ><br> 
      </span>联系电话:<input type="text"                             
  size="28" name="telephone" >(建议您输入您的区号,是单位分机的也输入您的分机号)<br> 
      联系传呼:<input type="text"                             
  size="28" name="bbcall" ><br> 
      </span>ICQ#:<input type="text" name="icq" size="17" maxlength="50"> <span > 或者 oicq#:<input type="text"                                                             
  size="17" name="oicq" ><br>  
      请选择交易方式:<!--webbot bot="Validation" B-Value-Required="TRUE"
      --><input name="trademode" type="radio"                                    
  value="一手交钱一手交货">一手交钱一手交货 <font color="#ffffff"> <input name="trademode" type="radio"                                                              
  value="邮寄"></font>邮寄 <font color="#ffffff"><input name="trademode"                                                             
  type="radio" value="其他方式"></font>其他方式</span></p>  
      <p align="center">       
      <input type="submit" value=" 提交 " name="B1" style="font-size:9pt">&nbsp; 
      <input type="reset" value=" 刷新 " name="B2" style="font-size:9pt"></p>    
      </blockquote>    
    </form>
<!--text end--> 
<!--#include file="adv.htm"-->  </td>  
          </tr>   
  </table>         
         
        </table>                                                       
                                                 
</div>                                                       
                                                       </body>                                                       
                                                       
</html>                                                       

⌨️ 快捷键说明

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