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");?>
<?phpinclude("fbegin.inc");?>
<sectionclass="page-content-main">
<sectionclass="page-content-main">
<divclass="container-fluid">
<divclass="container-fluid">
<divclass="row">
<divclass="row">
<?php
<?php
if(isset($savemsg))
if(isset($savemsg))
print_info_box($savemsg);
print_info_box($savemsg);
if(is_subsystem_dirty('natconf'))
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."));
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>
<spantitle="<?=gettext("This rule is being ignored");?>"class="<?=$iconfn;?><?=$textss;?>"></span>
<?php
<?php
else:
else:
?>
?>
<ahref="?act=toggle&id=<?=$i;?>"title="<?=gettext("click to toggle enabled/disabled status");?>"class="btn btn-default btn-xs <?=$textss;?>"><spanclass="<?=$iconfn;?>"></span></a>
<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";?>">
<buttononmouseover="fr_insline(<?=$i;?>, true)"onmouseout="fr_insline(<?=$i;?>, false)"name="move_<?=$i;?>_x"title="<?=gettext("move selected rules before this rule");?>"type="submit"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-arrow-left"></span></button>
<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">
<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>
<spanclass="glyphicon glyphicon-pencil"></span>
</a>
<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");?>">
<ahref="firewall_nat_out_edit.php"title="<?=gettext("add new mapping");?>"alt="add"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-plus"></span></a>
<ahref="firewall_nat_out_edit.php"title="<?=gettext("add new mapping");?>"alt="add"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-plus"></span></a>
<?php
<?php
if($i==0):
if($i==0):
?>
?>
...
@@ -467,125 +480,128 @@ include("head.inc");
...
@@ -467,125 +480,128 @@ include("head.inc");
<?php
<?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>