From 2af29a21de0dcd441081fe8cfcbf8c5e8d65bc6f Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 10 Jul 2012 12:05:19 +0200 Subject: [PATCH] Fixing warning + replacing HTML forms with FormValidator --- main/admin/session_export.php | 62 ++++++++++++----------------------- main/admin/session_import.php | 2 +- 2 files changed, 22 insertions(+), 42 deletions(-) diff --git a/main/admin/session_export.php b/main/admin/session_export.php index cc0df93242..62ef19b48a 100644 --- a/main/admin/session_export.php +++ b/main/admin/session_export.php @@ -242,7 +242,7 @@ if ($_POST['formSent']) { fputs($fp,"\n"); fclose($fp); - $errorMsg=get_lang('UserListHasBeenExported').'
'.get_lang('ClickHereToDownloadTheFile').''; + $errorMsg=get_lang('UserListHasBeenExported').'
'.get_lang('ClickHereToDownloadTheFile').''; } } @@ -262,54 +262,34 @@ if ($_configuration['multiple_access_urls']) { ORDER BY name"; } } - - -$result=Database::query($sql); - -$Sessions=Database::store_result($result); +$result = Database::query($sql); +$Sessions = Database::store_result($result); echo '
'; echo ''.Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('PlatformAdmin'),'',ICON_SIZE_MEDIUM).''; echo '
'; -if(!empty($errorMsg)) { +if (!empty($errorMsg)) { Display::display_normal_message($errorMsg, false); //main API } -?> -
- - - - - - - - - - - - - - -
: - >
- >
-
:
  - -
-
-