From 5028eba1c6087d32ff5db192f12581cfe60a5b87 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 7 Aug 2008 11:23:52 +0000 Subject: The log browser is now searchable. git-svn-id: https://code.elgg.org/elgg/trunk@1747 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/logbrowser/views/default/logbrowser/css.php | 42 ++++++++++++++ mod/logbrowser/views/default/logbrowser/form.php | 66 ++++++++++++++++++++++ mod/logbrowser/views/default/object/logwrapper.php | 12 ++-- 3 files changed, 114 insertions(+), 6 deletions(-) create mode 100644 mod/logbrowser/views/default/logbrowser/css.php create mode 100644 mod/logbrowser/views/default/logbrowser/form.php (limited to 'mod/logbrowser/views') diff --git a/mod/logbrowser/views/default/logbrowser/css.php b/mod/logbrowser/views/default/logbrowser/css.php new file mode 100644 index 000000000..95dabb7d7 --- /dev/null +++ b/mod/logbrowser/views/default/logbrowser/css.php @@ -0,0 +1,42 @@ + + + #logbrowser_search_area { + margin: 3px; + } + + #logbrowserSearchform { + + padding: 10px; + background-color: #eee; + + } + + .log_entry { + margin: 3px; + width: 650px; + font-size: 80%; + } + + .log_entry_user { + width: 120px; + background-color: #eee; + margin-left: 5px; + } + + .log_entry_time { + width: 210px; + background-color: #eee; + } + + .log_entry_item { + background-color: #eee; + margin-left: 5px; + } + + .log_entry_action { + width: 75px; + background-color: #eee; + margin-left: 5px; + } \ No newline at end of file diff --git a/mod/logbrowser/views/default/logbrowser/form.php b/mod/logbrowser/views/default/logbrowser/form.php new file mode 100644 index 000000000..2b0c78720 --- /dev/null +++ b/mod/logbrowser/views/default/logbrowser/form.php @@ -0,0 +1,66 @@ + +
+username; + } else { + $userval = ""; + } + + + $form = ""; + + $form .= "

" . elgg_echo('logbrowser:user'); + $form .= elgg_view('input/text',array( + 'internalname' => 'search_username', + 'value' => $userval + )) . "

"; + + $form .= "

" . elgg_echo('logbrowser:starttime'); + $form .= elgg_view('input/text',array( + 'internalname' => 'timelower', + 'value' => $lowerval + )) . "

"; + + $form .= "

" . elgg_echo('logbrowser:endtime'); + $form .= elgg_view('input/text',array( + 'internalname' => 'timeupper', + 'value' => $upperval + )) . "

"; + $form .= elgg_view('input/submit',array( + 'value' => elgg_echo('search') + )); + + $wrappedform = elgg_view('input/form',array( + 'body' => $form, + 'method' => 'get', + 'action' => $vars['url'] . "mod/logbrowser/" + )); + + if ($upperval || $lowerval || $userval) { + $hidden = ""; + } else { + $hidden = "style=\"display:none\""; + } + +?> + +
>
+

+ +

+
\ No newline at end of file diff --git a/mod/logbrowser/views/default/object/logwrapper.php b/mod/logbrowser/views/default/object/logwrapper.php index 8450c9b66..a46b166cd 100644 --- a/mod/logbrowser/views/default/object/logwrapper.php +++ b/mod/logbrowser/views/default/object/logwrapper.php @@ -21,17 +21,17 @@ ?> - +
- getURL()."\">{$by->name}"; } else echo " "; ?> - time_created ); ?> + getURL()."\">{$by->name}"; } else echo " "; ?> + "; - $info .= "{$entry->object_class}"; - if ($obj_url) $info .= ""; + if ($obj_url) echo ""; + echo "{$entry->object_class}"; + if ($obj_url) echo ""; ?> -- cgit v1.2.3