Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%Option explicitResponse.Expires = 0 ' always load the page, dont store%><%'=====================================================' Update a Licence Text'=====================================================%><!--#include file="common/conf.asp"--><!--#include file="common/globals.asp"--><!--#include file="common/formating.asp"--><!--#include file="common/qstr.asp"--><!--#include file="common/common_subs.asp"--><!--#include file="common/common_dbedit.asp"--><!--#include file="common/_popup_window_common.asp"--><%' Set rfile parameter. This is a return page after LoginCall objPMod.StoreParameter ( "rfile", "admin_baseviews.asp" )'------------ ACCESS CONTROL ------------------%><!--#include file="_access_control_login.asp"--><!--#include file="_access_control_general.asp"--><!--#include file="_access_control_project.asp"--><%'------------ Variable Definition -------------Dim sMessageDim parViewIdDim ViewName'------------ Constants Declaration -----------'------------ Variable Init -------------------parViewId = Request("view_id")sMessage = NULL'----------------------------------------------%><%'-----------------------------------------------------------------------------------------------------------------------------Sub Get_BaseName_Config ( NNview_id, out_name )Dim rsTemp, Query_StringQuery_String = _" select view_id, view_name from views where view_id=" & NNview_idSet rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))out_name = rsTemp("view_name")rsTemp.Close()Set rsTemp = nothingEnd Sub'-----------------------------------------------------------------------------------------------------------------------------------Sub Update_BaseName_Config ( NNview_id, sName)OraDatabase.Parameters.Add "VIEW_ID", NNview_id, ORAPARM_INPUT, ORATYPE_NUMBEROraDatabase.Parameters.Add "VIEW_NAME", sName, ORAPARM_INPUT, ORATYPE_VARCHAR2objEH.ErrorRedirect = FALSEobjEH.TryORA ( OraSession )On Error Resume NextOraDatabase.ExecuteSQL "UPDATE views set view_name = :VIEW_NAME WHERE VIEW_ID = :VIEW_ID"objEH.CatchORA ( OraSession )If objEH.Finally ThenCall OpenInParentWindow ("admin_baseviews.asp" )Call CloseWindowEnd IfOraDatabase.Parameters.Remove "VIEW_ID"OraDatabase.Parameters.Remove "VIEW_NAME"End Sub'-----------------------------------------------------------------------------------------------------------------------------------%><%'------------ Action Requirements -------------------'Process submitionIf CBool(Request("action")) AND objAccessControl.UserLogedIn AND parViewId <> "" AND Request("ViewName") <> "" ThenCall Update_BaseName_Config ( parViewId, Request("ViewName") )End IfCall Get_BaseName_Config ( parViewId, ViewName )%><html><head><title>Release 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 rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css"><link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css"><script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script><!-- TIPS --><script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script><script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script></head><body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();"><form class="form_tight" action="<%=scriptName%>" method="post" name="LicenceName" onsubmit="MM_validateForm('licName','Licence Name','RminLength:3');return document.MM_returnValue;"><table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif"><!-- LOCAL ERROR +++++++++++++++++++++++++++++++++++++++++++++++ --><%Call Messenger ( sMessage , 3, "100%" )%><!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ --><!--#include file="messages/_msg_inline.asp"--><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td><td width="100%"><table width="100%" border="0" cellspacing="1" cellpadding="4"><tr><td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Base Name</td><td nowrap background="images/bg_form_lightbluedark.gif" class="form_item" colspan="3" width="100%"><input name="ViewName" type="text" size="30" maxlength="30" class="form_item" value='<%=ViewName%>'></td></tr></table></td></tr></table><input type="hidden" name="action" value="true"><input type="hidden" name="view_id" value="<%=parViewId%>"></td></tr><tr><td><%=ProgressBar()%></td><td align="right" nowrap class="wform_ttl"><input type="submit" name="btn" value="Save" class="form_btn"><input type="reset" name="btn" value="Close" class="form_btn" onclick="parent.closeIFrame();"></td></tr></table></form></body></html><!-- DESTRUCTOR -------><!--#include file="common/destructor.asp"-->