Project

General

Profile

« Previous | Next » 

Revision f4245bbc

Added by Colin Fleming about 12 years ago

Tidy up "firewall_rules.php" XHTML

Close INPUT, BR and IMG tags and add ALT to IMG tags
Deprecate the ampersand in ANCHOR tags
Move NOWRAP to class statement
Add missing closing FONT
Add missing opening and closing TR tags
Add CDATA sections to SCRIPT tags

View differences:

usr/local/www/firewall_rules.php
301 301
<?php include("fbegin.inc"); ?>
302 302
<form action="firewall_rules.php" method="post">
303 303

  
304
<script type="text/javascript" language="javascript" src="/javascript/row_toggle.js">
305
</script>
304
<script type="text/javascript" language="javascript" src="/javascript/row_toggle.js"></script>
306 305
<?php if ($savemsg) print_info_box($savemsg); ?>
307 306
<?php if (is_subsystem_dirty('filter')): ?><p>
308 307
<?php
309 308
if($_REQUEST['undodrag']) {
310 309
	foreach($_REQUEST['dragtable'] as $dt)
311 310
		$dragtable .= "&dragtable[]={$dt}";
312
	print_info_box_np_undo(gettext("The firewall rule configuration has been changed.<br>You must apply the changes in order for them to take effect."), "apply" , gettext("Apply changes") , "firewall_rules.php?if={$_REQUEST['if']}&dragdroporder=true&{$dragtable}");
311
	print_info_box_np_undo(gettext("The firewall rule configuration has been changed.<br/>You must apply the changes in order for them to take effect."), "apply" , gettext("Apply changes") , "firewall_rules.php?if={$_REQUEST['if']}&dragdroporder=true&{$dragtable}");
313 312
} else {
314
	print_info_box_np(gettext("The firewall rule configuration has been changed.<br>You must apply the changes in order for them to take effect."));
313
	print_info_box_np(gettext("The firewall rule configuration has been changed.<br/>You must apply the changes in order for them to take effect."));
315 314
}
316 315
?>
317
<br>
316
<br/>
318 317
<?php endif; ?>
319 318
<div id="loading" style="visibity:hidden">
320
	<img src="/themes/<?=$g['theme']?>/images/misc/loader.gif"> Loading, please wait...
319
	<img src="/themes/<?=$g['theme']?>/images/misc/loader.gif" alt="loader" /> Loading, please wait...
321 320
	<p/>&nbsp;
322 321
</div>
323 322
<?php
......
384 383
					?>
385 384
					<td>
386 385
					<?php if ($nrules == 0): ?>
387
						<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x_d.gif" width="17" height="17" title="<?gettext("delete selected rules"); ?>" border="0"><?php else: ?>
388
						<input name="del" type="image" src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" title="<?=gettext("delete selected rules");?>" onclick="return confirm('<?=gettext('Do you really want to delete the selected rules?');?>')">
386
						<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x_d.gif" width="17" height="17" title="<?gettext("delete selected rules"); ?>" border="0" alt="delete" /><?php else: ?>
387
						<input name="del" type="image" src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" style="width:17;height:17" title="<?=gettext("delete selected rules");?>" onclick="return confirm('<?=gettext('Do you really want to delete the selected rules?');?>')" />
389 388
					<?php endif; ?>
390 389
					</td>
391
					<td align="center" valign="middle"><a href="firewall_rules_edit.php?if=<?=htmlspecialchars($if);?>&after=-1"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add new rule");?>" width="17" height="17" border="0"></a></td>
390
					<td align="center" valign="middle"><a href="firewall_rules_edit.php?if=<?=htmlspecialchars($if);?>&amp;after=-1"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add new rule");?>" width="17" height="17" border="0" alt="add" /></a></td>
392 391
					</tr>
393 392
				</table>
394 393
			</td>
......
402 401
			?>
403 402
			<tr valign="top" id="antilockout">
404 403
			<td class="list">&nbsp;</td>
405
			<td class="listt" align="center"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_pass.gif" width="11" height="11" border="0"></td>
404
			<td class="listt" align="center"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_pass.gif" width="11" height="11" border="0" alt="pass" /></td>
406 405
			<td class="listlr" style="background-color: #E0E0E0">&nbsp;</td>
407 406
			<?php
408 407
				pfSense_handle_custom_code("/usr/local/pkg/firewall_rules/pre_id_tr_antilockout");
......
416 415
			<td class="listr" style="background-color: #E0E0E0">*</td>
417 416
			<td class="listr" style="background-color: #E0E0E0">&nbsp;</td>
418 417
			<td class="listbg"><?=gettext("Anti-Lockout Rule");?></td>
419
			<td valign="middle" nowrap class="list">
418
			<td valign="middle" class="list nowrap">
420 419
			<table border="0" cellspacing="0" cellpadding="1">
421 420
				<tr>
422
					<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_left_d.gif" width="17" height="17" title="<?=gettext("move selected rules before this rule");?>"></td>
423
					<td><a href="system_advanced_admin.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit rule");?>" width="17" height="17" border="0"></a></td>
421
					<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_left_d.gif" width="17" height="17" title="<?=gettext("move selected rules before this rule");?>" alt="move" /></td>
422
					<td><a href="system_advanced_admin.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit rule");?>" width="17" height="17" border="0" alt="edit" /></a></td>
424 423
				</tr>
425 424
				<tr>
426 425
					<td align="center" valign="middle"></td>
427
					<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus_d.gif" title="<?=gettext("add a new rule based on this one");?>" width="17" height="17" border="0"></td>
426
					<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus_d.gif" title="<?=gettext("add a new rule based on this one");?>" width="17" height="17" border="0" alt="add" /></td>
428 427
				</tr>
429 428
				</table>
430 429
			</td>
......
434 433
<?php if (isset($config['interfaces'][$if]['blockpriv'])): ?>
435 434
			<tr valign="top" id="frrfc1918">
436 435
			<td class="list">&nbsp;</td>
437
			<td class="listt" align="center"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_block.gif" width="11" height="11" border="0"></td>
436
			<td class="listt" align="center"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_block.gif" width="11" height="11" border="0" alt=""block" /></td>
438 437
			<td class="listlr" style="background-color: #E0E0E0">&nbsp;</td>
439 438
			<td class="listr" style="background-color: #E0E0E0">*</td>
440 439
			<td class="listr" style="background-color: #E0E0E0"><?=gettext("RFC 1918 networks");?></td>
......
445 444
			<td class="listr" style="background-color: #E0E0E0">*</td>
446 445
			<td class="listr" style="background-color: #E0E0E0">&nbsp;</td>
447 446
			<td class="listbg"><?=gettext("Block private networks");?></td>
448
			<td valign="middle" nowrap class="list">
447
			<td valign="middle" class="list nowrap">
449 448
				<table border="0" cellspacing="0" cellpadding="1">
450 449
					<tr>
451
					<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_left_d.gif" width="17" height="17" title="<?=gettext("move selected rules before this rule");?>"></td>
452
					<td><a href="interfaces.php?if=<?=htmlspecialchars($if)?>#rfc1918"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit rule");?>" width="17" height="17" border="0"></a></td>
450
					<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_left_d.gif" width="17" height="17" title="<?=gettext("move selected rules before this rule");?>" alt="edit" /></td>
451
					<td><a href="interfaces.php?if=<?=htmlspecialchars($if)?>#rfc1918"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit rule");?>" width="17" height="17" border="0" alt="edit" /></a></td>
453 452
					</tr>
454 453
					<tr>
455 454
					<td align="center" valign="middle"></td>
456
					<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus_d.gif" title="<?=gettext("add a new rule based on this one");?>" width="17" height="17" border="0"></td>
455
					<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus_d.gif" title="<?=gettext("add a new rule based on this one");?>" width="17" height="17" border="0" alt="add" /></td>
457 456
					</tr>
458 457
				</table>
459 458
			</td>
......
462 461
<?php if (isset($config['interfaces'][$if]['blockbogons'])): ?>
463 462
			<tr valign="top" id="frrfc1918">
464 463
			<td class="list">&nbsp;</td>
465
			<td class="listt" align="center"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_block.gif" width="11" height="11" border="0"></td>
464
			<td class="listt" align="center"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_block.gif" width="11" height="11" border="0" alt="block" /></td>
466 465
			<td class="listlr" style="background-color: #E0E0E0">&nbsp;</td>
467 466
			<td class="listr" style="background-color: #E0E0E0">*</td>
468 467
			<td class="listr" style="background-color: #E0E0E0"><?=gettext("Reserved/not assigned by IANA");?></td>
......
473 472
			<td class="listr" style="background-color: #E0E0E0">*</td>
474 473
			<td class="listr" style="background-color: #E0E0E0">*</td>
475 474
			<td class="listbg"><?=gettext("Block bogon networks");?></td>
476
			<td valign="middle" nowrap class="list">
475
			<td valign="middle" class="list nowrap">
477 476
				<table border="0" cellspacing="0" cellpadding="1">
478 477
					<tr>
479
					<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_left_d.gif" width="17" height="17" title="<?=gettext("move selected rules before this rule");?>"></td>
480
					<td><a href="interfaces.php?if=<?=htmlspecialchars($if)?>#rfc1918"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit rule");?>" width="17" height="17" border="0"></a></td>
478
					<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_left_d.gif" width="17" height="17" title="<?=gettext("move selected rules before this rule");?>" alt="move" /></td>
479
					<td><a href="interfaces.php?if=<?=htmlspecialchars($if)?>#rfc1918"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit rule");?>" width="17" height="17" border="0" alt=" edit" /></a></td>
481 480
					</tr>
482 481
					<tr>
483 482
					<td align="center" valign="middle"></td>
484
					<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus_d.gif" title="<?=gettext("add a new rule based on this one");?>" width="17" height="17" border="0"></td>
483
					<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus_d.gif" title="<?=gettext("add a new rule based on this one");?>" width="17" height="17" border="0" alt="add" /></td>
485 484
					</tr>
486 485
				</table>
487 486
			</td>
488 487
			</tr>
489 488
<?php endif; ?>
490
			<tbody id="dragtable" width="100%">
489
			<tbody id="dragtable">
491 490
<?php $nrules = 0; for ($i = 0; isset($a_filter[$i]); $i++):
492 491
	pfSense_handle_custom_code("/usr/local/pkg/firewall_rules/row_start");
493 492
	$filterent = $a_filter[$i];
......
497 496
		continue;
498 497
	$isadvset = firewall_check_for_advanced_options($filterent);
499 498
	if($isadvset)
500
		$advanced_set = "<img src=\"./themes/{$g['theme']}/images/icons/icon_advanced.gif\" title=\"" . gettext("advanced settings set") . ": {$isadvset}\" border=\"0\">";
499
		$advanced_set = "<img src=\"./themes/{$g['theme']}/images/icons/icon_advanced.gif\" title=\"" . gettext("advanced settings set") . ": {$isadvset}\" border=\"0\" alt=\"avanced\" />";
501 500
	else
502 501
		$advanced_set = "";
503 502
?>
504 503
			<tr valign="top" id="fr<?=$nrules;?>">
505 504
			<td class="listt">
506
				<input type="checkbox" id="frc<?=$nrules;?>" name="rule[]" value="<?=$i;?>" onClick="fr_bgcolor('<?=$nrules;?>')" style="margin: 0; padding: 0; width: 15px; height: 15px;">
505
				<input type="checkbox" id="frc<?=$nrules;?>" name="rule[]" value="<?=$i;?>" onclick="fr_bgcolor('<?=$nrules;?>')" style="margin: 0; padding: 0; width: 15px; height: 15px;" />
507 506
				<?php echo $advanced_set; ?>
508 507
			</td>
509 508
			<td class="listt" align="center">
......
522 521
					$textss = $textse = "";
523 522
				}
524 523
			?>
525
				<a href="?if=<?=htmlspecialchars($if);?>&act=toggle&id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_<?=$iconfn;?>.gif" width="11" height="11" border="0" title="<?=gettext("click to toggle enabled/disabled status");?>"></a>
524
				<a href="?if=<?=htmlspecialchars($if);?>&amp;act=toggle&amp;id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_<?=$iconfn;?>.gif" width="11" height="11" border="0" title="<?=gettext("click to toggle enabled/disabled status");?>" alt="icon" /></a>
526 525
			<?php
527 526
				if (isset($filterent['log'])):
528 527
					$iconfnlog = "log_s";
529 528
				if (isset($filterent['disabled']))
530 529
					$iconfnlog .= "_d";
531 530
			?>
532
			<br><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_<?=$iconfnlog;?>.gif" width="11" height="15" border="0">
531
			<br/><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_<?=$iconfnlog;?>.gif" width="11" height="15" border="0" alt="icon" />
533 532
<?php endif; ?>
534 533
			</td>
535 534
			<?php
......
653 652
									}
654 653
									$timeFriendly = $starttime . " - " . $stoptime;
655 654
									$description = $timerange['rangedescr'];
656
									$sched_content .= $dayFriendly . "; " . $timeFriendly . "<br>";
655
									$sched_content .= $dayFriendly . "; " . $timeFriendly . "<br/>";
657 656
								}
658 657
							}
659 658
							$sched_caption_escaped = str_replace("'", "\'", $schedule['descr']);
......
685 684
					}
686 685
				}
687 686
			?>
688
			<td class="listlr" onClick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
687
			<td class="listlr" onclick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
689 688
				<?=$textss;?><?php if (isset($filterent['id'])) echo $filterent['id']."&nbsp;"; else echo "&nbsp;"; ?><?=$textse;?>
690 689
			</td>
691 690
			<?php
692 691
				pfSense_handle_custom_code("/usr/local/pkg/firewall_rules/pre_id_tr");
693 692
			?>
694
			<td class="listr" onClick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
693
			<td class="listr" onclick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
695 694
			<?=$textss;?>
696 695
			<?php
697 696
				if (isset($filterent['ipprotocol'])) {
......
720 719
			?>
721 720
			<?=$textse;?>
722 721
			</td>
723
			<td class="listr" onClick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
722
			<td class="listr" onclick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
724 723
				<?=$textss;?><?php echo $alias_src_span_begin;?><?php echo htmlspecialchars(pprint_address($filterent['source']));?><?php echo $alias_src_span_end;?><?=$textse;?>
725 724
			</td>
726
			<td class="listr" onClick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
725
			<td class="listr" onclick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
727 726
				<?=$textss;?><?php echo $alias_src_port_span_begin;?><?php echo htmlspecialchars(pprint_port($filterent['source']['port'])); ?><?php echo $alias_src_port_span_end;?><?=$textse;?>
728 727
			</td>
729
			<td class="listr" onClick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
728
			<td class="listr" onclick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
730 729
				<?=$textss;?><?php echo $alias_dst_span_begin;?><?php echo htmlspecialchars(pprint_address($filterent['destination'])); ?><?php echo $alias_dst_span_end;?><?=$textse;?>
731 730
			</td>
732
			<td class="listr" onClick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
731
			<td class="listr" onclick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
733 732
				<?=$textss;?><?php echo $alias_dst_port_span_begin;?><?php echo htmlspecialchars(pprint_port($filterent['destination']['port'])); ?><?php echo $alias_dst_port_span_end;?><?=$textse;?>
734 733
			</td>
735
			<td class="listr" onClick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
734
			<td class="listr" onclick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
736 735
				<?=$textss;?><?php if (isset($config['interfaces'][$filterent['gateway']]['descr'])) echo htmlspecialchars($config['interfaces'][$filterent['gateway']]['descr']); else  echo htmlspecialchars(pprint_port($filterent['gateway'])); ?><?=$textse;?>
737 736
			</td>
738
			<td class="listr" onClick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
737
			<td class="listr" onclick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
739 738
			<?=$textss;?>
740 739
			<?php
741 740
				if (isset($filterent['ackqueue']) && isset($filterent['defaultqueue'])) {
742 741
					$desc = $filterent['ackqueue'] ;
743
					echo "<a href=\"firewall_shaper_queues.php?queue={$filterent['ackqueue']}&action=show\">{$desc}</a>";
742
					echo "<a href=\"firewall_shaper_queues.php?queue={$filterent['ackqueue']}&amp;action=show\">{$desc}</a>";
744 743
					$desc = $filterent['defaultqueue'];
745
					echo "/<a href=\"firewall_shaper_queues.php?queue={$filterent['defaultqueue']}&action=show\">{$desc}</a>";
744
					echo "/<a href=\"firewall_shaper_queues.php?queue={$filterent['defaultqueue']}&amp;action=show\">{$desc}</a>";
746 745
				} else if (isset($filterent['defaultqueue'])) {
747 746
					$desc = $filterent['defaultqueue'];
748
					echo "<a href=\"firewall_shaper_queues.php?queue={$filterent['defaultqueue']}&action=show\">{$desc}</a>";
747
					echo "<a href=\"firewall_shaper_queues.php?queue={$filterent['defaultqueue']}&amp;action=show\">{$desc}</a>";
749 748
				} else
750 749
					echo gettext("none");
751 750
			?>
752 751
			<?=$textse;?>
753 752
			</td>
754
			<td class="listr" onClick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';"><font color="black">
755
				<?php if ($printicon) { ?><img src="./themes/<?= $g['theme']; ?>/images/icons/<?php echo $image; ?>.gif" title="<?php echo $alttext;?>" border="0"><?php } ?>&nbsp;<?=$textss;?><?php echo $schedule_span_begin;?><?=htmlspecialchars($filterent['sched']);?><?php echo $schedule_span_end; ?><?=$textse;?>
756
			</td>
753
			<td class="listr" onclick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';"><font color="black">
754
				<?php if ($printicon) { ?><img src="./themes/<?= $g['theme']; ?>/images/icons/<?php echo $image; ?>.gif" title="<?php echo $alttext;?>" border="0" alt="icon" /><?php } ?>&nbsp;<?=$textss;?><?php echo $schedule_span_begin;?><?=htmlspecialchars($filterent['sched']);?><?php echo $schedule_span_end; ?><?=$textse;?>
755
			</font></td>
757 756
			<?php
758 757
				pfSense_handle_custom_code("/usr/local/pkg/firewall_rules/pre_descr_tr");
759 758
			?>
760
			<td class="listbg" onClick="fr_toggle(<?=$nrules;?>)" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';" class="descr">
759
			<td class="listbg descr" onclick="fr_toggle(<?=$nrules;?>)" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
761 760
				<?=$textss;?><?=htmlspecialchars($filterent['descr']);?>&nbsp;<?=$textse;?>
762 761
			</td>
763
			<td valign="middle" nowrap class="list">
762
			<td valign="middle" class="list nowrap">
764 763
				<table border="0" cellspacing="0" cellpadding="1">
765 764
					<tr>
766
					<td><input name="move_<?=$i;?>" type="image" src="./themes/<?= $g['theme']; ?>/images/icons/icon_left.gif" width="17" height="17" title="<?=gettext("move selected rules before this rule"); ?>" onMouseOver="fr_insline(<?=$nrules;?>, true)" onMouseOut="fr_insline(<?=$nrules;?>, false)"></td>
767
					<td><a href="firewall_rules_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit rule"); ?>" width="17" height="17" border="0"></a></td>
765
					<td><input name="move_<?=$i;?>" type="image" src="./themes/<?= $g['theme']; ?>/images/icons/icon_left.gif" style="width:17;height:17" title="<?=gettext("move selected rules before this rule"); ?>" onmouseover="fr_insline(<?=$nrules;?>, true)" onmouseout="fr_insline(<?=$nrules;?>, false)" /></td>
766
					<td><a href="firewall_rules_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit rule"); ?>" width="17" height="17" border="0" alt="edit" /></a></td>
768 767
					</tr>
769 768
					<tr>
770
					<td align="center" valign="middle"><a href="firewall_rules.php?act=del&if=<?=htmlspecialchars($if);?>&id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title="<?=gettext("delete rule"); ?>" onclick="return confirm('Do you really want to delete this rule?')"></a></td>
771
					<td><a href="firewall_rules_edit.php?dup=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add a new rule based on this one"); ?>" width="17" height="17" border="0"></a></td>
769
					<td align="center" valign="middle"><a href="firewall_rules.php?act=del&amp;if=<?=htmlspecialchars($if);?>&amp;id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title="<?=gettext("delete rule"); ?>" onclick="return confirm('Do you really want to delete this rule?')" alt="delete" /></a></td>
770
					<td><a href="firewall_rules_edit.php?dup=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add a new rule based on this one"); ?>" width="17" height="17" border="0" alt="add" /></a></td>
772 771
					</tr>
773 772
				</table>
774 773
			</td>
775 774
			</tr>
776 775
			<?php $nrules++; endfor; ?>
777
			  </tbody>
776
			  <tr><td></td></tr></tbody>
778 777
<?php if ($nrules == 0): ?>
778
			<tr>
779 779
			<td class="listt"></td>
780 780
			<td class="listt"></td>
781 781
			<td class="listlr" colspan="10" align="center" valign="middle">
......
786 786
				<?=gettext("No rules are currently defined for this interface"); ?><br/>
787 787
				<?=gettext("All incoming connections on this interface will be blocked until you add pass rules."); ?><br/><br/>
788 788
	<?php endif; ?>
789
				<?=gettext("Click the"); ?> <a href="firewall_rules_edit.php?if=<?=htmlspecialchars($if);?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add new rule");?>" border="0" width="17" height="17" align="absmiddle"></a><?=gettext(" button to add a new rule.");?></span>
789
				<?=gettext("Click the"); ?> <a href="firewall_rules_edit.php?if=<?=htmlspecialchars($if);?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add new rule");?>" border="0" width="17" height="17" align="middle" alt="add" /></a><?=gettext(" button to add a new rule.");?></span>
790 790
			</td>
791
			</tr>
791 792
<?php endif; ?>
792 793
			<tr id="fr<?=$nrules;?>">
793 794
			<td class="list"></td>
......
809 810
				<table border="0" cellspacing="0" cellpadding="1">
810 811
					<tr>
811 812
					<td>
812
						<?php if ($nrules == 0): ?><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_left_d.gif" width="17" height="17" title="<?=gettext("move selected rules to end");?>" border="0"><?php else: ?><input name="move_<?=$i;?>" type="image" src="./themes/<?= $g['theme']; ?>/images/icons/icon_left.gif" width="17" height="17" title="<?=gettext("move selected rules to end");?>" onMouseOver="fr_insline(<?=$nrules;?>, true)" onMouseOut="fr_insline(<?=$nrules;?>, false)"><?php endif; ?></td>
813
						<?php if ($nrules == 0): ?><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_left_d.gif" width="17" height="17" title="<?=gettext("move selected rules to end");?>" border="0" alt="move" /><?php else: ?><input name="move_<?=$i;?>" type="image" src="./themes/<?= $g['theme']; ?>/images/icons/icon_left.gif" style="width:17;height:17" title="<?=gettext("move selected rules to end");?>" onmouseover="fr_insline(<?=$nrules;?>, true)" onmouseout="fr_insline(<?=$nrules;?>, false)" /><?php endif; ?></td>
813 814
					<td></td>
814 815
					</tr>
815 816
					<tr>
816 817
					<td>
817 818
<?php if ($nrules == 0): ?>
818
						<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x_d.gif" width="17" height="17" title="<?=gettext("delete selected rules");?>" border="0"><?php else: ?>
819
						<input name="del" type="image" src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" title="<?=gettext("delete selected rules");?>" onclick="return confirm('<?=gettext('Do you really want to delete the selected rules?');?>')">
819
						<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x_d.gif" width="17" height="17" title="<?=gettext("delete selected rules");?>" border="0" alt="delete" /><?php else: ?>
820
						<input name="del" type="image" src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" style="width:17;height:17" title="<?=gettext("delete selected rules");?>" onclick="return confirm('<?=gettext('Do you really want to delete the selected rules?');?>')" />
820 821
<?php endif; ?>
821 822
					</td>
822
			                <td><a href="firewall_rules_edit.php?if=<?=htmlspecialchars($if);?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add new rule");?>" width="17" height="17" border="0"></a></td>
823
			                <td><a href="firewall_rules_edit.php?if=<?=htmlspecialchars($if);?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add new rule");?>" width="17" height="17" border="0" alt="add" /></a></td>
823 824
					</tr>
824 825
				</table>
825 826
			</td>
......
827 828
		</table>
828 829
		<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0">
829 830
			<tr>
830
				<td width="16"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_pass.gif" width="11" height="11"></td>
831
				<td width="16"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_pass.gif" width="11" height="11" alt="pass" /></td>
831 832
				<td><?=gettext("pass");?></td>
832 833
				<td width="14"></td>
833
				<td width="16"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_block.gif" width="11" height="11"></td>
834
				<td width="16"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_block.gif" width="11" height="11" alt="block" /></td>
834 835
				<td><?=gettext("block");?></td>
835 836
				<td width="14"></td>
836
				<td width="16"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_reject.gif" width="11" height="11"></td>
837
				<td width="16"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_reject.gif" width="11" height="11" alt="reject" /></td>
837 838
				<td><?=gettext("reject");?></td>
838 839
				<td width="14"></td>
839
				<td width="16"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_log.gif" width="11" height="11"></td>
840
				<td width="16"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_log.gif" width="11" height="11" alt="log" /></td>
840 841
				<td><?=gettext("log");?></td>
841 842
			</tr>
842 843
			<tr>
843
				<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_pass_d.gif" width="11" height="11"></td>
844
				<td nowrap><?=gettext("pass (disabled)");?></td>
844
				<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_pass_d.gif" width="11" height="11" alt="pass disabled" /></td>
845
				<td class="nowrap"><?=gettext("pass (disabled)");?></td>
845 846
				<td>&nbsp;</td>
846
				<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_block_d.gif" width="11" height="11"></td>
847
				<td nowrap><?=gettext("block (disabled)");?></td>
847
				<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_block_d.gif" width="11" height="11" alt="block disabled" /></td>
848
				<td class="nowrap"><?=gettext("block (disabled)");?></td>
848 849
				<td>&nbsp;</td>
849
				<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_reject_d.gif" width="11" height="11"></td>
850
				<td nowrap><?=gettext("reject (disabled)");?></td>
850
				<td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_reject_d.gif" width="11" height="11" alt="reject disabled" /></td>
851
				<td class="nowrap"><?=gettext("reject (disabled)");?></td>
851 852
				<td>&nbsp;</td>
852
				<td width="16"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_log_d.gif" width="11" height="11"></td>
853
				<td nowrap><?=gettext("log (disabled)");?></td>
853
				<td width="16"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_log_d.gif" width="11" height="11" alt="log disabled" /></td>
854
				<td class="nowrap"><?=gettext("log (disabled)");?></td>
854 855
			</tr>
855 856
			<tr>
856 857
				<td colspan="10">
857 858
					&nbsp;<p/>
858 859
					<strong>
859 860
						<span class="red"><?=gettext("Hint:");?></span>
860
					</strong><br>
861
					</strong><br/>
861 862
					<ul>
862 863
					<?php if ("FloatingRules" != $if): ?>
863 864
						<li><?=gettext("Rules are evaluated on a first-match basis (i.e. " .
......
882 883
	</td>
883 884
	</tr>
884 885
</table>
885
<input type="hidden" name="if" value="<?=htmlspecialchars($if);?>">
886
<input type="hidden" name="if" value="<?=htmlspecialchars($if);?>" />
886 887
<script type="text/javascript">
888
//<![CDATA[
887 889
	var number_of_rules = <?=$nrules?>;
888 890
	<?php $nrules = 0; for ($i = 0; isset($a_filter[$i]); $i++): ?>
889 891
	/*
......
910 912
		return;
911 913
	}
912 914
	jQuery('#loading').hide();
915
//]]>
913 916
</script>
914 917
</form>
915 918
<?php include("fend.inc"); ?>

Also available in: Unified diff