aboutsummaryrefslogtreecommitdiff
path: root/mod/logbrowser
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-09-24 18:39:27 -0400
committercash <cash.costello@gmail.com>2011-09-24 18:39:27 -0400
commit6074142b6fbcf8834e4a9b1fccdbdb13ede7ab00 (patch)
tree499bcffb0c99036eaaa907021e4f53ed38490091 /mod/logbrowser
parentd9d3cc65e96c54332f22f90ac17b014dfe183ddf (diff)
downloadelgg-6074142b6fbcf8834e4a9b1fccdbdb13ede7ab00.tar.gz
elgg-6074142b6fbcf8834e4a9b1fccdbdb13ede7ab00.tar.bz2
Fixes #3809 updated admin buttons css
Diffstat (limited to 'mod/logbrowser')
-rw-r--r--mod/logbrowser/views/default/forms/logbrowser/refine.php53
1 files changed, 53 insertions, 0 deletions
diff --git a/mod/logbrowser/views/default/forms/logbrowser/refine.php b/mod/logbrowser/views/default/forms/logbrowser/refine.php
new file mode 100644
index 000000000..ff3f48b03
--- /dev/null
+++ b/mod/logbrowser/views/default/forms/logbrowser/refine.php
@@ -0,0 +1,53 @@
+<?php
+/**
+ * Form body for refining the log browser search.
+ * Look for a particular person or in a time window.
+ *
+ * @uses $vars['user_guid']
+ * @uses $vars['timelower']
+ * @uses $vars['timeupper']
+ */
+
+if (isset($vars['timelower'])) {
+ $lowerval = date('r',$vars['timelower']);
+} else {
+ $lowerval = "";
+}
+if (isset($vars['timeupper'])) {
+ $upperval = date('r',$vars['timeupper']);
+} else {
+ $upperval = "";
+}
+if (isset($vars['user_guid'])) {
+ if ($user = get_entity($vars['user_guid'])) {
+ $userval = $user->username;
+ }
+} else {
+ $userval = "";
+}
+
+
+$form = "<div>" . elgg_echo('logbrowser:user');
+$form .= elgg_view('input/text', array(
+ 'name' => 'search_username',
+ 'value' => $userval,
+)) . "</div>";
+
+$form .= "<div>" . elgg_echo('logbrowser:starttime');
+$form .= elgg_view('input/text', array(
+ 'name' => 'timelower',
+ 'value' => $lowerval,
+)) . "</div>";
+
+$form .= "<div>" . elgg_echo('logbrowser:endtime');
+$form .= elgg_view('input/text', array(
+ 'name' => 'timeupper',
+ 'value' => $upperval,
+)) . "</div>";
+$form .= '<div class="elgg-foot">';
+$form .= elgg_view('input/submit', array(
+ 'value' => elgg_echo('search'),
+));
+$form .= '</div>';
+
+echo $form;