97 lines
3.0 KiB
HTML
97 lines
3.0 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4.0//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<title>SQL message finder--results</title>
|
||
|
<meta name="Copyright" content="Copyright (c) 2004 by IBM Corporation">
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<!-- Include array data -->
|
||
|
<script language="Javascript" src="rzalaarray.js" type="text/javascript"></script>
|
||
|
<!-- Java sync-link -->
|
||
|
<script type="text/javascript" language="Javascript" src="../rzahg/synch.js">
|
||
|
</script>
|
||
|
|
||
|
<h2>SQL message finder</h2>
|
||
|
|
||
|
|
||
|
<script type="text/javascript" language="JavaScript">
|
||
|
//START NON-TRANSLATABLE
|
||
|
var noVal = "zzzz";
|
||
|
var cookieName = "ibmsql";
|
||
|
|
||
|
function getCookieData(label) {
|
||
|
var labelLen = label.length;
|
||
|
var cLen = document.cookie.length;
|
||
|
var i=0;
|
||
|
var cEnd;
|
||
|
while (i < cLen) {
|
||
|
var j = i + labelLen;
|
||
|
if (document.cookie.substring(i,j) == label) {
|
||
|
cEnd = document.cookie.indexOf(";",j);
|
||
|
if (cEnd == -1) {
|
||
|
cEnd = document.cookie.length;
|
||
|
}
|
||
|
return unescape(document.cookie.substring(j+1,cEnd));
|
||
|
}
|
||
|
i++
|
||
|
}
|
||
|
//if they reach this point, no cookie data was found
|
||
|
return(noVal);
|
||
|
}
|
||
|
|
||
|
//Load cookie data
|
||
|
re = /\s*/;
|
||
|
cookieString = getCookieData(cookieName);
|
||
|
if (cookieString == noVal) { //empty cookie
|
||
|
window.location = "rzalafinder.htm";
|
||
|
}
|
||
|
if (cookieString.length <= 0) { //no data in cookie
|
||
|
window.location = "rzalafinder.htm";
|
||
|
}
|
||
|
|
||
|
|
||
|
var input = cookieString.toUpperCase();
|
||
|
var tstring = "";
|
||
|
var tpstring = "";
|
||
|
var tmstring = "";
|
||
|
//END NON-TRANSLATABLE
|
||
|
|
||
|
counter = 0;
|
||
|
for (var i=0; i < sqlm.length; i++) {
|
||
|
tstring = sqlm[i][0];
|
||
|
tmstring = sqlm[i][2];
|
||
|
tpstring = sqlm[i][3];
|
||
|
tstring = tstring.toUpperCase();
|
||
|
tmstring = tmstring.toUpperCase();
|
||
|
tpstring = tpstring.toUpperCase();
|
||
|
if (sqlm[i][0] != 0) {
|
||
|
if ((tstring.indexOf(input)) >= 0 || (tmstring.indexOf(input)) >= 0 || (tpstring.indexOf(input)) >= 0) {
|
||
|
if (counter == 0) {
|
||
|
var textA = "<p>Your search for SQL message: " + cookieString + " returned the information shown below.<\/p><ul>";
|
||
|
document.write(textA);
|
||
|
}
|
||
|
var textB = "<LI><A HREF='" + sqlm[i][1] + "'>" + sqlm[i][0] + "<\/A> SQLCODEs: " + sqlm[i][2] + " " + sqlm[i][3] + "<\/LI>";
|
||
|
document.write(textB);
|
||
|
counter = 1;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if (counter == 0){
|
||
|
var textC = "<p>Your search for SQL message: " + cookieString + " did not find any results.<p><A HREF='rzalafinder.htm'>Search again<\/A>.<\/P>";
|
||
|
document.write(textC);
|
||
|
} else {
|
||
|
var textD = "<\/UL><BR><BR> <p><A HREF='rzalafinder.htm'>Search again<\/A>.<\/P>";
|
||
|
document.write(textD);
|
||
|
}
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|
||
|
|