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

📄 default.asp

📁 大家好
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<%@ language="vbscript"%>
<!-- #include file="../counter/insert.asp" -->
<%
counter0("二手信息")
%>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<title>选择类别</title>
<script language=javascript>
function onload(){ //this function to adjust the date time when load
    var curdate=new Date();
  //  alert ("onload body!");
    document.forms["quary"].fmonth.value=curdate.getMonth()+1;
  //  alert(curdate.getMonth());
    document.forms["quary"].fday.value=curdate.getDate();
    document.forms["quary"].tmonth.value=curdate.getMonth()+1;
    document.forms["quary"].tday.value=curdate.getDate();
    
    }
    
    function check(){
 	if (document.forms["quary"].city.value=="其它" && document.forms["quary"].ocity.value=="")
		{
 		alert("请输入城市名称。");
		document.forms["quary"].ocity.focus()
 		return false;
 		}
 	}
 </script>
</head>
<body  onload="return onload()" bgcolor="#FFFFFF" >
<table width="740" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFCCFF">
  <tr> 
    <td height="19" width="415"><a href="shrevise.htm">修改信息</a></td>
    <td height="19" width="415">&nbsp;</td>
    <td height="19" width="110"> <a href="selcat.asp?itype=求" >登记购买信息</a></td>
    <td height="19" width="215"><a href="selcat.asp?itype=供" >登记销售信息</a></td>
  </tr>
</table>
<form method="post" action="quary.asp" name="quary" onsubmit="return check()" >
  <table border="0" cellspacing="0" cellpadding="0" align="center" width="740">
    <tr> 
      <td height="6" width="135" align="right">请选择日期范围:</td>
      <td height="6" width="611"> 
        <table border="0" cellspacing="0" cellpadding="0" width="395">
          <tr> 
            <td>从 
              <input type=text name=fyear value=2000 class="botton" size="6">
              <select name=fmonth class="botton">
                <% for i=1 to 12 %> 
                <option value=<% =i%>> <% =i %> </option>
                <%next%> 
              </select>
              <select name=fday class="botton">
                <% for i=1 to 31 %> 
                <option value=<% =i %>> <% =i%> </option>
                <%next%> 
              </select>
              日</td>
          </tr>
          <tr> 
            <td>到 
              <input type=text name=tyear value=2000 class="botton" size="6">
              <select name=tmonth class="botton">
                <% for i=1 to 12 %> 
                <option value=<% =i%>> <% =i %> </option>
                <%next%> 
              </select>
              <select name=tday class="botton">
                <% for i=1 to 31 %> 
                <option value=<% =i %>> <% =i%> </option>
                <%next%> 
              </select>
              日</td>
          </tr>
        </table>
      </td>
    </tr>
    <tr> 
      <td height="33" colspan="2"> 
        <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td width="22%">请选择城市: </td>
            <td width="78%">
<%
	set con1=server.createObject("ADODB.Connection")
	dbpath=server.mappath("market.mdb")
	con1.open "driver={Microsoft Access Driver (*.mdb)};dbq="&dbpath
	set rs=server.createobject("ADODB.Recordset")
	
	 sqlstr="select * from city"
	 rs.open sqlstr,con1
	 if not (rs.eof) then
	 %>  
              <select name=city class="botton" >
     
                <option value=所有 selected>所有 <%
	 while not (rs.eof)
	 %> 
                <option value = <%=rs("cname")%>><%=rs("cname")%> <%rs.movenext
	 wend
	 end if
	 %> 
              </select>
            </td>
          </tr>
          <tr> 
            <td width="22%">或输入你所要查询的城市:</td>
            <td width="78%"> 
              <input type=text name=ocity class="botton" >
            </td>
          </tr>
          <tr> 
            <td colspan="2">选定查询类别:</td>
          </tr>
          <tr align="center"> 
            <td colspan="2"> 
              <input type="radio" name=radio1 value=0000000000 checked>
              所有 
              <input type="radio" name=radio1 value=0010000000 >
              计算机产品 
              <input type="radio" name=radio1 value=0020000000>
              车类 
              <input type="radio" name=radio1 value=0030000000>
              家用电器 
              <input type="radio" name=radio1 value=0040000000>
              房屋租售 
              <input type="radio" name=radio1 value=0050000000>
              通讯器材 
              <input type="radio" name=radio1 value=0060000000>
              书籍报刊 
              <input type="radio" name="radio1" value="0060000000">
              服务 </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr> 
      <td colspan="2"> 
        <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td height="110" colspan="2"> 
              <table cellspacing=0 cellpadding=0 width="625" align="center" border="0" >
                <tr> 
                  <td colspan="6" bgcolor="#FFFFE0">电脑产品</td>
                </tr>
                <tr> 
                  <td width="80">&nbsp;</td>
                  <td colspan="5">硬件 </td>
                </tr>
                <tr> 
                  <td width="80" >&nbsp;</td>
                  <td width="123"> 
                    <input  value=0010010011  type=radio name=radio1>
                    台式机</td>
                  <td width="98"> 
                    <input  value=0010010012  type=radio name=radio1>
                    笔记本</td>
                  <td width="122"> 
                    <input  value=0010010013  type=radio name=radio1>
                    服务器</td>
                  <td width="85"> 
                    <input  value=0010010014  type=radio name=radio1>
                    工作站</td>
                  <td width="117"> 
                    <input  value=0010010015  type=radio name=radio1>
                    打印机</td>
                </tr>
                <tr> 
                  <td width="80" >&nbsp;</td>
                  <td width="123"> 
                    <input  value=0010010001 type=radio name=radio1>
                    主板</td>
                  <td width="98"> 
                    <input  value=0010010002 type=radio name=radio1>
                    内存</td>
                  <td width="122"> 
                    <input  value=0010010003 type=radio name=radio1>
                    CPU</td>
                  <td width="85"> 
                    <input  value=0010010004 type=radio name=radio1>
                    硬盘</td>
                  <td width="117"> 
                    <input  value=0010010005 type=radio name=radio1>
                    光驱</td>
                </tr>
                <tr> 
                  <td width="80" >&nbsp;</td>
                  <td width="123"> 
                    <input   value=0010010006  type=radio name=radio1>
                    显卡</td>
                  <td width="98"> 
                    <input   value=0010010007  type=radio name=radio1>
                    声卡</td>
                  <td width="122"> 
                    <input   value=0010010008  type=radio name=radio1>
                    显示器</td>
                  <td width="85"> 
                    <input   value=0010010009  type=radio name=radio1>
                    机箱</td>
                  <td width="117"> 
                    <input   value=0010010010  type=radio name=radio1>
                    软驱</td>
                </tr>
                <tr> 
                  <td height="22" width="80" >&nbsp;</td>
                  <td height="22" width="123"> 
                    <input  value=0010010016  type=radio name=radio1>
                    耗材</td>
                  <td height="22" width="98"> 
                    <input  value=0010010017  type=radio name=radio1>
                    存储介质</td>
                  <td height="22" width="122" nowrap> 
                    <input  value=0010010018  type=radio name=radio1>
                    耳机、麦克</td>
                  <td height="22" width="85"> 
                    <input  value=0010010019  type=radio name=radio1>
                    音箱</td>
                  <td height="22" width="117"> 
                    <input  value=0010010020  type=radio name=radio1>
                    网络设备</td>
                </tr>
                <tr> 
                  <td height="22" width="80" >&nbsp;</td>
                  <td height="22" width="123"> 
                    <input type="radio" name="radio1" value="0010010021">
                    其它 </td>
                  <td height="22" width="98">&nbsp;</td>
                  <td height="22" width="122">&nbsp;</td>
                  <td height="22" width="85">&nbsp;</td>
                  <td height="22" width="117">&nbsp;</td>
                </tr>
                <tr> 
                  <td width="80" >&nbsp;</td>
                  <td colspan="5" >软件</td>
                </tr>
                <tr> 
                  <td width="80" >&nbsp;</td>
                  <td width="123" > 
                    <input name=radio1 type=radio value=0010020001>
                    操作系统 </td>
                  <td width="98" > 
                    <input name=radio1 type=radio value=0010020002>
                    查杀病毒 </td>
                  <td width="122" > 
                    <input name=radio1 type=radio  value=0010020003>
                    数据库 </td>
                  <td width="85" > 
                    <input name=radio1 type=radio  value=0010020004>
                    程序开发 </td>
                  <td width="117" > 
                    <input name=radio1 type=radio value=0010020009>
                    财会/管理 </td>
                </tr>
                <tr> 
                  <td width="80" >&nbsp;</td>
                  <td width="123" > 
                    <input name=radio1 type=radio value=0010020005>
                    多媒体工具 </td>
                  <td width="98" > 
                    <input name=radio1 type=radio value=0010020006>
                    教育 </td>
                  <td width="122" > 
                    <input name=radio1 type=radio value=0010020007>
                    游戏</td>
                  <td  nowrap width="85"> 
                    <input name=radio1 type=radio value=0010020008>
                    素材库</td>
                  <td width="117" > 
                    <input type="radio" name="radio1" value="0010020010">
                    其它 </td>
                </tr>
              </table>
            </td>
          </tr>
          <tr> 
            <td colspan="2"> 
              <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
                <tr bgcolor="#FFFFE0"> 
                  <td colspan="5">车类</td>
                </tr>
                <tr> 
                  <td height="24"  > 
                    <input name=radio1 type=radio 
            value=0020010001>
                    小客车</td>
                  <td height="24"  > 
                    <input name=radio1 type=radio 
            value=0020010002>
                    大客车</td>
                  <td height="24"  > 
                    <input name=radio1 type=radio 
            value=0020010003>
                    货车 </td>
                  <td height="24"  > 
                    <input name=radio1 type=radio 
            value=0020010004>
                    越野汽车 </td>
                  <td height="24"  > 
                    <input name=radio1 type=radio 
            value=0020010005>
                    摩托车</td>
                </tr>
                <tr> 

⌨️ 快捷键说明

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