Revision 05c90549
Added by Seth Mos about 18 years ago
usr/local/www/firewall_rules.php | ||
---|---|---|
242 | 242 |
<td width="5%" class="listhdrr">Gateway</td> |
243 | 243 |
<td width="5%" class="listhdrr">Schedule</td> |
244 | 244 |
<td width="22%" class="listhdr">Description</td> |
245 |
<td width="10%" class="list"></td> |
|
246 |
</tr> |
|
245 |
<td width="10%" class="list"> |
|
246 |
<table border="0" cellspacing="0" cellpadding="1"> |
|
247 |
<tr> |
|
248 |
<?php |
|
249 |
$nrules = 0; |
|
250 |
for ($i = 0; isset($a_filter[$i]); $i++) { |
|
251 |
$filterent = $a_filter[$i]; |
|
252 |
if ($filterent['interface'] != $if) |
|
253 |
continue; |
|
254 |
$nrules++; |
|
255 |
} |
|
256 |
?> |
|
257 |
<td> |
|
258 |
<?php if ($nrules == 0): ?> |
|
259 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x_d.gif" width="17" height="17" title="delete selected rules" border="0"><?php else: ?> |
|
260 |
<input name="del" type="image" src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" title="delete selected rules" onclick="return confirm('Do you really want to delete the selected rules?')"><?php endif; ?> |
|
261 |
</td> |
|
262 |
<td align="center" valign="middle"><a href="firewall_rules_edit.php?if=<?=$if;?>&after=-1"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="add new rule" width="17" height="17" border="0"></a></td> |
|
263 |
</tr> |
|
264 |
</table> |
|
265 |
</td> |
|
266 |
</tr> |
|
247 | 267 |
<?php if (($if == "wan") && isset($config['interfaces']['wan']['blockpriv'])): ?> |
248 | 268 |
<tr valign="top" id="frrfc1918"> |
249 | 269 |
<td width="3%" class="list"> </td> |
... | ... | |
254 | 274 |
<td class="listr" style="background-color: #e0e0e0">*</td> |
255 | 275 |
<td class="listr" style="background-color: #e0e0e0">*</td> |
256 | 276 |
<td class="listr" style="background-color: #e0e0e0">*</td> |
257 |
<td class="listr" style="background-color: #e0e0e0">*</td>
|
|
277 |
<td class="listr" style="background-color: #e0e0e0">*</td> |
|
258 | 278 |
<td class="listbg" style="background-color: #990000"><font color="white">Block private networks</td> |
259 | 279 |
<td valign="middle" nowrap class="list"> |
260 | 280 |
<table border="0" cellspacing="0" cellpadding="1"> |
... | ... | |
596 | 616 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x_d.gif" width="17" height="17" title="delete selected rules" border="0"><?php else: ?> |
597 | 617 |
<input name="del" type="image" src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" title="delete selected rules" onclick="return confirm('Do you really want to delete the selected rules?')"><?php endif; ?> |
598 | 618 |
</td> |
599 |
<td><a href="firewall_rules_edit.php?if=<?=$if;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="add new rule" width="17" height="17" border="0"></a></td>
|
|
619 |
<td><a href="firewall_rules_edit.php?if=<?=$if;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="add new rule" width="17" height="17" border="0"></a></td>
|
|
600 | 620 |
</tr> |
601 | 621 |
</table> |
602 | 622 |
</td> |
Also available in: Unified diff
Add a plus button on the top header of these pages.
This to make it easier on large configurations.