Guest User

fff

a guest
Feb 16th, 2018
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. -
  2. <table class="tbl-qa" border="1">
  3. <thead>
  4. <tr>
  5. <th class="table-header">ID
  6. </th>
  7. <th class="table-header">ORDERID
  8. </th>
  9. <th class="table-header">Status
  10. </th>
  11. </tr>
  12. </thead>
  13. <tbody id="table-body">
  14. <?php
  15. $tabindex=1;
  16. if(!empty($orderrecords))
  17. {
  18. foreach($orderrecords as $k=>$v)
  19. {?>
  20. <?Php
  21. if($orderrecords[$k]["order_id"]['res[13]'] !== "Undelivered")
  22. {
  23. echo $orderrecords[$k]["order_id"];
  24. }
  25. ?>
  26. <tr class="table-row" id="table-row-<?php echo $orderrecords[$k]["id"]; ?>" tabindex="<?php echo $tabindex;?>">
  27. <td>
  28. <input type="checkbox" onclick="assignorderids('<?php echo $orderrecords[$k]["order_id"]; ?>')" name="assigneeid" id="assigneeid-<?php echo $orderrecords[$k]["order_id"]; ?>" value="<?php echo $orderrecords[$k]["order_id"]; ?>">
  29. </td>
  30. <td>
  31. <?php echo $orderrecords[$k]["order_id"]; ?>
  32. </td>
  33. <!-- my code -->
  34. <td>
  35. <?php
  36. $data['username']='outthinking781346';
  37. $data['password']='ouhk78epe34csmed46d';
  38. $data['awb']='890927143';
  39. $url = 'https://plapi.ecomexpress.in/track_me/api/mawbd/?awb=awbnumber&order='.$orderrecords[$k]["order_id"].'&username=outthinking781346&password=ouhk78epe34csmed46d';
  40. $ch = curl_init(); // initiate curl
  41. curl_setopt($ch, CURLOPT_URL,$url);
  42. curl_setopt($ch, CURLOPT_POST, true); // tell curl you want to post something
  43. curl_setopt($ch, CURLOPT_POSTFIELDS, $data); // define what you want to post
  44. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // return the output in string format
  45. $output = curl_exec ($ch); // execute
  46. curl_close($ch);
  47. $res = explode("\n",$output);
  48. echo $res[13];
  49. ?>
  50. </td>
  51. <!-- my code end-->
  52. </tr>
  53. <?php
  54. $tabindex++;
  55. }
  56. }?>
  57. </tbody>
  58. </table>
Add Comment
Please, Sign In to add comment