diff options
author | k-paulius <k.dash.paulius@gmail.com> | 2016-02-14 22:02:23 -0600 |
---|---|---|
committer | k-paulius <k.dash.paulius@gmail.com> | 2016-02-14 22:02:23 -0600 |
commit | 2506ce4c1b7510bff71ecdc795d34c5d67e6eff4 (patch) | |
tree | 893467734885c2048654b9f6eab1e2805fd1d237 | |
parent | 067c53d5e8d194977b062b665e0f8df2fb1087ba (diff) | |
download | pfsense-2506ce4c1b7510bff71ecdc795d34c5d67e6eff4.zip pfsense-2506ce4c1b7510bff71ecdc795d34c5d67e6eff4.tar.gz |
Move result message to the top of the page.
-rw-r--r-- | src/usr/local/www/status_captiveportal_expire.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/usr/local/www/status_captiveportal_expire.php b/src/usr/local/www/status_captiveportal_expire.php index 8b01b6f..218dce5 100644 --- a/src/usr/local/www/status_captiveportal_expire.php +++ b/src/usr/local/www/status_captiveportal_expire.php @@ -87,6 +87,16 @@ $pgtitle = array(gettext("Status"), gettext("Captive Portal"), $a_cp[$cpzone]['z include("head.inc"); +if ($_POST) { + if ($_POST['vouchers']) { + if (voucher_expire($_POST['vouchers'])) { + print_info_box(gettext('Voucher successfully marked.'), 'success'); + } else { + print_info_box(gettext('Voucher could not be processed.'), 'danger'); + } + } +} + $tab_array = array(); $tab_array[] = array(gettext("Active Users"), false, "status_captiveportal.php?zone={$cpzone}"); $tab_array[] = array(gettext("Active Vouchers"), false, "status_captiveportal_vouchers.php?zone={$cpzone}"); @@ -115,14 +125,4 @@ $section->addInput(new Form_Input( $form->add($section); print($form); -if ($_POST) { - if ($_POST['vouchers']) { - if (voucher_expire($_POST['vouchers'])) { - print_info_box(gettext('Voucher successfully marked.'), 'success'); - } else { - print_info_box(gettext('Voucher could not be processed.'), 'danger'); - } - } -} - include("foot.inc"); |