-<?php if ( current_user_can('create_users') ) { ?>
-
-<div class="wrap">
-<h2 id="add-new-user"><?php _e('Add New User') ?></h2>
-
-<?php if ( is_wp_error( $add_user_errors ) ) : ?>
- <div class="error">
- <?php
- foreach ( $add_user_errors->get_error_messages() as $message )
- echo "<p>$message</p>";
- ?>
- </div>
-<?php endif; ?>
-<div id="ajax-response"></div>
-
-<?php
- if ( get_option('users_can_register') )
- echo '<p>' . sprintf(__('Users can <a href="%1$s">register themselves</a> or you can manually create users here.'), get_option('siteurl').'/wp-register.php') . '</p>';
- else
- echo '<p>' . sprintf(__('Users cannot currently <a href="%1$s">register themselves</a>, but you can manually create users here.'), get_option('siteurl').'/wp-admin/options-general.php#users_can_register') . '</p>';
-?>
-<form action="#add-new-user" method="post" name="adduser" id="adduser" class="add:users: validate">
-<?php wp_nonce_field('add-user') ?>
-<table class="form-table">
- <tr class="form-field form-required">
- <th scope="row"><?php _e('Username (required)') ?><input name="action" type="hidden" id="action" value="adduser" /></th>
- <td ><input name="user_login" type="text" id="user_login" value="<?php echo $new_user_login; ?>" /></td>
- </tr>
- <tr class="form-field">
- <th scope="row"><?php _e('First Name') ?> </th>
- <td><input name="first_name" type="text" id="first_name" value="<?php echo $new_user_firstname; ?>" /></td>
- </tr>
- <tr class="form-field">
- <th scope="row"><?php _e('Last Name') ?> </th>
- <td><input name="last_name" type="text" id="last_name" value="<?php echo $new_user_lastname; ?>" /></td>
- </tr>
- <tr class="form-field form-required">
- <th scope="row"><?php _e('E-mail (required)') ?></th>
- <td><input name="email" type="text" id="email" value="<?php echo $new_user_email; ?>" /></td>
- </tr>
- <tr class="form-field">
- <th scope="row"><?php _e('Website') ?></th>
- <td><input name="url" type="text" id="url" value="<?php echo $new_user_uri; ?>" /></td>
- </tr>
-
-<?php if ( apply_filters('show_password_fields', true) ) : ?>
- <tr class="form-field form-required">
- <th scope="row"><?php _e('Password (twice)') ?> </th>
- <td><input name="pass1" type="password" id="pass1" />
- <br />
- <input name="pass2" type="password" id="pass2" /></td>
- </tr>
-<?php endif; ?>
-
- <tr class="form-field">
- <th scope="row"><?php _e('Role'); ?></th>
- <td><select name="role" id="role">
- <?php
- if ( !$new_user_role )
- $new_user_role = $current_role ? $current_role : get_option('default_role');
- wp_dropdown_roles($new_user_role);
- ?>
- </select>
- </td>
- </tr>
-</table>
-<p class="submit">
- <?php echo $referer; ?>
- <input name="adduser" type="submit" id="addusersub" value="<?php _e('Add User') ?>" />
-</p>
-</form>
-