<?php
   require_once("header.php");
   require_once("menu.php");
 ?>
<style>
   th {
   width: 20%;
   }
</style>
<div id="layoutSidenav_content">
<main class="mt-4">
   <div class="container-fluid">
      <div class="card mb-4">
         <div class="card-header">
            <i class="fas fa-border-style"></i>  &nbsp;Home What Make Section
               <a  href="add_what_make.php" class="btn btn-primary btn-sm float-right add_right">EDIT INFORMATION</a>
          </div>
         <div class="card-body">
            <div class="table-responsive">
                  <?php
                  $ex = $obj->view_what_make_section();
                  while($row=mysqli_fetch_array($ex))
                  {
                  ?>
               <table class="table table-bordered" width="100%" cellspacing="0">
                  <tr>
                     <th>What Make Title</th>
                     <td><?php echo $row['what_make_title'];?></td>
                  </tr>
				   <tr>
                     <th>What Make Text</th>
                     <td><?php echo $row['what_make_text'];?></td>
                  </tr>
				  <tr>
                     <th>Background Image</th>
                     <td><img src="<?php echo $row['what_make_bg_img'];?>" height="auto" width="300px"></td>
                  </tr>
                 
                 
                  
                  <?php } ?>
               </table>
            </div>

         </div>
      </div>
   </div>
</main>
<?php require_once("footer.php");?>