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

📄 chaxun2.asp

📁 这是用asp做的一个网上考试题库系统
💻 ASP
字号:

<html>
<head>



<title></title>
<script language="JavaScript">
<!--
function checkDaAn(){
	var i,submit;
	var j,ch;
	var checkOK = "0123456789";
	var checkStr =document.Form1.txtUseTime.value;
	if (checkStr=="") {
		alert('对不起,试题的使用次数的字段值不能为空值,请输入数值!');
		return false;
	}
	if (Check()==false) {
		alert('对不起,试题的使用次数的字段值只能输入数字,请重试!');
		return false;
	}
	
	checkStr =document.Form1.txtItemId.value;
	if (checkStr=="") {
		alert('对不起,试题ID号的字段值不能为空值,请输入数值!');
		return false;
	}
	if (Check()==false) {
		alert('对不起,试题ID号的字段值只能输入数字,请重试!');
		return false;
	}
	
	checkStr =document.Form1.txtTestGrade.value;
	if (checkStr=="") {
		alert('对不起,查询字段中的建议分数栏的字段值不能为空值,请输入数值!');
		return false;
	}
	if (Check()==false) {
		alert('对不起,查询字段中的建议分数栏的字段值只能输入数字,请重试!');
		return false;
	}
	
	checkStr =document.Form1.txtDate1.value;
	if (checkStr=="") {
		alert('对不起,查询字段中的年份栏的字段值不能为空值,请输入数值!');
		return false;
	}
	if (Check()==false) {
		alert('对不起,查询字段中的年份栏的字段值只能输入数字,请重试!');
		return false;
	}
	
	checkStr =document.Form1.txtDate2.value;
	if (checkStr=="") {
		alert('对不起,查询字段中的月份栏的字段值不能为空值,请输入数值!');
		return false;
	}
	if (Check()==false) {
		alert('对不起,查询字段中的月份栏的字段值只能输入数字,请重试!');
		return false;
	}
	
	checkStr =document.Form1.txtDate3.value;
	if (checkStr=="") {
		alert('对不起,查询字段中的日期栏的字段值不能为空值,请输入数值!');
		return false;
	}
	if (Check()==false) {
		alert('对不起,查询字段中的日期栏的字段值只能输入数字,请重试!');
		return false;
	}
	
	checkStr =document.Form1.txtPerson.value;
	if (checkStr=="") {
		alert('对不起,查询字段中的出题人的字段值不能为空值,请输入数值!');
		return false;
	}
	
	checkStr =document.Form1.txtKLO.value;
	if (checkStr=="") {
		alert('对不起,查询字段中的知识点的内容的字段值不能为空值,请输入数值!');
		return false;
	}

	function Check() {
			var submit=true;
			for (i = 0;  i < checkStr.length;  i++){
				ch = checkStr.charAt(i);
				Find=false;
				for (j = 0;  j < checkOK.length;  j++)  {
					if (ch == checkOK.charAt(j)) {
					Find=true;
					break;
					}
				}

				if (Find==false){
					submit=false;
					break;
				}
			}
			return submit;
	}
}
-->
</script>
</head>



<div align="center">
  <center>
  <table border="0" cellpadding="0" width="763">
    <tr>
      <td>


	
<br>

<div align="center">
  <center>
  <table border="0" cellpadding="0" width="763">
    <tr>
      <td>
	

<form method="post" action="AdminQuery.asp" name="Form1" onSubmit="return checkDaAn();">
        <table border=1 align="center" bordercolor=#ffffff bordercolorlight=#0066CC cellspacing=0 

width="650">
          <tr> 
            <td width="22%" height="16" align="middle">&nbsp;</td>
            <td width="19%" height="16" align="middle"><strong><font color="#fb2424" face="宋体"></font></strong></td>
            <td width="29%" height="16" align="middle"><strong><font color="#fb2424" face="宋体"></font></strong></td>
            <td align="center" width="30%" height="16" ><strong><font color="#fb2424" face="宋体"></font></strong></td>
          </tr>
          <tr> 
            <td width="22%" height="34">&Auml;&Ntilde;&para;&Egrave;&frac14;&para;&plusmn;&eth;</td>
            <td width="19%" height="34">
              <select name="optDifficulty" size="1" style="HEIGHT: 21px; WIDTH: 70px">
                <option value="a">= 
                <option value="b" selected>&gt; 
                <option value="c">&lt; 
                <option value="d">&gt;= 
                <option value="e">&lt;= 
                <option value="f">&lt;&gt;</option>
              </select>
            </td>
            <td width="29%" height="34">
              <select name="txtDif" size="1" style="HEIGHT: 21px; WIDTH: 78px">
                <option value="0" selected> 
                <option value="1">
                <option value="0.8">
                <option value="0.6"> 
                <option value="0.4"> 
                <option value="0.2"></option>
              </select>
            </td>
            <td align="center" width="30%" height="34"> <!--或(OR)<input type="radio" value="or" name="RDifficulty">--></td>
          </tr>
          <tr> 
            <td width="22%" height="34">&Ccedil;&oslash;&middot;&Ouml;&para;&Egrave;&frac14;&para;&plusmn;&eth;</td>
            <td width="19%" height="34">
              <select name="optDivision" size="1" style="HEIGHT: 21px; WIDTH: 70px">
                <option value="a">= 
                <option value="b" selected>&gt; 
                <option value="c">&lt; 
                <option value="d">&gt;= 
                <option value="e">&lt;= 
                <option value="f">&lt;&gt;</option>
              </select>
            </td>
            <td width="29%" height="34">
              <select id="select1" name="txtDivision" style="HEIGHT: 21px; WIDTH: 81px" size="1">
                <option value="0" selected> 
                <option value="1">
                <option value="0.8">
                <option value="0.6">
                <option value="0.4">
                <option value="0.2"></option>
              </select>
            </td>
            <td align="center"width="30%" height="34"> <!--或(OR)<input type="radio" value="or" name="RDivision">--></td>
          </tr>
          <tr> 
            <td width="22%" height="33">&nbsp;</td>
            <td width="19%" height="33">
              <select name="optUseTime" size="1" style="HEIGHT: 23px; WIDTH: 69px">
                <option value="a">= 
                <option value="b" selected>&gt; 
                <option value="c">&lt; 
                <option value="d">&gt;= 
                <option value="e">&lt;= 
                <option value="f">&lt;&gt; 
                <option value></option>
              </select>
            </td>
            <td width="29%" height="33">
              <input name="txtUseTime" size="6" value="0">
            </td>
            <td align="center" width="30%" height="33"> <!--或(OR)<input type="radio" value="or" name="RUseTime">--></td>
          </tr>
          <tr> 
            <td width="22%" height="19">&nbsp;</td>
            <td width="19%" height="19">
              <select name="optItemid" size="1" style="HEIGHT: 21px; WIDTH: 69px">
                <option selected value="a">= 
                <option value="b">&gt; 
                <option value="c">&lt; 
                <option value="d">&gt;= 
                <option value="e">&lt;= 
                <option value="f">&lt;&gt;</option>
              </select>
            </td>
            <td width="29%" height="19">
              <input name="txtItemId" size="9" value="0">
            </td>
            <td align="center" width="30%" height="19"> <!--或(OR)<input type="radio" value="or" name="RItemId">--> 
            </td>
          </tr>
          <tr> 
            <td width="22%" height="16">&nbsp;</td>
            <td width="19%" height="16">
              <select name="optTestGrade" size="1" style="HEIGHT: 23px; WIDTH: 69px">
                <option value="a">= 
                <option value="b" selected>&gt; 
                <option value="c">&lt; 
                <option value="d">&gt;= 
                <option value="e">&lt;= 
                <option value="f">&lt;&gt; 
                <option value></option>
              </select>
            </td>
            <td width="29%" height="16">
              <input id="text1" name="txtTestGrade" style="HEIGHT: 21px; WIDTH: 67px" value="0">
              (input number)</td>
            <td align="center" width="30%" height="16"> <!--或(OR)<input type="radio" value="or" name="RTestGrade">--> 
            </td>
          </tr>
          <tr> 
            <td width="22%" height="11">&nbsp;</td>
            <td width="19%" height="11">
              <select name="optDate" size="1" style="HEIGHT: 21px; WIDTH: 70px">
                <option value="a">= 
                <option value="b" selected>&gt; 
                <option value="c">&lt; 
                <option value="d">&gt;= 
                <option value="e">&lt;= 
                <option value="f">&lt;&gt;</option>
              </select>
            </td>
            <td width="29%" height="11">
              <input name="txtDate1" value="1" size="3">
              &Auml;&ecirc;
              <input name="txtDate2" size="3" value="1">
              &Ocirc;&Acirc;
              <input name="txtDate3" size="3" value="1">
              &Egrave;&Otilde;</td>
            <td align="center" width="30%" height="11"> <!--或(OR)<input type="radio" value="or" name="RDate">--> 
            </td>
          </tr>
          <tr> 
            <td width="22%" height="10">&nbsp;</td>
            <td width="19%" height="10">&nbsp;</td>
            <td width="29%" height="10"> 
              <select id="select2" name="optWorkType" style="HEIGHT: 21px; WIDTH: 122px" size="1">
                <option value="Test" selected></option>
                <option value="Work"></option>
                <option value="All"></option>
              </select>
            </td>
            <td align="center" width="30%" height="10"> <!--或(OR)<input type="radio" value="or" name="RItemType">--></td>
          </tr>
          <tr> 
            <td width="22%" height="26">&nbsp;</td>
            <td width="19%" height="26">&nbsp;</td>
            <td width="29%" height="26">
              <select id="select2" name="optItemType" style="HEIGHT: 21px; WIDTH: 152px" size="1">
                <!-- 
        <option selected value="0"> 0 
        --> 
                <option value="1">
                <option value="6"> 
                <option value="2"> 
                <option value="9">
                <option value="8"> 
                <option value="7"> 
                <option value="10">
                <option value="11">
                </option>
              </select>
            </td>
            <td align="center" width="30%" height="26"> <!--或(OR)<input type="radio" value="or" name="RItemType">--> 
            </td>
          </tr>
          <tr> 
            <td width="22%" height="29">&nbsp;</td>
            <td width="19%" height="29">&nbsp;</td>
            <td width="29%" height="29">
              <input name="txtPerson" value="0">
            </td>
            <td align="center" width="30%" height="29"> <!--或(OR)<input type="radio" value="or" name="RPerson">--> 
            </td>
          </tr>
          <tr> 
            <td width="22%" height="16">&nbsp;</td>
            <td width="19%" height="16">&nbsp;</td>
            <td width="29%" height="16">
              <select name="optCognize" size="1" style="HEIGHT: 23px; WIDTH: 152px">
                <option value="0" selected>0 
                <option value="1">
                <option value="2">
                <option value="6">
                <option value="3">
                <option value="5"> 
                <option value="4"></option>
              </select>
            </td>
            <td align="center" width="30%" height="16"> <!--或(OR)<input type="radio" value="or" name="RCognize">--> 
            </td>
          </tr>
          <tr> 
            <td width="22%" height="24">&nbsp;</td>
            <td width="19%" height="24">&nbsp;</td>
            <td width="29%" height="24">
              <input name="txtKLO" style="HEIGHT: 21px; WIDTH: 149px" value="0">
            </td>
            <td width="30%" height="24">&nbsp;</td>
          </tr>
          <tr> 
            <td width="100%" height="29" colspan="4">
              <div align="center">
                <center>
                  <p>&nbsp;
                    <input type="submit" value="查询" name="B1">
                    <input type="reset" value="取消" name="B2">
                   </p>
                </center>
              </div>
            </td>
          </tr></form>
        </table>    
  </center>    
    
    
    
</body>

⌨️ 快捷键说明

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