diff --git a/main/mySpace/example.csv b/main/mySpace/example.csv new file mode 100755 index 0000000000..86df53d885 --- /dev/null +++ b/main/mySpace/example.csv @@ -0,0 +1,3 @@ +LastName;FirstName;UserName;Password;Email;OfficialCode;PhoneNumber;Status;Courses +Gates;Bill;BillGates;secret_password;bill.gates@microsoft.com;12345678;001-123-456-789;user;COURSE1|COURSE2|COURSE3 +Bush;Georges;;;georges_bush@usa.org;;;teacher;COURSE2 diff --git a/main/mySpace/example.xml b/main/mySpace/example.xml new file mode 100755 index 0000000000..417bc38a1d --- /dev/null +++ b/main/mySpace/example.xml @@ -0,0 +1,25 @@ + + + + Gates + Bill + BillGates + secret_password + bill.gates@microsoft.com + 12345678 + 001-123-456-789 + user + COURSE1|COURSE2|COURSE3 + + + Bush + Georges + + + georges_bush@usa.org + + + teacher + COURSE2 + + diff --git a/main/mySpace/user_import.php b/main/mySpace/user_import.php index 2eec2950cc..05cf414428 100755 --- a/main/mySpace/user_import.php +++ b/main/mySpace/user_import.php @@ -126,8 +126,8 @@ $form->addElement('file', 'import_file', get_lang('ImportFileLocation')); $form->addRule('import_file', get_lang('ThisFieldIsRequired'), 'required'); $allowed_file_types = array ('xml', 'csv'); $form->addRule('import_file', get_lang('InvalidExtension').' ('.implode(',', $allowed_file_types).')', 'filetype', $allowed_file_types); -$form->addElement('radio', 'file_type', get_lang('FileType'), 'XML ('.get_lang('ExampleXMLFile').')', 'xml'); -$form->addElement('radio', 'file_type', null, 'CSV ('.get_lang('ExampleCSVFile').')', 'csv'); +$form->addElement('radio', 'file_type', get_lang('FileType'), 'XML ('.get_lang('ExampleXMLFile').')', 'xml'); +$form->addElement('radio', 'file_type', null, 'CSV ('.get_lang('ExampleCSVFile').')', 'csv'); $form->addElement('radio', 'sendMail', get_lang('SendMailToUsers'), get_lang('Yes'), 1); $form->addElement('radio', 'sendMail', null, get_lang('No'), 0); $form->addElement('submit', 'submit', get_lang('Ok'));