Example #1
0
							<a href="?act=del&amp;if=<?php 
        echo htmlspecialchars($if);
        ?>
&amp;id=<?php 
        echo $i;
        ?>
" class="fa fa-trash" title="<?php 
        echo gettext('Delete this rule');
        ?>
"></a>
						</td>
					</tr>
<?php 
        $nrules++;
        // There can be a separator before the next rule listed, or after the last rule listed
        display_separator($separators, $nrules, $columns_in_table);
    }
}
?>
				</tbody>
			</table>
		</div>
	</div>

<?php 
if ($nrules == 0) {
    ?>
	<div class="alert alert-warning" role="alert">
		<p>
		<?php 
    if ($_REQUEST['if'] == "FloatingRules") {
Example #2
0
							<a class="fa fa-trash"	title="<?php 
    echo gettext("Delete rule");
    ?>
" href="firewall_nat.php?act=del&amp;id=<?php 
    echo $i;
    ?>
"></a>
						</td>
					</tr>
<?php 
    $i++;
    $nnats++;
}
// There can be separator(s) after the last rule listed.
if ($seprows[$nnats]) {
    display_separator($separators, $nnats, $columns_in_table);
}
?>
				</tbody>
			</table>
		</div>
	</div>

	<nav class="action-buttons">
		<a href="firewall_nat_edit.php?after=-1" class="btn btn-sm btn-success" title="<?php 
echo gettext('Add rule to the top of the list');
?>
">
			<i class="fa fa-level-up icon-embed-btn"></i>
			<?php 
echo gettext('Add');