IPSentry Version 4

Home |   help index | Screen Shot

Related Topics Screen Shots Email to support@ipsentry.com Go to ipsentry.com

How-To: Modify the layout of the IPSentry generated statistics pages.


We have been asked many times if it is possible to modify the layout of the IPSentry statistics to include special headers, colors, different images and etc. and the answer is of course, YES.  However, you should be familiar with raw HTML coding.

The IPSentry statistics page is comprised of a couple of HTML template files that use keywords for data replacement and pre-installed images that may be changed as desired.

The files to modify can be found in the Report directory under the IPSentry application path are named as follows:

  1. Stat_S.HTI
    This file is the basic "PAGE" template that provides the colors, and general layout of the page.
     

  2. StatLine.HTI
    This file contains a single table detail entry that is inserted into the STAT_S.HTI one time for each entry in your IPSentry configuration.

With a good background in HTML, one can quickly see how these files are constructed.

A pseudo layout of each file is as follows:

STAT_S.HTI
<HTML>
<header and title defs>
<page layout defs>
<body and color information>
<BEGIN TABLE DEFINITION>
  (STATLINE.HTI) is inserted here, once for each machine.
<END TABLE DEFINITION>"
<finish html>

So, if STAT_S.HTI looked like this:
<HTML><BODY>
<CENTER>HELLO</CENTER><BR>
<B>BEGIN LIST</B><BR>
%STAT_LIST%
</BODY>
</HTML>

And if STATLINE.HTI looked like this:
HELLO<BR>

And if you had 5 machines, the resulting page HTML would look like this:

<HTML><BODY>
<CENTER>HELLO</CENTER><BR>
<B>BEGIN LIST</B><BR>
HELLO<BR>
HELLO<BR>
HELLO<BR>
HELLO<BR>
HELLO<BR>
</BODY>
</HTML>

Obviously, the use of various IPSentry Keywords helps in making the output meaningful.

Just mess around with these files (make a backup first) and experiment...  


Related Topics Related Topics

Home  |  Product Info  |  Download  |  Pricing  |  Order Now   |  Support  |  Contact Us

Contact: support@ipsentry.com  https://ipsentry.com © 2006 by RGE, Inc. - All Rights Reserved