| 62 |
rsolanki |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| view by package |
|
|
|
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 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
<%
|
|
|
18 |
'------------ ACCESS CONTROL ------------------
|
|
|
19 |
%>
|
|
|
20 |
|
|
|
21 |
<%
|
|
|
22 |
'------------ Variable Definition -------------
|
|
|
23 |
Dim rsRep
|
|
|
24 |
Dim parKeyword
|
|
|
25 |
Dim parBrowse
|
|
|
26 |
'------------ Constants Declaration -----------
|
|
|
27 |
'------------ Variable Init -------------------
|
|
|
28 |
parKeyword = Request("bomname")
|
|
|
29 |
parBrowse = Request("browse")
|
|
|
30 |
'----------------------------------------------
|
|
|
31 |
%>
|
|
|
32 |
<%
|
|
|
33 |
'-----------------------------------------------------------------------------------------------------------------------
|
|
|
34 |
'-----------------------------------------------------------------------------------------------------------------------
|
|
|
35 |
%>
|
|
|
36 |
<%
|
|
|
37 |
'==================== MAIN LINE ===============================
|
|
|
38 |
If (parKeyword = "") AND (parBrowse = "") Then Response.Redirect ("index.asp")
|
|
|
39 |
'==============================================================
|
|
|
40 |
%>
|
|
|
41 |
<html>
|
|
|
42 |
<head>
|
|
|
43 |
<title>Deployment Manager</title>
|
|
|
44 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
45 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
46 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
47 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
48 |
<script language="JavaScript" src="images/common.js"></script>
|
|
|
49 |
<!-- DROPDOWN MENUS -->
|
|
|
50 |
<!--#include file="_front_explorer.asp"-->
|
|
|
51 |
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
|
|
|
52 |
</head>
|
|
|
53 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
|
|
54 |
<!-- MENU LAYERS -------------------------------------->
|
|
|
55 |
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)">
|
|
|
56 |
</div>
|
|
|
57 |
|
|
|
58 |
<!-- BODY ---->
|
|
|
59 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
60 |
<tr>
|
|
|
61 |
<td width="1%" background="images/bg_home_orange.gif" valign="top">
|
|
|
62 |
|
|
|
63 |
</td>
|
|
|
64 |
<td rowspan="2" width="1%" valign="top">
|
|
|
65 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
66 |
<tr>
|
|
|
67 |
<td width="1%">
|
|
|
68 |
|
|
|
69 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
70 |
<tr>
|
|
|
71 |
<td width="1%"></td>
|
|
|
72 |
<td width="100%" align="right"><img src="images/h_trsp_dot.gif" width="1" height="20"></td>
|
|
|
73 |
<td width="1%"></td>
|
|
|
74 |
</tr>
|
|
|
75 |
<tr>
|
|
|
76 |
<td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="480"></td>
|
|
|
77 |
<td bgcolor="#FFFFFF" valign="top">
|
|
|
78 |
<!-- PACKAGE SEARCH ------------------------------------------------>
|
|
|
79 |
<%
|
|
|
80 |
OraDatabase.Parameters.Add "KEYWORD", parKeyword, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
81 |
OraDatabase.Parameters.Add "BROWSE", parBrowse, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
82 |
|
|
|
83 |
If parBrowse = "" Then
|
|
|
84 |
Set rsRep = OraDatabase.DbCreateDynaset( GetQuery("FindBomName.sql"), 0 )
|
|
|
85 |
Else
|
|
|
86 |
Set rsRep = OraDatabase.DbCreateDynaset( GetQuery("BrowsePackageName.sql"), 0 )
|
|
|
87 |
End If
|
|
|
88 |
|
|
|
89 |
OraDatabase.Parameters.Remove "KEYWORD"
|
|
|
90 |
OraDatabase.Parameters.Remove "BROWSE"
|
|
|
91 |
%>
|
|
|
92 |
|
|
|
93 |
<table width="100%" border="0" cellspacing="0" cellpadding="5">
|
|
|
94 |
<tr>
|
|
|
95 |
<td><span class="body_sect">Package Names</span><img src="images/spacer.gif" width="600" height="1"></td>
|
|
|
96 |
</tr>
|
|
|
97 |
<tr>
|
|
|
98 |
<td nowrap bgcolor="#E4E9EC" class="body_txt">
|
|
|
99 |
<%If parBrowse <> "" Then%>
|
|
|
100 |
Index <b><%=parBrowse%></b>
|
|
|
101 |
<%Else%>
|
|
|
102 |
Results for <b><%=parKeyword%></b>
|
|
|
103 |
<%End If%>
|
|
|
104 |
</td>
|
|
|
105 |
</tr>
|
|
|
106 |
</table>
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
<table width="100%" border="0" cellspacing="1" cellpadding="5">
|
|
|
111 |
<%
|
|
|
112 |
If rsRep.RecordCount = 0 Then
|
|
|
113 |
With Response
|
|
|
114 |
.write "<tr>"
|
|
|
115 |
.write "<td class='body_row'>Your search <b>"& parKeyword &"</b> did not match any packages.</td>"
|
|
|
116 |
.write "</tr>"
|
|
|
117 |
End With
|
|
|
118 |
End If
|
|
|
119 |
|
|
|
120 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF)) %>
|
|
|
121 |
<tr>
|
|
|
122 |
<td nowrap class="body_row" valign="top" bgcolor="#F5F5F5"><a href="view_by_version.asp?pkg_id=<%=rsRep("pkg_id")%>&listby=<%=parListBy%>" class="body_link"><%=Highlight_Substring( rsRep("pkg_name"), parKeyword )%></a></td>
|
|
|
123 |
</tr>
|
|
|
124 |
<% rsRep.MoveNext
|
|
|
125 |
WEnd
|
|
|
126 |
|
|
|
127 |
rsRep.Close()
|
|
|
128 |
%>
|
|
|
129 |
<tr>
|
|
|
130 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
131 |
</tr>
|
|
|
132 |
</table>
|
|
|
133 |
<br>
|
|
|
134 |
<!------------------------------------------------------------>
|
|
|
135 |
|
|
|
136 |
|
|
|
137 |
</td>
|
|
|
138 |
<td width="1%" background="images/lbox_bgside_white.gif"> </td>
|
|
|
139 |
</tr>
|
|
|
140 |
</table>
|
|
|
141 |
|
|
|
142 |
</td>
|
|
|
143 |
</tr>
|
|
|
144 |
</table>
|
|
|
145 |
</td>
|
|
|
146 |
<td width="100%"> </td>
|
|
|
147 |
</tr>
|
|
|
148 |
<tr>
|
|
|
149 |
<td valign="bottom" align="center" background="images/bg_home_orange.gif"><img src="images/img_gear.gif" width="107" height="107" vspace="20" hspace="30"></td>
|
|
|
150 |
<td> </td>
|
|
|
151 |
</tr>
|
|
|
152 |
</table>
|
|
|
153 |
<!-- FOOTER -->
|
|
|
154 |
<!--#include file="_footer.asp"-->
|
|
|
155 |
</body>
|
|
|
156 |
</html>
|