diff options
author | Phil Davis <phil.davis@inf.org> | 2015-04-17 15:40:12 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-04-17 15:40:12 +0545 |
commit | 04a2364b30daacfbc173efaab88cae3293dcbbbe (patch) | |
tree | 5a3e259b182d649c40bc481adc0ffb0174bdd2f9 /usr/local/www/diag_smart.php | |
parent | abaa7feb680dc6f6f9bc79577075c45b3786a061 (diff) | |
download | pfsense-04a2364b30daacfbc173efaab88cae3293dcbbbe.zip pfsense-04a2364b30daacfbc173efaab88cae3293dcbbbe.tar.gz |
Make diag_smart back button look like other buttons
The back button here was just a piece of text with no nice formatting.
This change codes it as a button in the same way that "Cancel" buttons are done elsewhere. It makes the SMART Diag results page look a bit more consistent with the rest of the pfSense GUI.
Diffstat (limited to 'usr/local/www/diag_smart.php')
-rw-r--r-- | usr/local/www/diag_smart.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/local/www/diag_smart.php b/usr/local/www/diag_smart.php index dd9da79..d85c4e6 100644 --- a/usr/local/www/diag_smart.php +++ b/usr/local/www/diag_smart.php @@ -68,10 +68,10 @@ pre { <?php include("fbegin.inc"); -// Highlates the words "PASSED", "FAILED", and "WARNING". +// Highlights the words "PASSED", "FAILED", and "WARNING". function add_colors($string) { - // To add words keep arrayes matched by numbers + // To add words keep arrays matched by numbers $patterns[0] = '/PASSED/'; $patterns[1] = '/FAILED/'; $patterns[2] = '/Warning/'; @@ -186,7 +186,7 @@ switch($action) { $config['system']['smartmonemail'] = $_POST['smartmonemail']; write_config(); - // Don't know what all this means, but it addes the config changed header when config is saved + // Don't know what all this means, but it adds the config changed header when config is saved $retval = 0; config_lock(); if(stristr($retval, "error") <> true) @@ -450,7 +450,9 @@ switch($action) { // print back button on pages if(isset($_POST['submit']) && $_POST['submit'] != "Save") { - echo '<br /><a href="' . $_SERVER['PHP_SELF'] . '">' . gettext("Back") . '</a>'; +?> + <input type="button" class="formbtn" value="<?=gettext("Back");?>" onclick="window.location.href='<?=$_SERVER['PHP_SELF'];?>'" /> +<?php } ?> <br /> |