Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table class="table table-hover table-bordered table-striped">
- <thead>
- <tr>
- <th>#</th>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Username</th>
- <th>Option</th>
- </tr>
- </thead>
- <tbody>
- <?php
- $store_id = $_SESSION['username'];
- $result = mysqli_query($con,"SELECT * FROM orders;");
- while($row = mysqli_fetch_array($result))
- {
- $id = $row['id'];
- $username = $row['username'];
- $phone = $row['phone'];
- $order_status = $row['order_status'];
- echo"<tr>";
- echo"<td>$id</td>";
- echo"<td>$username</td>";
- echo"<td>$phone</td>";
- echo"<td>$order_status</td>";
- echo"<td><a class='btn btn-warning btn-sm' data-toggle='modal' data-target='#DetailModal_$id'</a></td>";
- echo"</tr>";
- }
- ?>
- </tbody>
- </table>
- <?php
- echo"<div class='modal' tabindex='-1' id='DetailModal_$id' role='dialog'>";
- echo"<div class='modal-dialog' role='document'>";
- echo"<div class='modal-content'>";
- echo"<div class='modal-header'>";
- echo"<h5 class='modal-title'>Modal title $id</h5>";
- echo"<button type='button' class='close' data-dismiss='modal' aria-label='Close'>"
- ."<span aria-hidden='true'>×</span>"
- ."</button>";
- echo"</div>";
- echo"<div class='modal-body'>";
- echo"<p>Modal body text goes here.</p>";
- echo"<table class='table'>";
- echo"<thead>";
- echo"<tr>";
- echo"<th>#</th>";
- echo"<th>First Name</th>";
- echo"<th>Last Name</th>";
- echo"<th>Username</th>";
- echo"</tr>";
- echo"</thead>";
- echo"<tbody>";
- echo"<tr>";
- echo"<td>1</td>";
- echo"<td>Steve</td>";
- echo"<td>Jobs</td>";
- echo"<td>@steve</td>";
- echo"</tr>";
- echo"</tbody>";
- echo"</table>";
- echo"</div>";
- echo"<div class='modal-footer'>";
- echo"<button type='button' class='btn btn-primary'>Save changes</button>";
- echo"<button type='button' class='btn btn-secondary' data-dismiss='modal'>Close</button>";
- echo"</div>";
- echo"</div>";
- echo"</div>";
- echo"</div>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement