aboutsummaryrefslogtreecommitdiff
path: root/mod/messageboard/views/default/messageboard/forms/add.php
blob: 91337fdc98f8f6ae625c7874d84347e55b927d87 (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
<?php

    /**
	 * Elgg Message board add form
	 * 
	 * @package ElggMessageBoard
	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
	 * @author Curverider Ltd <info@elgg.com>
	 * @copyright Curverider Ltd 2008-2010
	 * @link http://elgg.com/
	 */
	 
?>
<div id="mb_input_wrapper">
<form action="<?php echo $vars['url']; ?>action/messageboard/add" method="post" name="messageboardForm">
   
    <!-- textarea for the contents -->
    <textarea name="message_content" value="" class="input_textarea"></textarea><br />
   
    <!-- the person posting an item on the message board -->
    <input type="hidden" name="guid" value="<?php echo $_SESSION['guid']; ?>"  />
   
    <!-- the page owner, this will be the profile owner -->
    <input type="hidden" name="pageOwner" value="<?php echo page_owner(); ?>"  />

    <?php echo elgg_view('input/securitytoken'); ?>
   
    <!-- submit messages input -->
    <input type="submit" id="postit" value="<?php echo elgg_echo('messageboard:postit'); ?>">
    
</form>
</div>