Пример #1
0
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>';
}
Пример #2
0
function addByEmailList($emailListError)
{
    ?>

	<div class="toolintro">
		<?php 
    echo $emailListError;
    ?>
		<p><strong><?php 
    _e('Enter the email addresses of the users you wish to add to your WordPress site, separated by commas.', 'amulang');
    ?>
</strong></p>
		<p><?php 
    _e('User Logins are automatically created from the first part of each email address you enter.', 'amulang');
    ?>
</p>
	</div>
	
	<p class="informational">
    	<?php 
    $csvinfo = new amuSettingsObject();
    echo $csvinfo->get_amu_emailsetallroles();
    echo $csvinfo->get_updatenow();
    ?>
	</p>
	
	<form method="post" enctype="multipart/form-data" class="amuform">
	
		<div class="formline">
			<textarea name="emailfillbox" cols="50" rows="10" id="emailfillbox" class="textfillbox"></textarea>
		</div>
	
		<div class="buttonline">
		
			<p><span class="important"><?php 
    _e('Click the Create User Information Form button below to convert this user information into a Form, allowing you to review and customise specific information.', 'amulang');
    ?>
</span></p>
			<input type="submit" name="formshow_email" id="formshow_email" class="button-primary" value="<?php 
    esc_attr_e('Create User Information Form', 'amulang');
    ?>
" />
		
			<p><span class="important"><?php 
    _e('Alternatively, choose the Skip Form and Add Users option if you want to immediately add all users. If you are adding more than 100 users in one pass, it is recommended you use this option. Please see the information at the bottom of the screen for more info.', 'amulang');
    ?>
</span></p>
			<input type="submit" name="skiprun_csvprocess" id="skiprun_csvprocess" class="button-primary" value="<?php 
    esc_attr_e('Skip Form and Add Users', 'amulang');
    ?>
" />
		</div>
	
	</form>
    
<?php 
}
Пример #3
0
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);
}