<?php
   require_once("header.php");
   require_once("menu.php");
   $databaseService = new DatabaseService();
   $con = $databaseService->getConnection();
?>
<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;Our Team Top Information 

                                    <?php 
                                   $query= $obj-> view_our_team_topinfo($row['our_team_top_id']);
                                   $qu= mysqli_num_rows($query);

                                            if($qu==0)
                                    {
                                    ?>
                                    <a href="add_our_team_top.php" class="btn btn-primary btn-sm float-right add_right">Add</a>
                                    <?php
                                     }
                                    else
                                    {
                                      while($row=mysqli_fetch_array($query))
                                      {
                                       ?>
                                        <a  href="add_our_team_top.php?edit=<?php echo base64_encode($row['our_team_top_id']);?>" class="btn btn-primary btn-sm float-right add_right">EDIT INFORMATION</a>
                                       
                                   <?php
                                     }
                                     }
                                     ?>
            
         </div>
         <div class="card-body">
            <div class="table-responsive">
               <?php
                  $ex = $obj->view_our_team_topinfo();
                  while($row=mysqli_fetch_array($ex))
                  {
                  ?>
               <table class="table table-bordered" width="100%" cellspacing="0">
                
                  <tr>
                     <th>Our Board Title</th>
                     <td><?php echo $row['our_board_title'];?></td>
                  </tr>
                  <tr>
                     <th>Our Board Description</th>
                     <td><?php echo $row['our_board_desc'];?></td>
                  </tr>
                  <tr>
                     <th>Our Management Title</th>
                     <td><?php echo $row['our_management_title'];?></td>
                  </tr>
                   <tr>
                     <th>Our Management Description</th>
                     <td><?php echo $row['our_management_desc'];?></td>
                  </tr>
                  <tr>
                  </tr>
                  <?php } ?>
               </table>
            </div>

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