Guest User

fefef

a guest
Feb 28th, 2018
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. <table class="tbl-qa" border="1" id="content-table">
  2. <thead>
  3. <tr>
  4. <th class="table-header">ID<?php ?><input onclick="assignallorderids()" type="checkbox" name="checkall" id="checkall"/><?php ?></th>
  5. <th class="table-header">AWB</th>
  6. <th class="table-header">ORDERID</th>
  7. <th class="table-header">Status</th>
  8. <th class="table-header">Last Reason</th>
  9.  
  10.  
  11. <th class="table-header">Payment Type</th>
  12. <th class="table-header">Declared value</th>
  13. <th class="table-header">Destination</th>
  14. <th class="table-header">Consignee</th>
  15. <th class="table-header">Last Update Date</th>
  16.  
  17. <th class="id">
  18. No. Of Attempts
  19. <a href="javascript:sort(true, 'id', 'content-table');" >asc</a>
  20. <a href="javascript:sort(false, 'id', 'content-table');" >des</a>
  21. </th>
  22. <th class="table-header">My Name</th>
  23. <th class="table-header">Final comments</th>
  24.  
  25. </tr>
  26. </thead>
  27. <tbody id="table-body">
  28. <?php
  29.  
  30. if(!empty($orderrecords))
  31. {
  32. foreach($orderrecords as $k=>$v)
  33. {
  34. $hide='';
  35. if ($row['in_transit'] == "Delivered / Closed")
  36. {
  37. $hide .= 'style="display: none;"';
  38. }
  39.  
  40. ?>
  41. <tr vale="<?php echo $hide;?>" class="table-row" id="table-row-<?php echo $orderrecords[$k]["id"]; ?>" tabindex="<?php echo $tabindex;?>">
  42. <td> <input type="checkbox" id="assigneeid-<?php echo $orderrecords[$k]["order_id"]; ?>" onclick="assignorderids('<?php echo $orderrecords[$k]["order_id"]; ?>')" name="checkassigneeid" class="assigneeid-order" value="<?php echo $orderrecords[$k]["order_id"]; ?>"> </td>
  43. <td><?php echo $orderrecords[$k]["tracking_id"]; ?></td>
  44. <td><?php echo $orderrecords[$k]["order_id"]; ?></td>
  45. <td id="<?php echo $orderrecords[$k]["order_id"];?>">
  46. <?php
  47. echo $orderrecords[$k]["in_transit"];
  48. ?>
  49. </td>
  50. <td><?php echo $orderrecords[$k]["last_reason"]; ?></td>
  51.  
  52. <td><?php echo $orderrecords[$k]["payment_type"]; ?></td>
  53. <td><?php echo $orderrecords[$k]["declared_value"]; ?></td>
  54. <td><?php echo $orderrecords[$k]["destination_city"]; ?></td>
  55. <td><?php echo $orderrecords[$k]["consignee"]; ?></td>
  56. <td><?php echo $orderrecords[$k]["last_update_date"]; ?></td>
  57. <td class="id"><?php echo $orderrecords[$k]["no_of_attempts"]; ?></td>
  58. <td <?php if($userdepart==0 ){?>contenteditable="true" onBlur="saveToDatabase(this,'name','<?php echo $orderrecords[$k]["id"]; ?>')"<?php }?>><?php echo substr($orderrecords[$k]["name"],0,75); ?></td>
  59. <td <?php if($userdepart==0 ){?>contenteditable="true" onBlur="saveToDatabase(this,'comments','<?php echo $orderrecords[$k]["id"]; ?>')"<?php }?>><?php echo substr($orderrecords[$k]["comments"],0,75); ?></td>
  60.  
  61. </tr>
  62. <?php
  63. $tabindex++;
  64. }
  65. }?>
  66. </tbody>
  67. </table>
Add Comment
Please, Sign In to add comment