summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_schedule.php
diff options
context:
space:
mode:
authorScott Dale <sdale@pfsense.org>2007-04-22 22:55:49 +0000
committerScott Dale <sdale@pfsense.org>2007-04-22 22:55:49 +0000
commit774c288f3c54a30e59c4ae86c36309cdf364197a (patch)
tree375555cc3a68ff2180a538626b9aa7eabadfa480 /usr/local/www/firewall_schedule.php
parentc4223edf0be94f2b0ed00e0abf210ead35346f1f (diff)
downloadpfsense-774c288f3c54a30e59c4ae86c36309cdf364197a.zip
pfsense-774c288f3c54a30e59c4ae86c36309cdf364197a.tar.gz
Show icon when schedule is active
Diffstat (limited to 'usr/local/www/firewall_schedule.php')
-rw-r--r--usr/local/www/firewall_schedule.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/usr/local/www/firewall_schedule.php b/usr/local/www/firewall_schedule.php
index 7bd2a24..3565157 100644
--- a/usr/local/www/firewall_schedule.php
+++ b/usr/local/www/firewall_schedule.php
@@ -92,13 +92,18 @@ include("head.inc");
<?php $i = 0; foreach ($a_schedules as $schedule): ?>
<tr>
<td class="listlr" ondblclick="document.location='firewall_schedule_edit.php?id=<?=$i;?>';">
- <?=htmlspecialchars($schedule['name']);?>
+ <?=htmlspecialchars($schedule['name']);
+ $schedstatus = get_time_based_rule_status($schedule);
+ if ($schedstatus) { ?>
+ &nbsp;<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_frmfld_time.png" title="Schedule is currently active" width="17" height="17" border="0">
+ <?php } ?>
+
</td>
<td class="listlr" ondblclick="document.location='firewall_schedule_edit.php?id=<?=$i;?>';">
<table width="98%" border="0" cellpadding="0" cellspacing="0">
- <?php
-
- foreach($schedule['timerange'] as $timerange) {
+ <?php
+
+ foreach($schedule['timerange'] as $timerange) {
$tempFriendlyTime = "";
$tempID = "";
$firstprint = false;
OpenPOWER on IntegriCloud