<%@ LANGUAGE = VBScript.Encode %>
<!--#include virtual="/include/pub_var.inc"-->
<!-- #include virtual="/include/data.inc" -->
<%#@~^TAEAAA==@#@&z&确定`Id进行(Hd后台保存@#@&dYMnCY4qUWKP',]+$E+kO ?D7+..C.bl8Vd`rn)P_{qHo}Jb@#@&dDDKmY4qx6W,xPrtOYa)&&rP[,]+$E+kO ?D7+..C.bl8Vd`r?3]j2ImHzH3J*~LPJ0D`/DDhCY4qU0K~(UkYD"n\v/YMKCY4q	0G~E&r#b@#@&2WMY^OMVk[x1kUYvOMkhvD;E/DcJaW.Y1Y.sbNJ*b#@#@&/$sxJk+^+^Y~M,0.Ws~K~SK6"KZP]dPAt.P2KDDmYMVb['r[2WMY^OMVk9@#@&k+Y,.d'1W	x +an1EO+vd;^#@#@&c2cAAA==^#~@%>
<html>
<head>
<title><%=#@~^BQAAAA==ObYsIgIAAA==^#~@%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%=#@~^DAAAAA==dDDmbx1VE9+8zQQAAA==^#~@%>
<%=#@~^DAAAAA==dDDmbx1VE9+yzgQAAA==^#~@%>
<SCRIPT language=javascript>
function check_str(str,minnum,maxnum)
{
	if (str !=="")
	{
		var ret=true;
		for(var i=0;i<str.length;i++)
			ret=ret && (str.charCodeAt(i)>=10000);
			if (ret==true)
			{
				return false;
			}
		
	var tmp_str=new Array();
	tmp_str=str.split(",")

	for (var i=0;i<tmp_str.length;i++)
	{
		if (tmp_str[i]=="")
		{
			//alert("格式错误！");
			return false;
		}
		else
		{
			if (tmp_str[i].indexOf("-")!=-1)
			{
				var tmp_str_lr=new Array();
				tmp_str_lr=tmp_str[i].split("-");
				if( (tmp_str_lr.length !==2) || (tmp_str_lr[0]=="") || (tmp_str_lr[1]=="") || (tmp_str_lr[0]>=tmp_str_lr[1]) || (tmp_str_lr[1]>parseInt(maxnum)) || (tmp_str_lr[0]<parseInt(minnum)) )
				{
					//alert("格式错误！");
					return false;
				}
			}
			else
			{	
				
				if ((tmp_str[i]>parseInt(maxnum))||(tmp_str[i]<parseInt(minnum)))
				{
					//alert("格式错误！");
					return false;
				}
			}
		}
	}
}
}
function save_port_content()
{
    var http;
	var smtp;
	var pop3;
	var nntp;
	var https;
	var ftp;
	var telnet;
	
	var lowaction;
	var lowothers;
	
	var highaction;
	var highothers;
	
	if (window.http.checked)
	{
	http="80";
	}
	else
	{
	http="0";
	}
	
	if (window.smtp.checked)
	{
	smtp="25";
	}
	else
	{
	smtp="0"
	}
	
	if (window.pop3.checked)
	{
	pop3="110";
	}
	else
	{
	pop3="0"
	}
	
	if (window.nntp.checked)
	{
	nntp="119";
	}
	else
	{
	nntp="0"
	}
	
	if (window.https.checked)
	{
	https="443";
	}
	else
	{
	https="0"
	}

	if (window.ftp.checked)
	{
	ftp="21";
	}
	else
	{
	ftp="0"
	}

	if (window.telnet.checked)
	{
	telnet="23";
	}
	else
	{
	telnet="0"
	}
	
	if (window.lowaction[1].checked)
	{
	lowaction="1";
	}
	else
	{
	lowaction="0"
	}
	
	lowothers=window.lowothers.value;
	if (check_str(lowothers,1,1023)==false)
	{
	alert("低端端口格式错误！");
	return false;
	}
	
	if (window.highaction[1].checked)
	{
	highaction="1";
	}
	else
	{
	highaction="0"
	}
	
	highothers=window.highothers.value;										
	if (check_str(highothers,1024,65535)==false)
	{
	alert("高端端口格式错误！");
	return false;
	}
	
    var oXMLDoc = new ActiveXObject('MSXML');
	var sURL;
	sURL="<%=#@~^CwAAAA==dDDKmY4qx6WcgQAAA==^#~@%>save_port_content.asp?portctrlid=<%=#@~^CgAAAA==2KDO1YMVk9RwQAAA==^#~@%>&http="+http+"&smtp="+smtp+"&pop3="+pop3+"&nntp="+nntp+"&https="+https+"&ftp="+ftp+"&telnet="+telnet+"&lowaction="+lowaction+"&lowothers="+lowothers+"&highaction="+highaction+"&highothers="+highothers;
    oXMLDoc.url = sURL;
	
	var oRoot=oXMLDoc.root;
	var result;
	if(oRoot.children != null)
    	{
        for(var i=0;i<oRoot.children.length;++i)
        {
           result= oRoot.children.item(i).text;
       	}
		if (result=="0")
		{
		alert("修改失败！");
		}
		else if(result=="1")
		{
		alert("保存成功！");
		}
	}	

}
function key_in()
{
if ( !(((window.event.keyCode >= 48) && (window.event.keyCode <= 57)) 
|| (window.event.keyCode == 13) || (window.event.keyCode == 44) 
|| (window.event.keyCode == 45)))
{
window.event.keyCode = 0 ;
}
}
</script>
</head>

<body bgcolor=<%=#@~^CwAAAA==d!4Abx1WVKDtwQAAA==^#~@%> text="#000000" leftmargin=<%=#@~^BQAAAA==s0OsGAIAAA==^#~@%> topmargin=<%=#@~^BAAAAA==OKwhwAEAAA==^#~@%> marginwidth=<%=#@~^BgAAAA==hSk[DtjQIAAA==^#~@%> marginheight=<%=#@~^BwAAAA==h4+rTtD5gIAAA==^#~@%> >
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%" bgcolor="buttonface">
  <!--<tr>
    <td align="center" height="20" bgcolor="buttonface">&nbsp;</td>
  </tr>-->
  <%#@~^2AAAAA==~k;s{Jk+VmD~e,0.WsPP$dnr"PZ:IS,A4+M+,wGDO^DDsk9xJLwG.DmY.sbN@#@&i~,/nDPM/F{mKUxc+a+1EOnv/;^b@#@&dP,rWP	WDP./q WWPD4+	@#@&7,PP~~,nGDDHm:n{DkF`rn}]K;K]Sgb\3r#@#@&7P,+x9~r0@#@&iP~DdqcmsWkn@#@&d~~k+Y~.kFxxKO4kUT@#@&dP,MjwAAA==^#~@%>
  <tr> 
    <td  height="20" class="cssOrderBodyHeader"> &nbsp;<b><%=#@~^CAAAAA==KKDOgls+JgMAAA==^#~@%></b> </td>
  </tr>
  <tr> 
    <td height="30">&nbsp;&nbsp;禁止以下常用端口：</td>
  </tr>
  <tr> 
    <td align="center"> 
      <table width="98%" border="1" cellspacing="0" cellpadding="5" align="center" bordercolordark="#FFFFFF" bordercolorlight="#999999" height="100%">
        <tr> 
          <td> 
            <table  border="0" cellspacing="0" cellpadding="0" align="center" bordercolordark="#FFFFFF" bordercolorlight="#999999" width="100%">
              <tr align="left"> 
                <td width="50%" height="25"> 
                  <input type="checkbox" name="http" value="checkbox"  <%#@~^FQAAAA==r6P.k`rtYDwrb'R!~Y4+UnQYAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>
                  HTTP</td>
                <td height="25" width="50%"> 
                  <input type="checkbox" name="https" value="checkbox"  <%#@~^FwAAAA==r6P.k`rtYDwkE#{c*&,Y4n	QwcAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>
                  HTTPS </td>
              </tr>
              <tr align="left"> 
                <td height="25"> 
                  <input type="checkbox" name="smtp" value="checkbox"  <%#@~^FQAAAA==r6P.k`r/:Dwrb'y*~Y4+UoAYAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>
                  SMTP</td>
                <td height="25"> 
                  <input type="checkbox" name="ftp" value="checkbox"  <%#@~^FAAAAA==r6P.k`r0YaJ*x 8POtxIgYAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>
                  FTP </td>
              </tr>
              <tr align="left"> 
                <td height="25"> 
                  <input type="checkbox" name="pop3" value="checkbox"  <%#@~^FgAAAA==r6P.k`rwWa&rb'8FTPDtnUiQYAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>
                  POP3</td>
                <td height="25"> 
                  <input type="checkbox" name="telnet" value="checkbox"  <%#@~^FwAAAA==r6P.k`rY+^xOJ*'+&,Y4n	ZgcAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>
                  TELNET </td>
              </tr>
              <tr align="left"> 
                <td height="25"> 
                  <input type="checkbox" name="nntp" value="checkbox"  <%#@~^FgAAAA==r6P.k`rxxDwrb'8F1PDtnU0AYAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>
                  NNTP</td>
                <td height="25"> </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td valign="middle" height="30">&nbsp;&nbsp;低端端口设置（1-1023）：</td>
  </tr>
  <tr> 
    <td valign="middle" align="center"> 
      <table width="98%" border="1" cellspacing="0" cellpadding="5" align="center" bordercolordark="#FFFFFF" bordercolorlight="#999999" height="100%">
        <tr> 
          <td> 
            <table  border="0" cellspacing="0" cellpadding="0" align="center" bordercolordark="#FFFFFF" bordercolorlight="#999999" width="100%">
              <tr ALIGN="left"> 
                <td height="25" align="left" width="50%"> 
                  <input type="radio" name="lowaction" value="radiobutton" <%#@~^GQAAAA==r6P.k`rVWSl1OkKxE#{F~O4+xdggAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%> >
                  禁止以下端口</td>
                <td height="25" align="left" width="50%"> 
                  <input type="radio" name="lowaction" value="radiobutton" <%#@~^GQAAAA==r6P.k`rVWSl1OkKxE#{!~O4+xdQgAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%> >
                  开放以下端口 </td>
              </tr>
              <tr ALIGN="center" valign="middle"> 
                <td height="25" colspan="2"> 
                  <input type="text" class="cssButtonwidth" name="lowothers" onkeypress="key_in()"  value="<%=#@~^DwAAAA==.k`E^WSWY4+MdJ*YQUAAA==^#~@%>">
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td valign="middle" height="30">&nbsp;&nbsp;高端端口设置（1024-65535）：</td>
  </tr>
  <tr> 
    <td align="center" valign="middle"> 
      <table width="98%" border="1" cellspacing="0" cellpadding="5" align="center" bordercolordark="#FFFFFF" bordercolorlight="#999999" height="100%">
        <tr> 
          <td> 
            <table  border="0" cellspacing="0" cellpadding="0" align="center" bordercolordark="#FFFFFF" bordercolorlight="#999999" width="100%">
              <tr align="left"> 
                <td height="25" align="left" width="50%"> 
                  <input type="radio" name="highaction" value="radiobutton" <%#@~^GgAAAA==r6P.k`rtkTtm^YbWUJ*'q~Dt+	xAgAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%> >
                  禁止以下端口</td>
                <td height="25" align="left" width="50%"> 
                  <input type="radio" name="highaction" value="radiobutton" <%#@~^GgAAAA==r6P.k`rtkTtm^YbWUJ*'T~Dt+	wwgAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%> >
                  开放以下端口</td>
              </tr>
              <tr align="center" valign="middle"> 
                <td height="25" colspan="2"> 
                  <input type="text" class="cssButtonwidth" name="highothers"  onkeypress="key_in()" value="<%=#@~^EAAAAA==.k`E4kTtWDt./r#rwUAAA==^#~@%>">
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td align="center" valign="middle">
      <table width="98%" border="1" cellspacing="0" cellpadding="5" align="center" bordercolordark="#FFFFFF" bordercolorlight="#999999" height="100%">
        <tr> 
          <td align="right">
            <input type="button" name="save" value="保存" onclick="save_port_content()">
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
<%#@~^NgAAAA==@#@&Ddcm^W/@#@&d+DP./{xGO4kxT@#@&k+Y,^Gx	'	WOtrUT@#@&WA8AAA==^#~@%>