Révision 62424bdb
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/services_dhcp_edit.php | ||
---|---|---|
59 | 59 |
|
60 | 60 |
require("guiconfig.inc"); |
61 | 61 |
|
62 |
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/services_dhcp.php'); |
|
63 |
|
|
62 | 64 |
$if = $_GET['if']; |
63 | 65 |
if ($_POST['if']) |
64 | 66 |
$if = $_POST['if']; |
... | ... | |
531 | 533 |
<tr> |
532 | 534 |
<td width="22%" valign="top"> </td> |
533 | 535 |
<td width="78%"> |
534 |
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" /> <input class="formbtn" type="button" value="<?=gettext("Cancel");?>" onclick="history.back()" /> |
|
536 |
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" /> |
|
537 |
<input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" /> |
|
535 | 538 |
<?php if (isset($id) && $a_maps[$id]): ?> |
536 | 539 |
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" /> |
537 | 540 |
<?php endif; ?> |
Formats disponibles : Unified diff
Remove almost all calls to history.back() and make Cancel button back to HTTP_REFERER, there are a couple of places I didn't touch on this commit because it requires more work