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