Subversion Repositories DevTools

Rev

Rev 5957 | Rev 6048 | 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 -->
5983 dpurdie 56
<!--#include file="_jquery_includes.asp"-->
5357 dpurdie 57
<!--#include file="_menu_def.asp"-->
58
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
59
</head>
60
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
61
<!-- MENU LAYERS -------------------------------------->
62
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
63
</div>
64
<!-- HEADER -->
65
<!--#include file="_header.asp"-->
66
<!-- BODY ---->
67
<table width="100%" border="0" cellspacing="0" cellpadding="0">
68
  <tr> 
69
    <td width="1%" background="images/bg_home_orange.gif" valign="top">
70
      <!--#include file="_front_explorer.asp"-->
71
    </td>
72
    <td rowspan="2" width="1%" valign="top"> 
73
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
74
        <tr> 
75
          <td width="1%">
76
 
77
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
78
			<tr> 
79
			  <td width="1%"></td>
80
			  <td width="100%" align="right"><img src="images/h_trsp_dot.gif" width="1" height="20"></td>
81
			  <td width="1%"></td>
82
			</tr>
83
			<tr> 
84
			  <td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="480"></td>
85
			  <td bgcolor="#FFFFFF" valign="top"> 
86
				<!-- PACKAGE SEARCH ------------------------------------------------>
87
				<%
88
				  OraDatabase.Parameters.Add "KEYWORD", Trim(parKeyword), ORAPARM_INPUT, ORATYPE_VARCHAR2
89
				  OraDatabase.Parameters.Add "BROWSE", parBrowse, ORAPARM_INPUT, ORATYPE_VARCHAR2
90
 
91
				  If parBrowse = "" Then
92
				  		Set rsRep = OraDatabase.DbCreateDynaset( GetQuery("FindPackageName.sql"), 0 )
93
				  Else
94
				  		Set rsRep = OraDatabase.DbCreateDynaset( GetQuery("BrowsePackageName.sql"), 0 )
95
				  End If
96
 
97
				  OraDatabase.Parameters.Remove "KEYWORD"
98
				  OraDatabase.Parameters.Remove "BROWSE"
99
				%>
100
 
101
				<table width="100%"  border="0" cellspacing="0" cellpadding="5">
102
				  <tr>
103
                    <td><span class="body_sect">Package Names</span><img src="images/spacer.gif" width="600" height="1"></td>
104
                  </tr>
105
                  <tr>
106
                    <td nowrap bgcolor="#E4E9EC" class="body_txt">
107
					<%If parBrowse <> "" Then%>
108
						Index <b><%=parBrowse%></b>
109
					<%Else%>
110
						Results for <b><%=parKeyword%></b> 
111
					<%End If%>
112
					</td>
113
                  </tr>
114
                </table>
115
 
116
 
117
 
118
				<table width="100%" border="0" cellspacing="1" cellpadding="5">
119
				  <%
120
				  If rsRep.RecordCount = 0 Then
121
					With Response
122
						.write "<tr>"
123
						.write "<td class='body_row'>Your search <b>"& parKeyword &"</b> did not match any packages.</td>"
124
						.write "</tr>"
125
					End With
126
				  End If
127
 
128
				  While ((NOT rsRep.BOF) AND (NOT rsRep.EOF)) %>
129
					  <tr> 
130
						<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>
131
					  </tr>
132
				  <%  rsRep.MoveNext
133
				  WEnd
134
 
135
				  rsRep.Close()
136
				  %>
137
				  <tr> 
138
					<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
139
				  </tr>
140
				</table>
141
				<br>
142
				<!------------------------------------------------------------>			
143
 
144
 
145
				</td>
146
			  <td width="1%" background="images/lbox_bgside_white.gif">&nbsp;</td>
147
			</tr>
148
		  </table>
149
 
150
		  </td>
151
        </tr>
152
      </table>
153
    </td>
154
    <td width="100%">&nbsp;</td>
155
  </tr>
156
  <tr> 
157
    <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>
158
    <td>&nbsp;</td>
159
  </tr>
160
</table>
161
<!-- FOOTER -->
162
<!--#include file="_footer.asp"-->
163
</body>
164
</html>