<table class="table table-striped table-bordered table-hover" id="sample_1"> <thead> <tr> <!-- <th class="table-checkbox"><input type="checkbox" class="group-checkable" data-set="#sample_1 .checkboxes"/></th> --> <th>Voucher No</th> <th>Product</th> <th>Quantity</th> <th>Voucher Date</th> <th>Saler/Purchaser Name</th> <th>Date Created</th> <th>Action</th> </tr> </thead> <tbody> <?php $results = Purchaseorder::getPurchaseorders(); if (count($results) > 0) { for ($index = 0; $index < count($results); $index++) { $rows = $results[$index]; ?> <tr class="<?php echo ($index + 1) % 2 == 0 ? 'even' : 'odd'; ?> gradeX"> <!-- <td> <input name="delete[]" type="checkbox" id="delete[]" value="<?php echo $rows['id']; ?> " class="checkboxes" /> </td> --> <td><?php echo $rows['voucherno']; ?>