Revision bdfea2e7
Added by Stephen Beaver over 9 years ago
src/usr/local/www/firewall_rules.php | ||
---|---|---|
420 | 420 |
$dayArray = array (gettext('Mon'), gettext('Tues'), gettext('Wed'), gettext('Thur'), gettext('Fri'), gettext('Sat'), gettext('Sun')); |
421 | 421 |
$monthArray = array (gettext('January'), gettext('February'), gettext('March'), gettext('April'), gettext('May'), gettext('June'), gettext('July'), gettext('August'), gettext('September'), gettext('October'), gettext('November'), gettext('December')); |
422 | 422 |
if ($config['schedules']['schedule'] != "" && is_array($config['schedules']['schedule'])) { |
423 |
$idx = 0; |
|
423 | 424 |
foreach ($a_schedules as $schedule) { |
424 | 425 |
if ($schedule['name'] == $filterent['sched']) { |
425 | 426 |
$schedstatus = filter_get_time_based_rule_status($schedule); |
... | ... | |
515 | 516 |
} |
516 | 517 |
#FIXME |
517 | 518 |
$sched_caption_escaped = str_replace("'", "\'", $schedule['descr']); |
518 |
$schedule_span_begin = "<span style=\"cursor: help;\" onmouseover=\"domTT_activate(this, event, 'content', '<h1>{$sched_caption_escaped}</h1><p>{$sched_content}</p>', 'trail', true, 'delay', 0, 'fade', 'both', 'fadeMax', 93, 'styleClass', 'niceTitle');\" onmouseout=\"this.style.color = ''; domTT_mouseout(this, event);\"><u>"; |
|
519 |
$schedule_span_end = "</u></span>"; |
|
519 |
$schedule_span_begin = '<a href="/firewall_schedule_edit.php?id=' . $idx . '" data-toggle="popover" data-trigger="hover focus" title="' . $schedule['name'] . '" data-content="' . |
|
520 |
$sched_caption_escaped . '" data-html="true">'; |
|
521 |
$schedule_span_end = ""; |
|
520 | 522 |
} |
521 | 523 |
} |
524 |
$idx++; |
|
522 | 525 |
} |
523 | 526 |
$printicon = false; |
524 | 527 |
$alttext = ""; |
... | ... | |
527 | 530 |
if ($schedstatus) { |
528 | 531 |
if ($iconfn == "block" || $iconfn == "reject") { |
529 | 532 |
$image = "times-circle"; |
533 |
$dispcolor = "text-danger"; |
|
530 | 534 |
$alttext = gettext("Traffic matching this rule is currently being denied"); |
531 | 535 |
} else { |
532 | 536 |
$image = "play-circle"; |
537 |
$dispcolor = "text-success"; |
|
533 | 538 |
$alttext = gettext("Traffic matching this rule is currently being allowed"); |
534 | 539 |
} |
535 | 540 |
$printicon = true; |
... | ... | |
540 | 545 |
$image = "times-circle"; |
541 | 546 |
} |
542 | 547 |
$alttext = gettext("This rule is not currently active because its period has expired"); |
548 |
$dispcolor = "text-danger"; |
|
543 | 549 |
$printicon = true; |
544 | 550 |
} |
545 | 551 |
} |
... | ... | |
624 | 630 |
</td> |
625 | 631 |
<td> |
626 | 632 |
<?php if ($printicon) { ?> |
627 |
<i class="fa fa-<?=$image;?>" title="<?=$alttext;?>" alt="icon" />
|
|
633 |
<i class="fa fa-<?=$image?> <?=$dispcolor?>" title="<?=$alttext;?>" alt="icon"></i>
|
|
628 | 634 |
<?php } ?> |
629 | 635 |
<?=$schedule_span_begin;?><?=htmlspecialchars($filterent['sched']);?> <?=$schedule_span_end;?> |
630 | 636 |
</td> |
Also available in: Unified diff
Fixed #5648