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

📄 cxcx.php

📁 辅助radius软件的管理程序web平台下的程序代码自己还没有测试过
💻 PHP
字号:
<?
include "../check.php"
?>
<?
include "../sql.php" 
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="JavaScript">
function x(obj){
var xxx=false;
if(Juge(obj)){
if(numericCheck()){
xxx=true;
}
}
return xxx;
}
function numericCheck(){
	var x=true;
	var nr1=document.form1.user_serialno.value;
	var flg=0;
	var str="";
	var spc=""
	var arw="";
	for (var i=0;i<nr1.length;i++){
		cmp="0123456789"
		tst=nr1.substring(i,i+1)
		if (cmp.indexOf(tst)<0){
			flg++;
			str+=" "+tst;
			spc+=tst;
			arw+="^";
		}
		else{arw+="_";}
	}
	if (flg!=0){
		if (spc.indexOf(" ")>-1) {
			str+="和空格";
		}
		alert("请正确填写用户流水号!");
		+str;
		form1.user_serialno.focus();
		x=false;
	}
	return x;
}
function Juge(theForm)
{
	if (((theForm.czrq.value =="")&&(theForm.czsj.value !=""))||((theForm.czrq.value !="")&&(theForm.czsj.value =="")))
			{
			alert("请完整填写冲帐日期和时间!");
			theForm.czsj.focus();
			return (false);
			}
			if (((theForm.ysrq.value =="")&&(theForm.yssj.value !=""))||((theForm.ysrq.value !="")&&(theForm.yssj.value =="")))
			{
			alert("请完整填写被冲销日期和时间!");
			theForm.yssj.focus();
			return (false);
			}else{
		return true;
	}
}
</script>
</head>

<body>
<Script Language="javaScript" src='../divdate.hs'></Script>
<p>&nbsp;</p>
<p align="center">冲销查询</p>
<form name="form1" method="post" action="cxcxb.php" onsubmit="javascript:return x(this);">
  <table border="1" align="center">
    <tr> 
      <td>用户流水号</td>
      <td colspan="4"><input name="user_serialno" type="text" size="6"></td>
    </tr>
    <tr> 
      <td>冲帐操作员</td>
      <td colspan="4"><select name="cxczy" id="cxczy">
          <option value="">默认:任何操作员</option>
		  <?
			$sql ="select * from admin ";
			$reslust=mysql_query($sql);
			echo mysql_error();
			   while ($row=mysql_fetch_row($reslust))
			            {//echo $row[2]."<br>";
						echo    '<option value="'.$row[2].'">'.$row[2].'</option>';
						} 
			?>
        </select></td>
    </tr>
    <tr> 
      <td>被冲帐记录的原始操作员</td>
      <td colspan="4"><select name="bcxczy" id="select2">
          <option value="">默认:任何操作员</option>
		  <?
			$sql ="select * from admin ";
			$reslust=mysql_query($sql);
			echo mysql_error();
			   while ($row=mysql_fetch_row($reslust))
			            {//echo $row[2]."<br>";
						echo    '<option value="'.$row[2].'">'.$row[2].'</option>';
						} 
			?>
        </select></td>
    </tr>
    <tr> 
      <td>冲帐日期范围 </td>
      <td>日期</td>
      <td><input name="czrq" type="text" id="czrq" size="10" readonly onclick="seeDate('czrq',0);"></td>
      <td>时间</td>
      <td><input name="czsj" type="text" id="czsj" size="8" readonly onclick="seeTime('czsj',0);"></td>
    </tr>
    <tr> 
      <td>被冲帐记录的原始操作日期</td>
      <td>日期</td>
      <td><input name="ysrq" type="text" id="ysrq" size="10" readonly onclick="seeDate('ysrq',0);"></td>
      <td>时间</td>
      <td><input name="yssj" type="text" id="yssj" size="8" readonly onclick="seeTime('yssj',0);"></td>
    </tr>
  </table>
  <p align="center"> 
    <input type="submit" name="Submit" value="提交">
    <input type="reset" name="Submit2" value="重置">
  </p>
  </form>
<p align="center">&nbsp;</p>
</body>
</html>

⌨️ 快捷键说明

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