Custom HTML Template needed

Exchange HTML report templates between users.
Post Reply
rc
Posts: 100
Joined: Mon Aug 01, 2005 7:51 am

Custom HTML Template needed

Post by rc »

Hi at all,

is there anybody who has the template for a custom html report that includes the folder summary and the other modules like in example1 from online help?

Best regards

E. Wesener
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Use something like this

Header

Code: Select all

<html><head>
<meta name="GENERATOR" content="KS-Soft HostMonitor">
<title>HostMonitor report</title>
<STYLE TYPE="text/css"><!-- a:hover { color: "#0000FF"; } --> </STYLE>
</head>
<body bgcolor="#E9E9E9" text="#000000" link="#0000FF" vlink="#0000FF" alink="#0000FF">
<p align="left"><u><strong><big><big>HostMonitor Report</big></big><br>
</strong></u><font face="Arial">Generated on %Date% at %Time%</font></p>
<table border="0" bordercolor="#00008C" width="100%">
  <tr>
    <td bgcolor="#0000FF" nowrap align="left"><strong><font color=#FFFFFF>Test name</font></strong></td>
    <td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Status</font></strong></td>
    <td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Recurrences</font></strong></td>
    <td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Reply</font></strong></td>
    <td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Alive %</font></strong></td>
    <td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Dead %</font></strong></td>
    <td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Total tests</font></strong></td>
    <td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Passed tests</font></strong></td>
    <td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Failed tests</font></strong></td>
    <td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Average reply</font></strong></td>
    <td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Min reply</font></strong></td>
    <td bgcolor="#0000FF" nowrap align="center"><strong><font color=#FFFFFF>Max reply</font></strong></td>
  </tr>

Folder title

Code: Select all

 <tr>
    <td colspan=12 bgcolor="%Background%" nowrap align="left"><b><font color="%ItemColor%"> Folder: %Folder%\ </font></b></td>
</tr>


Test items

Code: Select all

  <tr>
    <td bgcolor="%Background%" nowrap valign="top" align="left">     &nbsp;<font color=%ItemColor%>%TestName%</font>&nbsp;</td>
    <td bgcolor="%Background%" nowrap valign="top" align="center">&nbsp;<font color=%ItemColor%>%Status%</font>&nbsp;</td>
    <td bgcolor="%Background%" nowrap valign="top" align="center">&nbsp;<font color=%ItemColor%>%Recurrences%</font>&nbsp;</td>
    <td bgcolor="%Background%" nowrap valign="top" align="center">&nbsp;<font color=%ItemColor%>%Reply%</font>&nbsp;</td>
    <td bgcolor="%Background%" nowrap valign="top" align="center">&nbsp;<font color=%ItemColor%>%AliveRatio%</font>&nbsp;</td>
    <td bgcolor="%Background%" nowrap valign="top" align="center">&nbsp;<font color=%ItemColor%>%DeadRatio%</font>&nbsp;</td>
    <td bgcolor="%Background%" nowrap valign="top" align="center">&nbsp;<font color=%ItemColor%>%TotalTests%</font>&nbsp;</td>
    <td bgcolor="%Background%" nowrap valign="top" align="center">&nbsp;<font color=%ItemColor%>%PassedCnt%</font>&nbsp;</td>
    <td bgcolor="%Background%" nowrap valign="top" align="center">&nbsp;<font color=%ItemColor%>%FailedCnt%</font>&nbsp;</td>
    <td bgcolor="%Background%" nowrap valign="top" align="center">&nbsp;<font color=%ItemColor%>%AverageReply%</font>&nbsp;</td>
    <td bgcolor="%Background%" nowrap valign="top" align="center">&nbsp;<font color=%ItemColor%>%MinReply%</font>&nbsp;</td>
    <td bgcolor="%Background%" nowrap valign="top" align="center">&nbsp;<font color=%ItemColor%>%MaxReply%</font>&nbsp;</td>
  </tr>
the same code for all statuses

Folder summary

Code: Select all

 <tr><td colspan=1 bgcolor="#DDDD60" ><font color=%ItemColor%>
  <b>Folder's summary</b> <br>
  Average Alive %<br>
  Average Dead % <br>
  Average Unknown % <br>
  Average Reply <br>
  Min Reply <br>
  Max Reply <br>
</font></td>
 
<td colspan=11 bgcolor="#DDDD60" ><font color=%ItemColor%>
  %FullPath%<br>
  %FolderAverage_AliveRatio% <br>
  %FolderAverage_DeadRatio% <br>
  %FolderAverage_UnknownRatio% <br>
  %FolderAverage_AverageReply% <br>
  %FolderMin_MinReply% <br>
  %FolderMax_MaxReply% <br>
</font></td></tr>


Gap

Code: Select all

<tr height=10></tr>

Footer

Code: Select all

</table>
<hr>
<br>
<table border=0>
 <tr><td> Tests with "Good" status</td><td>%GoodTests%</td></tr>
 <tr><td> Tests with "Bad" status</td><td>%BadTests%</td></tr>
 <tr><td> Tests with "Unknown" status &nbsp;</td><td>%UnknownTests%</td></tr>
</table><br>
 
<p>This report was generated by <a href="http://www.ks-soft.net" target="_blank"><strong>KS-Soft</strong></a><b>
<a href="http://www.ks-soft.net/hostmon.eng/index.htm" target="_blank">HostMonitor</a></b></p>
</body>
</html>
Regards
Alex
rc
Posts: 100
Joined: Mon Aug 01, 2005 7:51 am

Post by rc »

Hi Alex,

thank you very much for your answer. This is exact this what i have searched. Your support in this forum is really fantastic.

Regards

Enrico
Post Reply