<!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
<?php
include_once('../controller/config.php');

$index=$_SESSION["index_number"];

$sql="SELECT * FROM teacher WHERE index_number='$index'";
$result=mysqli_query($conn,$sql);
$row=mysqli_fetch_assoc($result);
$name=$row['i_name'];
$image=$row['image_name'];

?>      
      
      <div class="user-panel">
      	<div class="pull-left image">
        	<img src="../<?php echo $image; ?>" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
        	<p><?php echo $name; ?></p>
            <a href="#"><i class="fa fa-circle text-success"></i> En ligne</a>
        </div>
      </div>
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu">
        <li class="header">NAVIGATION PRINCIPALE</li>
       <li class="active treeview">
          <a href="dashboard_dpt.php">
            <i class="fa fa-dashboard"></i> <span>Tableau de bord</span>
          </a>
        </li>
         <li>
          <a href="profile_dpt.php">
            <i class="fa fa-flag"></i> <span>Mon profil</span>
          </a>
        </li>
 <li class="header" style="background-color: #1a2226; color: #4b646f; padding: 10px 15px; font-size: 12px;">GESTION PÉDAGOGIQUE</li>		
        <li>
          <a href="../view/class_room_dpt.php">
            <i class="fa fa-list-ul"></i> <span>Classes</span>
          </a>
        </li>	
		<li class="treeview">
        <a href="#">
        <i class="fa fa-user" aria-hidden="true"></i>
            <span>Enseignant</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
        </a>
          <ul class="treeview-menu">
            <li><a href="../view/teacher_dpt.php"><i class="fa fa-circle-o"></i> Ajouter un enseignant</a></li>
            <li><a href="../view/all_teacher_dpt.php"><i class="fa fa-circle-o"></i> Tous les enseignants</a></li>
          </ul>
        </li>
		<li class="treeview">
        <a href="#">
        <i class="fa fa-user" aria-hidden="true"></i>
            <span>Étudiant(e)</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
        </a>
          <ul class="treeview-menu">
            <li><a href="../view/manage_attendance_student.php"><i class="fa fa-circle-o"></i>Les absences(Vue Étudiants)</a></li>
          </ul>
        </li>
        <li>
          <a href="../view/subject_routing_dpt.php">
            <i class="fa fa-th"></i> <span>Affectation des modules</span>
          </a>
        </li>
        <li>
          <a href="../view/timetable_dpt.php">
            <i class="fa fa-calendar-plus-o"></i> <span>Emploi du temps</span>
          </a>
        </li>
       
	    <li class="treeview">
          <a href="#">
            <i class="fa fa-certificate"></i>
            <span>Examen</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="../view/exam_timetable_dpt.php"><i class="fa fa-circle-o"></i> Emploi de temps des examens</a></li>           
          </ul>
        </li>
		
		<li>
           <a href="../view/attendance_manager.php">
            <i class="fa fa-calendar-check-o"></i> <span>Gestion des Absences</span>
           </a>
        </li>
		
 <li class="header" style="background-color: #1a2226; color: #4b646f; padding: 10px 15px; font-size: 12px;">Upload</li>
 
        <li class="treeview">
          <a href="../view/upload_attandance.php">
            <i class="fa fa-user-md" style="color: #00c0ef;"></i> 
            <span>upload attendance</span>
            <span class="pull-right-container"></span>
          </a>
		   <a href="../view/upload_attandance_fin.php">
            <i class="fa fa-user-md" style="color: #00c0ef;"></i> 
            <span>upload attendance2</span>
            <span class="pull-right-container"></span>
          </a>
       </li>




      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>