<%@ LANGUAGE = VBScript.Encode %>
<!--#include virtual="/include/pub_var.inc"-->
<%#@~^wAAAAA==@#@&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@#@&hDgAAA==^#~@%>
<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 save_port()
{
    var portctrlid=window.portctrlid.value;
	var portctrlname=window.portctrlname.value;
	var description=window.description.value;
	
	if (trim(portctrlname)=="")
	{
		alert("端口名不能为空");
		window.portctrlname.focus();
		return false;
	}
	else
	{
    var oXMLDoc = new ActiveXObject('MSXML');
	var sURL;
	sURL="<%=#@~^CwAAAA==dDDKmY4qx6WcgQAAA==^#~@%>save_port.asp?portctrlid="+portctrlid+"&portctrlname="+portctrlname+"&description="+description;
    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.portviewFrame.location="port_view.asp";
		window.parent.treeFrame.location="dk_treeview.asp";
		window.portctrlid.value="";
		window.portctrlname.value="";
		window.description.value="";
		window.count.value="";
		window.portctrlname.focus();	
}
function del_port()
{
    var portctrlid=window.portctrlid.value;

	if (portctrlid=="")
	{
		alert("请选择要删除的记录！");
		return false;
	}
	else
	{
    var oXMLDoc = new ActiveXObject('MSXML');
	var sURL;
	sURL="<%=#@~^CwAAAA==dDDKmY4qx6WcgQAAA==^#~@%>del_port.asp?portctrlid="+portctrlid;
    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.portviewFrame.location="port_view.asp";
		window.parent.treeFrame.location="dk_treeview.asp";
		window.portctrlid.value="";
		window.portctrlname.value="";
		window.description.value="";
		window.count.value="";	
}
</script>
</head>

<body bgcolor=<%=#@~^CwAAAA==d!4Abx1WVKDtwQAAA==^#~@%> text="#000000" leftmargin=<%=#@~^BQAAAA==s0OsGAIAAA==^#~@%> topmargin=<%=#@~^BAAAAA==OKwhwAEAAA==^#~@%> marginwidth=<%=#@~^BgAAAA==hSk[DtjQIAAA==^#~@%> marginheight=<%=#@~^BwAAAA==h4+rTtD5gIAAA==^#~@%> scroll="no">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
  <tr> 
    <td  height="20" bgcolor="buttonface">
	<!--<img src="/images/ZD.gif">-->&nbsp;<b>端口组管理</b>
    </td>
  </tr>
  <tr> 
    <td valign="top"> <iframe ID="portviewFrame" name="portviewFrame" src="port_view.asp" style="background-color:transparent" scrolling="yes" frameborder="1" width="100%" height="100%"></iframe> 
    </td>
  </tr>
  
  <tr> 
    <td height="30" bgcolor="buttonface"> &nbsp;
	  编号:<input type="text" readonly class="cssButtonArea" name="count" size="3">
	  <input type="hidden" readonly class="cssButtonArea" name="portctrlid" size="3">
      端口管理名称： 
      <input type="text" name="portctrlname" size="15">
      端口描述: 
      <input type="text" name="description" size="20">
      <input type="submit" name="Submit" value="保存" onclick="javascript:save_port()">
      <input type="submit" name="delgroup" value="删除" onclick="javascript:del_port()">
      </td>
  </tr>
</table>
</body>
</html>
