123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- /**
- * Elgg add user form.
- *
- * @package Elgg
- * @subpackage Core
- *
- */
- if (elgg_is_sticky_form('useradd')) {
- $values = elgg_get_sticky_values('useradd');
- elgg_clear_sticky_form('useradd');
- } else {
- $values = array();
- }
- $password = $password2 = '';
- $name = elgg_extract('name', $values);
- $username = elgg_extract('username', $values);
- $email = elgg_extract('email', $values);
- $admin = elgg_extract('admin', $values);
- if (is_array($admin)) {
- $admin = array_shift($admin);
- }
- ?>
- <div>
- <label><?php echo elgg_echo('name');?></label><br />
- <?php
- echo elgg_view('input/text', array(
- 'name' => 'name',
- 'value' => $name,
- ));
- ?>
- </div>
- <div>
- <label><?php echo elgg_echo('username'); ?></label><br />
- <?php
- echo elgg_view('input/text', array(
- 'name' => 'username',
- 'value' => $username,
- ));
- ?>
- </div>
- <div>
- <label><?php echo elgg_echo('email'); ?></label><br />
- <?php
- echo elgg_view('input/text', array(
- 'name' => 'email',
- 'value' => $email,
- ));
- ?>
- </div>
- <div>
- <label><?php echo elgg_echo('password'); ?></label><br />
- <?php
- echo elgg_view('input/password', array(
- 'name' => 'password',
- 'value' => $password,
- ));
- ?>
- </div>
- <div>
- <label><?php echo elgg_echo('passwordagain'); ?></label><br />
- <?php
- echo elgg_view('input/password', array(
- 'name' => 'password2',
- 'value' => $password2,
- ));
- ?>
- </div>
- <div>
- <?php
- echo elgg_view('input/checkboxes', array(
- 'name' => "admin",
- 'options' => array(elgg_echo('admin_option') => 1),
- 'value' => $admin,
- ));
- ?>
- </div>
- <div class="elgg-foot">
- <?php echo elgg_view('input/submit', array('value' => elgg_echo('register'))); ?>
- </div>
|