function amuCSVInputMain($csvinputerror) { global $wpdb; echo '<div class="toolintro">'; echo $csvinputerror; echo '<p><strong>' . __('Converts a list of comma-separated values (CSV) into new user registration information.', 'amulang') . '</strong><br> ' . __('Your information will be extracted and available to view and sort in the next step.', 'amulang') . '</p>'; echo '</div>'; echo '<form method="post" enctype="multipart/form-data" class="amuform">'; echo '<h3>' . __('Choose a CSV/TXT file to upload', 'amulang') . '</h3>'; echo '<div class="buttonline">'; echo '<input name="csvuploader" id="csvuploader" type="file" />'; echo '</div>'; echo '<p><span class="important">' . __('Information in the text box below will be ignored if a file is found in the File browser above.', 'amulang') . '</span></p>'; echo '<h3>' . __('Or paste your CSV data in the box below', 'amulang') . '</h3>'; echo '<div class="formline">'; echo ' <textarea name="csvpastebox" cols="50" rows="10" id="csvpastebox" class="textfillbox"></textarea>'; echo '</div>'; echo '<p class="informational">'; $csvinfo = new amuSettingsObject(); echo $csvinfo->get_amu_setallroles(); echo $csvinfo->get_amu_dispnamedef(); echo $csvinfo->get_amu_colorderpref(); echo $csvinfo->get_updatenow(); echo '</p>'; echo '<div class="buttonline">'; echo '<p><span class="important">' . __('Please ensure you have read the information on CSV importing functions and updated your Settings before proceeding.', 'amulang') . '</span></p>'; echo '<input type="submit" name="readandclean" id="readandclean" class="button-primary" value="' . __('Next Step', 'amulang') . '" />'; echo '<input type="reset" name="reset" id="reset" class="button-primary" value="' . __('Clear All', 'amulang') . '" />'; echo '</div>'; echo '</form>'; $infotype = 'csvinputpage'; showPluginInfo($infotype); }