aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-01-27 18:18:23 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-01-27 18:18:23 +0000
commit4ace8344cfd8769ef059ec5c920ac663c8c1d4ce (patch)
tree14427de964a8a0abb2596e97c50a37d5d979f16e /h-source/Application/Controllers
parent4e4b0e82b62d9a5bdce92b3caa2ab18e16122ba0 (diff)
improved search and impagination with CSS
Diffstat (limited to 'h-source/Application/Controllers')
-rw-r--r--h-source/Application/Controllers/SearchController.php29
1 files changed, 27 insertions, 2 deletions
diff --git a/h-source/Application/Controllers/SearchController.php b/h-source/Application/Controllers/SearchController.php
index f2f2abc..6f96595 100644
--- a/h-source/Application/Controllers/SearchController.php
+++ b/h-source/Application/Controllers/SearchController.php
@@ -67,8 +67,6 @@ class SearchController extends BaseController
'-deleted' => "no",
);
-// echo $this->viewArgs['type'];
-
$recordNumber = $this->m['HardwareModel']->clear()->where($whereClause)->orderBy("id_hard desc")->rowNumber();
$data['recordNumber'] = $recordNumber;
@@ -91,4 +89,31 @@ class SearchController extends BaseController
}
+ public function pciid($lang = 'en')
+ {
+ if (isset($_POST['pciid']))
+ {
+ $clean['pciid'] = $this->request->post('pciid','','sanitizePciid');
+ $data['table'] = $this->m['HardwareModel']->clear()->select()->where(array('pci_id'=>$clean['pciid']))->send();
+ $data['recordNumber'] = 0;
+
+ $this->append($data);
+ $this->cleverLoad('results');
+ $this->right();
+ }
+ }
+
+ public function lspci($lang = 'en')
+ {
+ if (isset($_POST['lspci']))
+ {
+// $clean['pciid'] = $this->request->post('lspci','','sanitizePciid');
+// $data['table'] = $this->m['HardwareModel']->clear()->select()->where(array('pci_id'=>$clean['pciid']))->send();
+// $data['recordNumber'] = 0;
+//
+// $this->append($data);
+// $this->cleverLoad('results');
+// $this->right();
+ }
+ }
} \ No newline at end of file