View previous topic :: View next topic |
Author |
Message |
rc
Joined: 01 Aug 2005 Posts: 100
|
Posted: Thu Sep 29, 2005 5:40 am Post subject: Custom HTML Template needed |
|
|
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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Sep 29, 2005 10:20 am Post subject: |
|
|
Use something like this
Header Code: |
<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: |
<tr>
<td colspan=12 bgcolor="%Background%" nowrap align="left"><b><font color="%ItemColor%"> Folder: %Folder%\ </font></b></td>
</tr>
|
Test items Code: |
<tr>
<td bgcolor="%Background%" nowrap valign="top" align="left"> <font color=%ItemColor%>%TestName%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%Status%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%Recurrences%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%Reply%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%AliveRatio%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%DeadRatio%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%TotalTests%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%PassedCnt%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%FailedCnt%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%AverageReply%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%MinReply%</font> </td>
<td bgcolor="%Background%" nowrap valign="top" align="center"> <font color=%ItemColor%>%MaxReply%</font> </td>
</tr>
|
the same code for all statuses
Folder summary Code: |
<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: |
<tr height=10></tr> |
Footer Code: |
</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 </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 |
|
Back to top |
|
|
rc
Joined: 01 Aug 2005 Posts: 100
|
Posted: Fri Sep 30, 2005 12:48 am Post subject: |
|
|
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 |
|
Back to top |
|
|
|