summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/widgets/installed_packages.widget.php
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2013-03-05 18:12:04 +0000
committerColin Fleming <cj_fleming@sky.com>2013-03-05 18:12:04 +0000
commit8c5a9058d065ec9fc0c24ca1f152e35cebdfa0f7 (patch)
tree9adc6084ebbe841b02ecb8a4e82f1565ebeb890c /usr/local/www/widgets/widgets/installed_packages.widget.php
parentbcab1b076d4a73bf2ffdb3aa527fe0157185a6cb (diff)
downloadpfsense-8c5a9058d065ec9fc0c24ca1f152e35cebdfa0f7.zip
pfsense-8c5a9058d065ec9fc0c24ca1f152e35cebdfa0f7.tar.gz
Tidy up widgets XHTML
Added summary to TABLE tags Closed BR tags Added alt to IMG tags Tidied up CDATA section in scritps.
Diffstat (limited to 'usr/local/www/widgets/widgets/installed_packages.widget.php')
-rw-r--r--usr/local/www/widgets/widgets/installed_packages.widget.php14
1 files changed, 8 insertions, 6 deletions
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