Subversion Repositories DevTools

Rev

Rev 5983 | Rev 6070 | 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 file			     |
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
%>
6048 dpurdie 22
<!--#include file="_access_control_login.asp"-->
5357 dpurdie 23
<!--#include file="_access_control_general.asp"-->
24
<%
25
'------------ Variable Definition -------------
26
Dim rsRep
27
Dim parKeyword
28
Dim parFPkgName, parFPkgVersion
29
Dim FileName
30
Dim sLink
31
'------------ Constants Declaration -----------
32
Const MaxRows = 100
33
'------------ Variable Init -------------------
34
parKeyword = Request("filename")
35
 
36
parFPkgName = Request("fpkgname")
37
If parFPkgName = "" Then  parFPkgName = "*"
38
 
39
parFPkgVersion = Request("fpkgversion")
40
If parFPkgVersion = "" Then  parFPkgVersion = "*"
41
 
42
'----------------------------------------------
43
%>
44
<%
45
'-----------------------------------------------------------------------------------------------------------------------
46
'-----------------------------------------------------------------------------------------------------------------------
47
%>
48
<%
49
'==================== MAIN LINE ===============================
5957 dpurdie 50
If (parKeyword = "") Then 
51
    Call Destroy_All_Objects
52
    Response.Redirect ("index.asp")
53
End If
5357 dpurdie 54
'==============================================================
55
%>
56
<html>
57
<head>
58
<title>Release Manager</title>
59
<link rel="shortcut icon" href="<%=FavIcon%>"/>
60
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
61
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
62
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
63
<link rel="stylesheet" href="images/navigation.css" type="text/css">
64
<script language="JavaScript" src="images/common.js"></script>
5983 dpurdie 65
<!--#include file="_jquery_includes.asp"-->
5357 dpurdie 66
<!-- DROPDOWN MENUS -->
67
<!--#include file="_menu_def.asp"-->
68
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
69
</head>
70
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
71
<!-- MENU LAYERS -------------------------------------->
72
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
73
</div>
74
<!-- HEADER -->
75
<!--#include file="_header.asp"-->
76
<!-- BODY ---->
77
<table width="100%" border="0" cellspacing="0" cellpadding="0">
78
  <tr> 
79
    <td width="1%" background="images/bg_home_orange.gif" valign="top">
80
      <!--#include file="_front_explorer.asp"-->
81
    </td>
82
    <td rowspan="2" valign="top"> 
83
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
84
        <tr> 
85
          <td >
86
 
87
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
88
			<tr> 
89
			  <td width="1%"></td>
90
			  <td width="100%" align="right"><img src="images/h_trsp_dot.gif" width="1" height="20"></td>
91
			  <td width="1%"></td>
92
			</tr>
93
			<tr> 
94
			  <td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="500"></td>
95
			  <td bgcolor="#FFFFFF" valign="top"> 
96
				<!-- PACKAGE SEARCH ------------------------------------------------>
97
				<%
98
				' Format keyword for search
99
				If InStr( parKeyword, "*" ) > 0 Then
100
					' Use wild cards
101
					FileName = Replace( parKeyword, "*", "%")
102
				Else
103
					' Wildcard is not used, hence append card to the end for better results
104
					FileName = parKeyword & "%"
105
				End If
106
 
107
 
108
				OraDatabase.Parameters.Add "FILE_NAME", 	FileName, ORAPARM_INPUT, ORATYPE_VARCHAR2
109
				OraDatabase.Parameters.Add "PKG_NAME", 		Replace( parFPkgName, "*", "%" ), ORAPARM_INPUT, ORATYPE_VARCHAR2
110
				OraDatabase.Parameters.Add "PKG_VERSION", 	Replace( parFPkgVersion, "*", "%" ), ORAPARM_INPUT, ORATYPE_VARCHAR2
111
				OraDatabase.Parameters.Add "PAGE_SIZE", 	MaxRows, ORAPARM_INPUT, ORATYPE_NUMBER
112
 
113
			  	Set rsRep = OraDatabase.DbCreateDynaset( GetQuery("FindFiles.sql"), 0 )
114
 
115
				OraDatabase.Parameters.Remove "FILE_NAME"
116
				OraDatabase.Parameters.Remove "PKG_NAME"
117
				OraDatabase.Parameters.Remove "PKG_VERSION"
118
				OraDatabase.Parameters.Remove "PAGE_SIZE"
119
 
120
				%>
121
 
122
				<table width="100%"  border="0" cellspacing="0" cellpadding="5">
123
				  <tr>
124
                    <td class="body_sect">Files</td>
125
                  </tr>
126
                  <tr>
127
                    <td nowrap bgcolor="#E4E9EC" class="body_txt">
128
						Results for <b><%=parKeyword%></b>. Showing max. <%=MaxRows%> results.
129
					</td>
130
                  </tr>
131
                </table>
132
 
133
 
134
 
135
				<table width="100%" border="0" cellspacing="1" cellpadding="5">
136
				<form name="file_search" method="get" action="<%=ScriptName%>">
137
				  <input type="hidden" name="filename" value="<%=parKeyword%>">
138
				  <input type="hidden" name="listby" value="<%=parListBy%>">
139
				 <tr>
140
                    <td width="20%" nowrap class="body_col" bgcolor="#E4E9EC">File</td>
141
					<td width="40%" nowrap class="body_col" bgcolor="#E4E9EC">Path</td>
142
					<td width="20%" nowrap class="body_col" bgcolor="#E4E9EC">Package Name</td>
143
					<td width="20%" nowrap class="body_col" bgcolor="#E4E9EC">Version</td>
144
					<td width="1%" nowrap class="body_col" bgcolor="#E4E9EC">CheckSum&nbsp;(CKSUM)</td>
145
                  </tr>
146
				  <tr>
147
                    <td nowrap class="body_col" bgcolor="#E4E9EC"></td>
148
					<td nowrap class="body_col" bgcolor="#E4E9EC"></td>
149
					<td nowrap bgcolor="#E4E9EC"><input name="fpkgname" type="text" class="form_item" size="10" value="<%=parFPkgName%>"></td>
150
					<td nowrap bgcolor="#E4E9EC"><input name="fpkgversion" type="text" class="form_item" size="10" value="<%=parFPkgVersion%>"></td>
151
					<td nowrap bgcolor="#E4E9EC"><input name="btn" type="image" src="images/spacer.gif" width="1" height="1" border="0"></td>
152
                  </tr>
153
				  <%
154
				  If rsRep.RecordCount = 0 Then
155
					With Response
156
						.write "<tr>"
157
						.write "<td colspan='5' class='body_row'>Your search <b>"& parKeyword &"</b> did not match any file names.</td>"
158
						.write "</tr>"
159
					End With
160
				  End If
161
 
162
				  Do While ((NOT rsRep.BOF) AND (NOT rsRep.EOF)) 
163
				  	sLink = dpkg_archiveURL & rsRep("pkg_name") &"/"& rsRep("pkg_version") &"/"& Replace( rsRep("file_path") & rsRep("file_name"), "\", "/" )
164
				  %>
165
					  <tr> 
166
						<td nowrap class="body_row"  bgcolor="#F5F5F5"><a href="<%=sLink%>" class="body_link"><img src='images/rex_images/ext_blank.gif' border='0' hspace='2' align='absmiddle'><%=Highlight_Substring( rsRep("file_name"), parKeyword )%></a></td>
167
						<td nowrap class="body_row"  bgcolor="#F5F5F5"><%=rsRep("file_path")%></td>
168
						<td nowrap class="body_row"  bgcolor="#F5F5F5"><%=rsRep("pkg_name")%></td>
169
						<td nowrap class="body_row"  bgcolor="#F5F5F5"><a href="dependencies.asp?pv_id=<%=rsRep("pv_id")%>" class="body_link"><%=rsRep("pkg_version")%></a></td>
170
						<td nowrap class="body_txt_gray"  bgcolor="#F5F5F5"><%=rsRep("crc_cksum")%></td>
171
					  </tr>
172
				  <%  
173
					  rsRep.MoveNext
174
				  Loop
175
 
176
				  rsRep.Close()
177
				  %>
178
				  <tr> 
179
					<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
180
				  </tr>
181
 
182
				  </form>
183
				</table>
184
				<br>
185
				<!------------------------------------------------------------>			
186
 
187
 
188
				</td>
189
			  <td background="images/lbox_bgside_white.gif">&nbsp;</td>
190
			</tr>
191
		  </table>
192
 
193
		  </td>
194
        </tr>
195
      </table>
196
    </td>
197
    <td width="11%">&nbsp;</td>
198
  </tr>
199
  <tr> 
200
    <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>
201
    <td>&nbsp;</td>
202
  </tr>
203
</table>
204
<!-- FOOTER -->
205
<!--#include file="_footer.asp"-->
206
</body>
207
</html>