Elgg  Version 1.9
useradd.php
Go to the documentation of this file.
1 <?php
11 
12 if (elgg_is_sticky_form('useradd')) {
13  extract(elgg_get_sticky_values('useradd'));
14  elgg_clear_sticky_form('useradd');
15  if (is_array($admin)) {
16  $admin = $admin[0];
17  }
18 }
19 
20 ?>
21 <div>
22  <label><?php echo elgg_echo('name');?></label><br />
23  <?php
24  echo elgg_view('input/text', array(
25  'name' => 'name',
26  'value' => $name,
27  ));
28  ?>
29 </div>
30 <div>
31  <label><?php echo elgg_echo('username'); ?></label><br />
32  <?php
33  echo elgg_view('input/text', array(
34  'name' => 'username',
35  'value' => $username,
36  ));
37  ?>
38 </div>
39 <div>
40  <label><?php echo elgg_echo('email'); ?></label><br />
41  <?php
42  echo elgg_view('input/text', array(
43  'name' => 'email',
44  'value' => $email,
45  ));
46  ?>
47 </div>
48 <div>
49  <label><?php echo elgg_echo('password'); ?></label><br />
50  <?php
51  echo elgg_view('input/password', array(
52  'name' => 'password',
53  'value' => $password,
54  ));
55  ?>
56 </div>
57 <div>
58  <label><?php echo elgg_echo('passwordagain'); ?></label><br />
59  <?php
60  echo elgg_view('input/password', array(
61  'name' => 'password2',
62  'value' => $password2,
63  ));
64  ?>
65 </div>
66 <div>
67 <?php
68  echo elgg_view('input/checkboxes', array(
69  'name' => "admin",
70  'options' => array(elgg_echo('admin_option') => 1),
71  'value' => $admin,
72  ));
73 ?>
74 </div>
75 
76 <div class="elgg-foot">
77  <?php echo elgg_view('input/submit', array('value' => elgg_echo('register'))); ?>
78 </div>
elgg_is_sticky_form($form_name)
Has this form been made sticky?
Definition: input.php:186
$name
Definition: useradd.php:16
elgg_clear_sticky_form($form_name)
Clear the sticky form cache.
Definition: input.php:171
$admin
Definition: useradd.php:18
$username
Definition: useradd.php:12
fieldset div
Definition: admin.php:462
$password2
Definition: useradd.php:14
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$email
Definition: useradd.php:15
elgg echo
Translates a string.
Definition: languages.js:43
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
label
Definition: admin.php:452
elgg_get_sticky_values($form_name, $filter_result=true)
Get all the values in a sticky form in an array.
Definition: input.php:228
$password
Definition: useradd.php:13