⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Put search bar



Umair Memon
  • profile picture
  • Member

Posted 14 March 2014 - 13:29 PM

how we put search bar in products management example plzzzzzzzz help 

 


Amit Shah
  • profile picture
  • Member

Posted 16 March 2014 - 06:38 AM

Hi there,

 

i am here by attaching the list_template.php (1 modified by me for my projects.. its from flexigrid). Here if u see, u will find the the piece of code for having a search bar on top and the script attached to it..

 

 

PLEASE NOTE:- do not try to use this file directly... why cuz this is modified 2 my needs... and may not function @yr end correctly.. so just use the codes / pieces as required by you ...!!

 

Happy GCing:)

 


Umair Memon
  • profile picture
  • Member

Posted 16 March 2014 - 17:09 PM

thanks for reply dear this is my flexgird theme file list_template  and my controler is given below but cant show search bar plzzzz if u dont mind can you solve my problem all add edit ,delete are working properly..

 

 

public function books_management()
{
 
     $crud = new grocery_CRUD();
$crud->set_theme('flexigrid');
 
$this->db = $this->load->database('default',true);
 
$crud->set_table('tblclient');
 
 
$output = $crud->render();
 
$this->_example_output($output);
 
 
 
}
 

 


Amit Shah
  • profile picture
  • Member

Posted 16 March 2014 - 17:53 PM

well.. this is my list template (mostly with original grocery crud ) except for some css calls u can remove...!! rest all its plain search bar in grocery crud.. u can download and use it...

 

Welll as for 1 thing will like 2 clarify u on the same...!! 2 avail the search bar - there is no changes that goes in controller.. it uses GC in built search power - so just have it and chill out