From 219888d4899fa1704452ed7169b718f6766aaa07 Mon Sep 17 00:00:00 2001 From: mensonge Date: Fri, 14 Mar 2008 10:32:00 +0000 Subject: New Feature: save searches (and display a searchhistory box) git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@80 b3834d28-1941-0410-a4f8-b48e95affb8f --- templates/sidebar.block.search.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 templates/sidebar.block.search.php (limited to 'templates/sidebar.block.search.php') diff --git a/templates/sidebar.block.search.php b/templates/sidebar.block.search.php new file mode 100644 index 0000000..e9638d2 --- /dev/null +++ b/templates/sidebar.block.search.php @@ -0,0 +1,35 @@ +getCurrentUserId(); +if ($logged_on_userid === false) { + $logged_on_userid = NULL; +} + +$lastSearches = $searchhistoryservice->getAllSearches('all', NULL, 3, NULL, true); + +if ($lastSearches && count($lastSearches) > 0) { +?> + +

+
+ +'; +} +//echo ''; +?> + +
'; + echo ''; + echo $row['shTerms']; + echo ''; + echo ' ('.$row['shNbResults'].')'; + echo '
...
+
+ -- cgit v1.2.3-54-g00ecf