Rev 5958 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%'====================================================='| |'| wRemoveBulkNodes |'| |'=====================================================%><%Option explicitResponse.Expires = 0%><!--#include file="common/globals.asp"--><!--#include file="common/config.asp"--><!--#include file="common/common_subs.asp"--><!--#include file="common/_popup_window_common.asp"--><%'------------ ACCESS CONTROL ------------------%><!--#include file="_access_control_general.asp"--><%'------------ VARIABLE DEFINITION -------------Dim rsQry'------------ CONSTANTS DECLARATION -----------'------------ VARIABLE INIT -------------------parBom_id = Request("bom_id")'------------ CONDITIONS ----------------------'----------------------------------------------%><%'--------------------------------------------------------------------------------------------------------------------------Sub RemoveNodeList ()On Error Resume NextOraDatabase.Parameters.Add "NODE_ID_LIST", Request("node_id_list"), ORAPARM_INPUT, ORATYPE_STRINGOraDatabase.Parameters.Add "BOM_ID", Request("bom_id"), ORAPARM_INPUT, ORATYPE_NUMBERobjEH.TryORA ( OraSession )OraDatabase.ExecuteSQL _"BEGIN pk_Network_Node.Remove_Node ( :NODE_ID_LIST, :BOM_ID ); END;"objEH.CatchORA ( OraSession )OraDatabase.Parameters.Remove "NODE_ID_LIST"OraDatabase.Parameters.Remove "BOM_ID"End Sub'--------------------------------------------------------------------------------------------------------------------------%><%'------------ RUN BEFORE PAGE RENDER ----------If Request("action") Then' --- Form is Valid ---Call RemoveNodeList()If objEH.Finally ThenCall OpenInParentWindow ( Request("rfile") &"?"& objPMod.ComposeURL() )Call CloseWindow()End IfElseSession( enumVALIDATION_CONTROL_SESSION ) = NULL ' Clean session for usageEnd If'----------------------------------------------%><html><head><title>Deployment Manager</title><link rel="shortcut icon" href="<%=FavIcon%>"/><meta HTTP-EQUIV="Pragma" CONTENT="no-cache"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="scripts/deployment_manager.css?ver=<%=VixVerNum%>" rel="stylesheet" type="text/css"><script language="JavaScript" src="scripts/common.js?ver=<%=VixVerNum%>"></script></head><body background="images/bg_form.gif" leftmargin="0" topmargin="0" onLoad="self.focus()"><table width="100%" border="0" cellspacing="0" cellpadding="10"><form name="FormName" method="post" action="<%=SCRIPT_NAME%>"><tr><td background="images/bg_login.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td> </td><td align="right"><input name="btn" type="submit" class="form_btn" value="Remove"><input name="btn" type="reset" class="form_btn" value="Cancel" onClick="self.close();"></td></tr></table></td></tr><tr><td class="body_txt"><span class="body_h1">Remove Network Node</span> <br>Select one or more Network Nodes.<hr width="100%" size="1" noshade color="#ACA899"></td></tr><tr><td><table width="100%" border="0" cellspacing="3" cellpadding="0"><!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ --><%If NOT objEH.Finally Then%><tr><td><img src="images/spacer.gif" width="1" height="1"></td><td colspan="2"><%objEH.DisplayMessage()%></td></tr><%End If%><!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --><tr><td width="1" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td><td width="30%" background="images/bg_table_border.gif"><table width="100%" border="0" cellspacing="1" cellpadding="2"><tr><td align="right" nowrap background="images/bg_table_col.gif" class="body_col">Network Node</td></tr></table></td><td width="70%" align="right" background="images/bg_table_col.gif" class="body_col"></td></tr><%OraDatabase.Parameters.Add "BOM_ID", parBom_id, ORAPARM_INPUT, ORATYPE_NUMBERSet rsQry = OraDatabase.DbCreateDynaset( GetQuery ("NetworkNodeList.sql"), ORADYN_DEFAULT )While (NOT rsQry.BOF) AND (NOT rsQry.EOF)%><tr><td nowrap class="form_iname"><input type="checkbox" name="node_id_list" value="<%=rsQry("node_id")%>"></td><td valign="top" nowrap class="body_txt"><img src="icons/<%=rsQry("node_icon")%>" hspace="2" align="absmiddle"><%=rsQry("node_name")%></td><td valign="top"> </td></tr><%rsQry.MoveNext%><%If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then%><tr><td colspan="3" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td></tr><%End If%><%WEndOraDatabase.Parameters.Remove "BOM_ID"%><tr><td colspan="3" background="images/bg_table_border.gif"><table width="100%" border="0" cellspacing="1" cellpadding="2"><tr><td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td></tr></table></td></tr></table></td></tr><%=objPMod.ComposeHiddenTags ()%><input type="hidden" name="action" value="true"></form></table></body></html><!--#include file="common/globals_destructor.asp"-->