Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p><button type= "button" class="call">Show Status</button></p>
- <table class="tbl-qa" border="1">
- <thead>
- <tr>
- <th class="table-header"></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
- $hide = '';
- $data['username'] = 'admin';
- $data['password'] = 'admin123';
- $url = 'https://plapi.ecomexpress.in/track_me/api/mawbd/?awb=awbnumber&order=' . $orderrecords[$k]["order_id"] . '&username=admin&password=admin123';
- $ch = curl_init();
- // some curl code
- $res = explode("n", $output);
- if (!isset($res[13]))
- {
- $res[13] = null;
- }
- $status = $res[13];
- ?>
- <tr class="table-row" id="table-row-<?php echo $orderrecords[$k]["id"]; ?>" tabindex="<?php echo $tabindex; ?>">
- <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>
- <td><?php echo $orderrecords[$k]["order_id"]; ?></td>
- <td><?php echo $status; ?></td>
- </tr>
- <?php
- $tabindex++;
- }
- } ?>
- </tbody>
- </table>
Add Comment
Please, Sign In to add comment