Ejemplo n.º 1
0
    echo gettext("Do you really want to delete the selected mappings?");
    ?>
')" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-remove"></span></button>
<?php 
}
?>

					</td>
				</tr>
            </tbody>
<?php 
if ($mode == "automatic" || $mode == "hybrid") {
    if (empty($GatewaysList)) {
        filter_generate_gateways();
    }
    $automatic_rules = filter_nat_rules_outbound_automatic(implode(" ", filter_nat_rules_automatic_tonathosts()));
    unset($GatewaysList);
    ?>
            <thead>
				<tr><th colspan="12"><?php 
    echo gettext("Automatic rules:");
    ?>
</th></tr>
				<tr id="frheader">
					<th width="3%" class="list">&nbsp;</th>
					<th width="3%" class="list">&nbsp;</th>
					<th width="10%" class="listhdrr"><?php 
    echo gettext("Interface");
    ?>
</th>
					<th width="10%" class="listhdrr"><?php 
Ejemplo n.º 2
0
?>
</td>
                </tr>
              </tfoot>
            </table>
          </div>
        </section>
<?php 
// when automatic or hybrid, display "auto" table.
if ($mode == "automatic" || $mode == "hybrid") {
    if (empty($GatewaysList)) {
        filter_generate_gateways();
    }
    /* XXX cranky low-level call, please refactor */
    $FilterIflist = filter_generate_optcfg_array();
    $automatic_rules = filter_nat_rules_outbound_automatic($FilterIflist, implode(' ', filter_nat_rules_automatic_tonathosts($FilterIflist)));
    unset($GatewaysList);
    ?>
        <section class="col-xs-12">
          <div class="table-responsive content-box ">
            <table class="table table-striped table-sort">
              <thead>
                  <tr>
                    <th colspan="11"><?php 
    echo gettext("Automatic rules:");
    ?>
</th>
                  </tr>
                  <tr>
                    <th>&nbsp;</th>
                    <th>&nbsp;</th>