DEMO SITE v1.7.20

Bulk Delete Default theme

Bulk Delete - Select multiple records and delete. You cannot delete the record with a key : EBGC57SXM-VW47I6AF-401X7DYM

HIDE CODE
<?php

	$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();
?>

<button class="btn btn-primary" onclick="deleteItems();">Delete Selected</button>

<script>
	function deleteItems(){
		var r = confirm("Confirm deletion of " + items.length + " items.");
		if (r == true) {
		  Xcrud.request('.xcrud-ajax',Xcrud.list_data('.xcrud-ajax',{action: 'bulk_delete', task:'action',selected:items,table:'million',identifier:'id'}))
	      items = [];
		} 		
	}
</script>

Million

Add Export into CSV Print
Search
#User IdCd KeySumActivated 
1520608PUQSY33SL-BVKKMMT9B-Q2ODJZB2113.92No View Edit Remove
2520608RHF2DZGJ1-CMIX1F4Z8-RPUN311ZS13.92No View Edit Remove
3520608S25UIHYF8-CW1Z8RF0F-SARSC65NT13.92No View Edit Remove
4520608TPK8HTZV1-DNCBQ45V8-TYOEF8E7S13.92No View Edit Remove
5520608WHXYW3OJ9-EXGFBZSF3-WRWXL9EIH13.92No View Edit Remove
63457803VZ9GCLZU-CKGDSX1DS-547HX7O4114.09No View Edit Remove
734578042AF4AFCA-D4UMFFZSW-5CIFG8GXT14.09No View Edit Remove
834578047ZRTACQ2-DNADSQHHC-5K0NZGC8X14.09No View Edit Remove
93457804OBQSDM6I-F42VPDTOG-65IF02SIP14.09No View Edit Remove
103457804VFEYBFSA-FR1AA52WW-6EUVDAYPT14.09No View Edit Remove