mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Tidy up widgets XHTML
Added summary to TABLE tags Closed BR tags Added alt to IMG tags Tidied up CDATA section in scritps.
This commit is contained in:
parent
bcab1b076d
commit
8c5a9058d0
@ -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>
|
||||
|
||||
@ -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&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; ?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user