Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

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