<%@ LANGUAGE = VBScript.Encode %>
<!--#include virtual="/include/pub_var.inc"-->
<!--#include virtual="/include/data.inc"-->
<%#@~^+gAAAA==@#@&z&确定`Id进行(Hd后台保存@#@&Gx,+.DKD~./EsnP	+6D@#@&/DDhlOt(U6W~',]+$EndDR?n.7+..m.bl8^+k`Jhb:u{&1orr#@#@&kYDhCY4qx6G~',J4YOwl&JJ~[,]+$EndDR?n.7+..m.bl8^+k`JU2"#2"{Hbt2Eb,[Pdn0D`/D.KlDt&xWWS(	/OD"n\v/O.hlY4(	0G~r&r#b@#@&1YD^k9xYMkh`M+5;/YvEmDDVb[E#*@#@&VUsAAA==^#~@%>
<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 state(state)
{

window.portctrlid.disabled=state;
window.sexlist[0].disabled=state;
window.sexlist[1].disabled=state;
window.sexlist_check.disabled=state;

window.classid.disabled=state;
window.ctlaction.disabled=state;
window.save_ctrl2.disabled=state;
window.del_ctrl2.disabled=state;

window.keyclassid.disabled=state;
window.keyctlaction.disabled=state;
window.save_ctrl1.disabled=state;
window.del_ctrl1.disabled=state;

window.ctrllistviewFrame.userlist.disabled=state;
window.ctrlkeyviewFrame.keylist.disabled=state;

}
function save_ctrl()
{
    var ctrlid="<%=#@~^BgAAAA==^DDsbNggIAAA==^#~@%>";
	var golctrlflag;
	var portctrlid=window.portctrlid.value;
	var sexlist;

	
	//全局控制
	if ((window.golctrlflag[0].checked==false)&&(window.golctrlflag[1].checked==false)&&(window.golctrlflag[2].checked==false))
	{
		alert("全局控制不能空！");
		window.golctrlflag[0].focus();
		return false;
	}
	 if (window.golctrlflag[0].checked)
	{
		golctrlflag=0;
		
	}
	//端口控制
	 if (window.golctrlflag[1].checked)
	{
		golctrlflag=1;
				
	}
	if (window.golctrlflag[2].checked)
	{
		golctrlflag=2;
		
	}		
	
	 if (portctrlid=="")
	{
		alert("端口控制不能空！");
		window.portctrlid.focus();
		return false;
	}
	//系统列表
	 if ((window.sexlist[0].checked==false)&&(window.sexlist[1].checked==false)&&(window.sexlist_check.checked==false))
	{
		alert("系统列表不能空！");
		window.sexlist[0].focus();
		return false;
	}
	if ((window.sexlist[0].checked)&&(window.sexlist_check.checked==false))
	{
	sexlist=0;
	}
	if ((window.sexlist[0].checked)&&(window.sexlist_check.checked))
	{
	sexlist=2;
	}
	if ((window.sexlist[1].checked)&&(window.sexlist_check.checked==false))
	{
	sexlist=1;
	}
	if ((window.sexlist[1].checked)&&(window.sexlist_check.checked))
	{
	sexlist=3;
	}

	var oXMLDoc = new ActiveXObject('MSXML');
	var sURL;
	sURL="<%=#@~^CwAAAA==dDDKmY4qx6WcgQAAA==^#~@%>save_ctrl_content.asp?ctrlid="+ctrlid+"&golctrlflag="+golctrlflag+"&portctrlid="+portctrlid+"&sexlist="+sexlist;
	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("保存失败！");
		}
}
}
function save_ctrl_list()
{
    var ctrlid="<%=#@~^BgAAAA==^DDsbNggIAAA==^#~@%>";
	var classid=window.classid.value;
	var ctlaction=window.ctlaction.value;

	if (classid=="")
	{
		alert("站点名不能空！");
		window.classid.focus();
		return false;
	}	
	else if (ctlaction=="")
	{
		alert("控制规则不能空！");
		window.ctlaction.focus();
		return false;
	}
	else
	{
    var oXMLDoc = new ActiveXObject('MSXML');
	var sURL;
	sURL="<%=#@~^CwAAAA==dDDKmY4qx6WcgQAAA==^#~@%>save_ctrl_list.asp?ctrlid="+ctrlid+"&classid="+classid+"&ctlaction="+ctlaction;
    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
		{
		alert("保存成功");
		window.ctrllistviewFrame.location="ctrl_list_view.asp?ctrlid=<%=#@~^BgAAAA==^DDsbNggIAAA==^#~@%>";
		window.classid.value="";
		window.ctlaction.value="";


		}
	}

	}
}
function del_ctrl_list()
{
    var ctrlid="<%=#@~^BgAAAA==^DDsbNggIAAA==^#~@%>";
	var classid=window.classid.value;

 	if (classid=="")
	{
		alert("请选择要删除的记录！");
		return false;
	}
	else
	{
    var oXMLDoc = new ActiveXObject('MSXML');
	var sURL;
	sURL="<%=#@~^CwAAAA==dDDKmY4qx6WcgQAAA==^#~@%>del_ctrl_list.asp?ctrlid="+ctrlid+"&classid="+classid;
	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
		{
		alert("删除成功");
		window.ctrllistviewFrame.location="ctrl_list_view.asp?ctrlid=<%=#@~^BgAAAA==^DDsbNggIAAA==^#~@%>";
		window.classid.value="";
		window.ctlaction.value="";	
		}
	}

	}
}
//key
function save_ctrl_key()
{
    var ctrlid="<%=#@~^BgAAAA==^DDsbNggIAAA==^#~@%>";
	var keyclassid=window.keyclassid.value;
	var ctlaction=window.keyctlaction.value;

	if (keyclassid=="")
	{
		alert("关键字名不能空！");
		window.keyclassid.focus();
		return false;
	}	
	else if (keyctlaction=="")
	{
		alert("控制规则不能空！");
		window.keyctlaction.focus();
		return false;
	}
	else
	{
    var oXMLDoc = new ActiveXObject('MSXML');
	var sURL;
	sURL="<%=#@~^CwAAAA==dDDKmY4qx6WcgQAAA==^#~@%>save_ctrl_key.asp?ctrlid="+ctrlid+"&keyclassid="+keyclassid+"&ctlaction="+ctlaction;
    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
		{
		alert("保存成功");
		window.ctrlkeyviewFrame.location="ctrl_key_view.asp?ctrlid=<%=#@~^BgAAAA==^DDsbNggIAAA==^#~@%>";
		window.keyclassid.value="";
		window.keyctlaction.value="";


		}
	}

	}
}
function del_ctrl_key()
{
    var ctrlid="<%=#@~^BgAAAA==^DDsbNggIAAA==^#~@%>";
	var keyclassid=window.keyclassid.value;

 	if (keyclassid=="")
	{
		alert("请选择要删除的记录！");
		return false;
	}
	else
	{
    var oXMLDoc = new ActiveXObject('MSXML');
	var sURL;
	sURL="<%=#@~^CwAAAA==dDDKmY4qx6WcgQAAA==^#~@%>del_ctrl_key.asp?ctrlid="+ctrlid+"&keyclassid="+keyclassid;
	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
		{
		alert("删除成功");
		window.ctrlkeyviewFrame.location="ctrl_key_view.asp?ctrlid=<%=#@~^BgAAAA==^DDsbNggIAAA==^#~@%>";
		window.classid.value="";
		window.ctlaction.value="";	
		}
	}

	}
}

</script>
</head>
<%#@~^3AAAAA==@#@&/5^'r/+^+1OPCPWDK:~O(VmD.V,ht.nP1YMVrNxELmOD^rN@#@&dnDPmO.^{./{^KxUc+X+m!Yc/$Vb@#@&kW~1/YMcmDDV|.d`roKV^Y.s6VCorb#{JTE,WD~^kY.`1OMVmM/vJoKV1OD^0slTJbb{JFr~Y4+x@#@&dYmY'EY.;J@#@&s/@#@&dDlYnxr0CVknr@#@&x9Pk6@#@&ikMAAA==^#~@%>
<body bgcolor=<%=#@~^CwAAAA==d!4Abx1WVKDtwQAAA==^#~@%> text="#000000" leftmargin=<%=#@~^BQAAAA==s0OsGAIAAA==^#~@%> topmargin=<%=#@~^BAAAAA==OKwhwAEAAA==^#~@%> marginwidth=<%=#@~^BgAAAA==hSk[DtjQIAAA==^#~@%> marginheight=<%=#@~^BwAAAA==h4+rTtD5gIAAA==^#~@%> scroll="no" onload="state(<%=#@~^BQAAAA==dDlOIQIAAA==^#~@%>)">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
  <%#@~^9wAAAA==7,Pd$V{J/V^Y,e~0MWh~D4V1OD^Ph4n.+,mDDsk[xr[^YMsk9@#@&7,P/nO,DdF{^KxUc+X+m!Yc/$Vb@#@&d~~b0P	GY,D/8 nW6PDtnx@#@&iP~P,~mDDsHm:+x.kFcJ1OMVUm:J#@#@&,~P,P~P,P~~,PwK.Y1YD^r[{7l^'./qcrwGDD^YMVr[r#@#@&7,Pnx9~b0@#@&d,PDkFc^VK/n@#@&d~~k+Y,./8'xKO4k	o@#@&nUUAAA==^#~@%>
  <tr> 
    <td  height="20"  class="cssOrderBodyHeader"> 
      <!--<img src="/images/ZD.gif">-->
      &nbsp;<b><%=#@~^CAAAAA==^DDsgls+NgMAAA==^#~@%> </b></td>
  </tr>
  <tr> 
    <td valign="top" height="10" bgcolor="buttonface"></td>
  </tr>
  <tr> 
    <td valign="top" height="25" bgcolor="buttonface"> 
      <table width="98%" border="1" cellspacing="0" cellpadding="5" align="center" bordercolordark="#FFFFFF" bordercolorlight="#999999" height="100%">
        <tr> 
          <td height="25" width="60" > 全局控制： </td>
          <td height="25" >
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="33%"> 
                  <input type="radio" name="golctrlflag" value="radiobutton" <%#@~^KAAAAA==r6P^kYM`mDD^mDk`EoKV^OMV0^Cor##{ETJ,Y4+Umw0AAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%> onBlur="save_ctrl()" onclick="state(true)">
                  完全开放 </td>
                <td width="33%"> 
                  <input type="radio" name="golctrlflag" value="radiobutton" <%#@~^KAAAAA==r6P^kYM`mDD^mDk`EoKV^OMV0^Cor##{EqJ,Y4+UnA0AAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%> onBlur="save_ctrl()" onclick="state(true)">
                  完全封堵 </td>
                <td> 
                  <input type="radio" name="golctrlflag" value="radiobutton" <%#@~^KAAAAA==r6P^kYM`mDD^mDk`EoKV^OMV0^Cor##{E+J,Y4+UnQ0AAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%> onBlur="save_ctrl()" onclick="state(false)">
                  条件控制 </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td valign="top" height="30" bgcolor="buttonface"> 
      <table width="98%" border="1" cellspacing="0" cellpadding="5" align="center" bordercolordark="#FFFFFF" bordercolorlight="#999999" height="100%">
        <tr> 
          <td height="25" width="60">端口控制： </td>
          <td height="25">
<select name="portctrlid" style="width:150" onBlur="save_ctrl()">
         <option value="0"></option>
<%#@~^FQEAAA==d$Vxr/V+1Y,MP6DG:,K$JhrI:/K"SJ@#@&~Pk+DP./qx1WUxcn6m;O`/5s*@#@&P9G,h4bVPxKY,./8RnW6P@#@&,PP,r0,D/8 nW6PDtnx@#@&,P~P,~+XkO~9W@#@&~,P~+	[,kW@#@&,PP,/s\mVxJr@#@&~,PPbWP;/YMcODb:vwGDO^DDsk9m\mVbb{Z/O.vY.kscM/qvJaWDDmD.VbNE#*#~O4+x@#@&P,PP,~~/V7ls'EdVnmDnNr@#@&~,PPnU9Pr0@#@&E0wAAA==^#~@%>
  
              <option value="<%=#@~^EQAAAA==.kFcrwKDY1YMsk9Jb8gUAAA==^#~@%>" <%=#@~^BgAAAA==dV-mVhwIAAA==^#~@%>><%=#@~^EwAAAA==.kFcrwKDY1YMs1m:nJ*pgYAAA==^#~@%></option>
<%#@~^PwAAAA==@#@&P~,DkFRsW7nx6O@#@&VGGa@#@&MdFcmVKdn@#@&/Y~Ddq{xGY4rxT@#@&VxAAAA==^#~@%>

            </select>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td valign="top" height="30" bgcolor="buttonface"> 
      <table width="98%" border="1" cellspacing="0" cellpadding="5" align="center" bordercolordark="#FFFFFF" bordercolorlight="#999999" height="100%">
        <tr> 
          <td height="25" width="60">系统列表： </td>
          <td height="25">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="33%"> 
                  <input type="radio" name="sexlist" value="radiobutton" onBlur="save_ctrl()" <%#@~^RAAAAA==r6P^kYM`mDD^mDk`E/6srkYJ*b'r!J,G.P1/DDcmO.^{./vE/6srkYJbb{J+J,O4+UkRYAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>
                  开放系统列表 </td>
                <td width="33%"> 
                  <input type="radio" name="sexlist" value="radiobutton" onBlur="save_ctrl()" <%#@~^RAAAAA==r6P^kYM`mDD^mDk`E/6srkYJ*b'rFJ,G.P1/DDcmO.^{./vE/6srkYJbb{JfJ,O4+UkxYAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>
                  封堵系统列表 </td>
                <td> 
                  <input type="checkbox" name="sexlist_check" value="checkbox" onBlur="save_ctrl()" <%#@~^RAAAAA==r6P^kYM`mDD^mDk`E/6srkYJ*b'r J,G.P1/DDcmO.^{./vE/6srkYJbb{JfJ,O4+UlBYAAA==^#~@%>checked<%#@~^BgAAAA==n	N~b0JgIAAA==^#~@%>>
                  报警</td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td valign="middle" height="20" bgcolor="buttonface">&nbsp;&nbsp;自定义站点列表：</td>
  </tr>
  <tr> 
    <td valign="middle" bgcolor="buttonface"> 
      <table width="98%" border="1" cellspacing="0" cellpadding="5" align="center" bordercolordark="#FFFFFF" bordercolorlight="#999999" height="100%">
        <tr> 
          <td> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
              <tr> 
                <td colspan="2"><iframe ID="ctrllistviewFrame" name="ctrllistviewFrame" src="ctrl_list_view.asp?ctrlid=<%=#@~^BgAAAA==^DDsbNggIAAA==^#~@%>" style="background-color:transparent" scrolling="yes" frameborder="1" width="100%" height="100%"></iframe> 
                </td>
              </tr>
              <tr> 
                <td height="25" width="50%">站点名称： 
                  <select name="classid" style="width:100">
                    <option value=""></option>
                    <%#@~^cAAAAA==@#@&d7idi/;^'rd+^+^Y,e~WMW:,O4^VkkO^Vm/kJ@#@&77id7/OPM/x^Kxx nX+^EDnv/5^#@#@&didi7NKPAtbVn~	WY,./c+W6@#@&didid~uxwAAA==^#~@%>
                    <option value="<%=#@~^DQAAAA==.k`E1Vm//bNrbXQQAAA==^#~@%>"><%=#@~^DgAAAA==.k`EDXa+xm:E#3QQAAA==^#~@%></option>
                    <%#@~^UgAAAA==@#@&d7idiD/c:K-+	+aY@#@&77idd^GWa@#@&i77diDkR^VGd@#@&di7di/nO,D/xUKY4k	L@#@&7ididRRAAAA==^#~@%>
                  </select>
                </td>
                <td height="2">控制规则： 
                  <select name="ctlaction" style="width:100">
                    <option value=""></option>
                    <option value="0">开放</option>
                    <option value="1">封堵</option>
                    <option value="2">报警</option>
                    <option value="3">封堵且报警</option>
                  </select>
                  <input type="button" name="save_ctrl2" value="保存" onClick="save_ctrl_list()">
                  <input type="button" name="del_ctrl2" value="删除" onClick="del_ctrl_list()">
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td bgcolor="buttonface" valign="middle" height="20" >&nbsp;&nbsp;自定义关键字列表：</td>
  </tr>
  <tr> 
    <td bgcolor="buttonface" valign="middle" > 
      <table width="98%" border="1" cellspacing="0" cellpadding="5" align="center" bordercolordark="#FFFFFF" bordercolorlight="#999999" height="100%">
        <tr> 
          <td> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
              <tr> 
                <td colspan="2"><iframe ID="ctrlkeyviewFrame" name="ctrlkeyviewFrame" src="ctrl_key_view.asp?ctrlid=<%=#@~^BgAAAA==^DDsbNggIAAA==^#~@%>" style="background-color:transparent" scrolling="yes" frameborder="1" width="100%" height="100%"></iframe> 
                </td>
              </tr>
              <tr> 
                <td height="20" width="50%">关键字名： 
                  <select name="keyclassid" style="width:100">
                    <option value=""></option>
                    <%#@~^ZgAAAA==@#@&d~,/$V'r/s+1Y~e,0.GsPY(s3Xm^Cd/r@#@&d~PdnDP./{^W	x nX+m;O`d;^b@#@&7,P9WPStbs+,xGY,Dd W0@#@&d,PmBwAAA==^#~@%>
                    <option value="<%=#@~^EAAAAA==.k`E0+HmVm/krNr#pgUAAA==^#~@%>"><%=#@~^EgAAAA==.k`E0+HmVm/kUls+E#egYAAA==^#~@%></option>
                    <%#@~^jQAAAA==@#@&d~,DkR:K\U+XY@#@&iP~sKWw@#@&d,PDk ^VK/@#@&d~~k+OPMd'	WO4bxo@#@&iP~mD.^{.kR1VWk+@#@&d,Pd+DP^OMV{Md'	WY4rUo@#@&iP~/nO,mGx	xxKY4r	o@#@&7,PFSUAAA==^#~@%>
                  </select>
                </td>
                <td>控制规则： 
                  <select name="keyctlaction" style="width:100">
                    <option value=""></option>
                    <option value="0">开放</option>
                    <option value="1">封堵</option>
                    <option value="2">报警</option>
                    <option value="3">封堵且报警</option>
                  </select>
                  <input type="button" name="save_ctrl1" value="保存" onClick="save_ctrl_key()">
                  <input type="button" name="del_ctrl1" value="删除" onClick="del_ctrl_key()">
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>