Guest User

Untitled

a guest
Feb 22nd, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. <p><button type= "button" class="call">Call</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. curl_setopt($ch, CURLOPT_URL, $url);
  29. curl_setopt($ch, CURLOPT_POST, true);
  30. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  31. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  32. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  33. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  34. $output = curl_exec($ch);
  35. curl_close($ch);
  36. $res = explode("n", $output);
  37. if (!isset($res[13]))
  38. {
  39. $res[13] = null;
  40. }
  41.  
  42. $status = $res[13];
  43. ?>
  44.  
  45. <tr class="table-row" id="table-row-<?php
  46. echo $orderrecords[$k]["id"]; ?>" tabindex="<?php
  47. echo $tabindex; ?>">
  48.  
  49. <td><input onclick="assignorderids('<?php
  50. echo $orderrecords[$k]["order_id"]; ?>')" type="checkbox" name="assigneeid" id="assigneeid-<?php
  51. echo $orderrecords[$k]["order_id"]; ?>" value="<?php
  52. echo $orderrecords[$k]["order_id"]; ?>"></td>
  53.  
  54.  
  55. <td><?php
  56. echo $orderrecords[$k]["order_id"]; ?></td>
  57. <td><?php
  58. echo $status; ?></td>
  59. </tr>
  60.  
  61.  
  62. <?php
  63. $tabindex++;
  64. }
  65. } ?>
  66.  
  67. </tbody>
  68. </table>
Add Comment
Please, Sign In to add comment