AMS Sample HTML page



AMS menu
AMS Home
Install Guide
Applet Parameters
Sample HTML
Sample Config
Alert manager
License
Support
Languages
Future plans



 

Below is a sample HTML page demonstrating the use of most of the applet parameters available to the Applet version of AMS. This HTML was used to create the screenshots seen on the AMS Homepage.

amsclientapplet.html

<!DOCTYPE html>
<html><head>
</head>
<body bgcolor="#cccccc">
<center>
<H2>AMS - Syslog Anzeigen in der Realzeit</h2>
<!-- des messages de Syslog en temps r&eacute;el </h2>
<!-- Syslog Anzeigen in der Realzeit</h2> -->
<!-- Realtime display of syslog messages in a browser..</H2> -->
</center>
<div align="center"> <applet archive="ams_postgres.jar" code="AMSClientApplet.class" width="100%" height="85%" align="middle">
<param name="LINES" value="30">
<param name="BUFFER" value="200">
<param name="PORT" value="4000">
<param name="DEBUG" value="0">
<PARAM name="GIF_COLOUR_MATCHING" value="TRUE">

<!--SEVERITY sets the default severity display filter level.
User can change this via the chooser, so this just sets the
starting point. -->
<param name="SEVERITY" value="7">

<!--Name of host where AMS_SERVER is running.
If absent this defaults to the server the applet was loaded
from. In general this parameter should not be specified -->
<param name="HOST" value="sun">

<!--LAYOUT determines the style of the title panel.
LAYOUT 0 is Andy's fancy one with status bar, counters
and text area on a Card selection panel
LAYOUT 1 is Jon's "thin" title with just counters and
severity chooser
LAYOUT 2 is Jon's "thin" title with just severity chooser
LAYOUT 3 is just the counters -->
<param name="LAYOUT" value="0">

<!--
<param name="BGCOLOUR" value="#32659c">
<param name="FGCOLOUR" value="WHITE">
-->
<!--Parameters for animation sequence. If any of these are specified
then they must all be. -->
<param name="ANIMATION_FRAMES" value="66">
<param name="ANIMATION_PREFIX" value="http://sun/~andrew/gif/nescafe">
<param name="ANIMATION_SUFFIX" value=".gif">
<param name="ANIMATION_POSITION" value="0">

<!--ALARM_URL is the URL of sound file to be played when a message
-->
<param name="ALARM_URL" value="http://sun/~andrew/audio/eddie.au">
<param name="ALARM_SEVERITY" value="0">
<!--Determines whether counters are display as groups (TRUE)
or as individual severity codes (FALSE) -->
<param name="COUNTERGROUPS" value="FALSE">

<!--Colour for the various severity levels, foreground and background. -->
<param name="SEVERITY0_FG" value="WHITE">
<param name="SEVERITY0_BG" value="RED">
<param name="SEVERITY2_FG" value="#aaaaaa">
<param name="SEVERITY2_BG" value="#c86464">


<!-- Scroll rate of the message panel. 0=Instant, 5=v.slow -->
<param name="SCROLLSPEED" value="3">

<--
# Database parameters....
# Both JDBCDRIVER and DB_CONNECT_STRING must be defined for
# database functions to be available.
#
# the JDBC driver must be in the CLASSPATH of the client or browser...
# AMS loads the driver at runtime with "Class.forName(JDBCDRIVER)".
# See your database's JDBC notes for more information.
-->
<param name="JDBCDRIVER" value="org.postgresql.Driver">

<--
# Connection string includes the hostname ("sun") and database name ("syslog")
-->
<param name="DB_CONNECT_STRING" value="jdbc:postgresql://sun/syslog">
<param name="DB_USER" value="andrew">
<param name="DB_TABLE" value="syslog">
<param name="DB_TIME_COLUMN" value="dbtime">
<param name="DB_SEVERITY_COLUMN" value="severity">
<param name="DB_FACILITY_COLUMN" value="facility">
<param name="DB_MESSAGE_COLUMN" value="message">
<b>This page requires Java</b>
<p>Please either enable java in your browser or use a java capable browser</p>
</applet><b></b> </div>
</body>
</html>




Home Thai Guide   Great Circle Calculator WorldClock AMS Services Contact us