Projet

Général

Profil

« Précédent | Suivant » 

Révision d456b043

Ajouté par Colin Fleming il y a presque 10 ans

Tidy up "status_queues.php" XHTML

Add CDATA sections to SCRIPTS
Add SUMMARY to TABLES
Move NOWRAP into CLASS statement

Voir les différences:

usr/local/www/status_queues.php
135 135
<?php if (!$error): ?>
136 136
<form action="status_queues.php" method="post">
137 137
<script type="text/javascript">
138
	/*<![CDATA[*/
138
//<![CDATA[
139 139
	function getqueueactivity() {
140 140
		var url = "/status_queues.php";
141 141
		var pars = "getactivity=yes&stats=" + jQuery("#selStatistic").val();
......
153 153
	jQuery(document).ready(function(){
154 154
		setTimeout('getqueueactivity()', 150);
155 155
	});
156
	/*]]>*/
156
//]]>
157 157
</script>
158 158
<?php endif; ?>
159
<table width="100%" border="1" cellpadding="0" cellspacing="0">
159
<table width="100%" border="1" cellpadding="0" cellspacing="0" summary="status queues">
160 160
<?php if ($error): ?>
161 161
	<tr><td><?php echo $error; ?></td></tr>
162 162
<?php else: ?>
......
187 187
	<?=gettext("You can configure the Traffic Shaper"); ?> <a href="/firewall_shaper_wizards.php"><?=gettext("here"); ?></a>.
188 188
</p>
189 189
<script type="text/javascript">
190
//<![CDATA[
190 191
	function StatsShowHide(classname) {
191 192
    var firstrow = jQuery("." + classname).first();
192 193
    if (firstrow.is(':visible')) {
......
194 195
    else {
195 196
        jQuery("." + classname).show();}
196 197
	}
198
//]]>
197 199
</script>
198 200
</form>
199 201
<?php include("fend.inc"); ?>
......
234 236
			</td>
235 237
			<?php
236 238
			$cpuUsage = 0;
237
			echo "<td nowrap=\"nowrap\" width=\"1%\" bgcolor=\"#{$row_background}\">";
239
			echo "<td class=\"nowrap\" width=\"1%\" bgcolor=\"#{$row_background}\">";
238 240
			echo "<img src='./themes/".$g['theme']."/images/misc/bar_left.gif' height='10' width='4' border='0' align='middle' alt='' />";
239 241
			echo "<img src='./themes/".$g['theme']."/images/misc/bar_blue.gif' height='10' name='queue{$q['name']}{$q['interface']}widtha' id='queue{$q['name']}{$q['interface']}widtha' width='" . $cpuUsage . "' border='0' align='middle' alt='" . htmlspecialchars($q['name']) . "' />";
240 242
			echo "<img src='./themes/".$g['theme']."/images/misc/bar_gray.gif' height='10' name='queue{$q['name']}{$q['interface']}widthb' id='queue{$q['name']}{$q['interface']}widthb' width='" . (150 - $cpuUsage) . "' border='0' align='middle' alt='" . htmlspecialchars($q['name']) . "' />";

Formats disponibles : Unified diff