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