<?php
            $user_sql = "SELECT * FROM users WHERE uid = '$x' ";
            $user_run = mysqli_query($con, $user_sql);
            $user_rows = mysqli_fetch_assoc($user_run);
        ?>

<section class="w3l-top-menu-1">
  <div class="top-hd">
    <div class="container">
  <header class="row top-menu-top">
    <div class="accounts col-md-9 col-6">
        <li class="top_li"><span class="fa fa-phone"></span><a href="tel:+91<?php echo $user_rows['uothcontact'];?>">+91-<?php echo $user_rows['uothcontact'];?></a> </li>
        <li class="top_li1"><span class="fa fa-envelope-o"></span> <a href="mailto:<?php echo $user_rows['umail']; ?>" class="mail"> <?php echo $user_rows['umail']; ?></a> </li>
    </div>
    <div class="social-top col-md-3 col-6 w3l-footer-29-main" style="padding-top:-5px;">
    <div cl ass="footer-list-29 footer-1 " >
                  
                  
                  <div class="main-social-footer-29 hidden-sm hidden-xs">
                      <a href="<?php echo $user_rows['ufburl']; ?>" class="facebook"><span class="fa fa-facebook"></span></a>
                      <a href="<?php echo $user_rows['utwitter']; ?>" class="twitter"><span class="fa fa-twitter"></span></a>
                      <a href="<?php echo $user_rows['uinsta']; ?>" class="instagram"><span class="fa fa-instagram"></span></a>
                      <a href="<?php echo $user_rows['uyoutube']; ?>" class="google-plus"><span class="fa fa-youtube"></span></a>
                   
                  </div>
                  
                  <div class="hidden-md hidden-lg" style="margin-top:2px;" >
                    
                    <a href="notice.php">
 <img src="assets/images/giphy.gif" alt="Your logo" title="Your logo" style="width:80px; height:auto;"  />
 </a>
                      </div>

              </div>
    </div>
  </header>
</div>
</div>
</section>        
<section class="w3l-bootstrap-header hidden-md hidden-lg">
  <nav class="navbar navbar-expand-lg navbar-light py-lg-2 py-2">
    <div class="container">
     
      <!-- if logo is image enable this >  <-->
    <a class="navbar-brand " href="index.php">
        <img src="assets/images/logo1.jpg" alt="SXSK" title="SXSK" style="height:55px;" /> 
    </a> 
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
        aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon fa fa-bars"></span>
      </button>

      <div class="collapse navbar-collapse " id="navbarSupportedContent">
        <ul class="navbar-nav mx-auto  hidden-md hidden-lg" >
       
        <li class="nav-item">
            <a class="nav-link" style="font-weight: bold; color:white; font-size:15px;"href="index.php">Home</a>
          </li>
          
          
        <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" style="font-weight: bold; color:white; font-size:13px;" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
              aria-haspopup="true" aria-expanded="false">
              About us
            </a>
           <div class="dropdown-menu" aria-labelledby="navbarDropdown">
              <a class="dropdown-item" href="about.php">About</a>
                  <a class="dropdown-item" href="about.php#jh"> The Jesuit Heritage</a>
			  <a class="dropdown-item" href="about.php#mission">Our Vission & Mission</a>
   
            
       <a class="dropdown-item" href="hm.php">Management Desk  </a>
    
        
              
             </div>
          </li>
		  
	  	
	  		
	  	

		    <li class="nav-item">
            <a class="nav-link" style="font-weight: bold; color:white; font-size:15px;" href="department.php">Academic Programmes</a>
          </li> 
		  
		      <li class="nav-item">
            <a class="nav-link" style="font-weight: bold; color:white; font-size:15px;" href="admission.php">Admission</a>
          </li>  
		  
		  <!-- Required meta tags --
		    <li class="nav-item">
            <a class="nav-link" style="font-weight: bold; color:white; font-size:15px;" href="#activity.php">Facility</a>
          </li> 
		  <!-- Required meta tags -->
		  
		  
                         <?php                    
            $cat_sql = "SELECT * FROM category  where catby=$x ORDER BY cpositon ASC limit 1";
            $cat_run = mysqli_query($con, $cat_sql);
            while ( $cat_rows = mysqli_fetch_assoc($cat_run) ) {
                echo "
                
                <li class='nav-item'><a class='nav-link' style='font-weight: bold; color:white; font-size:15px;' href='blog.php?cat=$cat_rows[cid]&$cat_rows[cname]/'>$cat_rows[cname]</a></li>
                ";
            }
        ?> 
            
            <!-- Required meta tags --
         <li class="nav-item">
            <a class="nav-link" style="font-weight: bold; color:white; font-size:15px;" href="donation.php">Donation</a>
          </li>  
          <!-- Required meta tags -->
 
      <li class="nav-item">
            <a class="nav-link" style="font-weight: bold; color:white; font-size:15px;" href="notice.php">Notice</a>
          </li>
 
 <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" style="font-weight: bold; color:white; font-size:13px;" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
              aria-haspopup="true" aria-expanded="false">
              Gallery
            </a>
           <div class="dropdown-menu" aria-labelledby="navbarDropdown">
        
		
          <a class="dropdown-item" href="gallery.php">Photo Gallery</a>
        <a class="dropdown-item" href="video.php">Video Gallery</a>
              
             </div>
          </li>	

                   <li class="nav-item">
            <a class="nav-link" style="font-weight: bold; color:white; font-size:15px;" href="contact.php">Contact</a>
          </li>    






        </ul>
      
       
      </div>
    </div>
  </nav>
</section>

<section class="w3l-bootstrap-header hidden-sm hidden-xs" style="backgro und-color:#002147; bor der-top: 1px dotted #002147;">
<div class="container">
<div class="row" >
    
<div class="col-md-2" >
<a href="index.php">
 <img src="assets/images/logo.jpeg" alt="Your logo" title="Your logo" style="width:100px; height:auto;" />
 </a>
</div>

<div class="col-md-9" align="center" style="padding-top:10px; font-weight: bold;">
<a href="index.php">
  <font color="#162357" size="7">Saint Xavier's School, Kailashahar
 </font>
  <br> <font color="#ef7339" size="1">  </FONT> 
    <font color="#162357" size="2"> Bhagaban Nagar P.O.,
Kailashahar, Unakoti Dist., Tripura - 799279


<p align="center">

 </p>

  
  </font></a>
</div>

<div class="col-md-1" >
<a href="notice.php">
 <img src="assets/images/giphy.gif" alt="Your logo" title="Your logo" style="width:100px; height:auto;" />
 </a>
</div>

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

<section class="w3l-bootstrap-header hidden-sm hidden-xs" style="background-color:#002147; bor der-top: 1px dotted #002147;">
<div class="container">
<div class="row" >
 <nav class="nav bar navbar-expand-lg navbar-light py-lg-2 py-2">
 
 

      <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mx-auto">
        <li class="nav-item">
            <a class="nav-link" style="font-weight: bold; color:white; font-size:15px;"href="index.php">Home</a>
          </li>
    
       <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" style="font-weight: bold; color:white; font-size:15px;" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
              aria-haspopup="true" aria-expanded="false">
              About us
            </a>
           <div class="dropdown-menu" aria-labelledby="navbarDropdown">
              <a class="dropdown-item" href="about.php">About</a>
              
             
               <a class="dropdown-item" href="about.php#jh"> The Jesuit Heritage</a>
              
			  <a class="dropdown-item" href="about.php#mission">Our Vission & Mission</a>
   
              <a class="dropdown-item" href="hm.php">Management Desk </a>
     
   
              
             </div>
          </li>

	  
	
		  
		    <li class="nav-item">
            <a class="nav-link" style="font-weight: bold; color:white; font-size:15px;" href="department.php">Academic Programmes</a>
          </li> 
		  
		    <li class="nav-item">
            <a class="nav-link" style="font-weight: bold; color:white; font-size:15px;" href="admission.php">Admission</a>
          </li>  
		  
		  <!-- Required meta tags --
		    <li class="nav-item">
            <a class="nav-link" style="font-weight: bold; color:white; font-size:15px;" href="#activity.php">Facility</a>
          </li> 
		  
		  <!-- Required meta tags -->
		  
                         <?php                    
            $cat_sql = "SELECT * FROM category  where catby=$x ORDER BY cpositon ASC limit 1";
            $cat_run = mysqli_query($con, $cat_sql);
            while ( $cat_rows = mysqli_fetch_assoc($cat_run) ) {
                echo "
                
                <li class='nav-item'><a class='nav-link' style='font-weight: bold; color:white; font-size:15px;' href='blog.php?cat=$cat_rows[cid]&$cat_rows[cname]/'>$cat_rows[cname]</a></li>
                ";
            }
        ?> 
            
         <!-- Required meta tags --   
         <li class="nav-item">
            <a class="nav-link" style="font-weight: bold; color:white; font-size:15px;" href="donation.php">Donation</a>
          </li>  
 <!-- Required meta tags -->
 
 
      <li class="nav-item">
            <a class="nav-link" style="font-weight: bold; color:white; font-size:15px;" href="notice.php">Notice</a>
          </li>
 
	 <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" style="font-weight: bold; color:white; font-size:15px;" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
              aria-haspopup="true" aria-expanded="false">
              Gallery
            </a>
           <div class="dropdown-menu" aria-labelledby="navbarDropdown">
        
		
          <a class="dropdown-item" href="gallery.php">Photo Gallery</a>
        <a class="dropdown-item" href="video.php">Video Gallery</a>
              
             </div>
          </li>	


                   <li class="nav-item">
            <a class="nav-link" style="font-weight: bold; color:white; font-size:15px;" href="contact.php">Contact</a>
          </li>    


        </ul>
       
      </div>
   
  </nav>
  </div>
</div>
</section>