diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-30 16:03:26 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-30 16:03:26 +0000 |
commit | b9795ea06b667d0320cb31ae087852444b5f255e (patch) | |
tree | 15feab7ab89da8acfd445fe7c7dc3c31cb50ac2a /views/default/account/forms | |
parent | 4b182531d4c39b822d26790123828b980fdca947 (diff) | |
download | elgg-b9795ea06b667d0320cb31ae087852444b5f255e.tar.gz elgg-b9795ea06b667d0320cb31ae087852444b5f255e.tar.bz2 |
Added some user code - needs div hiding
git-svn-id: https://code.elgg.org/elgg/trunk@1209 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/account/forms')
-rw-r--r-- | views/default/account/forms/useradd.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/views/default/account/forms/useradd.php b/views/default/account/forms/useradd.php new file mode 100644 index 000000000..daf645437 --- /dev/null +++ b/views/default/account/forms/useradd.php @@ -0,0 +1,35 @@ +<?php + /** + * Elgg add user form. + * + * @package Elgg + * @subpackage Core + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Marcus Povey + * @copyright Curverider Ltd 2008 + * @link http://elgg.org/ + */ + + $admin_option = false; + if (($_SESSION['user']->admin) && ($vars['show_admin'])) + $admin_option = true; +?> + + <h2><?php echo elgg_echo('adduser'); ?></h2> + <div id="add-box"> + <form action="<?php echo $vars['url']; ?>action/useradd" method="POST"> + <p><label><?php echo elgg_echo('name'); ?>: <input name="name" type="text" class="general-textarea" /></label><br /> + <label><?php echo elgg_echo('email'); ?>: <input name="email" type="text" class="general-textarea" /></label><br /> + <label><?php echo elgg_echo('username'); ?>: <input name="username" type="text" class="general-textarea" /></label><br /> + <label><?php echo elgg_echo('password'); ?>: <input name="password" type="password" class="general-textarea" /></label><br /> + <label><?php echo elgg_echo('passwordagain'); ?>: <input name="password2" type="password" class="general-textarea" /></label><br /> + <?php + if ($admin_option) { +?> + <label><?php echo elgg_echo('admin_option'); ?> <input type="checkbox" name="admin" /></label> <br /> +<?php + } + ?> + <input type="submit" name="submit" class="submit_button" value="<?php echo elgg_echo('adduser'); ?>" /></p> + </form> + </div>
\ No newline at end of file |