| 5357 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| New Release |
|
|
|
6 |
'| |
|
|
|
7 |
'=====================================================
|
|
|
8 |
%>
|
|
|
9 |
<%
|
|
|
10 |
Option explicit
|
|
|
11 |
' Good idea to set when using redirect
|
|
|
12 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
13 |
%>
|
|
|
14 |
<!--#include file="common/conf.asp"-->
|
|
|
15 |
<!--#include file="common/globals.asp"-->
|
|
|
16 |
<!--#include file="common/formating.asp"-->
|
|
|
17 |
<!--#include file="common/qstr.asp"-->
|
|
|
18 |
<!--#include file="common/common_subs.asp"-->
|
|
|
19 |
<!--#include file="common/_rtree_common.asp"-->
|
|
|
20 |
<!--#include file="common/_form_window_common.asp"-->
|
|
|
21 |
<%
|
|
|
22 |
' Set rfile parameter. This is a return page after Login
|
|
|
23 |
Call objPMod.StoreParameter ( "rfile", "rtree.asp" )
|
|
|
24 |
objPMod.PersistInQryString("proj_id")
|
|
|
25 |
objPMod.PersistInQryString("branch")
|
|
|
26 |
'------------ ACCESS CONTROL ------------------
|
|
|
27 |
%>
|
|
|
28 |
<!--#include file="_access_control_login.asp"-->
|
|
|
29 |
<!--#include file="_access_control_general.asp"-->
|
|
|
30 |
<!--#include file="_access_control_project.asp"-->
|
|
|
31 |
<%
|
|
|
32 |
'------------ Variable Definition -------------
|
|
|
33 |
Dim objSortHelper
|
|
|
34 |
Dim rsQry
|
|
|
35 |
Dim parProjId
|
|
|
36 |
Dim isSelectDisabled
|
|
|
37 |
'------------ Constants Declaration -----------
|
|
|
38 |
'------------ Variable Init -------------------
|
|
|
39 |
parProjId = Request("proj_id")
|
|
|
40 |
'----------------------------------------------
|
|
|
41 |
%>
|
|
|
42 |
<%
|
|
|
43 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
44 |
Sub GetWipReleaseList ( nProjId )
|
|
|
45 |
Dim rsQry, query
|
|
|
46 |
OraDatabase.Parameters.Add "PROJ_ID", nProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
47 |
|
|
|
48 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("WipReleaseList.sql"), ORADYN_DEFAULT )
|
|
|
49 |
|
|
|
50 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
|
|
51 |
|
|
|
52 |
If rsQry.RecordCount < 1 Then
|
|
|
53 |
Response.write "No recent releases found."
|
|
|
54 |
End If
|
|
|
55 |
|
|
|
56 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
57 |
Response.write "<a href='form_add_release.asp?source_rtag_id="& rsQry("rtag_id") &"&"& objPMod.ComposeURL() &"' class='body_link'>"&_
|
|
|
58 |
ReleaseIcon( rsQry("official") ) & rsQry("rtag_name").Value &" ["& rsQry("version") &"]</a><br>"
|
|
|
59 |
rsQry.MoveNext
|
|
|
60 |
WEnd
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
rsQry.Close
|
|
|
65 |
Set rsQry = Nothing
|
|
|
66 |
End Sub
|
|
|
67 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
68 |
Function GetReleaseList ( nProjId, nRtagId )
|
|
|
69 |
Dim rsQry, Selected, aComboItems, lastItem, i
|
|
|
70 |
|
|
|
71 |
OraDatabase.Parameters.Add "PROJ_ID", nProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
72 |
OraDatabase.Parameters.Add "RTAG_ID", nRtagId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
73 |
|
|
|
74 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ReleasesCombo.sql"), ORADYN_DEFAULT )
|
|
|
75 |
|
| 5957 |
dpurdie |
76 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
|
|
77 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
78 |
|
| 5357 |
dpurdie |
79 |
If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
|
|
|
80 |
aComboItems = rsQry.GetRows()
|
|
|
81 |
|
|
|
82 |
Else
|
|
|
83 |
Err.Raise 8, "Sub GetReleaseList", "Empty record set returned. nProjId="& nProjId
|
|
|
84 |
|
|
|
85 |
End If
|
|
|
86 |
|
|
|
87 |
rsQry.Close
|
|
|
88 |
Set rsQry = Nothing
|
|
|
89 |
|
|
|
90 |
'-- Return Combo Items Array
|
|
|
91 |
GetReleaseList = aComboItems
|
|
|
92 |
|
|
|
93 |
End Function
|
|
|
94 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
95 |
Function GetProjectList ( nProjId )
|
|
|
96 |
Dim rsQry, Selected, aComboItems, lastItem, i
|
|
|
97 |
|
|
|
98 |
OraDatabase.Parameters.Add "PROJ_ID", nProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
99 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ProjectsCombo.sql"), ORADYN_DEFAULT )
|
| 5957 |
dpurdie |
100 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
| 5357 |
dpurdie |
101 |
|
|
|
102 |
If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
|
|
|
103 |
aComboItems = rsQry.GetRows()
|
|
|
104 |
|
|
|
105 |
Else
|
|
|
106 |
Err.Raise 8, "Sub GetProjectList", "Empty record set returned. nProjId="& nProjId
|
|
|
107 |
|
|
|
108 |
End If
|
|
|
109 |
|
|
|
110 |
rsQry.Close
|
|
|
111 |
Set rsQry = Nothing
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
'-- Alter combo item link column to work with OnChange javascript
|
|
|
115 |
lastItem = Ubound( aComboItems, 2 )
|
|
|
116 |
For i = 0 To lastItem
|
|
|
117 |
aComboItems(0, i) = ScriptName &"?from_proj_id="& aComboItems(0, i) &"&"& objPMod.ComposeURL()
|
|
|
118 |
Next
|
|
|
119 |
|
|
|
120 |
'-- Return Combo Items Array
|
|
|
121 |
GetProjectList = aComboItems
|
|
|
122 |
|
|
|
123 |
End Function
|
|
|
124 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
125 |
%>
|
|
|
126 |
<%
|
|
|
127 |
'------------ RUN BEFORE PAGE RENDER ----------
|
|
|
128 |
'-- Redirect if known from_bom_id
|
|
|
129 |
If Request("rtag_id_list") <> "" Then
|
|
|
130 |
Call OpenInWindow ( "form_add_release.asp?source_rtag_id="& Request("rtag_id_list") &"&"& objPMod.ComposeURL() )
|
|
|
131 |
End If
|
|
|
132 |
|
|
|
133 |
'----------------------------------------------
|
|
|
134 |
%>
|
|
|
135 |
|
|
|
136 |
<html>
|
|
|
137 |
<head>
|
|
|
138 |
<title>Release Manager</title>
|
|
|
139 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
140 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
141 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
142 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
143 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
144 |
<script language="JavaScript" src="images/common.js"></script>
|
|
|
145 |
|
|
|
146 |
<!-- DROPDOWN MENUS -->
|
|
|
147 |
<!--#include file="_menu_def.asp"-->
|
|
|
148 |
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
|
|
|
149 |
|
|
|
150 |
</head>
|
|
|
151 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
|
|
152 |
<!-- MENU LAYERS -------------------------------------->
|
|
|
153 |
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)">
|
|
|
154 |
</div>
|
|
|
155 |
<!-- TIPS LAYERS -------------------------------------->
|
|
|
156 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
|
|
157 |
<!----------------------------------------------------->
|
|
|
158 |
<!-- HEADER -->
|
|
|
159 |
<!--#include file="_header.asp"-->
|
|
|
160 |
<!-- BODY ---->
|
|
|
161 |
|
|
|
162 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
163 |
<%
|
|
|
164 |
'-- FROM START ---------------------------------------------------------------------------------------------------------
|
|
|
165 |
objFormComponent.FormName = "FormName"
|
|
|
166 |
objFormComponent.Action = "form_add_release.asp?proj_id="&Request("proj_id")
|
|
|
167 |
Call objFormComponent.FormStart()
|
|
|
168 |
%>
|
|
|
169 |
<tr>
|
|
|
170 |
<td width="1" background="images/bg_home_orange.gif" valign="top">
|
|
|
171 |
</td>
|
|
|
172 |
<td width="100%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF"><table width="10" border="0" cellspacing="0" cellpadding="0">
|
|
|
173 |
<tr>
|
|
|
174 |
<td width="1%"></td>
|
|
|
175 |
<td width="100%">
|
|
|
176 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
177 |
<tr>
|
|
|
178 |
<td nowrap class="form_ttl">NEW RELEASE </td>
|
|
|
179 |
<td align="right" valign="bottom"></td>
|
|
|
180 |
</tr>
|
|
|
181 |
</table></td>
|
|
|
182 |
<td width="1%"></td>
|
|
|
183 |
</tr>
|
|
|
184 |
<tr>
|
|
|
185 |
<td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
|
|
|
186 |
<td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
|
|
|
187 |
<td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
|
|
|
188 |
</tr>
|
|
|
189 |
<tr>
|
|
|
190 |
<td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
|
|
|
191 |
<td bgcolor="#FFFFFF" valign="top">
|
|
|
192 |
<table width="100%" border="0" cellspacing="10" cellpadding="0">
|
|
|
193 |
<tr>
|
|
|
194 |
<td width="33%" valign="top" class="body_txt"> <strong>Create New</strong><br><br>
|
|
|
195 |
<a href="form_add_release.asp?NEXT=OK&<%=objPMod.ComposeURL()%>" class="body_link" title="Create release without any contents."><img src="images/i_rtag_new.gif" width="17" height="15" hspace="5" vspace="3" border="0" align="absmiddle">Blank </a><br>
|
|
|
196 |
<br>
|
|
|
197 |
</td>
|
|
|
198 |
<td width="1" background="images/bg_bage_2.gif"><img src="images/spacer.gif" width="1" height="250"></td>
|
|
|
199 |
<td nowrap width="34%" valign="top" class="body_txt"> <strong>Create from Recent </strong><br><br>
|
|
|
200 |
<%Call GetWipReleaseList ( parProjId )%>
|
|
|
201 |
</td>
|
|
|
202 |
<td width="1" background="images/bg_bage_2.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
203 |
<td width="33%" valign="top" class="body_txt" nowrap> <strong>Create From Other</strong><br>
|
|
|
204 |
<br>
|
|
|
205 |
<%=objFormComponent.Combo ( "from_proj_id", GetProjectList( Request("from_proj_id") ), TRUE, "class='form_ivalue' onChange=""MM_jumpMenu('parent',this,0)"" " )%><br>
|
|
|
206 |
<%
|
|
|
207 |
isSelectDisabled = "disabled"
|
|
|
208 |
If Request("from_proj_id") <> "" Then
|
|
|
209 |
Response.write objFormComponent.Combo ( "source_rtag_id", GetReleaseList( Request("from_proj_id"), Request("source_rtag_id") ), FALSE, "class='form_ivalue' " )
|
|
|
210 |
Response.write "<br>"
|
|
|
211 |
isSelectDisabled = ""
|
|
|
212 |
End If
|
|
|
213 |
%>
|
|
|
214 |
|
|
|
215 |
<%=objFormComponent.SubmitButton ( "Select", "class='form_ivalue' "& isSelectDisabled )%>
|
|
|
216 |
</td>
|
|
|
217 |
</tr>
|
|
|
218 |
</table>
|
|
|
219 |
|
|
|
220 |
</td>
|
|
|
221 |
<td background="images/lbox_bgside_white.gif"> </td>
|
|
|
222 |
</tr>
|
|
|
223 |
<tr>
|
|
|
224 |
<td background="images/bg_action_norm.gif" ></td>
|
|
|
225 |
<td align="right" background="images/bg_action_norm.gif" ><input type="reset" name="btn" value="Cancel" class="form_btn" onClick="history.back();"></td>
|
|
|
226 |
<td background="images/bg_action_norm.gif" ><img src="images/h_trsp_dot.gif" width="5" height="30"></td>
|
|
|
227 |
</tr>
|
|
|
228 |
<tr>
|
|
|
229 |
<td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
|
|
|
230 |
<td background="images/lbox_bg_blue.gif"></td>
|
|
|
231 |
<td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
|
|
|
232 |
</tr>
|
|
|
233 |
</table>
|
|
|
234 |
|
|
|
235 |
<!-- ACTION BUTTONS ---------------------------------------------->
|
|
|
236 |
<!-- ACTION BUTTONS END ------------------------------------------></td>
|
|
|
237 |
<td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
|
|
238 |
</tr>
|
|
|
239 |
<tr>
|
|
|
240 |
<td valign="bottom" align="center" background="images/bg_home_orange.gif"><img src="images/img_vtree.gif" width="86" height="99" vspace="20" hspace="30"></td>
|
|
|
241 |
<td background="images/bg_lght_gray.gif" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="500"></td>
|
|
|
242 |
</tr>
|
|
|
243 |
<%
|
|
|
244 |
Call objFormComponent.FormEnd()
|
|
|
245 |
'-- FROM END ----------------------------------------------------------------------------------------------------------------
|
|
|
246 |
%>
|
|
|
247 |
</table>
|
|
|
248 |
<!-- FOOTER -->
|
|
|
249 |
<!--#include file="_footer.asp"-->
|
|
|
250 |
</body>
|
|
|
251 |
</html>
|