mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Tidy up "smart" widget XHTML
Added a new include file. Added summart to table tag
This commit is contained in:
parent
bcab1b076d
commit
623ee86740
5
usr/local/www/widgets/include/smart_status.inc
Normal file
5
usr/local/www/widgets/include/smart_status.inc
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
//set variable for custom title
|
||||
$smart_status_title = "SMART Status";
|
||||
$smart_status_title_link = "diag_smart.php";
|
||||
?>
|
||||
@ -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; ?>"> <?php echo $dev_state; ?> </span></td>
|
||||
</tr>
|
||||
<?php }
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<center><a href="diag_smart.php" class="navlink">SMART Status</a></center>
|
||||
Loading…
Reference in New Issue
Block a user