<!-- ui-widget ui-widget-content --> <table id="device" style="background:#ccc;margin-top:-5px;" class="table table-hover"> <div class="tracker-device-heading"> Tracker Device List </div> <thead> <!-- <tr class="ui-widget-header "> --> <tr> <th>S.No</th> <th>Name</th> <th>Device Id</th> <th></th> <th></th> </tr> </thead> <tbody> <?php $deviceList = $trackDevice->getDeviceListByShop($shop_id); foreach ($deviceList as $key => $device) { $sno = $key + 1; echo "<tr id='device_{$sno}'> \n\t\t\t\t\t\t<td> {$sno} </td>\n\t\t\t\t\t\t<td> {$device->name} </td>\n\t\t\t\t\t\t<td> {$device->device_id} </td>\n\t\t\t\t\t\t<td> <a class='txt-dec' id='edit_device_{$device->id}' href='javascript:void(0)'>Edit</a> </td>\n\t\t\t\t\t\t<td> <a class='txt-dec' id='delete_device_{$device->id}' href='javascript:void(0)'>Delete</a> </td>\n\t\t\t\t\t\t</tr>"; } ?> </tbody> </table> <button id="btn-create-device">Add device</button> </div> <div id="trck-msg" style="font-size:12px;"></div> <div id="trck-msg-dialog-confirm" style="font-size:12px;"></div> <?php