| Line 53... |
Line 53... |
| 53 |
If (parSearchType = "") OR (nEnvTab = "") Then
|
53 |
If (parSearchType = "") OR (nEnvTab = "") Then
|
| 54 |
Call Destroy_All_Objects
|
54 |
Call Destroy_All_Objects
|
| 55 |
Response.Redirect ("dependencies.asp?rtag_id="& Request("rtag_id"))
|
55 |
Response.Redirect ("dependencies.asp?rtag_id="& Request("rtag_id"))
|
| 56 |
End If
|
56 |
End If
|
| 57 |
'==============================================================
|
57 |
'==============================================================
|
| - |
|
58 |
'----------------------------------------------
|
| - |
|
59 |
'
|
| - |
|
60 |
Sub InsertJavaScript%>
|
| - |
|
61 |
<script type="text/javascript" charset="utf-8">
|
| - |
|
62 |
<%If parSearchType = "2" Then%>
|
| - |
|
63 |
var table;
|
| - |
|
64 |
$(document).ready(function() {
|
| - |
|
65 |
/* Init DataTables */
|
| - |
|
66 |
|
| - |
|
67 |
// Format a search string for DataTables
|
| - |
|
68 |
// Convert all * into a %
|
| - |
|
69 |
function formatSearch(str) {
|
| - |
|
70 |
return str.replace(/\*/g,'%');
|
| - |
|
71 |
}
|
| - |
|
72 |
|
| - |
|
73 |
// Setup - add a text input to each cell within the header row marked with a search class
|
| - |
|
74 |
// Must be done before the dataTable is created as the DOM is changed
|
| - |
|
75 |
$('#tfiles .search th').each( function (colIdx) {
|
| - |
|
76 |
var title = $(this).text();
|
| - |
|
77 |
if ( (title) ) {
|
| - |
|
78 |
var el = $('<input id=inp_' + title.toLowerCase() + ' type="search" placeholder="Search ' + title + '" />');
|
| - |
|
79 |
$(this).html(el);
|
| - |
|
80 |
el.on('keyup change', function(ev) {
|
| - |
|
81 |
if (ev.keyCode == 13) { //only on enter keypress (code 13)
|
| - |
|
82 |
table
|
| - |
|
83 |
.column(colIdx)
|
| - |
|
84 |
.search(formatSearch(this.value))
|
| - |
|
85 |
.draw();
|
| - |
|
86 |
}
|
| - |
|
87 |
});
|
| - |
|
88 |
}
|
| - |
|
89 |
});
|
| - |
|
90 |
|
| - |
|
91 |
// Add Jason listeners
|
| - |
|
92 |
$("#tfiles").on('preXhr.dt', function ( e, settings, data ) {
|
| - |
|
93 |
showGlobalProgress();
|
| - |
|
94 |
});
|
| - |
|
95 |
|
| - |
|
96 |
$("#tfiles").on('xhr.dt', function ( e, settings, data ) {
|
| - |
|
97 |
hideGlobalProgress();
|
| - |
|
98 |
});
|
| - |
|
99 |
|
| - |
|
100 |
// Create the DataTable
|
| - |
|
101 |
$.fn.dataTable.ext.errMode = function ( settings, helpPage, message ) {
|
| - |
|
102 |
hideGlobalProgress();
|
| - |
|
103 |
console.log(message);
|
| - |
|
104 |
};
|
| - |
|
105 |
|
| - |
|
106 |
var w = window,
|
| - |
|
107 |
d = document,
|
| - |
|
108 |
e = d.documentElement,
|
| - |
|
109 |
g = d.getElementsByTagName('body')[0],
|
| - |
|
110 |
x = w.innerWidth || e.clientWidth || g.clientWidth,
|
| - |
|
111 |
y = w.innerHeight|| e.clientHeight|| g.clientHeight;
|
| - |
|
112 |
var theight = y - $('#tfiles').offset().top - 120;
|
| - |
|
113 |
//console.log("theight", y , $('#tfiles').offset().top)
|
| - |
|
114 |
table = $("#tfiles").dataTable({
|
| - |
|
115 |
serverSide: true,
|
| - |
|
116 |
deferRender : true,
|
| - |
|
117 |
xxxprocessing: true,
|
| - |
|
118 |
ajax : {
|
| - |
|
119 |
url : "view_by_files_json.asp",
|
| - |
|
120 |
type : "POST",
|
| - |
|
121 |
data : function (o){
|
| - |
|
122 |
o.filename = formatSearch("<%=parKeyword%>");
|
| - |
|
123 |
o.rtag_id = "<%=parRtagId%>";
|
| - |
|
124 |
o.envtab = "<%=nEnvTab%>"
|
| - |
|
125 |
}
|
| - |
|
126 |
},
|
| - |
|
127 |
dom: "rti",
|
| - |
|
128 |
scrollY: theight,
|
| - |
|
129 |
scrollCollapse: true,
|
| - |
|
130 |
paging: true,
|
| - |
|
131 |
scroller: {
|
| - |
|
132 |
loadingIndicator: true,
|
| - |
|
133 |
displayBuffer: 9,
|
| - |
|
134 |
},
|
| - |
|
135 |
order: [[ 0, "desc" ]],
|
| - |
|
136 |
info: true,
|
| - |
|
137 |
columns: [
|
| - |
|
138 |
{ "visible": false },
|
| - |
|
139 |
{ render : function ( data, type, row, meta ) {
|
| - |
|
140 |
var sLink = "<%=dpkg_archiveURL%>" + row[3] + "/" + row[4] + "/" + row[2] + "/" + row[1];
|
| - |
|
141 |
sLink = sLink.replace(/\\+/g,'/') ;
|
| - |
|
142 |
sLink = sLink.replace(/\/+/g,'/') ;
|
| - |
|
143 |
return '<img src="images/rex_images/ext_blank.gif" border="0" hspace="2" align="absmiddle"><a href="'+sLink+'" class=body_link>'+data+'</a>';
|
| - |
|
144 |
}},
|
| - |
|
145 |
{ render : function ( data, type, row, meta ) {
|
| - |
|
146 |
if ( data ) {
|
| - |
|
147 |
data = data.replace(/\\+/g, '/');
|
| - |
|
148 |
data = data.replace(/\/+/g,'\\') ;
|
| - |
|
149 |
}
|
| - |
|
150 |
return data;
|
| - |
|
151 |
}},null,
|
| - |
|
152 |
{ render : function ( data, type, row, meta ) { return '<a href="dependencies.asp?pv_id='+row[0]+'&rtag_id=<%=parRtagId%>" class=body_link>'+data+'</a>';}},
|
| - |
|
153 |
null
|
| - |
|
154 |
],
|
| - |
|
155 |
columnDefs : [
|
| - |
|
156 |
{className: "nowrap", targets : '_all' }
|
| - |
|
157 |
],
|
| - |
|
158 |
orderCellsTop : true,
|
| - |
|
159 |
initComplete : function () {
|
| - |
|
160 |
},
|
| - |
|
161 |
}).api();
|
| - |
|
162 |
|
| - |
|
163 |
// Transfer the keyword to the 'file' search item
|
| - |
|
164 |
$('#inp_file').val('<%=parKeyword%>');
|
| - |
|
165 |
table.column(1).search( formatSearch("<%=parKeyword%>") );
|
| - |
|
166 |
});
|
| - |
|
167 |
<%End If%>
|
| - |
|
168 |
</script>
|
| - |
|
169 |
<%End Sub
|
| - |
|
170 |
'----------------------------------------------
|
| 58 |
%>
|
171 |
%>
|
| 59 |
<html>
|
172 |
<html>
|
| 60 |
<head>
|
173 |
<head>
|
| 61 |
<title><%=Title(parRtagId)%></title>
|
174 |
<title><%=Title(parRtagId)%></title>
|
| 62 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
175 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
| 63 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
176 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
| 64 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
177 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
| 65 |
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
|
178 |
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
|
| 66 |
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
|
179 |
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
|
| 67 |
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
|
180 |
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
|
| - |
|
181 |
<%bJqueryDataTables = TRUE%>
|
| 68 |
<!--#include file="_jquery_includes.asp"-->
|
182 |
<!--#include file="_jquery_includes.asp"-->
|
| 69 |
<!-- TIPS -->
|
183 |
<!-- TIPS -->
|
| 70 |
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
|
184 |
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
|
| 71 |
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
|
185 |
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
|
| 72 |
<!-- DROPDOWN MENUS -->
|
186 |
<!-- DROPDOWN MENUS -->
|
| 73 |
<!--#include file="_menu_def.asp"-->
|
187 |
<!--#include file="_menu_def.asp"-->
|
| 74 |
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
|
188 |
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
|
| - |
|
189 |
<%Call InsertJavaScript%>
|
| 75 |
</head>
|
190 |
</head>
|
| 76 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
191 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
| 77 |
<!-- HEADER -->
|
192 |
<!-- HEADER -->
|
| 78 |
<!--#include file="_header.asp"-->
|
193 |
<!--#include file="_header.asp"-->
|
| 79 |
<!-- BODY ---->
|
194 |
<!-- BODY ---->
|
| Line 101... |
Line 216... |
| 101 |
KeyWord = Replace( Trim(parKeyword), "*", "%" )
|
216 |
KeyWord = Replace( Trim(parKeyword), "*", "%" )
|
| 102 |
Else
|
217 |
Else
|
| 103 |
KeyWord = "%"& Trim(parKeyword) &"%"
|
218 |
KeyWord = "%"& Trim(parKeyword) &"%"
|
| 104 |
End If
|
219 |
End If
|
| 105 |
|
220 |
|
| - |
|
221 |
If parSearchType = "1" Then
|
| - |
|
222 |
' Package Search
|
| 106 |
OraDatabase.Parameters.Add "KEYWORD", KeyWord, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
223 |
OraDatabase.Parameters.Add "KEYWORD", KeyWord, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 107 |
OraDatabase.Parameters.Add "RTAG_ID", parRtagId, ORAPARM_INPUT, ORATYPE_NUMBER
|
224 |
OraDatabase.Parameters.Add "RTAG_ID", parRtagId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 108 |
OraDatabase.Parameters.Add "SEARCH_AREA", nEnvTab, ORAPARM_INPUT, ORATYPE_NUMBER
|
225 |
OraDatabase.Parameters.Add "SEARCH_AREA", nEnvTab, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 109 |
OraDatabase.Parameters.Add "RECORD_SET", NULL, ORAPARM_OUTPUT, ORATYPE_CURSOR
|
226 |
OraDatabase.Parameters.Add "RECORD_SET", NULL, ORAPARM_OUTPUT, ORATYPE_CURSOR
|
| 110 |
OraDatabase.Parameters.Add "PAGE_SIZE", MaxRows, ORAPARM_INPUT, ORATYPE_NUMBER
|
227 |
OraDatabase.Parameters.Add "PAGE_SIZE", MaxRows, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 111 |
|
228 |
|
| 112 |
If parSearchType = "1" Then
|
- |
|
| 113 |
' Package Search
|
- |
|
| 114 |
OraDatabase.ExecuteSQL "BEGIN PK_ENVIRONMENT.FIND_PACKAGE ( :KEYWORD, :RTAG_ID, :SEARCH_AREA, :RECORD_SET ); END;"
|
229 |
OraDatabase.ExecuteSQL "BEGIN PK_ENVIRONMENT.FIND_PACKAGE ( :KEYWORD, :RTAG_ID, :SEARCH_AREA, :RECORD_SET ); END;"
|
| 115 |
ElseIf parSearchType = "2" Then
|
- |
|
| 116 |
' File Search
|
- |
|
| 117 |
OraDatabase.ExecuteSQL "BEGIN PK_ENVIRONMENT.FIND_FILE ( :KEYWORD, :RTAG_ID, :SEARCH_AREA, :PAGE_SIZE, :RECORD_SET ); END;"
|
- |
|
| 118 |
End If
|
- |
|
| 119 |
|
230 |
|
| 120 |
Set rsRep = OraDatabase.Parameters("RECORD_SET").Value
|
231 |
Set rsRep = OraDatabase.Parameters("RECORD_SET").Value
|
| 121 |
|
232 |
|
| 122 |
OraDatabase.Parameters.Remove "KEYWORD"
|
233 |
OraDatabase.Parameters.Remove "KEYWORD"
|
| 123 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
234 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
| 124 |
OraDatabase.Parameters.Remove "SEARCH_AREA"
|
235 |
OraDatabase.Parameters.Remove "SEARCH_AREA"
|
| 125 |
OraDatabase.Parameters.Remove "PAGE_SIZE"
|
236 |
OraDatabase.Parameters.Remove "PAGE_SIZE"
|
| 126 |
OraDatabase.Parameters.Remove "RECORD_SET"
|
237 |
OraDatabase.Parameters.Remove "RECORD_SET"
|
| - |
|
238 |
End If
|
| 127 |
%>
|
239 |
%>
|
| 128 |
|
240 |
|
| 129 |
<table width="100%" border="0" cellspacing="0" cellpadding="5">
|
241 |
<table width="100%" border="0" cellspacing="0" cellpadding="5">
|
| 130 |
<tr>
|
242 |
<tr>
|
| 131 |
<td>
|
243 |
<td>
|
| 132 |
<%If parSearchType = "1" Then%>
|
244 |
<%If parSearchType = "1" Then%>
|
| 133 |
<span class="body_sect">Find Package: <%=Trim(parKeyword)%></span>
|
245 |
<span class="body_sect">Find Package: <%=Trim(parKeyword)%></span>
|
| 134 |
<%ElseIf parSearchType = "2" Then%>
|
246 |
<%ElseIf parSearchType = "2" Then%>
|
| 135 |
<span class="body_sect">Find File: <%=Trim(parKeyword)%>.</span><span class="body_txt">Showing max. <%=MaxRows%> results.</span>
|
247 |
<span class="body_sect">Find File: <%=Trim(parKeyword)%>.</span><span class="body_txt"></span>
|
| 136 |
<%End If%>
|
248 |
<%End If%>
|
| 137 |
</td>
|
249 |
</td>
|
| 138 |
</tr>
|
250 |
</tr>
|
| 139 |
|
251 |
|
| 140 |
<%If parSearchType = "1" Then%>
|
252 |
<%If parSearchType = "1" Then%>
|
| Line 205... |
Line 317... |
| 205 |
</table>
|
317 |
</table>
|
| 206 |
<br>
|
318 |
<br>
|
| 207 |
|
319 |
|
| 208 |
<%ElseIf parSearchType = "2" Then%>
|
320 |
<%ElseIf parSearchType = "2" Then%>
|
| 209 |
<!-- FILE SEARCH ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
321 |
<!-- FILE SEARCH ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 210 |
<table width="100%" border="0" cellspacing="1" cellpadding="5" class='stdGrey'>
|
322 |
<table id=tfiles width="100%" border="0" cellspacing="1" cellpadding="2" class='stdGrey'>
|
| 211 |
<thead>
|
323 |
<thead>
|
| 212 |
<tr>
|
324 |
<tr>
|
| - |
|
325 |
<th>PvId</th>
|
| 213 |
<th width="20%" nowrap>File Name</th>
|
326 |
<th width="20%" nowrap>File Name<%=Quick_Help("FindFile")%></th>
|
| 214 |
<th width="20%" nowrap>Path</th>
|
327 |
<th width="20%" nowrap>Path</th>
|
| 215 |
<th width="20%" nowrap>Package Name</th>
|
328 |
<th width="20%" nowrap>Package Name</th>
|
| 216 |
<th width="20%" nowrap>Version</th>
|
329 |
<th width="20%" nowrap>Version</th>
|
| 217 |
<th width="20%" nowrap>CheckSum (CKSUM)</th>
|
330 |
<th width="20%" nowrap>CheckSum (CKSUM)</th>
|
| 218 |
</tr>
|
331 |
</tr>
|
| - |
|
332 |
<tr class=search>
|
| - |
|
333 |
<th></th>
|
| - |
|
334 |
<th>File</th>
|
| - |
|
335 |
<th>Path</th>
|
| - |
|
336 |
<th>Package</th>
|
| - |
|
337 |
<th>Version</th>
|
| - |
|
338 |
<th></th>
|
| - |
|
339 |
</tr>
|
| 219 |
</thead>
|
340 |
</thead>
|
| 220 |
<%If rsRep.RecordCount = 0 Then%>
|
- |
|
| 221 |
<tr>
|
- |
|
| 222 |
<td colspan='5'>Found 0 records.</td>
|
- |
|
| 223 |
</tr>
|
- |
|
| 224 |
<%End If
|
- |
|
| 225 |
|
- |
|
| 226 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
- |
|
| 227 |
|
- |
|
| 228 |
If IsNull(rsRep("file_path")) Then
|
- |
|
| 229 |
' DEVI-050252 - must not call Get_Pkg_Short_Info() with a null or empty string, so check the patch_id before doing so.
|
- |
|
| 230 |
If IsNull(rsRep("patch_id")) OR rsRep("patch_id") = "" Then
|
- |
|
| 231 |
sLink = dpkg_archiveURL & rsRep("pkg_name") &"/"& rsRep("pkg_version") &"/"& Replace( rsRep("file_name"), "\", "/" )
|
- |
|
| 232 |
Else
|
- |
|
| 233 |
Call Get_Pkg_Short_Info( rsRep("patch_id"), NULL, NULL, sPkgVersion, NULL, NULL, NULL )
|
- |
|
| 234 |
sLink = dpkg_archiveURL & rsRep("pkg_name") &"/"& sPkgVersion &"/"& rsRep("file_name")
|
- |
|
| 235 |
End If
|
- |
|
| 236 |
Else
|
- |
|
| 237 |
sLink = dpkg_archiveURL & rsRep("pkg_name") &"/"& rsRep("pkg_version") &"/"& Replace( rsRep("file_path") & rsRep("file_name"), "\", "/" )
|
- |
|
| 238 |
End If
|
- |
|
| 239 |
%>
|
- |
|
| 240 |
<tr>
|
- |
|
| 241 |
<td valign="top"><a href="<%=sLink%>" class="body_link"><%=Highlight_Substring( rsRep("file_name"), Trim(parKeyword) )%></td>
|
- |
|
| 242 |
<td nowrap><%=rsRep("file_path")%></td>
|
- |
|
| 243 |
<td nowrap><%=rsRep("pkg_name")%></td>
|
- |
|
| 244 |
<td nowrap><a href="dependencies.asp?rtag_id=<%=parRtagId%>&pv_id=<%=rsRep("pv_id")%>" class="body_link"><%=rsRep("pkg_version")%></a></td>
|
- |
|
| 245 |
<td nowrap><%=rsRep("crc_cksum")%></td>
|
- |
|
| 246 |
</tr>
|
- |
|
| 247 |
<% rsRep.MoveNext
|
- |
|
| 248 |
WEnd
|
- |
|
| 249 |
|
- |
|
| 250 |
rsRep.Close()
|
- |
|
| 251 |
%>
|
- |
|
| 252 |
</table>
|
341 |
</table>
|
| 253 |
<br>
|
342 |
<br>
|
| 254 |
<!-- END OF SEARCH ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
343 |
<!-- END OF SEARCH ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 255 |
<%End If%>
|
344 |
<%End If%>
|
| 256 |
</td>
|
345 |
</td>
|