--- projects/cms/source/reports/php/alerts/alerts.php 2001/03/21 11:58:26 1.13 +++ projects/cms/source/reports/php/alerts/alerts.php 2001/03/21 12:07:59 1.14 @@ -22,7 +22,7 @@ function getValue($value, $alert) { return $matches[1]; } -function printAlert($machine, $alert) { +function printAlert($machine, $alert, $small="") { include("alerts_config.inc.php"); @@ -40,8 +40,8 @@ function printAlert($machine, $alert) { $alertLevel = $alertLevelNames[$alertLevel]; $initialAlertTime = strftime("%x %X", intval($initialAlertTime / 1000)); - if ($small) { - + if ($small == "true") { + echo "small"; } else { echo << 

- - - - - - +
- - - Current alerts for $machine - - -
Sorted by time, latest first. -
-
-
+ if ($small == "true") { + + } + else { + echo << 

+ + + + + + -
+ + + Current alerts for $machine + + +
Sorted by time, latest first. +
+
+
EOT; - printLine(""); + printLine(""); + } if ($alertArray != FALSE) { @@ -109,7 +114,7 @@ EOT; } foreach ($alerts as $alert) { - printAlert($machine, $alert); + printAlert($machine, $alert, $small); } } else { @@ -117,11 +122,16 @@ EOT; printLine(""); } - echo << -
+ if ($small == "true") { + + } + else { + echo << +
EOT; + } } @@ -148,6 +158,7 @@ EOT; print ""; ?> + @@ -159,12 +170,12 @@ EOT; $machine_array = getdirArray($alertDirectory, 'asort'); if ($machine_array != FALSE) { foreach ($machine_array as $machine) { - printReports($machine); + printReports($machine, $small); } } } else { - printReports($machine); + printReports($machine, $small); } }