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

📄 sytj.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.tjsd.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.tjsd.focus();
		x=false;
	}
	return x;
}
function Juge(theForm)
		{

			if (theForm.qsrq.value =="")
			{
			alert("请填起上始日期!");
			theForm.qsrq.focus();
			return (false);
			}
			if (theForm.qssj.value =="")
			{
			alert("请填上起始时间!");
			theForm.qssj.focus();
			return (false);
			}
			if (theForm.zzrq.value =="")
			{
			alert("请填上终止日期!");
			theForm.zzrq.focus();
			return (false);
			}
			if (theForm.zzsj.value =="")
			{
			alert("请填上终止时间!");
			theForm.zzsj.focus();
			return (false);
			}
			if ((theForm.gldz.value =="")&&(theForm.tjsd.value !=""))
			{
			alert("请填上管理地址!");
			theForm.gldz.focus();
			return (false);
			}
			else{
		return true;
	}
		
			/*if ((theForm.rad.value =="1")&&(theForm.gldz.value ==""))
			{
			alert("请填上管理地址!");
			theForm.gldz.focus();
			return (false);
			}
			if ((theForm.rad.value =="2")&&(theForm.nasip.value ==""))
			{
			alert("请填上NAS设备IP!");
			theForm.nasip.focus();
			return (false);
			}*/
			
			
		}
/*function numericCheck2(){
	var x=true;
	var nr1=document.form1.nasip.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("请正确填写NAS IP!");
		+str;
		form1.nasip.focus();
		x=false;
	}
	return x;
}*/

</script>
</head>
<Script Language="javaScript" src='../divdate.hs'></Script>
<body>
<p align="center">使用统计</p>
<form name="form1" method="post" action="sytjb.php" onsubmit="javascript:return x(this);">
  <table border="1" align="center">
    <tr> 
      <td width="80" rowspan="2">统计日期段</td>
      <td width="73">起始日期</td>
      <td width="73"><input name="qsrq" type="text" id="qsrq2" size="10" readonly onClick="seeDate('qsrq',0);"></td>
      <td width="70">起始时间</td>
      <td> <input name="qssj" type="text" id="qssj2" size="8" readonly onClick="seeTime('qssj',0);"></td>
    </tr>
    <tr> 
      <td>终止日期</td>
      <td><input name="zzrq" type="text" id="zzrq2" size="10" readonly onClick="seeDate('zzrq',0);"></td>
      <td>终止时间</td>
      <td> <input name="zzsj" type="text" id="zzsj2" size="8" readonly onClick="seeTime('zzsj',0);"></td>
    </tr>
    <tr> 
      <td rowspan="3">统计方式</td>
      <td colspan="2" rowspan="2"> <input name="rad" type="radio" onClick="nasip.disabled=true;gldz.disabled=false;tjsd.disabled=false" value="1" checked>
        按管理地址汇总</td>
      <td>管理地址</td>
      <td colspan="2">
          <input name="gldz" type="text" id="gldz" size="15">
        </td>
    </tr>
    <tr> 
      <td>统计深度</td>
      <td colspan="2">
          <input name="tjsd" type="text" id="tjsd" size="15">
        </td>
    </tr>
    <tr> 
      <td colspan="2"><input name="rad" type="radio" onClick="nasip.disabled=false;gldz.disabled=true;tjsd.disabled=true" value="2">
        按NAS设备IP统计</td>
      <td colspan="3">
          <input name="nasip" type="text" disabled="true" id="nasip" size="15">
        </td>
    </tr>
  </table>
  <br>
  <p align="center"> 
    <input type="submit" name="Submit" value="提交">
    <input type="reset" name="Submit2" value="重置">
  </p>
</form>
<p align="center">&nbsp;</p>
<p></p>
</body>
</html>

⌨️ 快捷键说明

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