Bulk Delete 1.7.25.2 Bootstrap theme
Delete multiple records including bulk delete for nested tabs data! No more javascript.. Select Multiple records and click Bulk Delete
HIDE CODE
<?php
$xcrud = Xcrud::get_instance();
$xcrud->table('orders');
$xcrud->default_tab('Order info');
$xcrud->set_bulk_delete(true);
$xcrud->set_bulk_select(true);
$orderdetails = $xcrud->nested_table('Order details','orderNumber','orderdetails','orderNumber'); // 2nd level
$orderdetails->columns('productCode,quantityOrdered,priceEach');
$orderdetails->fields('productCode,quantityOrdered,priceEach');
$orderdetails->default_tab('Detail information');
$orderdetails->set_bulk_delete(true);
$orderdetails->set_bulk_select(true);
$customers = $xcrud->nested_table('Customers','customerNumber','customers','customerNumber'); // 2nd level 2
$customers->columns('customerName,city,country');
$products = $orderdetails->nested_table('Products','productCode','products','productCode'); // 3rd level
$products->default_tab('Product details');
$productLines = $products->nested_table('Product Lines','productLine','productlines','productLine'); // 4th level
echo $xcrud->render();
?>
<script>
$('.xcrud-tabs .menu .item').tab('change tab','tab1.php');
</script>
Orders
| # | Orderdate | Requireddate | Shippeddate | Status | Comments | Customernumber | ||
|---|---|---|---|---|---|---|---|---|
| 1 | 05.11.2003 00:00:00 | 13.11.2003 00:00:00 | 07.11.2003 00:00:00 | Shipped | 233 | View Edit Remove | ||
| 2 | 05.11.2003 00:00:00 | 14.11.2003 00:00:00 | 11.11.2003 00:00:00 | Shipped | 175 | View Edit Remove | ||
| 3 | 06.11.2003 00:00:00 | 15.11.2003 00:00:00 | 12.11.2003 00:00:00 | Shipped | 386 | View Edit Remove | ||
| 4 | 07.11.2003 00:00:00 | 17.11.2003 00:00:00 | 12.11.2003 00:00:00 | Shipped | 344 | View Edit Remove | ||
| 5 | 08.11.2003 00:00:00 | 16.11.2003 00:00:00 | 10.11.2003 00:00:00 | Shipped | Custom shipping instructions sent to warehouse | 242 | View Edit Remove | |
| 6 | 11.11.2003 00:00:00 | 17.11.2003 00:00:00 | 13.11.2003 00:00:00 | Cancelled | Customer cancelled due to urgent budgeting | 496 | View Edit Remove | |
| 7 | 12.11.2003 00:00:00 | 19.11.2003 00:00:00 | 15.11.2003 00:00:00 | Shipped | 167 | View Edit Remove | ||
| 8 | 12.11.2003 00:00:00 | 21.11.2003 00:00:00 | 18.11.2003 00:00:00 | Shipped | 124 | View Edit Remove | ||
| 9 | 13.11.2003 00:00:00 | 22.11.2003 00:00:00 | 15.11.2003 00:00:00 | Shipped | We need to keep in close contact with their | 339 | View Edit Remove | |
| 10 | 14.11.2003 00:00:00 | 22.11.2003 00:00:00 | 20.11.2003 00:00:00 | Shipped | 484 | View Edit Remove |