⚠ 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

How to add more than one field in row, instead each field in row



lionking

lionking
  • profile picture
  • Member

Posted 25 April 2015 - 11:50 AM

I'm use grocery crud with codeignier, but I want to add two image upload fields or more into one form row.

 

Usually a way to add fields as in the following figure:

 

BXpET.jpg

 

But I want to do like the following figure (all in one row):

 

RUaDf.jpg

 

 

The Code:

$crud = new grocery_CRUD();
$crud->set_table('content');
$crud->where('state', 1);
$crud->add_fields('name', 'category_id', 'subcategory_id', 'image', 'image2', 'image3', 'image4', 'text', 'period');
$crud->set_field_upload('image', 'assets/uploads/');
$crud->set_field_upload('image2', 'assets/uploads/');
$crud->set_field_upload('image3', 'assets/uploads/');
$crud->set_field_upload('image4', 'assets/uploads/');

 

 

 

 

 

 


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 30 April 2015 - 21:13 PM

search for an extension.. multi file uploader

or u can search for multi multi uploader


Hamelraj

Hamelraj
  • profile picture
  • Member

Posted 15 June 2015 - 07:25 AM

@Amith Shah same like that i want add text filed dynamicallyby press butoon i need only code for that function and i want knw where i want paste (chnage) code ..... in my folders thtz all please help me :(