⚠ In case you've missed it we are migrating 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 forum is read-only and soon will be archived. ⚠


KaBaDaBrA

Member Since 28 Feb 2012
Offline Last Active Nov 20 2012 07:47 AM
*****

Posts I've Made

In Topic: [updated 24/11/2012] Dependent dropdown (library)

20 November 2012 - 07:36 AM

Really really awesome Victor - been a bit dormant the last few months, just saw this now!! EPIC!!!!

:ph34r: GCRUD Ninja!!!! :D

In Topic: multiple delete selection

09 May 2012 - 07:52 PM

For your number 2 I tested something quickly and works quite well, however it is static - not sure how to find the dynamically parsed values in the list like the table name being used, nor the field for the primary id. If I could find them it's really easy to change over to be dynamic. Maybe Johnny could give a hand here ;)

Anyway here we go:

Attached File  example.PNG   34.88K   7226 downloads

Above is an example, added the check links to the side and a delete all selected button to the bottom right. Here is the "list.php" file, download it and copy to your flexigrid theme (backup your current one) path: assets\grocery_crud\themes\flexigrid\views.

Attached File  list.php   4.02K   2808 downloads

You will need to edit the javascript part around line 25 and replace your own URL in here.

Here's an example function for the controller:

function delete_selection()
{
   $id_array = array();
   $selection = $this->input->post("selection", TRUE);
   $id_array = explode("|", $selection);

   foreach($id_array as $item):
	  if($item != ''):
	  //DELETE ROW
	  $this->db->where('customerNumber', $item);
	  $this->db->delete('customers');
	  endif;
   endforeach;
}

In Topic: where > / <

27 April 2012 - 04:31 PM

try

$crud->where('status >','2')->where('status <','5');

or something like

$where = "status > '2' AND status < '5'";

$crud->where($where);

In Topic: [ANSWERED] How to add fancybox in Grocery Crud

26 April 2012 - 10:42 AM

The first problem I can help you with...

change the class from

class='various fancybox.ajax'

to

class='various' data-fancybox-type="iframe"

Think that will work. Sorry im new to Fancybox so dont know all their code stuffs.

For the second problem maybe try this

Add #wrapper to the end of the href
href='<?php echo $add_url?>#wrapper'

and leave the class only as

class='various'

Nothing else and dont think it will work with iframe mode (I think)

In Topic: Freeze column

25 April 2012 - 06:47 PM

- Using Datatables: http://datatables.ne...s/FixedColumns/

Refer to the link above and edit the datatables.js file

- Flexigrid as far as I understand does not support fixed columns

You can use CSS and give the column a fixed position but there might be quite a bit more to that...