From: Andreas Unterkircher Date: Sat, 28 Jul 2007 06:45:07 +0000 (+0000) Subject: issue67, when called from an external link, also check the consider-date-search-box... X-Git-Tag: phpfspot-1.2~76 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=d017dda4269c5122cd522218357a11fcb4880a5d issue67, when called from an external link, also check the consider-date-search-box if a date-range is specified in the url git-svn-id: file:///var/lib/svn/phpfspot/trunk@259 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- diff --git a/phpfspot.class.php b/phpfspot.class.php index 86235ac..9d3f548 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -147,6 +147,9 @@ class PHPFSPOT { break; } + if(isset($_SESSION['from_date']) && isset($_SESSION['to_date'])) + $this->tmpl->assign('date_search_enabled', true); + $this->tmpl->assign('from_date', $this->get_calendar('from')); $this->tmpl->assign('to_date', $this->get_calendar('to')); $this->tmpl->assign('sort_field', $this->get_sort_field()); diff --git a/themes/default/templates/search.tpl b/themes/default/templates/search.tpl index 549f2dc..2a6c14b 100644 --- a/themes/default/templates/search.tpl +++ b/themes/default/templates/search.tpl @@ -19,7 +19,14 @@ Date: - consider date-search + + { if ! $date_search_enabled } + + { else } + + { /if } + consider date-search +