Subversion Repositories DevTools

Rev

Rev 5506 | Rev 5983 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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