Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -
- <table class="tbl-qa" border="1">
- <thead>
- <tr>
- <th class="table-header">ID
- </th>
- <th class="table-header">ORDERID
- </th>
- <th class="table-header">Status
- </th>
- </tr>
- </thead>
- <tbody id="table-body">
- <?php
- $tabindex=1;
- if(!empty($orderrecords))
- {
- foreach($orderrecords as $k=>$v)
- {?>
- <?Php
- if($orderrecords[$k]["order_id"]['res[13]'] !== "Undelivered")
- {
- echo $orderrecords[$k]["order_id"];
- }
- ?>
- <tr class="table-row" id="table-row-<?php echo $orderrecords[$k]["id"]; ?>" tabindex="<?php echo $tabindex;?>">
- <td>
- <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"]; ?>">
- </td>
- <td>
- <?php echo $orderrecords[$k]["order_id"]; ?>
- </td>
- <!-- my code -->
- <td>
- <?php
- $data['username']='outthinking781346';
- $data['password']='ouhk78epe34csmed46d';
- $data['awb']='890927143';
- $url = 'https://plapi.ecomexpress.in/track_me/api/mawbd/?awb=awbnumber&order='.$orderrecords[$k]["order_id"].'&username=outthinking781346&password=ouhk78epe34csmed46d';
- $ch = curl_init(); // initiate curl
- curl_setopt($ch, CURLOPT_URL,$url);
- curl_setopt($ch, CURLOPT_POST, true); // tell curl you want to post something
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data); // define what you want to post
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // return the output in string format
- $output = curl_exec ($ch); // execute
- curl_close($ch);
- $res = explode("\n",$output);
- echo $res[13];
- ?>
- </td>
- <!-- my code end-->
- </tr>
- <?php
- $tabindex++;
- }
- }?>
- </tbody>
- </table>
Add Comment
Please, Sign In to add comment