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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
<?php
/**
* Elgg add user form.
*
* @package Elgg
* @subpackage Core
*
*/
$name = $username = $email = $password = $password2 = $admin = '';
if (elgg_is_sticky_form('useradd')) {
extract(elgg_get_sticky_values('useradd'));
elgg_clear_sticky_form('useradd');
if (is_array($admin)) {
$admin = $admin[0];
}
}
?>
<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>
|