summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2013-03-05 19:03:59 +0000
committerColin Fleming <cj_fleming@sky.com>2013-03-05 19:03:59 +0000
commit623ee86740492debfc5589d4bad3349ebeb9fbba (patch)
treeab1f054ffb6c723db7e743c679772ce8371cb386 /usr/local/www/widgets
parentbcab1b076d4a73bf2ffdb3aa527fe0157185a6cb (diff)
downloadpfsense-623ee86740492debfc5589d4bad3349ebeb9fbba.zip
pfsense-623ee86740492debfc5589d4bad3349ebeb9fbba.tar.gz
Tidy up "smart" widget XHTML
Added a new include file. Added summart to table tag
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