summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/widgets
diff options
context:
space:
mode:
authorJim P <jim@pingle.org>2013-03-05 11:23:08 -0800
committerJim P <jim@pingle.org>2013-03-05 11:23:08 -0800
commit800a628e1466e1df63b9b34fc1d980998b2e0fe2 (patch)
tree965d537443b0364b87fb9a093c73c743d938e758 /usr/local/www/widgets/widgets
parent456bae658596f46d8a19643b54d5bafed81de831 (diff)
parent8c5a9058d065ec9fc0c24ca1f152e35cebdfa0f7 (diff)
downloadpfsense-800a628e1466e1df63b9b34fc1d980998b2e0fe2.zip
pfsense-800a628e1466e1df63b9b34fc1d980998b2e0fe2.tar.gz
Merge pull request #455 from ExolonDX/branch_25
Tidy up "gmirror" and "installed packages" widgets XHTML
Diffstat (limited to 'usr/local/www/widgets/widgets')
-rw-r--r--usr/local/www/widgets/widgets/gmirror_status.widget.php8
-rw-r--r--usr/local/www/widgets/widgets/installed_packages.widget.php14
2 files changed, 12 insertions, 10 deletions
diff --git a/usr/local/www/widgets/widgets/gmirror_status.widget.php b/usr/local/www/widgets/widgets/gmirror_status.widget.php
index cbbead2..858d862 100644
--- a/usr/local/www/widgets/widgets/gmirror_status.widget.php
+++ b/usr/local/www/widgets/widgets/gmirror_status.widget.php
@@ -35,15 +35,15 @@ if ($_GET['textonly'] == "true") {
exit;
}
?>
-<table width="100%" border="0" cellspacing="0" cellpadding="0">
+<table width="100%" border="0" cellspacing="0" cellpadding="0" summary="gmirror status">
<tbody id="gmirror_status_table">
<?php echo gmirror_html_status(); ?>
</tbody>
</table>
-<script type="text/javascript" language="javascript">
- // <![CDATA[
+<script type="text/javascript">
+//<![CDATA[
var gmirrorupdater = new Ajax.PeriodicalUpdater('gmirror_status_table', '/widgets/widgets/gmirror_status.widget.php?textonly=true',
{ method: 'get', frequency: 5 } );
- // ]]>
+//]]>
</script>
diff --git a/usr/local/www/widgets/widgets/installed_packages.widget.php b/usr/local/www/widgets/widgets/installed_packages.widget.php
index 53f8f79..800bb58 100644
--- a/usr/local/www/widgets/widgets/installed_packages.widget.php
+++ b/usr/local/www/widgets/widgets/installed_packages.widget.php
@@ -49,7 +49,7 @@ if(is_array($config['installedpackages']['package'])) {
$updateavailable = false;
?>
-<table width="100%" border="0" cellpadding="6" cellspacing="0">
+<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="installed packages">
<tr>
<td width="15%" class="listhdrr">Package Name</td>
<td width="15%" class="listhdrr">Category</td>
@@ -78,11 +78,11 @@ $updateavailable = false;
$latest_package = $currentvers[$pkg['name']]['version'];
if($latest_package == false) {
// We can't determine this package's version status.
- echo "Current: Unknown.<br>Installed: " . $pkg['version'];
+ echo "Current: Unknown.<br/>Installed: " . $pkg['version'];
} elseif(strcmp($pkg['version'], $latest_package) > 0) {
/* we're running a newer version of the package */
echo "Current: {$latest_package}";
- echo "<br>Installed: {$pkg['version']}";
+ echo "<br/>Installed: {$pkg['version']}";
} elseif(strcmp($pkg['version'], $latest_package) < 0) {
/* our package is out of date */
$updateavailable = true;
@@ -91,7 +91,7 @@ $updateavailable = false;
<b>Update Available!</b></div><div style="float:left">
Current: <?php echo $latest_package; ?><br/>
Installed: <?php echo $pkg['version']; ?></div><div style="float:right">
- <a href="pkg_mgr_install.php?mode=reinstallpkg&pkg=<?= $pkg['name']; ?>"><img title="Update this package." src="./themes/<?= $g['theme']; ?>/images/icons/icon_reinstall_pkg.gif" width="17" height="17" border="0"/></a>
+ <a href="pkg_mgr_install.php?mode=reinstallpkg&amp;pkg=<?= $pkg['name']; ?>"><img title="Update this package." src="./themes/<?= $g['theme']; ?>/images/icons/icon_reinstall_pkg.gif" width="17" height="17" border="0" alt="reinstall" /></a>
</div>
<?php
$y++;
@@ -103,13 +103,14 @@ $updateavailable = false;
<?php }
}
} else {
- echo "<tr><td colspan=\"5\"><center>There are no packages currently installed.</td></tr>";
+ echo "<tr><td colspan=\"5\" align=\"center\">There are no packages currently installed.</td></tr>";
}
?>
</table>
<?php if ($updateavailable): ?>
-<script language="javascript" type="text/javascript">
+<script type="text/javascript">
+//<![CDATA[
window.onload = function(in_event)
{
for (y=1; y<=<?php echo $y;?>; y++){
@@ -117,5 +118,6 @@ $updateavailable = false;
jQuery(textID).effect('pulsate');
}
}
+//]]>
</script>
<?php endif; ?>
OpenPOWER on IntegriCloud