<?xml version="1.0" encoding="UTF-8"?>
<!-- This template is used by the Pre Requisite Check tool to report pre
     requisite failures to the customer.  Use this template as input to the
     prgen.vbs script along with the prereq.xml output file.  The result will
     be an html document printed to standard out.

     Normally an xsl transform would be used to accomplish the xml-to-html
     transition, but W2K has proven a bit incosistent with its MSXML installed
     version, so in this case it's easier to use something homegrown and avoid
     these problems.  It would still be nice to use xsl, however.
-->
<!--
	 The html elements contained within this Feature element will be created
     for any feature that has a PRCheck whose status is non-zero.
     Any occurance of %FeatureName% in the html below will be replaced with
     the Feature's name attribute.  The html elements contained within the
     PRCheck element will be created for any PRCheck that has a non-zero status.
     Any occurance of %CaptionID%, %DescriptionID%, or %URLID% will be replaced
     with the respective string from the xml strings file (prereqstrings.xml) -->
<!--
	 Right now, the Feature and PRCheck elements should only contain a single child
	 element (which may contain its own children).  Right now these are table and tr,
	 respectively
-->

<PRReportTemplate>
	<html>
		<head>
			<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
			<title>Install Prerequisite Check</title>
			<link href="oma.css" type="text/css" rel="stylesheet" />
			<script language="javascript">
			<!--
				var bOdd = true;
				var allcol = "100%";
				var col1 = 25;
				var col2 = "15%";
				var col3 = "85%";
				var source_path = top.document.location.href;
				function outTD(text,ncols,width)
				{
					var newtext;
					// Allow line breaks in text. CHNG137430 - Add capability to add line breaks in description portion of remedy frame
					// Allow replacement of LINEBREAK with <br>. Visual Basic Scripting
					// prereqreport.vbs does some unwanted translations for <br>.
					newtext = text.replace( /LINEBREAK/g, "<br>")
					document.write('<td width="' + width + '" class="data-area-canvas');
					if( bOdd == true )
					{
						document.write('-odd');
					}
					document.write('" valign="top"');
					if( ncols > 1 )
					{
						document.write(' colspan="' + ncols + '"');
					}
					document.write('>' + ' ' + newtext + '</td>');
				}
				function init()
				{
					var button;
					button = document.getElementById("optional_button_area");
					if( top != this )
					{
						button.style.visibility = 'visible';
					}
					else
					{
						button.style.visibility = 'hidden';
					}
				}
			-->
		</script>
		</head>
		<body bgcolor="#FFFFFF" onload="init()" tabindex="-1">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td width="10"><script language="javascript">document.write('<img src="images/data_tl.gif" />');</script></td>
					<td class="data-area-canvas"><script language="javascript">document.write('<img src="images/blank.gif" width="10" />');</script></td>
					<td width="10"><script language="javascript">document.write('<img src="images/data_tr.gif" />');</script></td>
				</tr>
				<tr>
					<td class="data-area-canvas"><script language="javascript">document.write('<img src="images/blank.gif" width="10" />');</script></td>
					<td>
					<table border="0" cellpadding="0" cellspacing="0" width="100%" >
						<tr>
							<th align="left" class="data-area-canvas" width="25"><img src="images/blank.gif" width="32" height="10" /></th>
							<HeadingTemplate>
								<script language="javascript">
									document.write('<th align="left" class="data-area-canvas" width="100%"><strong><span id="desc_header">');
									document.write('<HeadingDescriptionElement>*DESCRIPTION*</HeadingDescriptionElement>');
									document.write('</span></strong></th>');
								</script>
							</HeadingTemplate>
						</tr>
						<tr>
							<td colspan="3" height="2" width="100%" bgcolor="#000000"><script language="javascript">document.write('<img src="images/blank.gif" height="2" />');</script></td>
						</tr>
					</table>
					</td>
					<td class="data-area-canvas"><script language="javascript">document.write('<img src="images/blank.gif" width="10" tabindex="-1" />');</script></td>
				</tr>
				<tr>
					<td class="data-area-canvas"><script language="javascript">document.write('<img src="images/blank.gif" width="10"  tabindex="-1"/>');</script></td>
					<td>
						<table border="0" cellpadding="5" cellspacing="0" width="100%">

						<AllPassTemplate>
							<tr>
								<script language="javascript">
									outTD('<img src="images/chckmark.gif"/>', 1, col1);
									outTD('<AllPassTemplateElement>*There are no prerequisite check conflicts for this system.*</AllPassTemplateElement>',1,allcol);
								</script>
							</tr>
						</AllPassTemplate>

						<AllFailTemplate>
							<tr>
								<script language="javascript">
									outTD('<img src="images/non-recoverable.gif"/>', 1, col1);
									outTD('<AllFailTemplateElement>*The prerequisite checks have failed to execute on this system.*</AllFailTemplateElement>',1,allcol);
								</script>
							</tr>
						</AllFailTemplate>

						<Feature>
							<PRCheck>
							<tr>
								<script language="javascript">
									outTD('<Icon error="images/non-recoverable.gif" warning="images/non-critical.gif" information="images/information.gif"><img src="images/non-recoverable.gif" /></Icon>', 1, col1);
  									var outDesc = "<DescriptionID>*The prerequisite checks have failed to execute on this system.*</DescriptionID>";
  									var outURL  = '<URLID><a href="#" onmousedown="" onKeyPress="" >%LinkID%</a></URLID>';
									outURL      += "<LinkID/>";
  									outTD(  outDesc + outURL, 1, allcol);
									bOdd=!bOdd;
								</script>
							</tr>
							</PRCheck>
						</Feature>

						</table>
					</td>
					<td class="data-area-canvas" tabindex="-1"><script language="javascript">document.write('<img src="images/blank.gif" width="10" />');</script></td>
				</tr>
				<tr>
					<td width="10"><script language="javascript">document.write('<img src="images/data_bl.gif" />');</script></td>
					<td class="data-area-canvas"><script language="javascript">document.write('<img src="images/blank.gif" width="10" />');</script></td>
					<td width="10"><script language="javascript">document.write('<img src="images/data_br.gif" />');</script></td>
				</tr>
			</table>
			<div id="optional_button_area" style="visibility:hidden">
			</div>
		</body>
	</html>
</PRReportTemplate>
