Revision d2155191
Added by Colin Fleming over 12 years ago
usr/local/www/firewall_schedule.php | ||
---|---|---|
91 | 91 |
<?php include("fbegin.inc"); ?> |
92 | 92 |
<?php if ($savemsg) print_info_box($savemsg); ?> |
93 | 93 |
<form action="firewall_schedule.php" method="post"> |
94 |
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
94 |
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0" summary="firewall schedule">
|
|
95 | 95 |
<tr> |
96 | 96 |
<td width="25%" class="listhdrr"><?=gettext("Name");?></td> |
97 | 97 |
<td width="35%" class="listhdrr"><?=gettext("Time Range(s)");?></td> |
98 | 98 |
<td width="35%" class="listhdr"><?=gettext("Description");?></td> |
99 | 99 |
<td width="5%" class="list sort_ignore"> |
100 |
<table border="0" cellspacing="0" cellpadding="1"> |
|
100 |
<table border="0" cellspacing="0" cellpadding="1" summary="add">
|
|
101 | 101 |
<tr> |
102 | 102 |
<td width="17"></td> |
103 |
<td valign="middle"><a href="firewall_schedule_edit.php"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0" title="<?=gettext("add a new schedule");?>" alt="" /></a></td> |
|
103 |
<td valign="middle"><a href="firewall_schedule_edit.php"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0" title="<?=gettext("add a new schedule");?>" alt="add" /></a></td>
|
|
104 | 104 |
</tr> |
105 | 105 |
</table> |
106 | 106 |
</td> |
... | ... | |
112 | 112 |
<?php |
113 | 113 |
$schedstatus = filter_get_time_based_rule_status($schedule); |
114 | 114 |
if ($schedstatus) { ?> |
115 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_frmfld_time.png" title="<?=gettext("Schedule is currently active");?>" width="17" height="17" border="0"> |
|
115 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_frmfld_time.png" title="<?=gettext("Schedule is currently active");?>" width="17" height="17" border="0" alt="schedule" />
|
|
116 | 116 |
<?php } ?> |
117 | 117 |
|
118 | 118 |
</td> |
119 | 119 |
<td class="listlr" ondblclick="document.location='firewall_schedule_edit.php?id=<?=$i;?>';"> |
120 |
<table width="98%" border="0" cellpadding="0" cellspacing="0"> |
|
120 |
<table width="98%" border="0" cellpadding="0" cellspacing="0" summary="schedule">
|
|
121 | 121 |
<?php |
122 | 122 |
|
123 | 123 |
foreach($schedule['timerange'] as $timerange) { |
... | ... | |
207 | 207 |
$timeFriendly = $starttime . "-" . $stoptime; |
208 | 208 |
$description = $timerange['rangedescr']; |
209 | 209 |
|
210 |
?><tr><td><?=$dayFriendly;?></td><td><?=$timeFriendly;?></td><td><?=$description;?></td><tr/><?php
|
|
210 |
?><tr><td><?=$dayFriendly;?></td><td><?=$timeFriendly;?></td><td><?=$description;?></td></tr><?php
|
|
211 | 211 |
} |
212 | 212 |
}//end for?></table> |
213 | 213 |
</td> |
214 | 214 |
<td class="listbg" ondblclick="document.location='firewall_schedule_edit.php?id=<?=$i;?>';"> |
215 | 215 |
<?=htmlspecialchars($schedule['descr']);?> |
216 | 216 |
</td> |
217 |
<td valign="middle" nowrap class="list">
|
|
218 |
<table border="0" cellspacing="0" cellpadding="1"> |
|
217 |
<td valign="middle" class="list nowrap">
|
|
218 |
<table border="0" cellspacing="0" cellpadding="1" summary="buttons">
|
|
219 | 219 |
<tr> |
220 |
<td valign="middle"><a href="firewall_schedule_edit.php?id=<?=$i;?>"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0" title="<?=gettext("edit alias");?>"></a></td> |
|
221 |
<td><a href="firewall_schedule.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext('Do you really want to delete this schedule?');?>')"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title="<?=gettext("delete alias");?>"></a></td>
|
|
220 |
<td valign="middle"><a href="firewall_schedule_edit.php?id=<?=$i;?>"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0" title="<?=gettext("edit alias");?>" alt="edit" /></a></td>
|
|
221 |
<td><a href="firewall_schedule.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext('Do you really want to delete this schedule?');?>')"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title="<?=gettext("delete alias");?>" alt="delete" /></a></td>
|
|
222 | 222 |
</tr> |
223 | 223 |
</table> |
224 | 224 |
</td> |
... | ... | |
227 | 227 |
<tr> |
228 | 228 |
<td class="list" colspan="3"></td> |
229 | 229 |
<td class="list"> |
230 |
<table border="0" cellspacing="0" cellpadding="1"> |
|
230 |
<table border="0" cellspacing="0" cellpadding="1" summary="add">
|
|
231 | 231 |
<tr> |
232 | 232 |
<td width="17"></td> |
233 |
<td valign="middle"><a href="firewall_schedule_edit.php"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0" title="<?=gettext("add a new schedule");?>" alt="" /></a></td> |
|
233 |
<td valign="middle"><a href="firewall_schedule_edit.php"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0" title="<?=gettext("add a new schedule");?>" alt="add" /></a></td>
|
|
234 | 234 |
</tr> |
235 | 235 |
</table> |
236 | 236 |
</td> |
237 | 237 |
</tr> |
238 | 238 |
<tr> |
239 | 239 |
<td class="tabcont" colspan="3"> |
240 |
<p><span class="vexpl"><span class="red"><strong><?=gettext("Note:");?><br></strong></span><?=gettext("Schedules act as placeholders for time ranges to be used in Firewall Rules.");?></span></p> |
|
240 |
<p><span class="vexpl"><span class="red"><strong><?=gettext("Note:");?><br/></strong></span><?=gettext("Schedules act as placeholders for time ranges to be used in Firewall Rules.");?></span></p>
|
|
241 | 241 |
</td> |
242 | 242 |
</tr> |
243 | 243 |
</table> |
244 |
|
|
245 | 244 |
</form> |
246 |
|
|
247 | 245 |
<?php include("fend.inc"); ?> |
248 | 246 |
</body> |
249 | 247 |
</html> |
Also available in: Unified diff
Tidy up "firewall_schedule.php" XHTML
Add ALT paramenter and close IMG tags
Tidy up close TR tag
Move NOWRAP into class parameter
Deprecate the ampersand in ANCHOR tag