blob: f4849618f26ef022aa8b83074db135fcbdbef51a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
<?php
/**
* Elgg add user form.
*
* @package Elgg
* @subpackage Core
*
*/
$admin_option = false;
if ((elgg_get_logged_in_user_entity()->isAdmin()) && ($vars['show_admin'])) {
$admin_option = true;
}
?>
<div>
<label><?php echo elgg_echo('name');?></label><br />
<?php echo elgg_view('input/text' , array('name' => 'name')); ?>
</div>
<div>
<label><?php echo elgg_echo('username'); ?></label><br />
<?php echo elgg_view('input/text' , array('name' => 'username')); ?>
</div>
<div>
<label><?php echo elgg_echo('email'); ?></label><br />
<?php elgg_view('input/text' , array('name' => 'email')); ?>
</div>
<div>
<label><?php echo elgg_echo('password'); ?></label><br />
<?php elgg_view('input/password' , array('name' => 'password')); ?>
</div>
<div>
<label><?php echo elgg_echo('passwordagain'); ?></label><br />
<?php elgg_view('input/password' , array('name' => 'password2')); ?>
</div>
<?php
if ($admin_option) {
echo "<div>";
echo elgg_view('input/checkboxes', array('name' => "admin", 'options' => array(elgg_echo('admin_option'))));
echo "</div>";
}
?>
<div>
<?php echo elgg_view('input/submit', array('name' => 'submit', 'value' => elgg_echo('register'))); ?>
</div>
|