<?php include("frontinc/connection.php"); ?>
<?php include("frontinc/header.php"); ?>
<?php include("frontinc/navbar.php"); ?>
<?php include("frontinc/server_config.php"); ?>

<!-- banner -->
<?php include("frontinc/banner.php"); ?>

    <!-- Heading -->
    <div class="container">
        <div class="row">
            <div class="col-xs-12">
                <h1 class="text-center">List of Book</h1>
                <!-- <p class="lead text-center">Proactively envisioned multimedia based expertise and cross-media growth strategies. Seamlessly visualize quality intellectual capital without superior collaboration and idea-sharing. Holistically pontificate installed base portals after maintainable products without collateral.</p> -->
            </div>
        </div>
    </div>
        <div class="container">
        <div class="right_col" role="main">
          <div class="">

            <div class="clearfix"></div>

            <div class="row">
              <div class="col-md-12 col-sm-12 ">
                <div class="x_panel">
                  
                  <div class="x_content">
                      <div class="row">
                          <div class="col-sm-12">
                            <div class="card-box table-responsive">
                    <table id="datatable" class="table table-striped table-bordered" style="width:100%">
                    
                      <thead>
                        <tr>
                        <th>S/N</th>
                        <th>Book Title</th>
                        <th>Department</th>
                        </tr>
                      </thead>


                      <tbody>
                      <?php
                        $core_staff = mysqli_query($con, "SELECT * FROM computersciencebook ");

                        //fetch all cars
                        if(mysqli_fetch_array($core_staff)){

                            //use foreach to echo the datas
                            foreach($core_staff as $staff){
                           
                    ?>
                        <tr>
                        <td><?php echo $staff['computersciencebook_id']; ?></td>
                        <td><?php echo $staff['title1']; ?></td>
                        <td><?php echo $staff['department']; ?></td>
                       
                        </tr>
                        <?php
                    
                        }
                    }
                    ?>
                      </tbody>
                     <!-- computer engigeering -->
                     <thead>
                        <tr>
                        <th>S/N</th>
                        <th>Book Title</th>
                        <th>Department</th>
                        </tr>
                      </thead>


                      <tbody>
                      <?php
                        $core_staff = mysqli_query($con, "SELECT * FROM computerengineeringbooks ");

                        //fetch all cars
                        if(mysqli_fetch_array($core_staff)){

                            //use foreach to echo the datas
                            foreach($core_staff as $staff){
                           
                    ?>
                        <tr>
                        <td><?php echo $staff['comengineering_id']; ?></td>
                        <td><?php echo $staff['title1']; ?></td>
                        <td><?php echo $staff['department']; ?></td>
                       
                        </tr>
                        <?php
                    
                        }
                    }
                    ?>
                      </tbody>
                      <!-- business Administration -->
                      <thead>
                        <tr>
                        <th>S/N</th>
                        <th>Book Title</th>
                        <th>Department</th>
                        </tr>
                      </thead>


                      <tbody>
                      <?php
                        $core_staff = mysqli_query($con, "SELECT * FROM businessadminbooks ");

                        //fetch all cars
                        if(mysqli_fetch_array($core_staff)){

                            //use foreach to echo the datas
                            foreach($core_staff as $staff){
                           
                    ?>
                        <tr>
                        <td><?php echo $staff['businessadminbooks_id']; ?></td>
                        <td><?php echo $staff['title1']; ?></td>
                        <td><?php echo $staff['department']; ?></td>
                       
                        </tr>
                        <?php
                    
                        }
                    }
                    ?>
                      </tbody>
                      <!-- electrical/electronic -->
                       <!-- business Administration -->
                       <thead>
                        <tr>
                        <th>S/N</th>
                        <th>Book Title</th>
                        <th>Department</th>
                        </tr>
                      </thead>


                      <tbody>
                      <?php
                        $core_staff = mysqli_query($con, "SELECT * FROM electricalelectronicsbooks ");

                        //fetch all cars
                        if(mysqli_fetch_array($core_staff)){

                            //use foreach to echo the datas
                            foreach($core_staff as $staff){
                           
                    ?>
                        <tr>
                        <td><?php echo $staff['electricalelectronicsbooks_id']; ?></td>
                        <td><?php echo $staff['title1']; ?></td>
                        <td><?php echo $staff['department']; ?></td>
                       
                        </tr>
                        <?php
                    
                        }
                    }
                    ?>
                      </tbody>

                    </table>
                  </div>
                  </div>
              </div>
            </div>
                </div>
              </div>
              </div>
            </div>
                </div>
	
        </div>
		
	<!-- Footer -->
	