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