diff --git a/main/session/session_import.php b/main/session/session_import.php index da60001080..07507d5061 100644 --- a/main/session/session_import.php +++ b/main/session/session_import.php @@ -552,8 +552,34 @@ if (!empty($error_message)) { $form = new FormValidator('import_sessions', 'post', api_get_self(), null, array('enctype' => 'multipart/form-data')); $form->addElement('hidden', 'formSent', 1); $form->addElement('file', 'import_file', get_lang('ImportFileLocation')); -$form->addElement('radio', 'file_type', array(get_lang('FileType'), ''.get_lang('ExampleCSVFile').''), 'CSV', 'csv'); -$form->addElement('radio', 'file_type', array(null, ''.get_lang('ExampleXMLFile').''), 'XML', 'xml'); +$form->addElement( + 'radio', + 'file_type', + [ + get_lang('FileType'), + Display::url( + get_lang('ExampleCSVFile'), + api_get_path(WEB_CODE_PATH) . 'admin/example_session.csv', + ['target' => '_blank'] + ) + ], + 'CSV', + 'csv' +); +$form->addElement( + 'radio', + 'file_type', + [ + null, + Display::url( + get_lang('ExampleXMLFile'), + api_get_path(WEB_CODE_PATH) . 'admin/example_session.xml', + ['target' => '_blank'] + ) + ], + 'XML', + 'xml' +); $form->addElement('checkbox', 'overwrite', null, get_lang('IfSessionExistsUpdate')); $form->addElement('checkbox', 'delete_users_not_in_list', null, get_lang('DeleteUsersNotInList'));