From 14691cd854be3e9ee272c9619a6368c83d72267b Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sat, 18 Feb 2012 00:07:50 +0000 Subject: upload new EasyGiant library and added added a new filter for the model name (part 2) --- h-source/Application/Controllers/GenericController.php | 6 ++++++ h-source/Application/Views/Desktop/Search/form.php | 8 ++++---- h-source/Application/Views/Desktop/catalogue.php | 8 ++++++++ 3 files changed, 18 insertions(+), 4 deletions(-) (limited to 'h-source/Application') diff --git a/h-source/Application/Controllers/GenericController.php b/h-source/Application/Controllers/GenericController.php index 2381866..117845a 100644 --- a/h-source/Application/Controllers/GenericController.php +++ b/h-source/Application/Controllers/GenericController.php @@ -501,7 +501,13 @@ class GenericController extends BaseController $data['topNotice'] = $this->getModule(array('devices',$this->controller,'catalogue')); $data['popupLabel'] = $this->mod->getPopupLabel($this->viewArgs); + + $data["search_string_form_value"] = strcmp($this->viewArgs['search_string'],Params::$nullQueryValue) === 0 ? gtext("model name") : $this->viewArgs['search_string']; + //set search_string to undef to clean the model name filter + $this->viewArgs['search_string'] = "undef"; + $this->buildStatus(); + $this->append($data); $this->loadViewAll('catalogue'); diff --git a/h-source/Application/Views/Desktop/Search/form.php b/h-source/Application/Views/Desktop/Search/form.php index 22650f5..136c544 100644 --- a/h-source/Application/Views/Desktop/Search/form.php +++ b/h-source/Application/Views/Desktop/Search/form.php @@ -24,7 +24,7 @@ $(document).ready(function() { - $(".search_form table").append(""); + $(".search_form table").append("\">"); $("#search_action_input").click(function(){ @@ -32,7 +32,7 @@ var s_model = $("#search_model_input").attr("value"); var s_action = $("#search_action_input").attr("value"); - var s_url = "1/" + s_action + "/" + s_type + "/" + s_model; + var s_url = "1/search/" + s_type + "/" + s_model; location.href="baseUrl."/search/results/$lang/";?>"+s_url; return false; @@ -86,7 +86,7 @@ - + @@ -103,7 +103,7 @@ - + diff --git a/h-source/Application/Views/Desktop/catalogue.php b/h-source/Application/Views/Desktop/catalogue.php index 5bda414..1e15e4c 100644 --- a/h-source/Application/Views/Desktop/catalogue.php +++ b/h-source/Application/Views/Desktop/catalogue.php @@ -40,6 +40,14 @@ + +
+
viewStatus;?>"> + + viewStatus;?>">" /> + +
+
-- cgit v1.2.3