summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Dale <sdale@pfsense.org>2007-05-05 22:30:11 +0000
committerScott Dale <sdale@pfsense.org>2007-05-05 22:30:11 +0000
commit616dd997866a4bb16a84531359fdfb08061b78bb (patch)
tree3dfc1fd1efd3730ac3a3ee6f16c05f00965d16dc /usr/local
parent6fecc73bffccd18270b93a54ab9a965585f546e4 (diff)
downloadpfsense-616dd997866a4bb16a84531359fdfb08061b78bb.zip
pfsense-616dd997866a4bb16a84531359fdfb08061b78bb.tar.gz
schedule icon update
MFC: asap
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_rules.php63
1 files changed, 33 insertions, 30 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php
index 9dacd5e..0eb6fac 100755
--- a/usr/local/www/firewall_rules.php
+++ b/usr/local/www/firewall_rules.php
@@ -497,35 +497,38 @@ echo "<script type=\"text/javascript\" language=\"javascript\" src=\"/javascript
}
}
$printicon = false;
- if ($schedstatus)
- {
- if ($iconfn == "block" || $iconfn == "reject")
- {
- $image = "icon_clock_red";
- $alttest = "Traffic matching this rule is currently being denied";
- }
- else
- {
- $image = "icon_clock_green";
- $alttest = "Traffic matching this rule is currently being allowed";
- }
- $printicon = true;
- }
- else if ($filterent['sched'] )
- {
- if ($iconfn == "block" || $iconfn == "reject")
- {
- $image = "icon_clock_green";
- $alttext = "Traffic matching this rule is currently being allowed";
- }
- else
- {
- $image = "icon_clock_red";
- $alttext = "Traffic matching this rule is currently being denied";
- }
- $printicon = true;
- }
-
+ $alttext = "";
+ $image = "";
+ if (!isset($filterent['disabled'])){
+ if ($schedstatus)
+ {
+ if ($iconfn == "block" || $iconfn == "reject")
+ {
+ $image = "icon_clock_red";
+ $alttext = "Traffic matching this rule is currently being denied";
+ }
+ else
+ {
+ $image = "icon_clock_green";
+ $alttext = "Traffic matching this rule is currently being allowed";
+ }
+ $printicon = true;
+ }
+ else if ($filterent['sched'])
+ {
+ if ($iconfn == "block" || $iconfn == "reject")
+ {
+ $image = "icon_clock_grey";
+ $alttext = "Traffic matching this rule is currently being allowed";
+ }
+ else
+ {
+ $image = "icon_clock_red";
+ $alttext = "Traffic matching this rule is currently being denied";
+ }
+ $printicon = true;
+ }
+ }
?>
<td class="listlr" onClick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';">
<?=$textss;?><?php if (isset($filterent['protocol'])) echo strtoupper($filterent['protocol']); else echo "*"; ?><?=$textse;?>
@@ -546,7 +549,7 @@ echo "<script type=\"text/javascript\" language=\"javascript\" src=\"/javascript
<?=$textss;?><?php if (isset($config['interfaces'][$filterent['gateway']]['descr'])) echo htmlspecialchars($config['interfaces'][$filterent['gateway']]['descr']); else echo htmlspecialchars(pprint_port($filterent['gateway'])); ?><?=$textse;?>
</td>
<td class="listr" onClick="fr_toggle(<?=$nrules;?>)" id="frd<?=$nrules;?>" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';"><font color="black">
- <?=$textss;?><?php echo $schedule_span_begin;?><?=htmlspecialchars($filterent['sched']);?><?php echo $schedule_span_end; ?><?=$textse;?>&nbsp; <?php if ($printicon) { ?><img src="./themes/<?= $g['theme']; ?>/images/icons/<?php echo $image; ?>.gif" title="<?php echo $alttext;?>" width="12" height="12" border="0"><?php } ?>
+ <?php if ($printicon) { ?><img src="./themes/<?= $g['theme']; ?>/images/icons/<?php echo $image; ?>.gif" title="<?php echo $alttext;?>" width="12" height="12" border="0"><?php } ?>&nbsp;<?=$textss;?><?php echo $schedule_span_begin;?><?=htmlspecialchars($filterent['sched']);?><?php echo $schedule_span_end; ?><?=$textse;?>
</td>
<td class="listbg" onClick="fr_toggle(<?=$nrules;?>)" ondblclick="document.location='firewall_rules_edit.php?id=<?=$i;?>';" bcolor="#990000"><font color="white">
<?=$textss;?><?=htmlspecialchars($filterent['descr']);?>&nbsp;<?=$textse;?>
OpenPOWER on IntegriCloud