Pridana podpora filtrovani modelu, pridany relacni linky do kategorie a vyrobce
authorThomas Mudrunka <tomas@mudrunka.cz>
Wed, 9 Nov 2011 15:42:44 +0000 (16:42 +0100)
committerThomas Mudrunka <tomas@mudrunka.cz>
Wed, 9 Nov 2011 15:42:44 +0000 (16:42 +0100)
index.php

index 18ba761eba9784cab1c3f61450456eca400a4e0f..43acfb25ba8c55bdac5b38eb8dca07e01a337d62 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -302,8 +302,8 @@ EOF;
                        'item' => array(
                                'item_serial' => array(array('dispose','assistant/%d?serial=%v'),array('sell','assistant/%d?serial=%v'))
                        ),
-                       'category' => array('category_id' => array(array('item',$where_url))),
-                       'producer' => array('producer_id' => array(array('item',$where_url))),
+                       'category' => array('category_id' => array(array('item',$where_url), array('model',$where_url))),
+                       'producer' => array('producer_id' => array(array('item',$where_url), array('model',$where_url))),
                        'vendor' => array('vendor_id' => array(array('item',$where_url))),
                        'room' => array('room_id' => array(array('item',$where_url))),
                        'status' => array('status_id' => array(array('item',$where_url)))
@@ -490,7 +490,8 @@ class Sklad_DB extends PDO {
                        'model' => array('category', 'producer')
                ); //TODO Autodetect using foreign keys?
                $search_fields = array(
-                       'item'  => array('item_id','item_serial','model_name','model_barcode','model_descript','producer_name','vendor_name')
+                       'item'  => array('item_id','item_serial','model_name','model_barcode','model_descript','producer_name','vendor_name'),
+                       'model' => array('model_id','model_name','model_barcode','model_descript','producer_name')
                ); //TODO Autodetect
 
                //Init
This page took 0.1408 seconds and 4 git commands to generate.