root/releases/0.1.2a/units/invite/invite.php

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

importing elgg-0.1.1a

Line 
1 <?php
2
3     // Ask for details to invite a friend
4     
5         $run_result .= <<< END
6         
7         <form action="" method="post">
8         
9 END;
10         $run_result .= run("templates:draw", array(
11                                                         'context' => 'databox1',
12                                                         'name' => 'Their name',
13                                                         'column1' => run("display:input_field",array("invite_name","","text"))
14                             )
15                             );
16         $run_result .= run("templates:draw", array(
17                                                         'context' => 'databox1',
18                                                         'name' => 'Their email address',
19                                                         'column1' => run("display:input_field",array("invite_email","","text"))
20                             )
21                             );
22                             
23         $run_result .= run("templates:draw", array(
24                                                         'context' => 'databox1',
25                                                         'name' => 'An optional message',
26                                                         'column1' => run("display:input_field",array("invite_text","","longtext"))
27                             )
28                             );
29                             
30         $run_result .= run("templates:draw", array(
31                                                         'context' => 'databox1',
32                                                         'name' => '&nbsp;',
33                                                         'column1' => '<input type="submit" value="Invite" />'
34                             )
35                             );
36                             
37         $run_result .= <<< END
38         
39             <input type="hidden" name="action" value="invite_invite" />
40         </form>
41         
42 END;
43
44 ?>
Note: See TracBrowser for help on using the browser.