| 5357 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| FIND |
|
|
|
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 |
Const allowNoPackage = TRUE ' Allow page display without pvid being present
|
|
|
14 |
%>
|
|
|
15 |
<!--#include file="common/conf.asp"-->
|
|
|
16 |
<!--#include file="common/globals.asp"-->
|
|
|
17 |
<!--#include file="common/formating.asp"-->
|
|
|
18 |
<!--#include file="common/qstr.asp"-->
|
|
|
19 |
<!--#include file="common/common_subs.asp"-->
|
|
|
20 |
<!--#include file="common/common_dbedit.asp"-->
|
|
|
21 |
<!--#include file="_tabs.asp"-->
|
|
|
22 |
<!--#include file="common/_package_common.asp"-->
|
|
|
23 |
<%
|
|
|
24 |
'------------ ACCESS CONTROL ------------------
|
|
|
25 |
%>
|
| 6181 |
dpurdie |
26 |
<!--#include file="_access_control_login_optional.asp"-->
|
| 5357 |
dpurdie |
27 |
<!--#include file="_access_control_general.asp"-->
|
|
|
28 |
<%
|
|
|
29 |
'------------ Variable Definition -------------
|
|
|
30 |
Dim KeyWord
|
|
|
31 |
Dim parKeyword
|
|
|
32 |
Dim parRtagId
|
|
|
33 |
Dim rsRep
|
|
|
34 |
Dim imgLock
|
|
|
35 |
Dim parSearchType
|
|
|
36 |
Dim sLink
|
|
|
37 |
Dim rsQry
|
|
|
38 |
Dim sPkgVersion
|
|
|
39 |
'------------ Constants Declaration -----------
|
|
|
40 |
Const IMG_OFFICIAL = "<img src='images/i_locked.gif' width='7' height='10' hspace='5' vspace='2' alt='Package is official'>"
|
|
|
41 |
Const IMG_NOT_OFFICIAL = "<img src='images/spacer.gif' width='7' height='10' hspace='5' vspace='2'>"
|
|
|
42 |
Const MaxRows = 100
|
|
|
43 |
'------------ Variable Init -------------------
|
|
|
44 |
parKeyword = Request("keyword")
|
|
|
45 |
parRtagId = Request("rtag_id")
|
|
|
46 |
parSearchType = Request("searchtype")
|
|
|
47 |
'----------------------------------------------
|
|
|
48 |
%>
|
|
|
49 |
<%
|
|
|
50 |
'==================== MAIN LINE ===============================
|
|
|
51 |
|
|
|
52 |
' Check for Required parameters
|
|
|
53 |
If (parSearchType = "") OR (nEnvTab = "") Then
|
| 5957 |
dpurdie |
54 |
Call Destroy_All_Objects
|
| 5357 |
dpurdie |
55 |
Response.Redirect ("dependencies.asp?rtag_id="& Request("rtag_id"))
|
|
|
56 |
End If
|
|
|
57 |
'==============================================================
|
|
|
58 |
%>
|
|
|
59 |
<html>
|
|
|
60 |
<head>
|
|
|
61 |
<title><%=Title(parRtagId)%></title>
|
|
|
62 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
63 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
64 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
| 6579 |
dpurdie |
65 |
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
66 |
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
67 |
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
|
| 5357 |
dpurdie |
68 |
<!--#include file="_jquery_includes.asp"-->
|
|
|
69 |
<!-- TIPS -->
|
| 6579 |
dpurdie |
70 |
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
|
|
|
71 |
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
|
| 5357 |
dpurdie |
72 |
<!-- DROPDOWN MENUS -->
|
|
|
73 |
<!--#include file="_menu_def.asp"-->
|
| 6579 |
dpurdie |
74 |
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
|
| 5357 |
dpurdie |
75 |
</head>
|
|
|
76 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
|
|
77 |
<!-- HEADER -->
|
|
|
78 |
<!--#include file="_header.asp"-->
|
|
|
79 |
<!-- BODY ---->
|
|
|
80 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
81 |
<tr>
|
|
|
82 |
<td valign="top" width="1" background="images/bg_bage.gif">
|
|
|
83 |
<!-- LEFT -->
|
|
|
84 |
<!--#include file="_environment.asp"-->
|
|
|
85 |
</td>
|
|
|
86 |
<td width="1" bgcolor="#999999"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
|
|
87 |
<td valign="top" width="100%">
|
|
|
88 |
<!-- MIDDLE -->
|
|
|
89 |
|
|
|
90 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
91 |
<tr>
|
|
|
92 |
<td width="1%"></td>
|
|
|
93 |
<td width="100%" align="right"><img src="images/h_trsp_dot.gif" width="1" height="20"></td>
|
|
|
94 |
<td width="1%"></td>
|
|
|
95 |
</tr>
|
|
|
96 |
<tr>
|
|
|
97 |
<td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="480"></td>
|
|
|
98 |
<td bgcolor="#FFFFFF" valign="top">
|
|
|
99 |
<%
|
|
|
100 |
If InStr( Trim(parKeyword), "*") > 0 Then
|
|
|
101 |
KeyWord = Replace( Trim(parKeyword), "*", "%" )
|
|
|
102 |
Else
|
|
|
103 |
KeyWord = "%"& Trim(parKeyword) &"%"
|
|
|
104 |
End If
|
|
|
105 |
|
|
|
106 |
OraDatabase.Parameters.Add "KEYWORD", KeyWord, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
107 |
OraDatabase.Parameters.Add "RTAG_ID", parRtagId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
108 |
OraDatabase.Parameters.Add "SEARCH_AREA", nEnvTab, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
109 |
OraDatabase.Parameters.Add "RECORD_SET", NULL, ORAPARM_OUTPUT, ORATYPE_CURSOR
|
|
|
110 |
OraDatabase.Parameters.Add "PAGE_SIZE", MaxRows, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
111 |
|
|
|
112 |
If parSearchType = "1" Then
|
|
|
113 |
' Package Search
|
|
|
114 |
OraDatabase.ExecuteSQL "BEGIN PK_ENVIRONMENT.FIND_PACKAGE ( :KEYWORD, :RTAG_ID, :SEARCH_AREA, :RECORD_SET ); END;"
|
|
|
115 |
ElseIf parSearchType = "2" Then
|
|
|
116 |
' File Search
|
|
|
117 |
OraDatabase.ExecuteSQL "BEGIN PK_ENVIRONMENT.FIND_FILE ( :KEYWORD, :RTAG_ID, :SEARCH_AREA, :PAGE_SIZE, :RECORD_SET ); END;"
|
|
|
118 |
End If
|
|
|
119 |
|
|
|
120 |
Set rsRep = OraDatabase.Parameters("RECORD_SET").Value
|
|
|
121 |
|
|
|
122 |
OraDatabase.Parameters.Remove "KEYWORD"
|
|
|
123 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
124 |
OraDatabase.Parameters.Remove "SEARCH_AREA"
|
|
|
125 |
OraDatabase.Parameters.Remove "PAGE_SIZE"
|
|
|
126 |
OraDatabase.Parameters.Remove "RECORD_SET"
|
|
|
127 |
%>
|
|
|
128 |
|
|
|
129 |
<table width="100%" border="0" cellspacing="0" cellpadding="5">
|
|
|
130 |
<tr>
|
|
|
131 |
<td>
|
|
|
132 |
<%If parSearchType = "1" Then%>
|
|
|
133 |
<span class="body_sect">Find Package</span>
|
|
|
134 |
<%ElseIf parSearchType = "2" Then%>
|
|
|
135 |
<span class="body_sect">Find File</span>
|
|
|
136 |
<%End If%>
|
|
|
137 |
</td>
|
|
|
138 |
</tr>
|
|
|
139 |
<tr>
|
|
|
140 |
<td nowrap bgcolor="#E4E9EC" class="body_txt">
|
|
|
141 |
Results for <b><%=Trim(parKeyword)%></b><%If parSearchType = "2" Then%>. Showing max. <%=MaxRows%> results.<%End If%>
|
|
|
142 |
</td>
|
|
|
143 |
</tr>
|
|
|
144 |
</table>
|
|
|
145 |
|
|
|
146 |
|
|
|
147 |
<%If parSearchType = "1" Then%>
|
|
|
148 |
<!-- PACKAGE SEARCH ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
149 |
<table width="100%" border="0" cellspacing="1" cellpadding="5">
|
|
|
150 |
<form name="frm" method="get" action="<%=ScriptName%>">
|
|
|
151 |
<!-- Heading -->
|
|
|
152 |
<tr>
|
|
|
153 |
<td width="1" nowrap class="body_col" bgcolor="#E4E9EC"></td>
|
|
|
154 |
<td width="1" nowrap class="body_col" bgcolor="#E4E9EC">Package Name</td>
|
|
|
155 |
<td width="1" nowrap class="body_col" bgcolor="#E4E9EC">Version</td>
|
|
|
156 |
<td width="1" nowrap class="body_col" bgcolor="#E4E9EC">Location</td>
|
|
|
157 |
<td width="100%" nowrap class="body_col" bgcolor="#E4E9EC">
|
|
|
158 |
<SPAN id="IMG_EXPAND_ALL_REASONS" name="IMG_EXPAND_ALL_REASONS" style="display:block;">
|
|
|
159 |
<a href="javascript:;" onClick="ExpandAll(); ToggleDisplay('IMG_EXPAND_ALL_REASONS','IMG_COLLAPSE_ALL_REASONS');" title="Show All Reasons for Release.">
|
|
|
160 |
<img src="icons/b_expand_all.gif" border="0" align="absmiddle" hspace="3">
|
|
|
161 |
</a>Reason for Release
|
|
|
162 |
</SPAN>
|
|
|
163 |
<SPAN id="IMG_COLLAPSE_ALL_REASONS" name="IMG_COLLAPSE_ALL_REASONS" style="display:none;">
|
|
|
164 |
<a href="javascript:;" onClick="CollapseAll(); ToggleDisplay('IMG_EXPAND_ALL_REASONS','IMG_COLLAPSE_ALL_REASONS');" title="Hide All Reasons for Release.">
|
|
|
165 |
<img src="icons/b_collapse_all.gif" border="0" align="absmiddle" hspace="3">
|
|
|
166 |
</a>Reason for Release
|
|
|
167 |
</SPAN>
|
|
|
168 |
</td>
|
| 5632 |
dpurdie |
169 |
<td colspan=2 width="1" nowrap class="body_col" bgcolor="#E4E9EC">Last Modified</td>
|
| 5357 |
dpurdie |
170 |
</tr>
|
|
|
171 |
<%
|
|
|
172 |
If rsRep.RecordCount = 0 Then
|
|
|
173 |
With Response
|
|
|
174 |
.write "<tr>"
|
|
|
175 |
.write "<td colspan='6' class='body_row'>Found 0 records.</td>"
|
|
|
176 |
.write "</tr>"
|
|
|
177 |
End With
|
|
|
178 |
End If
|
|
|
179 |
|
|
|
180 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
181 |
|
|
|
182 |
imgLock = IMG_NOT_OFFICIAL
|
|
|
183 |
If (rsRep("dlocked") = "Y") OR (rsRep("dlocked") = "A") Then
|
|
|
184 |
imgLock = IMG_OFFICIAL
|
|
|
185 |
End If%>
|
|
|
186 |
<tr>
|
|
|
187 |
<td valign="top" bgcolor="#F5F5F5"><%=imgLock%></td>
|
|
|
188 |
<td nowrap class="body_txt" valign="top" bgcolor="#F5F5F5"><%=Highlight_Substring( rsRep("pkg_name"), Trim(parKeyword) )%></td>
|
|
|
189 |
<td nowrap valign="top" bgcolor="#F5F5F5"><a href="dependencies.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=parRtagId%>" class="body_link"><%=rsRep("pkg_version")%></a></td>
|
|
|
190 |
<td nowrap class="body_txt" valign="top" bgcolor="#F5F5F5"><%= GetEnvName(rsRep("env_area")) &" / "& rsRep("view_name")%></td>
|
|
|
191 |
<td valign="top" bgcolor="#F5F5F5" >
|
|
|
192 |
<DIV style="display:block;" id="SHORT_RFO<%= rsRep("env_area") &"_"& rsRep("pv_id")%>" name="SHORT_RFO<%= rsRep("env_area") &"_"& rsRep("pv_id")%>" onclick="ToggleDisplay('SHORT_RFO<%= rsRep("env_area") &"_"& rsRep("pv_id")%>','FULL_RFO<%= rsRep("env_area") &"_"& rsRep("pv_id")%>');">
|
|
|
193 |
<a href="#" class="row_txt_area" title="Click to see more...">Click to see more...</a>
|
|
|
194 |
</DIV>
|
|
|
195 |
<DIV id="FULL_RFO<%= rsRep("env_area") &"_"& rsRep("pv_id")%>" name="FULL_RFO<%= rsRep("env_area") &"_"& rsRep("pv_id")%>" style="display:none;" onclick="ToggleDisplay('SHORT_RFO<%= rsRep("env_area") &"_"& rsRep("pv_id")%>','FULL_RFO<%= rsRep("env_area") &"_"& rsRep("pv_id")%>');">
|
|
|
196 |
<a href="#" class="body_txt" title="Click to hide."><%=NewLine_To_BR ( To_HTML( rsRep("comments") ) )%></a>
|
|
|
197 |
</DIV>
|
|
|
198 |
</td>
|
|
|
199 |
<td nowrap class="body_txt" valign="top" bgcolor="#F5F5F5">
|
| 5632 |
dpurdie |
200 |
<%= DisplayDateTimeSecs (rsRep("modified_stamp"))%>
|
| 5357 |
dpurdie |
201 |
</td>
|
| 5632 |
dpurdie |
202 |
<td nowrap class="body_txt" valign="top" bgcolor="#F5F5F5">
|
|
|
203 |
<%= "<a href='mailto:"& rsRep("user_email") &"' class='txt_linked'><img src='images/i_user.gif' width='10' height='13' hspace='2' border='0' align='absmiddle' alt='"& rsRep("full_name") &" <"& rsRep("user_email") &">'>"& rsRep("full_name") &"</a> "%>
|
|
|
204 |
</td>
|
|
|
205 |
|
| 5357 |
dpurdie |
206 |
</tr>
|
|
|
207 |
<% rsRep.MoveNext
|
|
|
208 |
WEnd
|
|
|
209 |
|
|
|
210 |
rsRep.Close()
|
|
|
211 |
%>
|
|
|
212 |
<tr>
|
|
|
213 |
<td colspan='6' background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
214 |
</tr>
|
|
|
215 |
</form>
|
|
|
216 |
</table>
|
|
|
217 |
<br>
|
|
|
218 |
|
|
|
219 |
<%ElseIf parSearchType = "2" Then%>
|
|
|
220 |
<!-- FILE SEARCH ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
221 |
<table width="100%" border="0" cellspacing="1" cellpadding="5">
|
|
|
222 |
<tr>
|
|
|
223 |
<td width="20%" nowrap class="body_col" bgcolor="#E4E9EC">File Name</td>
|
|
|
224 |
<td width="20%" nowrap class="body_col" bgcolor="#E4E9EC">Path</td>
|
|
|
225 |
<td width="20" nowrap class="body_col" bgcolor="#E4E9EC">Package Name</td>
|
|
|
226 |
<td width="20%" nowrap class="body_col" bgcolor="#E4E9EC">Version</td>
|
|
|
227 |
<td width="20%" nowrap class="body_col" bgcolor="#E4E9EC">CheckSum (CKSUM)</td>
|
|
|
228 |
</tr>
|
|
|
229 |
<%
|
|
|
230 |
If rsRep.RecordCount = 0 Then
|
|
|
231 |
With Response
|
|
|
232 |
.write "<tr>"
|
|
|
233 |
.write "<td colspan='5' class='body_row'>Found 0 records.</td>"
|
|
|
234 |
.write "</tr>"
|
|
|
235 |
End With
|
|
|
236 |
End If
|
|
|
237 |
|
|
|
238 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
239 |
|
|
|
240 |
If IsNull(rsRep("file_path")) Then
|
|
|
241 |
' DEVI-050252 - must not call Get_Pkg_Short_Info() with a null or empty string, so check the patch_id before doing so.
|
|
|
242 |
If IsNull(rsRep("patch_id")) OR rsRep("patch_id") = "" Then
|
|
|
243 |
sLink = dpkg_archiveURL & rsRep("pkg_name") &"/"& rsRep("pkg_version") &"/"& Replace( rsRep("file_name"), "\", "/" )
|
|
|
244 |
Else
|
|
|
245 |
Call Get_Pkg_Short_Info( rsRep("patch_id"), NULL, NULL, sPkgVersion, NULL, NULL, NULL )
|
|
|
246 |
sLink = dpkg_archiveURL & rsRep("pkg_name") &"/"& sPkgVersion &"/"& rsRep("file_name")
|
|
|
247 |
End If
|
|
|
248 |
Else
|
|
|
249 |
sLink = dpkg_archiveURL & rsRep("pkg_name") &"/"& rsRep("pkg_version") &"/"& Replace( rsRep("file_path") & rsRep("file_name"), "\", "/" )
|
|
|
250 |
End If
|
|
|
251 |
%>
|
|
|
252 |
<tr>
|
|
|
253 |
<td class="body_row" valign="top" bgcolor="#F5F5F5"><a href="<%=sLink%>" class="body_link"><%=Highlight_Substring( rsRep("file_name"), Trim(parKeyword) )%></td>
|
|
|
254 |
<td nowrap class="body_row" bgcolor="#F5F5F5"><%=rsRep("file_path")%></td>
|
|
|
255 |
<td nowrap class="body_row" bgcolor="#F5F5F5"><%=rsRep("pkg_name")%></td>
|
|
|
256 |
<td nowrap class="body_row" bgcolor="#F5F5F5"><a href="dependencies.asp?rtag_id=<%=parRtagId%>&pv_id=<%=rsRep("pv_id")%>" class="body_link"><%=rsRep("pkg_version")%></a></td>
|
|
|
257 |
<td nowrap class="body_txt_gray" bgcolor="#F5F5F5"><%=rsRep("crc_cksum")%></td>
|
|
|
258 |
</tr>
|
|
|
259 |
<% rsRep.MoveNext
|
|
|
260 |
WEnd
|
|
|
261 |
|
|
|
262 |
rsRep.Close()
|
|
|
263 |
%>
|
|
|
264 |
<tr>
|
|
|
265 |
<td colspan='6' background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
266 |
</tr>
|
|
|
267 |
</table>
|
|
|
268 |
<br>
|
|
|
269 |
<!-- END OF SEARCH ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
270 |
<%End If%>
|
|
|
271 |
</td>
|
|
|
272 |
<td width="1%" background="images/lbox_bgside_white.gif"> </td>
|
|
|
273 |
</tr>
|
|
|
274 |
</table>
|
|
|
275 |
<!-- END MIDDLE --------></td>
|
|
|
276 |
</tr>
|
|
|
277 |
</table>
|
|
|
278 |
<!-- FOOTER -->
|
|
|
279 |
<!--#include file="_footer.asp"-->
|
|
|
280 |
</body>
|
|
|
281 |
</html>
|