Tidy up "smart" widget XHTML

Added a new include file.
Added summart to table tag
This commit is contained in:
Colin Fleming 2013-03-05 19:03:59 +00:00
parent bcab1b076d
commit 623ee86740
2 changed files with 11 additions and 6 deletions

View File

@ -0,0 +1,5 @@
<?php
//set variable for custom title
$smart_status_title = "SMART Status";
$smart_status_title_link = "diag_smart.php";
?>

View File

@ -29,13 +29,14 @@
require_once("guiconfig.inc");
require_once("pfsense-utils.inc");
require_once("functions.inc");
require_once("/usr/local/www/widgets/include/smart_status.inc");
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="smart status">
<tr>
<td class="widgetsubheader"><b><center><?php echo gettext("Drive") ?></center></b></td>
<td class="widgetsubheader"><b><center><?php echo gettext("Ident") ?></center></b></td>
<td class="widgetsubheader"><b><center><?php echo gettext("SMART Status") ?></center></b></td>
<td class="widgetsubheader" align="center"><b><?php echo gettext("Drive") ?></b></td>
<td class="widgetsubheader" align="center"><b><?php echo gettext("Ident") ?></b></td>
<td class="widgetsubheader" align="center"><b><?php echo gettext("SMART Status") ?></b></td>
</tr>
<?php
@ -53,10 +54,9 @@ if(count($devs) > 0) {
<tr>
<td class="listlr"><?php echo $dev; ?></td>
<td class="listr" align="center"><?php echo $dev_ident; ?></td>
<td class="listr" align="center"><span style="background-color:<?php echo $color; ?>"><?php echo $dev_state; ?></span></td>
<td class="listr" align="center"><span style="background-color:<?php echo $color; ?>">&nbsp;<?php echo $dev_state; ?>&nbsp;</span></td>
</tr>
<?php }
}
?>
</table>
<center><a href="diag_smart.php" class="navlink">SMART Status</a></center>