<?php
  $id=$_GET['id']; 
  $title=$_GET['title'];
 include("db.php");
 include("header.php");    
?> 
<body class="body header-fixed blog-st testimonials">

    <!-- preloade -->
    <div class="preload preload-container">
        <div class="preload-logo"></div>
    </div>
    <!-- /preload -->

    <div id="wrapper">
        <div id="page" class="clearfix"> 
<?php include("topbar.php"); ?>
            <header id="header_main" class="header_1 js-header">
                <div class="container-TFL">
                    <div class="row">
                        <div class="col-md-12">
                            <div id="site-header-inner">
                                <div class="wrap-box relative">
                                    <div class="logo-mobile">
                                        <img src="assets/images/logo.jpg" alt="logo" style="width: 57px;"> 
                                        <img src="assets/images/naac.jpg" alt="img" style="width: 83px;"> 
                                        <img src="assets/images/icmr.jpg" alt="img" style="width: 100px;">      
                                    </div>

                                    <div class="mobile-button"><span></span></div><!-- /.mobile-button -->
                                    <nav id="main-nav" class="main-nav">
                                        <ul id="menu-primary-menu" class="menu">
            <li class="menu-item"><a href="index.php">Home</a></li>
           <li class="menu-item"><a href="vision.php">Vision</a></li>
            
            <li class="menu-item"><a href="publications.php">Publications</a></li>
            <li class="menu-item"><a href="team.php">Team</a></li>
           <li class="menu-item menu-item-has-children"><a href="#">Academics </a>

                <!-- First Tier Drop Down -->
                <ul class="sub-menu">
                     
                    <li><a href="#">Division </a>
                        <!-- Second Tier Drop Down -->
                        <ul  class="sub-menu2"> 
<li class="menu-item"><a href="cellular.php">Cellular &amp; Molecular Oncomics</a></li>
<li class="menu-item"><a href="ethnobotany.php">Ethnobotany &amp; Traditional Medicine</a></li>
<li class="menu-item"><a href="neurobiology.php">Neurobiology Research &amp; Therapeutics</a></li>
<li class="menu-item"><a href="molecular.php">Molecular &amp; Translational Virology</a></li>
<li class="menu-item"><a href="multiomics.php">Multiomics &amp; Integrative Bioinformatics</a></li>
<li class="menu-item"><a href="translational.php">Translational &amp; Clinical Medicine</a></li>
<li class="menu-item"><a href="futuristic.php">Futuristic Omics Technologies</a></li>  
                        </ul>
                        <!-- Second Tier Drop Down ends-->
                    </li>
                    <li class="menu-item" ><a href="collaborations.php">Collaborations</a></li>
                    <li class="menu-item"><a href="infrastructure.php">Infrastructure</a></li>
                      
                </ul>
                <!-- First Tier Drop Down ends -->

                </li> 
                 <li class="menu-item"><a href="psi.php">PSI-2025</a></li>
                <li class="menu-item"><a href="contact.php">Contact us</a></li>
        </ul>
                                        <div class="social">
                                            <div class="wrap-social">
                                                <ul> 
                                                    <li><a href="https://www.researchgate.net/profile/T-S-Keshava-Prasad"><i class="fab fa-researchgate"></i></a></li>
                                                    <li><a href="https://www.linkedin.com/in/t-s-keshava-prasad-b445b514/"><i class="fab fa-linkedin"></i></a></li>

                                                </ul>
                                            </div>
                                            <div class="wrap-call">
                                                <h4>CSBMM office no: <a href="tel:08242204668">0824-2204668 (Ext:2701)</a></h4>
                                            </div>
                                        </div>
                                    </nav><!-- /#main-nav -->


                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </header>
            <!-- title page -->
            <section class="flat-title-page inner">
                <div class="overlay"></div>
                <div class="container-TFL">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="page-title-heading">
                                <h1 class="heading"> Biography </h1> 
                            </div>
                        </div>
                    </div>
                </div>
            </section> 
    <section class="cnt td"> 
    <div class="container-TFL">
       <div class="row">  
        <div class="col-md-9 text-right" >  
<?php 
    $qry2=mysqli_query($connection, "select * from team where name = '$title'  "); 
    $res1=mysqli_fetch_array($qry2); 
    $name= $res1['name']; 
    $qualification =$res1['qualification'];  
    $designation =$res1['designation'];   
    $email= $res1['email']; 
    $biography =$res1['biography'];   
    $scientificdiscipline= $res1['scientificdiscipline']; 
    $education =$res1['education'];    
    $linkedin =$res1['linkedin']; 
    $googles= $res1['googles'];   
    $image="assets/images/uploads/".$res1['image'];  
    $dept= $res1['dept'];   
?>

            <h3> <?php echo $name;  ?> </h3>
            <p>  <?php echo $qualification;  ?> </p> 
            <p>  <?php echo  $designation;  ?>  </p>
            <div class="icns icn"> <a href=" <?php echo  $linkedin;  ?> "> <img src="assets/images/in.png"> </a> 
            <a href=" <?php echo  $googles;  ?> "> <img src="assets/images/gs.png"> </a>
            </div>
    </div> 
    <div class="col-md-2"><img src="<?php echo $image;  ?>"></div>
    </div>
    </div>
    </section>  
    <section class="latest h2 flat-imagebox">

        <?php if ($dept == 'Faculty') 
                {

        ?>
                <div class="container-TFL">
                    <div class="row">
                        <div class="col-lg-12 col-md-12 col-sm-12">
                            <div class="inner tab-list wow fadeInUp"> 
                                <ul class="group-right tab-list">
                                    <li class="tab active">
                                        <a class="button-lt">
                                            <span>Biography</span>
                                        </a>
                                    </li>
                                    <li class="tab">
                                        <a class="button-lt">
                                            <span>Publications</span>
                                        </a>
                                    </li>
                                    <li class="tab">
                                        <a class="button-lt">
                                            <span>Projects</span>
                                        </a>
                                    </li>

                                    <li class="tab ">
                                        <a class="button-lt">
                                            <span>Patents</span>
                                        </a>
                                    </li> 
                                </ul>
                            </div>
                        </div>
                    </div> 
                <div class="box-product">
                    <div class="row">
                        <div class="col-lg-12 col-md-12 col-sm-12">
                            <div  class="image-box wrap-product"> 
                                <p> <?php echo $biography;  ?> </p>
                            </div>
                        </div>
                    </div> 
                    <div class="row">
                        <div class="wrap-product">
                            <div  class="image-box">
                                <a href="#publ"> Publications   </a>
                            </div>
                        </div>
                    </div> 
                    <div class="row">
                        <div class="wrap-product">
                            <div  class="image-box">
                                <p> <?php echo $scientificdiscipline; ?> </p>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="wrap-product">
                            <div  class="image-box">
                               <p> <?php echo  $education;  ?> </p>
                            </div>
                        </div>
                    </div>

                </div>                
            </div>
    <?php } else {  ?>
          <div class="container-TFL">
                    <div class="row">
                        <div class="col-lg-12 col-md-12 col-sm-12">
                            <div class="inner tab-list wow fadeInUp"> 
                                <ul class="group-right tab-list">
                                    <li class="tab active">
                                        <a class="button-lt">
                                            <span>Biography</span>
                                        </a>
                                    </li> 
                                </ul>
                            </div>
                        </div>
                    </div> 
                <div class="box-product">
                    <div class="row">
                        <div class="col-lg-12 col-md-12 col-sm-12">
                            <div  class="image-box wrap-product"> 
                                <p> <?php echo $biography;  ?> </p>
                            </div>
                        </div>
                    </div>   
                </div>                
            </div>
        <?php } ?> 

            </section>  
                <div class="container-TFL">
                    <div class="row">
                        <div class="col-lg-12 col-md-12">
                            <h3>Publications</h3>
                        </div>
                    </div>
                </div>

            <div class="tf-section flat-blog-details  latest h2 flat-imagebox">
                <div class="container-TFL">
                                        <div class="row">
                        <div class="col-lg-12 col-md-12 col-sm-12">
                            <div class="inner "> 
<ul class="group-right">
<?php
                                                    $year_start  = 2015;
                                                    $year_end = (int)date('Y'); // current Year
                                                    $selected_year = 2020; // user date of birth year

                                                    for ($i_year = $year_end; $i_year >= $year_start; $i_year--) {
                                                      // Check if the current year should be selected
                                                        $selected = $selected_year == $i_year ? ' selected' : ''; ?>   

                                        <li class="tab active <?php echo $selected ?>">
                                        <a class="button-lt" href="bio.php?id=<?php echo $i_year ?>&title=<?php echo $name; ?>#publ">
                                            <span> <?php echo $i_year ?> </span>
                                        </a>
                                    </li><?php  
                                }      ?>  
                                </ul> 
                            </div>
                        </div>
                    </div> 
<div class="box-product pub" id="publ">

                    <div class="row">
                        <div class="col-lg-12 col-md-12">
                            <article  >
                                <div class="inner-content "> 
                                    <div class="wrap-content image-box"> 
                             <?php 
                        $qry=mysqli_query($connection, "select * from publication   where  yearpub = '$id' AND  authors LIKE  '%$title%'  "); 
                        $counter = 0;
            while ( $res2=mysqli_fetch_array($qry))
            {   
                             $yearpub = $res2['yearpub'];  
                             $name=$res2['authors'];   
                             $year=$res2['yearpub'];  
                             $pub=$res2['pub'];  
                             $publink=$res2['publink']; 
                             $link=" <a href=".$publink.">[".$pub."]</a>";  
                             $pubs="In press.";     

                            ?> 

                            <p>  <?php  echo ++$counter.". ";  echo $booktitle=$res2['booktitle']." ";   

                            if ( $pub == null )
                                { 
                                    echo $pubs;
                                }   else  {  echo $link;   }
                            ?> </p> <br>  
                            <?php  }  ?> 
                                    </div>
                                </div>    
                            </article>
                        </div>
 
                    </div>
 
                </div>
                </div>
            </div>  
           <!-- Footer -->
        <?php include("footer.php"); ?> 


        </div>
    </div>

    <!-- /#page -->

    <!-- /#wrapper -->

    <a id="scroll-top"></a>

    <!-- Javascript -->


    <script src="assets/js/jquery.min.js"></script>
    <script src="assets/js/jquery-validate.js"></script>
    <script src="assets/js/jquery.easing.js"></script>
    <script src="assets/js/bootstrap.min.js"></script>
    <script src="assets/js/swiper-bundle.min.js"></script>
    <script src="assets/js/plugin.js"></script>
    <script src="assets/js/shortcodes.js"></script>
    <script src="assets/js/main.js"></script>
    <script src="assets/js/swiper.js"></script>
    <script src="assets/js/countto.js"></script>
    <script src="assets/js/jquery.fancybox.js"></script>
    <script src="assets/js/jquery.magnific-popup.min.js"></script>
    <script src="assets/js/wow.min.js"></script>

</body>
</html>