michaelyuen

Untitled

Feb 8th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.90 KB | None | 0 0
  1. <?php
  2. include "config.php";
  3. include "header.php";
  4. include "session.php";
  5. ?>
  6.  
  7. <div class="container-fluid" style="width:78%;margin-right:15px">
  8.   <div class="row">
  9.         <div>
  10.             <h1 class="mainTitle">INQUIRIES</h1>
  11.                 <table class="table table-striped table-hover" id="sample_2" style="width:95%; margin:auto;">
  12.                     <thead>
  13.                         <tr>         
  14.                             <th>Inquiry Id</th>
  15.                             <th>Name</th>
  16.                             <th>Mobile</th>
  17.                             <th>Address</th>
  18.                             <th>Pin</th>
  19.                             <th>City</th>
  20.                             <th>Created Date</th>
  21.                             <!--<th>Order Detail</th>-->
  22.                             <th>Confirm Order</th>
  23.                             <th>Remove inquiry</th>
  24.                         </tr>
  25.                     </thead>
  26.                     <tfoot>
  27.                     <tr>
  28.                         <th colspan="13" class="ts-pager form-horizontal">
  29.                             <button type="button" class="btn first"><i class="icon-step-backward glyphicon glyphicon-step-backward"></i></button>
  30.                             <button type="button" class="btn prev"><i class="icon-arrow-left glyphicon glyphicon-backward"></i></button>
  31.                             <span class="pagedisplay"></span> <!-- this can be any element, including an input -->
  32.                             <button type="button" class="btn next"><i class="icon-arrow-right glyphicon glyphicon-forward"></i></button>
  33.                             <button type="button" class="btn last"><i class="icon-step-forward glyphicon glyphicon-step-forward"></i></button>
  34.                             <select class="pagesize input-mini" title="Select page size">
  35.                                     <option selected="selected" value="10">10</option>
  36.                                     <option value="20">20</option>
  37.                                     <option value="30">30</option>
  38.                                     <option value="40">40</option>
  39.                             </select>
  40.                             <select class="pagenum input-mini" title="Select page number"></select>
  41.                         </th>
  42.                     </tr>
  43.                     </tfoot>
  44.                 <tbody>
  45.     <?php
  46.             // $vend=$_SESSION['vid'];
  47.             $query=mysql_query("select * from `cart` where `read`='0' group by inquiry_id order by id DESC");
  48.             while($row=mysql_fetch_row($query)) {
  49.                 $query_sub=mysql_query("select * from `user_shipping` where user_id='$row[2]' order by id DESC");
  50.                 while($row1=mysql_fetch_row($query_sub)) {
  51.                         echo "<tr>";
  52.                         echo "<td>$row[9]</td>";
  53.                         echo "<td>$row1[2]</td>";
  54.                         echo "<td>$row1[3]</td>";
  55.                         echo "<td>$row1[5]</td>";
  56.                         echo "<td>$row1[8]</td>";
  57.                         echo "<td>$row1[7]</td>";
  58.                         echo "<td>$row1[9]</td>";
  59.                     //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>";
  60.                         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>";
  61.                         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>";
  62.                         echo "</tr>";
  63.                 }
  64.             }
  65.     ?>
  66.                     </tbody>
  67.              </table>                                    
  68.             </div>
  69.         </div>
  70.     </div>
Add Comment
Please, Sign In to add comment