root/releases/0.1.1b/units/users/userdetails_edit.php

Revision 2, 1.7 kB (checked in by sven, 3 years ago)

importing elgg-0.1.1a

Line 
1 <?php
2
3     $name = htmlentities($_SESSION['name']);
4     $email = htmlentities($_SESSION['email']);
5
6     $body = <<< END
7
8 <form action="index.php" method="post">
9
10     <h3>
11         Change your full name
12     </h3>
13     <p>
14         This name will be displayed throughout the system.
15     </p>
16
17 END;
18
19     $body .= run("templates:draw", array(
20             'context' => 'databox',
21             'name' => 'Your full name',
22             'column1' => "<input type=\"text\" name=\"name\" value=\"$name\" />"
23         )
24         );
25     
26     $body .= <<< END
27             
28     <h3>
29         Your email address
30     </h3>
31     <p>
32         This will not be displayed to other users; you can choose to make an email address available via the profile screen.
33     </p>
34     
35 END;
36
37     $body .= run("templates:draw", array(
38             'context' => 'databox',
39             'name' => 'Your email address',
40             'column1' => "<input type=\"text\" name=\"email\" value=\"$email\" />"
41         )
42         );
43
44     $body .= <<< END
45         
46     <h3>
47         Change your password
48     </h3>
49     <p>
50         Leave this blank if you're happy to leave your password as it is.
51     </p>
52     
53 END;
54     
55     $body .= run("templates:draw", array(
56             'context' => 'databox',
57             'name' => 'Your password',
58             'column1' => "<input type=\"password\" name=\"password1\" value=\"\" />"
59         )
60         );
61         
62     $body .= run("templates:draw", array(
63             'context' => 'databox',
64             'name' => 'Again for verification purposes',
65             'column1' => "<input type=\"password\" name=\"password2\" value=\"\" />"
66         )
67         );
68     
69     // Allow plug-ins to add stuff ...
70         $body .= run("userdetails:edit:details");
71
72         $body .= <<< END
73         
74     <p align="center">
75         <input type="hidden" name="action" value="userdetails:update" />
76         <input type="submit" value="Save" />
77     </p>
78     
79 </form>
80
81 END;
82
83     $run_result .= $body;
84
85 ?>
Note: See TracBrowser for help on using the browser.