| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
Option explicit
|
|
|
4 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
5 |
%>
|
|
|
6 |
<%
|
|
|
7 |
'=====================================================
|
|
|
8 |
' Update Runtime Dependency
|
|
|
9 |
'=====================================================
|
|
|
10 |
%>
|
|
|
11 |
<!--#include file="common/conf.asp"-->
|
|
|
12 |
<!--#include file="common/globals.asp"-->
|
|
|
13 |
<!--#include file="common/formating.asp"-->
|
|
|
14 |
<!--#include file="common/qstr.asp"-->
|
|
|
15 |
<!--#include file="common/common_subs.asp"-->
|
|
|
16 |
<!--#include file="common/common_dbedit.asp"-->
|
|
|
17 |
<!--#include file="common/_popup_window_common.asp"-->
|
|
|
18 |
<%
|
|
|
19 |
'------------ ACCESS CONTROL ------------------
|
|
|
20 |
%>
|
|
|
21 |
<!--#include file="_access_control_login.asp"-->
|
|
|
22 |
<!--#include file="_access_control_general.asp"-->
|
|
|
23 |
<!--#include file="_access_control_project.asp"-->
|
|
|
24 |
<%
|
|
|
25 |
'------------ Variable Definition -------------
|
|
|
26 |
Dim parPv_id
|
|
|
27 |
Dim parRtd_id
|
|
|
28 |
Dim rsRTD
|
|
|
29 |
'------------ Constants Declaration -----------
|
|
|
30 |
'------------ Variable Init -------------------
|
|
|
31 |
parPv_id = QStrPar("pv_id")
|
|
|
32 |
parRtd_id = QStrPar("rtd_id")
|
|
|
33 |
'----------------------------------------------
|
|
|
34 |
%>
|
|
|
35 |
<%
|
|
|
36 |
Sub Get_RTD_Details ( NNpv_id, NNrtd_id, OOrs )
|
|
|
37 |
Dim Query_String
|
|
|
38 |
Query_String = _
|
|
|
39 |
" SELECT rtd.rtd_id, pkg.pkg_name, pv.pkg_version, rtd.rtd_comments, rtd.rtd_url,"&_
|
|
|
40 |
" rtd.mod_date"&_
|
|
|
41 |
" FROM packages pkg, package_versions pv, runtime_dependencies rtd"&_
|
|
|
42 |
" WHERE pv.pkg_id = pkg.pkg_id"&_
|
|
|
43 |
" AND rtd.rtd_id = pv.pv_id"&_
|
|
|
44 |
" AND rtd.pv_id = "& NNpv_id &_
|
|
|
45 |
" AND rtd.rtd_id = "& NNrtd_id
|
|
|
46 |
Set OOrs = OraDatabase.CreateDynaset( Query_String, cint(0))
|
|
|
47 |
End Sub
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
Sub Update_Runtime_Dependency ( NNpv_id, NNrtd_id, SSrtd_version, SSrtd_url, SSrtd_comments, NNuser_id )
|
|
|
51 |
|
|
|
52 |
On Error Resume Next
|
|
|
53 |
OraSession.BeginTrans
|
|
|
54 |
OraDatabase.ExecuteSQL "BEGIN Update_Runtime_Dependency ( "& NNpv_id &", "&_
|
|
|
55 |
NNrtd_id &", "&_
|
|
|
56 |
"'"& SSrtd_version &"', "&_
|
|
|
57 |
"'"& SSrtd_url &"', "&_
|
|
|
58 |
"'"& SSrtd_comments &"', "&_
|
|
|
59 |
NNuser_id &" ); END;"
|
|
|
60 |
|
|
|
61 |
If Err.number <> 0 Then
|
|
|
62 |
OraSession.RollBack
|
|
|
63 |
Call RaiseMsgInParent ( enum_MSG_ERROR, Err.description &"<br>"& Err.Source )
|
|
|
64 |
Else
|
|
|
65 |
OraSession.CommitTrans
|
|
|
66 |
Call OpenInParentWindow ( "runtime_dependencies.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
|
|
|
67 |
End If
|
|
|
68 |
|
|
|
69 |
rsTemp.Close
|
|
|
70 |
Set rsTemp = nothing
|
|
|
71 |
End Sub
|
|
|
72 |
%>
|
|
|
73 |
<%
|
|
|
74 |
'Process submition
|
|
|
75 |
If CBool(QStrPar("action")) AND objAccessControl.UserLogedIn Then
|
|
|
76 |
Call Update_Runtime_Dependency ( parPv_id, parRtd_id, Request("FRversion"), Replace( Request("FRurl"), "http://", "" ), Request("FRcomm"), objAccessControl.UserId)
|
|
|
77 |
|
|
|
78 |
Call CloseWindow
|
|
|
79 |
|
|
|
80 |
End If
|
|
|
81 |
%>
|
|
|
82 |
<%Call Get_RTD_Details ( parPv_id, parRtd_id, rsRTD )%>
|
|
|
83 |
<html>
|
|
|
84 |
<head>
|
|
|
85 |
<title>Release Manager</title>
|
|
|
86 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
87 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
88 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
89 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
90 |
<script language="JavaScript" src="images/common.js"></script>
|
|
|
91 |
</head>
|
|
|
92 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
|
|
|
93 |
<form name="rtd" method="post" action="<%=scriptName%>" onSubmit="MM_validateForm('FRversion','Version','RnotHTML','FRurl','URL','notHTML');return document.MM_returnValue;">
|
|
|
94 |
<table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
|
|
|
95 |
<tr>
|
|
|
96 |
<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>
|
|
|
97 |
<td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl"> Update
|
|
|
98 |
Runtime Dependency</td>
|
|
|
99 |
<td background="images/lbox_bg_blue.gif" align="right" width="50%">
|
|
|
100 |
<input type="submit" name="btn" value="Submit" class="form_btn_comp">
|
|
|
101 |
<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
|
|
|
102 |
</td>
|
|
|
103 |
<td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap>
|
|
|
104 |
<img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
|
|
|
105 |
</tr>
|
|
|
106 |
<tr>
|
|
|
107 |
<td height="100%" width="1%"> </td>
|
|
|
108 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
|
|
109 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
110 |
<tr>
|
|
|
111 |
<td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
|
|
|
112 |
<td width="1%" nowrap class="form_group" valign="bottom"></td>
|
|
|
113 |
<td nowrap width="100%"></td>
|
|
|
114 |
</tr>
|
|
|
115 |
<tr>
|
|
|
116 |
<td> </td>
|
|
|
117 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Product</td>
|
|
|
118 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=rsRTD("pkg_name")%></td>
|
|
|
119 |
</tr>
|
|
|
120 |
<tr>
|
|
|
121 |
<td> </td>
|
|
|
122 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Version</td>
|
|
|
123 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
124 |
<input name="FRversion" type="text" class="form_item" size="30" maxlength="50" value="<%=rsRTD("pkg_version")%>">
|
|
|
125 |
</td>
|
|
|
126 |
</tr>
|
|
|
127 |
<tr>
|
|
|
128 |
<td> </td>
|
|
|
129 |
<td valign="top" background="images/bg_form_lightbluedark.gif" class="form_field">URL for 3rd party packages</td>
|
|
|
130 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
131 |
<input name="FRurl" type="text" class="form_item" size="60" maxlength="2000" value="<%=rsRTD("rtd_url")%>">
|
|
|
132 |
<br>
|
|
|
133 |
Example:<br>
|
|
|
134 |
http://www.sun.com/downloads/JavaSDK.zip</td>
|
|
|
135 |
</tr>
|
|
|
136 |
<tr>
|
|
|
137 |
<td width="1%"> </td>
|
|
|
138 |
<td width="1%" valign="top" background="images/bg_form_lightbluedark.gif" class="form_field"><p>Comments</p></td>
|
|
|
139 |
<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>
|
|
|
140 |
</td>
|
|
|
141 |
</tr>
|
|
|
142 |
<tr>
|
|
|
143 |
<td width="1%"> </td>
|
|
|
144 |
<td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
|
|
|
145 |
<td nowrap width="100%"> <p> </p></td>
|
|
|
146 |
</tr>
|
|
|
147 |
</table> </td>
|
|
|
148 |
</tr>
|
|
|
149 |
<tr>
|
|
|
150 |
<td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
|
|
|
151 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
|
|
|
152 |
</tr>
|
|
|
153 |
</table>
|
|
|
154 |
<input type="hidden" name="rtd_id" value="<%=parRtd_id%>">
|
|
|
155 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
|
|
156 |
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
|
|
|
157 |
<input type="hidden" name="action" value="true">
|
|
|
158 |
</form>
|
|
|
159 |
</body>
|
|
|
160 |
</html>
|
|
|
161 |
|
|
|
162 |
|
|
|
163 |
<!-- DESTRUCTOR ------->
|
|
|
164 |
<!--#include file="common/destructor.asp"-->
|