Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "config.php";
- include "header.php";
- include "session.php";
- ?>
- <div class="container-fluid" style="width:78%;margin-right:15px">
- <div class="row">
- <div>
- <h1 class="mainTitle">INQUIRIES</h1>
- <table class="table table-striped table-hover" id="sample_2" style="width:95%; margin:auto;">
- <thead>
- <tr>
- <th>Inquiry Id</th>
- <th>Name</th>
- <th>Mobile</th>
- <th>Address</th>
- <th>Pin</th>
- <th>City</th>
- <th>Created Date</th>
- <!--<th>Order Detail</th>-->
- <th>Confirm Order</th>
- <th>Remove inquiry</th>
- </tr>
- </thead>
- <tfoot>
- <tr>
- <th colspan="13" class="ts-pager form-horizontal">
- <button type="button" class="btn first"><i class="icon-step-backward glyphicon glyphicon-step-backward"></i></button>
- <button type="button" class="btn prev"><i class="icon-arrow-left glyphicon glyphicon-backward"></i></button>
- <span class="pagedisplay"></span> <!-- this can be any element, including an input -->
- <button type="button" class="btn next"><i class="icon-arrow-right glyphicon glyphicon-forward"></i></button>
- <button type="button" class="btn last"><i class="icon-step-forward glyphicon glyphicon-step-forward"></i></button>
- <select class="pagesize input-mini" title="Select page size">
- <option selected="selected" value="10">10</option>
- <option value="20">20</option>
- <option value="30">30</option>
- <option value="40">40</option>
- </select>
- <select class="pagenum input-mini" title="Select page number"></select>
- </th>
- </tr>
- </tfoot>
- <tbody>
- <?php
- // $vend=$_SESSION['vid'];
- $query=mysql_query("select * from `cart` where `read`='0' group by inquiry_id order by id DESC");
- while($row=mysql_fetch_row($query)) {
- $query_sub=mysql_query("select * from `user_shipping` where user_id='$row[2]' order by id DESC");
- while($row1=mysql_fetch_row($query_sub)) {
- echo "<tr>";
- echo "<td>$row[9]</td>";
- echo "<td>$row1[2]</td>";
- echo "<td>$row1[3]</td>";
- echo "<td>$row1[5]</td>";
- echo "<td>$row1[8]</td>";
- echo "<td>$row1[7]</td>";
- echo "<td>$row1[9]</td>";
- //echo "<td><a href='inquirydetails.php?id=$row[0]'><input type='button' name='detail' Value='Order Detail' class='btn btn-primary' style='margin-left:5px;'></a></td>";
- echo "<td><a href='confirm_vendor.php?cart_id=$row[0]&inquiryid=$row[9]'><input type='button' name='confirm' value='Confirm Order' class='btn btn-info' style='margin-left:5px;'></a></td>";
- echo "<td><a href='removeinq.php?id=$row[0]'><input type='button' name='removeinq' value='Remove' class='btn btn-danger' style='margin-left:5px;'></a></td>";
- echo "</tr>";
- }
- }
- ?>
- </tbody>
- </table>
- </div>
- </div>
- </div>
Add Comment
Please, Sign In to add comment