From c0090ebd0dc8534a90b10596a476730799395919 Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 21 Mar 2011 01:13:54 +0000 Subject: Fixes #3082 fixed toggler in log browser git-svn-id: http://code.elgg.org/elgg/trunk@8798 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/logbrowser/views/default/logbrowser/form.php | 96 ++++++++++++------------ 1 file changed, 48 insertions(+), 48 deletions(-) (limited to 'mod') diff --git a/mod/logbrowser/views/default/logbrowser/form.php b/mod/logbrowser/views/default/logbrowser/form.php index b09fd79dd..d2476afac 100644 --- a/mod/logbrowser/views/default/logbrowser/form.php +++ b/mod/logbrowser/views/default/logbrowser/form.php @@ -9,56 +9,59 @@
username; + } else { + $userval = ""; + } + - if ($vars['timelower']) { - $lowerval = date('r',$vars['timelower']); - } else { - $lowerval = ""; - } - if ($vars['timeupper']) { - $upperval = date('r',$vars['timeupper']); - } else { - $upperval = ""; - } - if ($vars['user_guid']) { - if ($user = get_entity($vars['user_guid'])) - $userval = $user->username; - } else { - $userval = ""; - } + $form = "

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

"; + $form .= "

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

"; - $form = "

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

"; + $form .= "

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

"; + $form .= elgg_view('input/submit', array( + 'value' => elgg_echo('search'), + )); - $form .= "

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

"; + //@todo Forms 1.8: Convert to use elgg_view_form() + $wrappedform = elgg_view('input/form', array( + 'body' => $form, + 'method' => 'get', + 'action' => "admin/overview/logbrowser", + 'disable_security' => true, + )); - $form .= "

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

"; - $form .= elgg_view('input/submit', array( - 'value' => elgg_echo('search'), - )); - - //@todo Forms 1.8: Convert to use elgg_view_form() - $wrappedform = elgg_view('input/form', array( - 'body' => $form, - 'method' => 'get', - 'action' => "admin/overview/logbrowser", - 'disable_security' => true, - )); + $toggle_link = elgg_view('output/url', array( + 'href' => '#log-browser-search-form', + 'text' => elgg_echo('logbrowser:search'), + 'class' => 'elgg-toggler', + )); ?> -

- - - - +

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