Renamed exemple.csv to example.csv (related to CT#1454)

skala
Yannick Warnier 16 years ago
parent e048dcf963
commit 4cd72b70bb
  1. 3
      main/mySpace/example.csv
  2. 25
      main/mySpace/example.xml
  3. 4
      main/mySpace/user_import.php

@ -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
1 LastName FirstName UserName Password Email OfficialCode PhoneNumber Status Courses
2 Gates Bill BillGates secret_password bill.gates@microsoft.com 12345678 001-123-456-789 user COURSE1|COURSE2|COURSE3
3 Bush Georges georges_bush@usa.org teacher COURSE2

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<Contacts>
<Contact>
<LastName>Gates</LastName>
<FirstName>Bill</FirstName>
<UserName>BillGates</UserName>
<Password>secret_password</Password>
<Email>bill.gates@microsoft.com</Email>
<OfficialCode>12345678</OfficialCode>
<PhoneNumber>001-123-456-789</PhoneNumber>
<Status>user</Status>
<Courses>COURSE1|COURSE2|COURSE3</Courses>
</Contact>
<Contact>
<LastName>Bush</LastName>
<FirstName>Georges</FirstName>
<UserName></UserName>
<Password></Password>
<Email>georges_bush@usa.org</Email>
<OfficialCode />
<PhoneNumber />
<Status>teacher</Status>
<Courses>COURSE2</Courses>
</Contact>
</Contacts>

@ -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 (<a href="exemple.xml" target="_blank">'.get_lang('ExampleXMLFile').'</a>)', 'xml');
$form->addElement('radio', 'file_type', null, 'CSV (<a href="exemple.csv" target="_blank">'.get_lang('ExampleCSVFile').'</a>)', 'csv');
$form->addElement('radio', 'file_type', get_lang('FileType'), 'XML (<a href="example.xml" target="_blank">'.get_lang('ExampleXMLFile').'</a>)', 'xml');
$form->addElement('radio', 'file_type', null, 'CSV (<a href="example.csv" target="_blank">'.get_lang('ExampleCSVFile').'</a>)', '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'));

Loading…
Cancel
Save