From f1230a2c6b8bf0586447e4f9bad2089b7cc3b8bf Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 12 Aug 2008 21:25:57 +0000 Subject: report content added as a core plugin. Still needs a couple of bits wired up. git-svn-id: https://code.elgg.org/elgg/trunk@1867 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/reportedcontent/form.php | 71 ++++++++++++++++++++++ .../views/default/reportedcontent/listing.php | 24 ++++++++ .../views/default/reportedcontent/user_report.php | 6 ++ 3 files changed, 101 insertions(+) create mode 100644 mod/reportedcontent/views/default/reportedcontent/form.php create mode 100644 mod/reportedcontent/views/default/reportedcontent/listing.php create mode 100644 mod/reportedcontent/views/default/reportedcontent/user_report.php (limited to 'mod/reportedcontent/views/default') diff --git a/mod/reportedcontent/views/default/reportedcontent/form.php b/mod/reportedcontent/views/default/reportedcontent/form.php new file mode 100644 index 000000000..64a06bb63 --- /dev/null +++ b/mod/reportedcontent/views/default/reportedcontent/form.php @@ -0,0 +1,71 @@ + + * @copyright Curverider Ltd 2008 + * @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']; + +?> + +
+ +

+ +

+

+ +

+

+ +

+

+ +

+ +
\ No newline at end of file diff --git a/mod/reportedcontent/views/default/reportedcontent/listing.php b/mod/reportedcontent/views/default/reportedcontent/listing.php new file mode 100644 index 000000000..1976d0946 --- /dev/null +++ b/mod/reportedcontent/views/default/reportedcontent/listing.php @@ -0,0 +1,24 @@ +owner_guid)->name; + $user_url = get_user($report->owner_guid)->getURL(); + + echo "
"; + echo "

" . elgg_echo('reportedcontent:by') . ": " . $user . ", " . friendly_time($report->time_created) . "

"; + echo "

" . elgg_echo('reportedcontent:objecttitle') . ": " . $report->title . "

"; + echo "

" . elgg_echo('reportedcontent:objecturl') . ": address}\">" . $report->address . "

"; + echo "

" . elgg_echo('reportedcontent:reason') . ": " .$report->description . "

"; + echo "

[" . elgg_echo('reportedcontent:archive') . "] - [" . elgg_echo('reportedcontent:delete') . "]

"; + echo elgg_view_comments($report); + echo "
"; + + } + + } + +?> \ No newline at end of file diff --git a/mod/reportedcontent/views/default/reportedcontent/user_report.php b/mod/reportedcontent/views/default/reportedcontent/user_report.php new file mode 100644 index 000000000..6077ca620 --- /dev/null +++ b/mod/reportedcontent/views/default/reportedcontent/user_report.php @@ -0,0 +1,6 @@ + +

+wwwroot . "mod/reportedcontent/add.php?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)\">" . elgg_echo('reportedcontent:report') . ""; +?> +

\ No newline at end of file -- cgit v1.2.3