Révision 91ebc808
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/vpn_ipsec.php | ||
---|---|---|
81 | 81 |
} |
82 | 82 |
if (write_config()) |
83 | 83 |
mark_subsystem_dirty('ipsec'); |
84 |
header("Location: vpn_ipsec.php"); |
|
85 |
exit; |
|
86 | 84 |
} |
87 | 85 |
} else if (isset($_POST['delp2_x'])) { |
88 | 86 |
/* delete selected p2 entries */ |
... | ... | |
92 | 90 |
} |
93 | 91 |
if (write_config()) |
94 | 92 |
mark_subsystem_dirty('ipsec'); |
95 |
header("Location: vpn_ipsec.php"); |
|
96 |
exit; |
|
97 | 93 |
} |
98 | 94 |
} else { |
99 | 95 |
/* yuck - IE won't send value attributes for image buttons, while Mozilla does - so we use .x/.y to find move button clicks instead... */ |
... | ... | |
211 | 207 |
if ($save === 1) { |
212 | 208 |
if (write_config()) |
213 | 209 |
mark_subsystem_dirty('ipsec'); |
214 |
header("Location: vpn_ipsec.php"); |
|
215 |
exit; |
|
216 | 210 |
} |
217 | 211 |
} |
218 | 212 |
} |
... | ... | |
417 | 411 |
<td class="listt"> </td> |
418 | 412 |
<td class="listt"> </td> |
419 | 413 |
<td class="listrborder" colspan="6"> |
420 |
<div id="shph2but-<?=$i?>"> |
|
414 |
<?php |
|
415 |
if (isset($_POST["tdph2-{$i}-visible"])) |
|
416 |
$tdph2_visible = htmlspecialchars($_POST["tdph2-{$i}-visible"]); |
|
417 |
else |
|
418 |
$tdph2_visible = 0; |
|
419 |
?> |
|
420 |
<input type="hidden" name="tdph2-<?=$i;?>-visible" id="tdph2-<?=$i;?>-visible" value="<?=$tdph2_visible?>" /> |
|
421 |
<div id="shph2but-<?=$i?>" <?php echo ($tdph2_visible == '1' ? 'style="display:none"' : '');?>> |
|
421 | 422 |
<?php |
422 | 423 |
$phase2count=0; |
423 | 424 |
foreach ($a_phase2 as $ph2ent) { |
... | ... | |
430 | 431 |
?> |
431 | 432 |
<input type="button" onclick="show_phase2('tdph2-<?=$i?>','shph2but-<?=$i?>')" value="+" /> - <?php printf(gettext("Show %s Phase-2 entries"), $phase2count); ?> |
432 | 433 |
</div> |
433 |
<div id="tdph2-<?=$i?>" style="display:none">
|
|
434 |
<div id="tdph2-<?=$i?>" <?php echo ($tdph2_visible != '1' ? 'style="display:none"' : '');?>>
|
|
434 | 435 |
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="phase-2 entries"> |
435 | 436 |
<tr id="<?=$fr_header;?>"> |
436 | 437 |
<td> </td> |
... | ... | |
653 | 654 |
//<![CDATA[ |
654 | 655 |
function show_phase2(id, buttonid) { |
655 | 656 |
document.getElementById(buttonid).innerHTML=''; |
656 |
aodiv = document.getElementById(id); |
|
657 |
aodiv.style.display = "block"; |
|
657 |
document.getElementById(id).style.display = "block"; |
|
658 |
var visible = id + '-visible'; |
|
659 |
document.getElementById(visible).value = "1"; |
|
658 | 660 |
} |
659 | 661 |
//]]> |
660 | 662 |
</script> |
Formats disponibles : Unified diff
Do not collapse phase2 items every time an action occours