diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-15 02:15:39 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-15 02:15:39 +0000 |
commit | e2ecdb543fdf4ac0adf7097c979e74950c39165e (patch) | |
tree | eb6b9addd1c4a0afc9f221f56613f3e7a792cd1d /views/default/forms/register.php | |
parent | cbc74d984665a8bc0de18e0fa7c2fe270e9b7476 (diff) | |
download | elgg-e2ecdb543fdf4ac0adf7097c979e74950c39165e.tar.gz elgg-e2ecdb543fdf4ac0adf7097c979e74950c39165e.tar.bz2 |
moved account forms into forms directory
git-svn-id: http://code.elgg.org/elgg/trunk@7623 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/forms/register.php')
-rw-r--r-- | views/default/forms/register.php | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/views/default/forms/register.php b/views/default/forms/register.php new file mode 100644 index 000000000..93e2585d8 --- /dev/null +++ b/views/default/forms/register.php @@ -0,0 +1,65 @@ +<?php +/** + * Elgg register form + * + * @package Elgg + * @subpackage Core + */ + +$username = get_input('u'); +$email = get_input('e'); +$name = get_input('n'); + +$admin_option = false; +if (isadminloggedin() && isset($vars['show_admin'])) { + $admin_option = true; +} + +?> +<p class="mtm"> + <label><?php echo elgg_echo('name'); ?></label> + <br /> + <?php echo elgg_view('input/text', array('internalname' => 'name', 'value' => $name)); ?> +</p> +<p> + <label><?php echo elgg_echo('email'); ?></label> + <br /> + <?php echo elgg_view('input/text', array('internalname' => 'email', 'value' => $email)); ?> +</p> +<p> + <label><?php echo elgg_echo('username'); ?></label> + <br /> + <?php echo elgg_view('input/text', array('internalname' => 'username', 'value' => $username)); ?> +</p> +<p> + <label><?php echo elgg_echo('password'); ?></label> + <br /> + <?php echo elgg_view('input/password', array('internalname' => 'password')); ?> +</p> +<p> + <label><?php echo elgg_echo('passwordagain'); ?></label> + <br /> + <?php echo elgg_view('input/password', array('internalname' => 'password2')); ?> +</p> + +<?php +// view to extend to add more fields to the registration form +echo elgg_view('register/extend'); + +// Add captcha hook +echo elgg_view('input/captcha'); + +if ($admin_option) { + echo elgg_view('input/checkboxes', array('internalname' => "admin", 'options' => array(elgg_echo('admin_option')))); +} + +echo elgg_view('input/hidden', array('internalname' => 'friend_guid', 'value' => $vars['friend_guid'])); +echo elgg_view('input/hidden', array('internalname' => 'invitecode', 'value' => $vars['invitecode'])); +echo elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('register'))); +?> + +<script type="text/javascript"> + $(document).ready(function() { + $('input[name=name]').focus(); + }); +</script>
\ No newline at end of file |