message:"<?=gettext("Do you really want to delete this entry?");?>",
buttons:[{
label:"<?=gettext("No");?>",
action:function(dialogRef){
dialogRef.close();
}},{
label:"<?=gettext("Yes");?>",
action:function(dialogRef){
$("#id").val(id);
$("#action").val("del");
$("#iform").submit()
}
}]
});
});
// link move buttons
$(".act_move").click(function(){
varid=$(this).attr("id").split('_').pop(-1);
$("#id").val(id);
$("#action").val("move");
$("#iform").submit();
});
});
</script>
<?phpinclude("fbegin.inc");?>
<sectionclass="page-content-main">
<divclass="container-fluid">
<divclass="row">
<?php
if(isset($input_errors)&&count($input_errors)>0)
print_input_errors($input_errors);
...
...
@@ -201,77 +262,83 @@ $main_buttons = array(
if(is_subsystem_dirty('vip'))
print_info_box_np(gettext("The VIP configuration has been changed.")."<br />".gettext("You must apply the changes in order for them to take effect."));
<ahref="firewall_virtual_ip.php?act=del&tab=<?=$tab;?>&id=<?=$i;?>"class="btn btn-default"onclick="return confirm('<?=gettext("Do you really want to delete this entry?");?>')"><spanclass="glyphicon glyphicon-remove"></span></a>
<td>
<?=htmlspecialchars($vipent['descr']);?>
</td>
<td>
<aid="move_<?=$i;?>"name="move_<?=$i;?>_x"data-toggle="tooltip"data-placement="left"title="<?=gettext("move selected alias before this rule");?>"class="act_move btn btn-default btn-xs">
<ahref="firewall_virtual_ip_edit.php?id=<?=$i;?>"data-toggle="tooltip"data-placement="left"title="<?=gettext("edit this alias");?>"class="btn btn-default btn-xs">
<spanclass="glyphicon glyphicon-pencil"></span>
</a>
<aid="del_<?=$i;?>"title="<?=gettext("delete this alias");?>"data-toggle="tooltip"class="act_delete btn btn-default btn-xs">
<spanclass="glyphicon glyphicon-remove"></span>
</a>
<ahref="firewall_virtual_ip_edit.php?dup=<?=$i;?>"class="btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("add new rule based on this one");?>">
<spanclass="glyphicon glyphicon-plus"></span>
</a>
</td>
</tr>
</table>
<?php
endif;
$i++;
endforeach;
?>
<?php?>
<tr>
<tdcolspan="5"></td>
<td>
<atype="submit"id="move_<?=$i;?>"name="move_<?=$i;?>_x"data-toggle="tooltip"data-placement="left"title="<?=gettext("move selected rules to end");?>"class="act_move btn btn-default btn-xs">