89 lines
2.7 KiB
HTML
89 lines
2.7 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>iSeries 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>iSeries 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 tstring2 = "";
|
||
|
//END NON-TRANSLATABLE
|
||
|
|
||
|
|
||
|
counter = 0;
|
||
|
for (var i=0; i < sqlstate.length; i++) {
|
||
|
tstring2 = sqlstate[i][0];
|
||
|
if (sqlstate[i][0] != "") {
|
||
|
if ((tstring2.indexOf(input)) >= 0) {
|
||
|
if (counter == 0) {
|
||
|
var textA = "<p>Your search for SQLSTATE: " + cookieString + " returned the information shown below.<\/p><ul>";
|
||
|
document.write(textA);
|
||
|
}
|
||
|
var textB = "<li>SQLSTATE: <A HREF='" + sqlstate[i][1] + "'>" + sqlstate[i][0] + " <\/A><\/LI>";
|
||
|
document.write(textB);
|
||
|
counter = 1;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if (counter == 0) {
|
||
|
var textC = "<p>Your search for SQLSTATE: " + cookieString + " did not find any results.<\/p><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>
|
||
|
|