Advertisement
Guest User

..

a guest
Nov 22nd, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 3.11 KB | None | 0 0
  1. <table class="table table-hover table-bordered table-striped">
  2.                   <thead>
  3.                     <tr>
  4.                       <th>#</th>
  5.                       <th>First Name</th>
  6.                       <th>Last Name</th>
  7.                       <th>Username</th>
  8.                       <th>Option</th>
  9.                     </tr>
  10.                   </thead>
  11.                   <tbody>
  12.  
  13.                     <?php
  14.  
  15.                    $store_id = $_SESSION['username'];
  16.                    $result = mysqli_query($con,"SELECT * FROM orders;");
  17.                    while($row = mysqli_fetch_array($result))
  18.                    {
  19.  
  20.                    $id = $row['id'];
  21.                    $username = $row['username'];
  22.                    $phone = $row['phone'];
  23.                    $order_status = $row['order_status'];
  24.  
  25.                      echo"<tr>";
  26.                       echo"<td>$id</td>";
  27.                       echo"<td>$username</td>";
  28.                       echo"<td>$phone</td>";
  29.                       echo"<td>$order_status</td>";
  30.                       echo"<td><a class='btn btn-warning btn-sm' data-toggle='modal' data-target='#DetailModal_$id'</a></td>";
  31.                       echo"</tr>";
  32.  
  33.  
  34.                   }
  35.  
  36.                   ?>
  37.  
  38.  
  39.  
  40.  
  41.                   </tbody>
  42.                 </table>
  43.  
  44.  
  45.                 <?php
  46.  
  47.  
  48.                echo"<div class='modal' tabindex='-1' id='DetailModal_$id' role='dialog'>";
  49.                 echo"<div class='modal-dialog' role='document'>";
  50.                 echo"<div class='modal-content'>";
  51.                 echo"<div class='modal-header'>";
  52.                 echo"<h5 class='modal-title'>Modal title $id</h5>";
  53.                 echo"<button type='button' class='close' data-dismiss='modal' aria-label='Close'>"
  54.                 ."<span aria-hidden='true'>&times;</span>"
  55.                 ."</button>";
  56.                 echo"</div>";
  57.                 echo"<div class='modal-body'>";
  58.                 echo"<p>Modal body text goes here.</p>";
  59.  
  60.                 echo"<table class='table'>";
  61.                   echo"<thead>";
  62.                     echo"<tr>";
  63.                       echo"<th>#</th>";
  64.                       echo"<th>First Name</th>";
  65.                       echo"<th>Last Name</th>";
  66.                       echo"<th>Username</th>";
  67.                     echo"</tr>";
  68.                   echo"</thead>";
  69.                   echo"<tbody>";
  70.                     echo"<tr>";
  71.                       echo"<td>1</td>";
  72.                       echo"<td>Steve</td>";
  73.                       echo"<td>Jobs</td>";
  74.                       echo"<td>@steve</td>";
  75.                     echo"</tr>";
  76.                   echo"</tbody>";
  77.                 echo"</table>";
  78.  
  79.                 echo"</div>";
  80.                 echo"<div class='modal-footer'>";
  81.                 echo"<button type='button' class='btn btn-primary'>Save changes</button>";
  82.                 echo"<button type='button' class='btn btn-secondary' data-dismiss='modal'>Close</button>";
  83.                 echo"</div>";
  84.                 echo"</div>";
  85.                 echo"</div>";
  86.                 echo"</div>";
  87.  
  88.                  ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement