aboutsummaryrefslogtreecommitdiff
path: root/mod/messages/views/default/messages/forms/view.php
blob: 3d76c56caaf72683ee584289763971fb61bf448b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
* View message
* 
* @package ElggMessages
*/

$body = elgg_view("messages/view",$vars);

$body .= '<div class="messages_buttonbank">';
$body .= '<input type="hidden" name="type" value="'.$vars['page_view'].'" />';
$body .= '<input type="hidden" name="offset" value="'.$vars['offset'].'" />';
$body .= '<input type="submit" name="submit" value="'.elgg_echo('delete').'" /> ';

if($vars['page_view'] == "inbox"){
	$body .= '<input type="submit" name="submit" value="'.elgg_echo('messages:markread').'" /> ';
}

$body .= '<input class="cancel_button" type="button" onclick="javascript:$(\'input[type=checkbox]\').click();" value="'.elgg_echo('messages:toggle').'" />';
$body .= '</div>';

echo elgg_view('input/form',array('body' => $body, 'action' => $vars['url'] . 'action/messages/delete', 'method' => 'post', 'internalid' => 'messages_list_form'));