message:"<?=gettext("Do you really want to delete the selected rules?");?>",
buttons:[{
label:"<?=gettext("No");?>",
action:function(dialogRef){
dialogRef.close();
}},{
label:"<?=gettext("Yes");?>",
action:function(dialogRef){
$("#id").val("");
$("#action").val("del_x");
$("#iform").submit()
event.preventDefault();
}
}]
});
}
});
// link move buttons
$(".act_move").click(function(){
varid=$(this).attr("id").split('_').pop(-1);
$("#id").val(id);
$("#action").val("move");
$("#iform").submit();
event.preventDefault();
});
// link toggle buttons
$(".act_toggle").click(function(){
varid=$(this).attr("id").split('_').pop(-1);
$("#id").val(id);
$("#action").val("toggle");
$("#iform").submit();
event.preventDefault();
});
});
</script>
<?phpinclude("fbegin.inc");?>
<sectionclass="page-content-main">
<divclass="container-fluid">
<divclass="row">
<?php
if(isset($savemsg))
print_info_box($savemsg);
if(is_subsystem_dirty('natconf'))
print_info_box_np(gettext("The NAT configuration has been changed.")."<br />".gettext("You must apply the changes in order for them to take effect."));
<ahref="firewall_nat_out.php?act=del&id=<?=$i;?>"onclick="return confirm('<?=gettext("Do you really want to delete this rule?");?>')"title="<?=gettext("delete rule");?>"alt="delete"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></a>
<ahref="firewall_nat_out_edit.php?dup=<?=$i;?>"title="<?=gettext("add a new NAT based on this one");?>"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-plus"></span></a>
</td>
</tr>
<?php
$i++;
endforeach;
?>
<trvalign="top"id="fr<?=$i;?>">
<tdclass="list"colspan="11"></td>
<tdclass="list nowrap"valign="middle">
<sectionclass="page-content-main">
<divclass="container-fluid">
<divclass="row">
<?php
if($i==0):
if(isset($savemsg))
print_info_box($savemsg);
if(is_subsystem_dirty('natconf'))
print_info_box_np(gettext("The NAT configuration has been changed.")."<br />".gettext("You must apply the changes in order for them to take effect."));
<spandata-toggle="tooltip"title="<?=gettext("This rule is being ignored");?>"class="glyphicon glyphicon-play <?=$mode=="disabled"||$mode=="automatic"||isset($natent['disabled'])?"text-muted":"text-success";?>"></span>
<?php
else:
else:
?>
<buttonname="del_x"type="submit"title="<?=gettext("delete selected mappings");?>"onclick="return confirm('<?=gettext("Do you really want to delete the selected mappings?");?>')"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></button>
<ahref="#"class="act_toggle"id="toggle_<?=$i;?>"data-toggle="tooltip"title="<?=gettext("click to toggle enabled/disabled status");?>"class="btn btn-default btn-xs <?=isset($natent['disabled'])?"text-muted":"text-success";?>">
<atype="submit"id="move_<?=$i;?>"name="move_<?=$i;?>_x"data-toggle="tooltip"data-placement="left"title="<?=gettext("move selected rules before this rule");?>"class="act_move btn btn-default btn-xs">
<aid="del_<?=$i;?>"title="<?=gettext("delete this rule");?>"data-toggle="tooltip"class="act_delete btn btn-default btn-xs">
<spanclass="glyphicon glyphicon-remove"></span>
</a>
<ahref="firewall_nat_out_edit.php?dup=<?=$i;?>"class="btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("add a new NAT based on this one");?>">