Guest User

Untitled

a guest
Feb 22nd, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. <p><button type= "button" class="call">Show Status</button></p>
  2.  
  3. <table class="tbl-qa" border="1">
  4. <thead>
  5. <tr>
  6. <th class="table-header"></th>
  7. <th class="table-header">ORDERID</th>
  8. <th class="table-header">Status</th>
  9. </tr>
  10. </thead>
  11.  
  12. <tbody id="table-body">
  13. <?php
  14. $tabindex = 1;
  15.  
  16. if (!empty($orderrecords))
  17. {
  18. foreach($orderrecords as $k => $v)
  19. { ?>
  20.  
  21. <?php
  22. $hide = '';
  23. $data['username'] = 'admin';
  24. $data['password'] = 'admin123';
  25.  
  26. $url = 'https://plapi.ecomexpress.in/track_me/api/mawbd/?awb=awbnumber&order=' . $orderrecords[$k]["order_id"] . '&username=admin&password=admin123';
  27. $ch = curl_init();
  28. // some curl code
  29. $res = explode("n", $output);
  30. if (!isset($res[13]))
  31. {
  32. $res[13] = null;
  33. }
  34.  
  35. $status = $res[13];
  36. ?>
  37.  
  38. <tr class="table-row" id="table-row-<?php echo $orderrecords[$k]["id"]; ?>" tabindex="<?php echo $tabindex; ?>">
  39.  
  40. <td><input onclick="assignorderids('<?php echo $orderrecords[$k]["order_id"]; ?>')" type="checkbox" name="assigneeid" id="assigneeid-<?php echo $orderrecords[$k]["order_id"]; ?>" value="<?php echo $orderrecords[$k]["order_id"]; ?>"></td>
  41.  
  42. <td><?php echo $orderrecords[$k]["order_id"]; ?></td>
  43. <td><?php echo $status; ?></td>
  44.  
  45. </tr>
  46.  
  47.  
  48. <?php
  49. $tabindex++;
  50. }
  51. } ?>
  52.  
  53. </tbody>
  54. </table>
Add Comment
Please, Sign In to add comment