diff options
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/status_services.php | 7 | ||||
-rw-r--r-- | usr/local/www/widgets/widgets/services_status.widget.php | 28 |
2 files changed, 17 insertions, 18 deletions
diff --git a/usr/local/www/status_services.php b/usr/local/www/status_services.php index 608804f..1bbd976 100755 --- a/usr/local/www/status_services.php +++ b/usr/local/www/status_services.php @@ -229,10 +229,8 @@ include("fbegin.inc"); <form action="status_services.php" method="post"> <?php if ($savemsg) print_info_box($savemsg); ?> -<p> - <div id="boxarea"> -<table class="tabcont sortable" width="100%" border="0" cellpadding="0" cellspacing="0"> +<table class="tabcont sortable" width="100%" border="0" cellpadding="0" cellspacing="0" summary="status services"> <thead> <tr> <td class="listhdrr" align="center"><?=gettext("Service");?></td> @@ -255,7 +253,7 @@ if (count($services) > 0) { echo '<tr><td class="listlr" width="20%">' . $service['name'] . '</td>' . "\n"; echo '<td class="listr" width="55%">' . $service['description'] . '</td>' . "\n"; echo get_service_status_icon($service, true, true); - echo '<td valign="middle" class="list" nowrap>'; + echo '<td valign="middle" class="list nowrap">'; echo get_service_control_links($service); $scut = get_shortcut_by_service_name($service['name']); if (!empty($scut)) { @@ -273,7 +271,6 @@ if (count($services) > 0) { </tbody> </table> </div> -</p> </form> <?php include("fend.inc"); ?> </body> diff --git a/usr/local/www/widgets/widgets/services_status.widget.php b/usr/local/www/widgets/widgets/services_status.widget.php index 11ecfcd..d69919b 100644 --- a/usr/local/www/widgets/widgets/services_status.widget.php +++ b/usr/local/www/widgets/widgets/services_status.widget.php @@ -46,21 +46,21 @@ if(isset($_POST['servicestatusfilter'])) { header("Location: ../../index.php"); } ?> -<input type="hidden" id="services_status-config" name="services_status-config" value=""> -<div id="services_status-settings" name="services_status-settings" class="widgetconfigdiv" style="display:none;"> - <form action="/widgets/widgets/services_status.widget.php" method="post" name="iforma"> +<input type="hidden" id="services_status-config" name="services_status-config" value="" /> +<div id="services_status-settings" class="widgetconfigdiv" style="display:none;"> + <form action="/widgets/widgets/services_status.widget.php" method="post" name="iformd"> Comma separated list of services to NOT display in the widget<br /> - <input type="text" length="30" name="servicestatusfilter" class="formfld unknown" id="servicestatusfilter" value="<?= $config['widgets']['servicestatusfilter'] ?>"> - <input id="submita" name="submita" type="submit" class="formbtn" value="Save" /> + <input type="text" size="30" name="servicestatusfilter" class="formfld unknown" id="servicestatusfilter" value="<?= $config['widgets']['servicestatusfilter'] ?>" /> + <input id="submitd" name="submitd" type="submit" class="formbtn" value="Save" /> </form> </div> -<table width="100%" border="0" cellpadding="0" cellspacing="0"> +<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="services"> <tr> - <td class="widgetsubheader"><b><center>Service</center></b></td> - <td class="widgetsubheader"><b><center>Description</center></b></td> - <td class="widgetsubheader"><b><center>Status</center></b></td> - <td class="widgetsubheader"> </td> + <td class="widgetsubheader" align="center"><b>Service></b></td> + <td class="widgetsubheader" align="center"><b>Description</b></td> + <td class="widgetsubheader" align="center"><b>Status</b></td> + <td class="widgetsubheader"> </td> </tr> <?php $skipservices = explode(",", $config['widgets']['servicestatusfilter']); @@ -76,19 +76,21 @@ if (count($services) > 0) { echo '<tr><td class="listlr">' . $service['name'] . '</td>' . "\n"; echo '<td class="listr">' . $service_desc[0] . '</td>' . "\n"; echo get_service_status_icon($service, false, true); - echo '<td valign="middle" class="list" nowrap>'; + echo '<td valign="middle" class="list nowrap">'; echo get_service_control_links($service); echo "</td></tr>\n"; } } else { - echo "<tr><td colspan=\"3\"><center>" . gettext("No services found") . ".</td></tr>\n"; + echo "<tr><td colspan=\"3\" align=\"center\">" . gettext("No services found") . ".</td></tr>\n"; } ?> </table> <!-- needed to display the widget settings menu --> -<script language="javascript" type="text/javascript"> +<script type="text/javascript"> +//<![CDATA[ selectIntLink = "services_status-configure"; textlink = document.getElementById(selectIntLink); textlink.style.display = "inline"; +//]]> </script> |