<%@ 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_class()
{
    var classid=window.classid.value;
	var classname=window.classname.value;
	var attr="0";   //window.attr.value;
	var classdescription=window.classdescription.value;

	if (trim(classname)=="")
	{
		alert("站点组名不能为空");
		window.classname.focus();
		return false;
	}
	else
	{
    var oXMLDoc = new ActiveXObject('MSXML');
	var sURL;
	sURL="<%=#@~^CwAAAA==dDDKmY4qx6WcgQAAA==^#~@%>save_class.asp?classid="+classid+"&classname="+classname+"&attr="+attr+"&classdescription="+classdescription;
       
    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=="1")
		{
		alert("保存成功");
		window.roleviewFrame.location="class_view.asp";
		window.parent.treeFrame.location="js_treeview.asp";
		window.classindex.value="";
		window.classid.value="";
		window.classname.value="";
		//window.attr.value="0";
		window.classdescription.value="";
		window.classname.focus();
		}
		else
		{
		alert(result);

		}
	}

	}
}
function del_class()
{
    var classid=window.classid.value;

	if (classid=="")
	{
		alert("请选择要删除的记录！");
		window.classname.focus();
		return false;
	}
	else
	{
    var oXMLDoc = new ActiveXObject('MSXML');
	var sURL;
	sURL="<%=#@~^CwAAAA==dDDKmY4qx6WcgQAAA==^#~@%>del_class.asp?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=="1")
		{
		alert("删除成功");
		window.roleviewFrame.location="class_view.asp";
		window.parent.treeFrame.location="js_treeview.asp";
		window.classindex.value="";
		window.classid.value="";
		window.classname.value="";
		//window.attr.value="0";
		window.classdescription.value="";		
		}
		else
		{
		alert(result);
		}
	}

	}
}
</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%">
  <tr> 
    <td  height="20" class="cssOrderBodyHeader"> &nbsp;<b>站点组群管理</b> 
    </td>
  </tr>
  <tr> 
    <td valign="top"> <iframe ID="roleviewFrame" name="roleviewFrame" src="class_view.asp" style="background-color:transparent" scrolling="yes" frameborder="1" width="100%" height="100%"></iframe> 
    </td>
  </tr>
  
  <tr> 
    <td height="30" bgcolor="buttonface">
	  编号：
	  <input type="text" readonly class="cssButtonArea" name="classindex" size="3">
	 <input type="hidden" name="classid">
	  站点组名： 
      <input type="text" name="classname" size="12">
	 <!-- 属性：
	  <select name="attr">
	  <option value="0">WEB列表</option>
	  <option value="1">邮件列表</option>
	  </select>-->
      描述： 
      <input type="text" name="classdescription" size="30">
      <input type="submit" name="Submit" value="保存" onclick="javascript:save_class()">
      <input type="submit" name="delrole" value="删除" onclick="javascript:del_class()">
      </td>
  </tr>
</table>
</body>
</html>
