<%@ LANGUAGE = VBScript.Encode %>
<!--#include virtual="/include/pub_var.inc"-->
<!--#include virtual="/include/data.inc"-->
<%#@~^5AAAAA==@#@&z&确定`Id进行(Hd后台保存@#@&^Vm/dk9'O.b:`Mn;!+/DcEm^lk/rNEb*@#@&/D.nmY4(	0W~x,In;!nkY U+M\+M.m.km4s+k`EKzKC|(1wrJ*@#@&/DDhlOt(U6W~',EtDY2lJzJ~',In;!nkY U+M\+M.m.km4s+k`EjAI.A]{gbHAEbPLPd+WYcdDDKlD4q	0GS&x/O."+-`kOMnCDt&x0K~r&J*#@#@&SUQAAA==^#~@%>
<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_url(){
    //var classid="<%=#@~^BwAAAA==^^ldkk94wIAAA==^#~@%>";
	var URLid=window.URLid.value;
	if (URLid=="")
	   URLid=0;
	var class1=window.class1.value;
	var URLName=window.URLName.value;
    if (class1==""){
		alert("站点组不能为空！");
		window.class1.focus();
		return false;
	}
	else if (URLName==""){
		alert("站点URL不能为空！");
		window.URLName.focus();
		return false;
	}
	else
	{
    var oXMLDoc = new ActiveXObject('MSXML');
	var sURL;
	sURL="<%=#@~^CwAAAA==dDDKmY4qx6WcgQAAA==^#~@%>save_URL.asp?URLid="+URLid+"&class1="+class1+"&URLName="+URLName;
	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="URL_view.asp?classid=<%=#@~^BwAAAA==^^ldkk94wIAAA==^#~@%>";
		   window.URLid.value="";
		   window.URLName.value="";
		   window.URLindex.value="";
		   window.URLName.focus();
		}
		else{
		   alert(result);
		}
	}

	}
}
function del_url(){
    //var classid="<%=#@~^BwAAAA==^^ldkk94wIAAA==^#~@%>";
	var URLid=window.URLid.value;
	var class1=window.class1.value;
	var URLName=window.URLName.value;
	
 	if ((URLid=="")||(URLName=="")){
		alert("请选择要删除的记录！");
		return false;
	}
	else{
       var oXMLDoc = new ActiveXObject('MSXML');
	   var sURL;
	   sURL="<%=#@~^CwAAAA==dDDKmY4qx6WcgQAAA==^#~@%>del_URL.asp?URLid="+URLid+"&class1="+class1+"&URLName="+URLName;
       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.roleviewFrame.location="URL_view.asp?classid=<%=#@~^BwAAAA==^^ldkk94wIAAA==^#~@%>";
		     window.URLid.value="";
		     window.URLName.value="";
			 window.URLindex.value="";
		  }
	  }

	}
}
</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%">
	<%#@~^0gAAAA==~Kx~DMWD,DdEs+~x6O~E取站点组名@#@&id;^'Jkns+1Y,e~0.GsPO4^skkY^sm//~A4+.+,^^ldkk9'J,[,^k	Ycm^lddbN#@#@&dk+Y,.d{1Vm/d'^G	x +Xnm!Ynck;Vb@#@&d^VmdkxCs+{D/|m^C/k`EYHwnUm:+rb@#@&dDkm^Vm/kR^VGd@#@&dknY,Ddm1Vldd{xGY4r	odUMAAA==^#~@%>
  <tr> 
    <td  height="20"  bgcolor="buttonface"> &nbsp;&nbsp;<b><%=#@~^CQAAAA==^^ldkxm:+twMAAA==^#~@%></b> 
    </td>
  </tr>
  
  <tr> 
    <td valign="top"> <iframe ID="roleviewFrame" name="roleviewFrame" src="URL_view.asp?classid=<%=#@~^BwAAAA==^^ldkk94wIAAA==^#~@%>" style="background-color:transparent" scrolling="yes" frameborder="1" width="100%" height="100%"></iframe> 
    </td>
  </tr>
  <tr> 
    <td height="30" bgcolor="buttonface" valign="middle"> 
      
      &nbsp; 编号：<input type="text" readonly class="cssButtonArea" name="URLindex" size="3"><input type="hidden" name="URLid" >
     &nbsp; <!--站点组：<select name="class1">
	  <%#@~^ZwAAAA==@#@&d~,/$V'r/s+1Y~e,0.GsPY(sVb/Y1sC/kJ@#@&7P~dY~DkxmKxU 6+^;D+c/$s*@#@&iP,NW,h4rVPUWDP.dc+W6@#@&iPPCx0AAA==^#~@%>
	  <option value="<%=#@~^DQAAAA==.k`E1Vm//bNrbXQQAAA==^#~@%>"><%=#@~^DgAAAA==.k`E:Xa+xm:E#vQQAAA==^#~@%></option>
	  <%#@~^YAAAAA==@#@&d~,DkR:K\U+XY@#@&iP~sKWw@#@&d,PDk ^VK/P@#@&7~,/nY,./{xGO4kxL@#@&d~PknDP^Kx	'xKY4rxT@#@&d,PnxcAAA==^#~@%>
	  &nbsp;&nbsp;描述:<input type="text" name="Desc" >
      </select>-->
	  &nbsp;&nbsp;&nbsp;站点URL：<input type="text"  name="URLName" size="20">
      <input type="submit" name="Submit" value="保存" onclick="javascript:save_url()">
      <input type="submit" name="delrole" value="删除" onclick="javascript:del_url()">
      <input type="hidden" name="class1" value="<%=#@~^BwAAAA==^^ldkk94wIAAA==^#~@%>">
	  </td>
  </tr>
</table>
</body>
</html>

