Subversion Repositories DevTools

Rev

Rev 119 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
Option explicit
Response.Expires = 0    ' always load the page, dont store
%>
<%
'=====================================================
'                                       Update Runtime Dependency
'=====================================================
%>
<!--#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"-->
<%
'------------ ACCESS CONTROL ------------------
%>
<!--#include file="_access_control_login.asp"-->
<!--#include file="_access_control_general.asp"-->
<!--#include file="_access_control_project.asp"-->
<%
'------------ Variable Definition -------------
Dim parPv_id
Dim parRtd_id
Dim rsRTD
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
parPv_id = QStrPar("pv_id")
parRtd_id = QStrPar("rtd_id")
'----------------------------------------------
%>
<%
Sub Get_RTD_Details ( NNpv_id, NNrtd_id, OOrs )
        Dim Query_String
        Query_String = _
        " SELECT rtd.rtd_id,  pkg.pkg_name, pv.pkg_version, rtd.rtd_comments, rtd.rtd_url,"&_
        "       rtd.mod_date"&_
        "  FROM packages pkg, package_versions pv, runtime_dependencies rtd"&_
        " WHERE pv.pkg_id = pkg.pkg_id"&_
        "   AND rtd.rtd_id = pv.pv_id"&_
        "   AND rtd.pv_id = "& NNpv_id &_
        "   AND rtd.rtd_id = "& NNrtd_id
        Set OOrs = OraDatabase.CreateDynaset( Query_String, cint(0))
End Sub


Sub Update_Runtime_Dependency ( NNpv_id, NNrtd_id, SSrtd_version, SSrtd_url, SSrtd_comments, NNuser_id )
        
        On Error Resume Next
        OraSession.BeginTrans
        OraDatabase.ExecuteSQL "BEGIN Update_Runtime_Dependency ( "& NNpv_id &", "&_
                                                                                                                          NNrtd_id &", "&_
                                                                  "'"& SSrtd_version &"', "&_
                                                                                                                          "'"& SSrtd_url &"', "&_
                                                                                                                          "'"& SSrtd_comments &"', "&_
                                                                                                                          NNuser_id &" ); END;"
        
        If Err.number <> 0 Then
                OraSession.RollBack
                Call RaiseMsgInParent ( enum_MSG_ERROR, Err.description &"<br>"& Err.Source )
        Else
                OraSession.CommitTrans
                Call OpenInParentWindow ( "runtime_dependencies.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
        End If 
        
        rsTemp.Close
        Set rsTemp = nothing
End Sub
%>
<%
'Process submition
If CBool(QStrPar("action")) AND objAccessControl.UserLogedIn Then
        Call Update_Runtime_Dependency ( parPv_id, parRtd_id, Request("FRversion"), Replace( Request("FRurl"), "http://", "" ), Request("FRcomm"), objAccessControl.UserId)
        
        Call CloseWindow
        
End If
%>
<%Call Get_RTD_Details ( parPv_id, parRtd_id, rsRTD )%>
<html>
<head>
<title>Release Manager</title>
<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" type="text/css">
<link rel="stylesheet" href="images/navigation.css" type="text/css">
<script language="JavaScript" src="images/common.js"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<form name="rtd" method="post" action="<%=scriptName%>" onSubmit="MM_validateForm('FRversion','Version','RnotHTML','FRurl','URL','notHTML');return document.MM_returnValue;">
  <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
    <tr> 
      <td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/i_new_pkg_off.gif" width="21" height="23" hspace="5" border="0"></td>
      <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">&nbsp;Update 
        Runtime Dependency</td>
      <td background="images/lbox_bg_blue.gif" align="right" width="50%"> 
        <input type="submit" name="btn" value="Submit" class="form_btn_comp">
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
      </td>
      <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap> 
        <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
    </tr>
    <tr> 
      <td height="100%" width="1%">&nbsp;</td>
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif"> 
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
          <tr> 
            <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
            <td width="1%" nowrap class="form_group" valign="bottom"></td>
            <td nowrap width="100%"></td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Product</td>
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=rsRTD("pkg_name")%></td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Version</td>
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"> 
              <input name="FRversion" type="text" class="form_item"  size="30" maxlength="50" value="<%=rsRTD("pkg_version")%>"> 
            </td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td valign="top" background="images/bg_form_lightbluedark.gif" class="form_field">URL for 3rd party packages</td>
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"> 
              <input name="FRurl" type="text" class="form_item" size="60" maxlength="2000" value="<%=rsRTD("rtd_url")%>">
              <br>
              Example:<br>
              http://www.sun.com/downloads/JavaSDK.zip</td>
          </tr>
          <tr> 
            <td width="1%">&nbsp;</td>
            <td width="1%" valign="top" background="images/bg_form_lightbluedark.gif" class="form_field"><p>Comments</p></td>
            <td width="100%" valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><textarea name="FRcomm" cols="60" rows="10" class="form_item"><%=Format4HTML(rsRTD("rtd_comments"))%></textarea> 
            </td>
          </tr>
          <tr> 
            <td width="1%">&nbsp;</td>
            <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
            <td nowrap width="100%"> <p>&nbsp;</p></td>
          </tr>
        </table> </td>
    </tr>
    <tr>
      <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
    </tr>
  </table>
<input type="hidden" name="rtd_id" value="<%=parRtd_id%>">
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
<input type="hidden" name="action" value="true">   
</form>
</body>
</html>


<!-- DESTRUCTOR ------->
<!--#include file="common/destructor.asp"-->