Advertisement
Guest User

table

a guest
Jan 20th, 2019
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.00 KB | None | 0 0
  1.  
  2. <?php include('include/admin/header.php');?>
  3.     <section>
  4.         <div class="container">
  5.  
  6.  
  7.                    
  8.     <div class="col-sm-9 padding-right">
  9.                     <div class="features_items"><!--features_items-->
  10.                         <h2 class="title text-center">All Products</h2>
  11.                        
  12.          
  13.                             <label for="filter">Filter</label> <input type="text" name="filter" value="" id="filter" />
  14.                     <a rel="facebox" href="addproduct.php">Add Product</a>
  15.                     <table cellpadding="1" cellspacing="1" id="resultTable">
  16.                         <thead>
  17.                             <tr>
  18.                                 <th  style="border-left: 1px solid #C1DAD7"> ID </th>
  19.                                 <th> Image </th>
  20.                                 <th> Product </th>
  21.                                 <th> Desciption </th>
  22.                                 <th> Price </th>
  23.                                 <th> Category </th>
  24.                                 <th> Action </th>
  25.                             </tr>
  26.                         </thead>
  27.                         <tbody>
  28.                         <?php
  29.                             include('db.php');
  30.                             $result = mysql_query("SELECT * FROM products");
  31.                             while($row = mysql_fetch_array($result))
  32.                                 {
  33.                                     echo '<tr class="record">';
  34.                                     echo '<td style="border-left: 1px solid #C1DAD7;">'.$row['ID'].'</td>';
  35.                                     echo '<td><a rel="facebox" href="editproductimage.php?id='.$row['ID'].'"><img src="reservation/img/products/'.$row['imgUrl'].'" width="80" height="50"></a></td>';
  36.                                     echo '<td><div align="right">'.$row['Product'].'</div></td>';
  37.                                     echo '<td><div align="right">'.$row['Description'].'</div></td>';
  38.                                     echo '<td><div align="right">'.$row['Price'].'</div></td>';
  39.                                     echo '<td><div align="right">'.$row['Category'].'</div></td>';
  40.                                     echo '<td><div align="center"><a rel="facebox" href="editproductdetails.php?id='.$row['ID'].'"><i class="fa fa-edit fa-lg text-success"></i></a> | <a href="#" id="'.$row['ID'].'" class="delbutton" title="Click To Delete"><i class="fa fa-times-circle fa-lg text-danger"></i></a></div></td>';
  41.                                     echo '</tr>';
  42.                                 }
  43. ?>
  44.                         </tbody>
  45.                     </table>
  46.               </section>
  47. <?php include('include/admin/footer.php'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement