<%BEGINNODATA%>
document.writeln("<TR><TD BGCOLOR=#f7f7e7 COLSPAN=6><CENTER><FONT FACE=\"ARIAL\" SIZE=2><I>No jobs found matching criteria</I></FONT></CENTER></TD></TR>");
<%ENDNODATA%>
<HTML><HEAD><META http-equiv="Content-Type" content="text/html"><TITLE><%USER%>: Overview of completed jobs run <%TARGET%></TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
var oldjid    = 0;
var oldjname  = " ";
var tsname    = " ";
var tstype    = " ";
var tstart    = " ";
var tstop     = " ";

group_str   = new Array;
display_str = new Array;

group_str[ 0]   = 'oracle_sysman_group';
group_str[ 1]   = 'oracle_sysman_node';
group_str[ 2]   = 'oracle_sysman_database';
group_str[ 3]   = 'oracle_sysman_listener';
group_str[ 4]   = 'oracle_sysman_webserver';
group_str[ 5]   = 'ORACLE_WEBSERVER';
group_str[ 6]   = 'oracle_sysman_paging';
group_str[ 7]   = 'oracle_sysman_opsinst';
group_str[ 8]   = 'oracle_sysman_cmanager';
group_str[ 9]   = 'oracle_sysman_sap';
group_str[10]   = 'oracle_forms listener';
group_str[11]   = 'oracle_sysman_sqlserver';

display_str[ 0] = 'Group';
display_str[ 1] = 'Node';
display_str[ 2] = 'Database';
display_str[ 3] = 'Listener';
display_str[ 4] = 'Webserver';
display_str[ 5] = 'Webserver';
display_str[ 6] = 'Paging Server';
display_str[ 7] = 'Parallel Server';
display_str[ 8] = 'Concurrent Manager';
display_str[ 9] = 'SAP server';
display_str[10] = 'Forms Listener';
display_str[11] = 'SQL Server';

function prettyType(str) {
  for (var i=0 ; i<12 ; i++ )
      if (str==group_str[i]) {
         return display_str[i];
      }
  return str;
}

function PrintResults () {
  document.writeln("<TR><TD BGCOLOR=#f7f7e7 VALIGN=\"top\" ALIGN=\"right\"><FONT FACE=\"ARIAL\" SIZE=2>"+oldjid+"</FONT></TD>");
  document.write("<TD BGCOLOR=#f7f7e7 VALIGN=\"top\"><FONT FACE=\"ARIAL\" SIZE=2>"+oldjname+"</FONT></TD>");
  document.write("<TD BGCOLOR=#f7f7e7 VALIGN=\"top\" NOWRAP><FONT FACE=\"ARIAL\" SIZE=2>"+tsname+"</FONT></TD>");
  document.write("<TD BGCOLOR=#f7f7e7 VALIGN=\"top\" NOWRAP><FONT FACE=\"ARIAL\" SIZE=2>"+tstype+"</FONT></TD>");
  document.write("<TD BGCOLOR=#f7f7e7 VALIGN=\"top\" NOWRAP><FONT FACE=\"ARIAL\" SIZE=2>"+tstart+"</FONT></TD>");
  document.writeln("<TD BGCOLOR=#f7f7e7 VALIGN=\"top\" NOWRAP><FONT FACE=\"ARIAL\" SIZE=2>"+tstop+"</FONT></TD></TR>");
}

function ProcessRecord(jid, jname, sname, stype, started, finished) {
  if (oldjid != jid)  {
     if (oldjid != 0) {
        PrintResults();
     }
     oldjid   = jid;
     oldjname = jname;

     tsname  = sname;
     tstype  = prettyType(stype);
     tstart  = started;
     tstop   = finished;
  } else {
    tsname  = tsname + "<BR>" + sname;
    tstype  = tstype + "<BR>" + prettyType(stype);
    tstart  = tstart + "<BR>" + started;
    tstop   = tstop + "<BR>" + finished;
  }
}

function GenerateTabMap () {
  document.writeln("<MAP NAME=\"TabMap\">");
  if ("<%TARGET%>"=="Yesterday") {
     document.write("<AREA SHAPE=\"rect\" COORDS=\"101,0,211,26\" HREF=\"job_cwek.htm\">");
  } else {
    document.write("<AREA SHAPE=\"rect\" COORDS=\"0,0,100,26\" HREF=\"job_cday.htm\">");
  }
  document.writeln("</MAP>");
}
// Hide -->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="white">
<SCRIPT LANGUAGE="JavaScript">
<!--
GenerateTabMap();
// Hide -->
</SCRIPT>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><TR><TD align=left height=1 vAlign=top width=320><IMG align=top height=72 src="oem.gif" width=320></TD>
<SCRIPT LANGUAGE="JavaScript">
<!--
if ("<%TARGET%>"=="Yesterday") {
   document.write("<TD align=right valign=bottom width=2100><IMG SRC=\"tab_yesterday1.gif\" ALT=\"Jobs run Yesterday\" USEMAP=\"#TabMap\" WIDTH=211 HEIGHT=27 BORDER=0></TD>");
} else {
   document.write("<TD align=right valign=bottom width=2100><IMG SRC=\"tab_week1.gif\" ALT=\"Jobs run Last Week\" USEMAP=\"#TabMap\" WIDTH=211 HEIGHT=27 BORDER=0></TD>");
}
// Hide -->
</SCRIPT>
<TD align="left" background="space.gif" vAlign="top" width=5><IMG height=1 src="space.gif" width=8></TD></TR></TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><TR>
  <TD align="left" bgColor=#336666 height=21 vAlign="top" width=9><IMG height=1 src="space.gif" width=1></TD>
  <TD align="left" bgColor=#336666 height=21 vAlign="top" width=20><IMG height=1 src="space.gif" width=1></TD>
  <TD align="left" bgColor=#336666 height=21><FONT color=#ffffff face="Arial, Helvetica, sans-serif" color=#ffffff size="+2"><B><%USER%>: Overview of completed jobs run <%TARGET%></B></FONT></TD>
  <TD bgColor=#336666 height=21 align="right"><FONT color=#ffffff face="Arial, Helvetica, sans-serif" color=#ffffff><B><%CURRENTDATE%></B></FONT>&nbsp;</TD>
  <TD align="left" background="rhshadow.gif" vAlign="top" width=5><IMG height=1 src="space.gif" width=7></TD>
</TR><TR>
  <TD align="left" bgColor=#336666 height=16 vAlign=top width=9><IMG height=1 src="space.gif" width=1></TD>
  <TD align="left" bgColor=#336666 height=16 vAlign=top width=11><IMG height=1 src="space.gif" width=1></TD>
  <TD align="left" background="bot.gif" bgColor=#ffffff height=16 vAlign=top colspan=2><IMG align=top height=16 src="toparch.gif" width=26></TD>
  <TD align="left" height=16 vAlign="top" width=5><IMG height=8 src="rend.gif" width=8></TD>
</TR><TR>
  <TD align="right" height=8 vAlign="top" width=9><IMG height=8 src="lend.gif" width=10></TD>
  <TD align="right" background="bot.gif" height=8 vAlign=top width=11><IMG height=1 src="space.gif" width=1></TD>
  <TD align="left" bgColor=#ffffff height=8 vAlign=top width=2100 colspan=2><IMG height=8 src="archcorn.gif" width=6></TD>
  <TD align="right" height=8 vAlign=top width=5><IMG height=1 src="space.gif" width=1></TD>
</TR></TABLE><P>
<CENTER><TABLE BORDER cellPadding=3>
<TH BGCOLOR=#cccc99><FONT FACE="ARIAL" COLOR="#336699" SIZE=2><B>Job ID</B></FONT></TH>
<TH BGCOLOR=#cccc99><FONT FACE="ARIAL" COLOR="#336699" SIZE=2><B>Job Name</B></FONT></TH>
<TH BGCOLOR=#cccc99><FONT FACE="ARIAL" COLOR="#336699" SIZE=2><B>Service Name</B></FONT></TH>
<TH BGCOLOR=#cccc99><FONT FACE="ARIAL" COLOR="#336699" SIZE=2><B>Service Type</B></FONT></TH>
<TH BGCOLOR=#cccc99><FONT FACE="ARIAL" COLOR="#336699" SIZE=2><B>Started</B></FONT></TH>
<TH BGCOLOR=#cccc99><FONT FACE="ARIAL" COLOR="#336699" SIZE=2><B>Finished</B></FONT></TH>
<SCRIPT LANGUAGE="JavaScript">
<!--
<%BEGINDETAIL%>
ProcessRecord(<%1%>,"<%2%>","<%3%>","<%4%>","<%5%>","<%6%>");
<%ENDDETAIL%>
if (oldjid!=0) { PrintResults(); }
// Hide -->
</SCRIPT>
</TABLE></CENTER>

<P><TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TR><TD background="space.gif" align="left" vAlign="bottom" width=2100><IMG height=1 src="space.gif" width=1></TD><TD background="space.gif" align="left" vAlign="top"    width=60><DIV align=right><IMG height=18 src="btailtop.gif" width=45></DIV></TD><TD align="left" background="rhshadow.gif" height=18 vAlign=center width=5><IMG height=1 src="space.gif" width=1></TD></TR>
<TR><TD align="left" bgColor=#336666 height=15 vAlign="center"><IMG height=1 src="space.gif" width=1></TD><TD align="left" bgColor=#336666 height=15 vAlign="center" width=60><IMG height=1 src="space.gif" width=1></TD><TD align="left" background="rhshadow.gif" height=15 vAlign=center width=5><IMG height=1 src="space.gif" width=1></TD></TR>
<TR><TD align="left" background="bot.gif" vAlign="top"><IMG height=8 src="lend.gif" width=10></TD><TD align="left" background="bot.gif" height=10 vAlign=top width=60>&nbsp;</TD><TD align="left" vAlign="top" width=5><IMG height=10 src="rend.gif"></TD></TR>
</TABLE>
<TABLE><TR><TD><A HREF="index.htm"><B>HOME</B></A></TD><TD><B>&lt;</B></TD><TD><A HREF="setup.htm"><B>SETUP</B></A></TD></TR></TABLE>
</BODY></HTML>
