summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets
diff options
context:
space:
mode:
authorJim P <jim@pingle.org>2013-03-05 11:29:53 -0800
committerJim P <jim@pingle.org>2013-03-05 11:29:53 -0800
commitd4a5f36b864d5900a5cd37db1ca10c30bd3600b4 (patch)
treea97226764719b292fdc4b26970cf212d29383288 /usr/local/www/widgets
parent2686516d0804aa9b56c781f0b11f61a547eed967 (diff)
parent623ee86740492debfc5589d4bad3349ebeb9fbba (diff)
downloadpfsense-d4a5f36b864d5900a5cd37db1ca10c30bd3600b4.zip
pfsense-d4a5f36b864d5900a5cd37db1ca10c30bd3600b4.tar.gz
Merge pull request #460 from ExolonDX/branch_31
Tidy up "smart" widget XHTML
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r--usr/local/www/widgets/include/smart_status.inc5
-rw-r--r--usr/local/www/widgets/widgets/smart_status.widget.php12
2 files changed, 11 insertions, 6 deletions
diff --git a/usr/local/www/widgets/include/smart_status.inc b/usr/local/www/widgets/include/smart_status.inc
new file mode 100644
index 0000000..bbfa274
--- /dev/null
+++ b/usr/local/www/widgets/include/smart_status.inc
@@ -0,0 +1,5 @@
+<?php
+//set variable for custom title
+$smart_status_title = "SMART Status";
+$smart_status_title_link = "diag_smart.php";
+?>
diff --git a/usr/local/www/widgets/widgets/smart_status.widget.php b/usr/local/www/widgets/widgets/smart_status.widget.php
index 31bc56a..647b1d4 100644
--- a/usr/local/www/widgets/widgets/smart_status.widget.php
+++ b/usr/local/www/widgets/widgets/smart_status.widget.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; ?>">&nbsp;<?php echo $dev_state; ?>&nbsp;</span></td>
</tr>
<?php }
}
?>
</table>
-<center><a href="diag_smart.php" class="navlink">SMART Status</a></center> \ No newline at end of file
OpenPOWER on IntegriCloud