aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent/views/default/reportedcontent/form.php
blob: ded9960c8e4e2ce115b042e382986139897165d6 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php

	/**
	 * Elgg report content plugin form
	 * 
	 * @package ElggReportContent
	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
	 * @author Curverider <info@elgg.com>
	 * @copyright Curverider Ltd 2008-2009
	 * @link http://elgg.org/
	 */
			
			$guid = 0;
			$title = get_input('title',"");
			$description = "";
			$address = get_input('address',"");
			if ($address == "previous")
				$address = $_SERVER['HTTP_REFERER'];
			$tags = array();
			$access_id = 0;
			$shares = array();
			$owner = $vars['user'];

?>

	<form action="<?php echo $vars['url']; ?>action/reportedcontent/add" method="post">
	
		<p>
			<label>
				<?php 	echo elgg_echo('reportedcontent:title'); ?>
				<?php

						echo elgg_view('input/text',array(
								'internalname' => 'title',
								'value' => $title,
						)); 
				
				?>
			</label>
		</p>
		<p>
			<label>
				<?php 	echo elgg_echo('reportedcontent:address'); ?>
				<?php

						echo elgg_view('input/url',array(
								'internalname' => 'address',
								'value' => $address,
						)); 
				
				?>
			</label>
		</p>
		<p>
			<label>
				<?php 	echo elgg_echo('reportedcontent:description'); ?>
				<?php

						echo elgg_view('input/longtext',array(
								'internalname' => 'description',
								'value' => $description,
						)); 
				
				?>
			</label>
		</p>
		<p>
			<input type="submit" value="<?php echo elgg_echo('reportedcontent:report'); ?>" />
		</p>
	
	</form>