Bulk Delete

[xcrud]
    $xcrud = Xcrud::get_instance();
    $xcrud->table('million');
    $xcrud->limit_list('20,50,100,1000'); // do not use 'all' for large tables
    $xcrud->bulk_select_position('left'); //It can be 'left' or 'right'
    //$xcrud->set_bulk_select(false);
    $xcrud->set_bulk_select(false,'cd_key','=','EBGC57SXM-VW47I6AF-401X7DYM');//Dont be able to select records with ID 287846
    $xcrud->unset_remove(true,'cd_key','=','EBGC57SXM-VW47I6AF-401X7DYM');
    $xcrud->create_action('bulk_delete', 'bulk_delete'); // action callback, function publish_action() in functions.php
    echo $xcrud->render();
[/xcrud]

Million

# User Id Cd Key Sum Activated  
1 269319 0.00 No
2 444147 WJ5ZKCEVI-8FHGCQ081-6PE5OW4BL 1.26 No
3 269319 4RSWV3NWN-P8KQC4YTY-7MDE0GGXN 1.44 No
4 269319 6AC6GMGJB-X8ZER52TY-A1GR37EXN 1.44 No
5 269319 7S32EZEEV-444EF9ETE-CFASL4W9N 1.44 No
6 269319 8NFOS5PCN-4KP9OA9HE-DTD7TUMXN 1.44 No
7 269319 8SH8KK2S7-4NDA3VATE-E1F5KLG9N 1.44 No
8 269319 9GAHD5HX3-4ZYMQY85E-F3G6OCTLN 1.44 No
9 269319 9RFV1WRJR-55UWF9C5E-FL970T9LN 1.44 No
10 269319 AM5GI88HJ-5M3LB16TE-GYAUHA09N 1.44 No

Search