function amuGenerateManualForm($manualInputError) { echo '<div class="toolintro">'; echo $manualInputError; echo '<p><strong>' . __('Please enter the number of users you wish to add and press the Create Blank Form button.', 'amulang') . '</strong><br /> ' . __('If you need additional user meta fields in this form, please modify your Settings to include additional standard and custom options.', 'amulang') . '</p>'; echo '<p><span class="important">' . __('You don\'t have to be too specific here. You can add more as you go.', 'amulang') . '</span></p>'; echo '</div>'; //begin form echo '<form method="post" enctype="multipart/form-data" class="amuform">'; echo '<div class="buttonline">'; echo '<label for="manualprocs">' . __('Number of new users', 'amulang') . ': </label>'; echo '<input type="text" name="manualprocs" id="manualprocs" value="10" />'; echo '</div>'; echo '<p class="informational">'; $csvinfo = new amuSettingsObject(); echo $csvinfo->get_amu_setallroles(); echo $csvinfo->get_amu_dispnamedef(); echo $csvinfo->get_updatenow(); echo '</p>'; echo '<div class="buttonline">'; echo '<input type="submit" name="formshow_manual" id="formshow_manual" class="button-primary" value="' . __('Create Blank Form', 'amulang') . '" />'; echo '</div>'; echo '</form>'; }
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); }