<?php
require('db.php');
include "x.php";
?>
<!doctype html>
<html lang="en">
  <head>
    
     <?php include "include/meta.php"; ?>

     <?php include "include/css.php"; ?>

     <style>
  * {box-sizing: border-box}
  body {font-family: "Lato", sans-serif;}

/* Style the tab */
.tab {
  float: left;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  width: 30%;
  height: 1100px;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  display: block;
  background-color: inherit;
  color: #990000;
  font-size: 14px;
  padding: 22px 6px;
  width: 100%;          /* class="text-capitalize text-dark text-center" size="3px" color="#ff4d4d" */
  border: none;
  outline: none;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current "tab button" class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  float: left;
  padding: 0px 12px;
  border: 1px solid #ccc;
  width: 70%;
  border-left: none;
  height: 1100px;
}
</style>
<style>
table {
  border-collapse: collapse;
  width: 100%;
}

.td1 {
  text-align: center;
  padding: 8px;
}

tr:nth-child(even) {background-color: #f2f2f2;}
</style>

<style>
  td{
    pa dding: 2px;
  }
   .center{
    text-align: center;
  }
</style>
  </head>
  <body>
<?php include "include/header.php"; ?>


<section class="w3l-contact-breadcrum">
  <div class="breadcrum-bg py-sm-5 py-4">
    <div class="container py-lg-3">
      <h2>Faculty</h2>
      <p><a href="index.php">Home</a> &nbsp; / &nbsp; Faculty</p>
    </div>
  </div>
</section>
<!-- contact -->
<section class="w3l-contacts-12" id="contact">
    <div class="contact-top pt-5">
        <div class="container py-md-3">
            <div class="row cont-main-top">
              
<section class="container">
<div class="tab">
  <button class="tablinks" onclick="openCity(event, '2020')" id="defaultOpen"><b>Basic Science & Humanities (BSH)</b></button>
  <button class="tablinks" onclick="openCity(event, '2019')"><b>Civil Engineering (CE)</b></button>
  
  
  <button class="tablinks" onclick="openCity(event, '2018')"><b>Electrical Engineering (EE)</b></button>
  <button class="tablinks" onclick="openCity(event, '2017')"><b>Electronics & Comm. Engg. (ECE)</b></button>

  <button class="tablinks" onclick="openCity(event, '2015')"><b>Mechanical Engineering (ME)</b></button>

  <button class="tablinks" onclick="openCity(event, '2014')"><b>Computer Science & Engg. (CSE)</b></button>
</div>

<div id="2020" class="tabcontent">
  
<br>

 
         <h3 align="center">Basic Science & Humanities</h3>
  <p align="left"><table width="98%" border="1" cellspacing="3" cellpadding="3" bordercolor="#000000" style="border-collapse:collapse;">
           
           <tr align="center" style="background:#990000; border:1px solid #000; color:#fff;" >
            <td width="129" style="padding: 5px 0;">Name</td>
              <td width="112" style="padding: 5px 0;">Designation</td>
              <td width="170" style="padding: 5px 0;">Highest Qualification & Area of Specialization</td>
           </tr>

            <?php
                    $fac_sql = "SELECT * FROM faculty WHERE f_by = '$x' AND dept = 'BSH' ORDER BY sl DESC";
                    $fac_run = mysqli_query($con, $fac_sql);

                    $c = 1;
                    while ( $fac_rows = mysqli_fetch_assoc($fac_run) ) {
                ?>
           <tr class="text_col">
            <td align="left"><a href=""  style="text-decoration:none;">&nbsp; <?php echo $fac_rows['name']; ?></a></td>
              <td class="center"><?php echo $fac_rows['designation']; ?></td>
              <td class="center">( <?php echo $fac_rows['qualification']; ?> )<br><?php echo $fac_rows['specialization']; ?></td>
           </tr>
           
          <?php 
                $c++;
                }
            ?>
           
          </table></p>


</div>

<div id="2019" class="tabcontent">

<br>

 
         <h3 align="center">Civil Engineering</h3>
  <p align="left"><table width="98%" border="1" cellspacing="3" cellpadding="3" bordercolor="#000000" style="border-collapse:collapse;">
           
           <tr align="center" style="background:#990000; border:1px solid #000; color:#fff;" >
            <td width="129" style="padding: 5px 0;">Name</td>
              <td width="112" style="padding: 5px 0;">Designation</td>
              <td width="170" style="padding: 5px 0;">Highest Qualification & Area of Specialization</td>
           </tr>

            <?php
                    $fac_sql = "SELECT * FROM faculty WHERE f_by = '$x' AND dept = 'CE' ORDER BY sl DESC";
                    $fac_run = mysqli_query($con, $fac_sql);

                    $c = 1;
                    while ( $fac_rows = mysqli_fetch_assoc($fac_run) ) {
                ?>
           <tr class="text_col">
            <td align="left"><a href=""  style="text-decoration:none;">&nbsp; <?php echo $fac_rows['name']; ?></a></td>
              <td class="center"><?php echo $fac_rows['designation']; ?></td>
              <td class="center">( <?php echo $fac_rows['qualification']; ?> )<br><?php echo $fac_rows['specialization']; ?></td>
           </tr>
           
          <?php 
                $c++;
                }
            ?>
           
          </table></p>


</div>

<div id="2018" class="tabcontent">
 <br>

 
         <h3 align="center">Electrical Engineering</h3>
  <p align="left"><table width="98%" border="1" cellspacing="3" cellpadding="3" bordercolor="#000000" style="border-collapse:collapse;">
           
           <tr align="center" style="background:#990000; border:1px solid #000; color:#fff;" >
            <td width="129" style="padding: 5px 0;">Name</td>
              <td width="112" style="padding: 5px 0;">Designation</td>
              <td width="170" style="padding: 5px 0;">Highest Qualification & Area of Specialization</td>
           </tr>

            <?php
                    $fac_sql = "SELECT * FROM faculty WHERE f_by = '$x' AND dept = 'EE' ORDER BY sl DESC";
                    $fac_run = mysqli_query($con, $fac_sql);

                    $c = 1;
                    while ( $fac_rows = mysqli_fetch_assoc($fac_run) ) {
                ?>
           <tr class="text_col">
            <td align="left"><a href=""  style="text-decoration:none;">&nbsp; <?php echo $fac_rows['name']; ?></a></td>
              <td class="center"><?php echo $fac_rows['designation']; ?></td>
              <td class="center">( <?php echo $fac_rows['qualification']; ?> )<br><?php echo $fac_rows['specialization']; ?></td>
           </tr>
           
          <?php 
                $c++;
                }
            ?>
           
          </table></p>



</div>
<div id="2017" class="tabcontent">
<br>

 
         <h3 align="center">Electronics & Comm. Engg.</h3>
  <p align="left"><table width="98%" border="1" cellspacing="3" cellpadding="3" bordercolor="#000000" style="border-collapse:collapse;">
           
           <tr align="center" style="background:#990000; border:1px solid #000; color:#fff;" >
            <td width="129" style="padding: 5px 0;">Name</td>
              <td width="112" style="padding: 5px 0;">Designation</td>
              <td width="170" style="padding: 5px 0;">Highest Qualification & Area of Specialization</td>
           </tr>

            <?php
                    $fac_sql = "SELECT * FROM faculty WHERE f_by = '$x' AND dept = 'ECE' ORDER BY sl DESC";
                    $fac_run = mysqli_query($con, $fac_sql);

                    $c = 1;
                    while ( $fac_rows = mysqli_fetch_assoc($fac_run) ) {
                ?>
           <tr class="text_col">
            <td align="left"><a href=""  style="text-decoration:none;">&nbsp; <?php echo $fac_rows['name']; ?></a></td>
              <td class="center"><?php echo $fac_rows['designation']; ?></td>
              <td class="center">( <?php echo $fac_rows['qualification']; ?> )<br><?php echo $fac_rows['specialization']; ?></td>
           </tr>
           
          <?php 
                $c++;
                }
            ?>
           
          </table></p>
 




</div>
<div id="2015" class="tabcontent">
            
<br>

 
         <h3 align="center">Mechanical Engineering</h3>
  <p align="left"><table width="98%" border="1" cellspacing="3" cellpadding="3" bordercolor="#000000" style="border-collapse:collapse;">
           
           <tr align="center" style="background:#990000; border:1px solid #000; color:#fff;" >
            <td width="129" style="padding: 5px 0;">Name</td>
              <td width="112" style="padding: 5px 0;">Designation</td>
              <td width="170" style="padding: 5px 0;">Highest Qualification & Area of Specialization</td>
           </tr>

            <?php
                    $fac_sql = "SELECT * FROM faculty WHERE f_by = '$x' AND dept = 'ME' ORDER BY sl DESC";
                    $fac_run = mysqli_query($con, $fac_sql);

                    $c = 1;
                    while ( $fac_rows = mysqli_fetch_assoc($fac_run) ) {
                ?>
           <tr class="text_col">
            <td align="left"><a href=""  style="text-decoration:none;">&nbsp; <?php echo $fac_rows['name']; ?></a></td>
              <td class="center"><?php echo $fac_rows['designation']; ?></td>
              <td class="center">( <?php echo $fac_rows['qualification']; ?> )<br><?php echo $fac_rows['specialization']; ?></td>
           </tr>
           
          <?php 
                $c++;
                }
            ?>
           
          </table></p>




</div>
<div id="2014" class="tabcontent">
<br>

 
         <h3 align="center">Computer Science & Engg.</h3>
  <p align="left"><table width="98%" border="1" cellspacing="3" cellpadding="3" bordercolor="#000000" style="border-collapse:collapse;">
           
           <tr align="center" style="background:#990000; border:1px solid #000; color:#fff;" >
            <td width="129" style="padding: 5px 0;">Name</td>
              <td width="112" style="padding: 5px 0;">Designation</td>
              <td width="170" style="padding: 5px 0;">Highest Qualification & Area of Specialization</td>
           </tr>

            <?php
                    $fac_sql = "SELECT * FROM faculty WHERE f_by = '$x' AND dept = 'CSE' ORDER BY sl DESC";
                    $fac_run = mysqli_query($con, $fac_sql);

                    $c = 1;
                    while ( $fac_rows = mysqli_fetch_assoc($fac_run) ) {
                ?>
           <tr class="text_col">
            <td align="left"><a href=""  style="text-decoration:none;">&nbsp; <?php echo $fac_rows['name']; ?></a></td>
              <td class="center"><?php echo $fac_rows['designation']; ?></td>
              <td class="center">( <?php echo $fac_rows['qualification']; ?> )<br><?php echo $fac_rows['specialization']; ?></td>
           </tr>
           
          <?php 
                $c++;
                }
            ?>
           
          </table></p>





</div>
</div>


</section>

                
                
            </div>
        </div>
      
</section>
<br><br>
<!-- //contact -->

<?php include "include/footer.php"; ?>
<?php include "include/js.php"; ?>

<script>
      function openCity(evt, cityName) {
        var i, tabcontent, tablinks;
        tabcontent = document.getElementsByClassName("tabcontent");
        for (i = 0; i < tabcontent.length; i++) {
          tabcontent[i].style.display = "none";
        }
        tablinks = document.getElementsByClassName("tablinks");
        for (i = 0; i < tablinks.length; i++) {
          tablinks[i].className = tablinks[i].className.replace(" active", "");
        }
        document.getElementById(cityName).style.display = "block";
        evt.currentTarget.className += " active";
      }

      // Get the element with id="defaultOpen" and click on it
      document.getElementById("defaultOpen").click();
    </script>

</body>

</html>

