diff options
author | Jim P <jim@pingle.org> | 2013-03-05 09:04:31 -0800 |
---|---|---|
committer | Jim P <jim@pingle.org> | 2013-03-05 09:04:31 -0800 |
commit | 3f716aa6cb55b9e2d31a6477c175a5e4efd15361 (patch) | |
tree | 3aa7b4dca960325ecbfbd7e242dde851d30a945e /usr | |
parent | bcab1b076d4a73bf2ffdb3aa527fe0157185a6cb (diff) | |
parent | 9c07440e2c57b034344a41ad544335e2243d1152 (diff) | |
download | pfsense-3f716aa6cb55b9e2d31a6477c175a5e4efd15361.zip pfsense-3f716aa6cb55b9e2d31a6477c175a5e4efd15361.tar.gz |
Merge pull request #448 from ExolonDX/branch_01
Tidy up "system_information" widgets XHTML
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/widgets/widgets/system_information.widget.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php index 02e1439..403b24c 100644 --- a/usr/local/www/widgets/widgets/system_information.widget.php +++ b/usr/local/www/widgets/widgets/system_information.widget.php @@ -83,8 +83,8 @@ if($_REQUEST['getupdatestatus']) { $curcfg = $config['system']['firmware']; ?> -</script> -<table width="100%" border="0" cellspacing="0" cellpadding="0"> + +<table width="100%" border="0" cellspacing="0" cellpadding="0" summary="system information"> <tbody> <tr> <td width="25%" class="vncellt">Name</td> @@ -98,7 +98,7 @@ $curcfg = $config['system']['firmware']; <br /> built on <?php readfile("/etc/version.buildtime"); ?> <br /> - <div name="uname" id="uname"><a href="#" onClick='swapuname(); return false;'><?php echo php_uname("s") . " " . php_uname("r"); ?></a></div> + <div id="uname"><a href="#" onclick='swapuname(); return false;'><?php echo php_uname("s") . " " . php_uname("r"); ?></a></div> <?php if(!isset($config['system']['firmware']['disablecheck'])): ?> <div id='updatestatus'><br/><?php echo gettext("Obtaining update status"); ?> ...</div> <?php endif; ?> @@ -168,7 +168,7 @@ $curcfg = $config['system']['firmware']; <?php $dns_servers = get_dns_servers(); foreach($dns_servers as $dns) { - echo "{$dns}<br>"; + echo "{$dns}<br/>"; } ?> </td> @@ -202,7 +202,7 @@ $curcfg = $config['system']['firmware']; <td width="25%" class="vncellt">Temperature</td> <td width="75%" class="listr"> <?php $TempMeter = $temp = get_temp(); ?> - <img src="./themes/<?= $g['theme']; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_blue.gif" height="15" name="tempwidtha" id="tempwidtha" width="<?= $TempMeter; ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_gray.gif" height="15" name="tempwidthb" id="tempwidthb" width="<?= (100 - $TempMeter); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" /> + <img src="./themes/<?= $g['theme']; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_blue.gif" height="15" name="tempwidtha" id="tempwidtha" width="<?= round($TempMeter); ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_gray.gif" height="15" name="tempwidthb" id="tempwidthb" width="<?= (100 - $TempMeter); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" /> <span id="tempmeter"><?= $temp."°C"; ?></span> </td> @@ -255,6 +255,7 @@ $curcfg = $config['system']['firmware']; </tbody> </table> <script type="text/javascript"> +//<![CDATA[ function swapuname() { jQuery('#uname').html("<?php echo php_uname("a"); ?>"); } @@ -278,4 +279,5 @@ $curcfg = $config['system']['firmware']; } setTimeout('getstatus()', 4000); <?php endif; ?> +//]]> </script> |