<?php
include '../conector.php';
session_start();

if(isset($_SESSION["user"]) && $_SESSION["tipo"]=='D'){
$cuenta="select docente.teacher_id,docente.coordinador
	from usuarios,docente 
	where name='".$_SESSION["user"]."'
	and usuarios.cuenta=docente.email";
$res_cuenta=mysql_query($cuenta);
$rs_cta=mysql_fetch_array($res_cuenta);
echo "
<!DOCTYPE html>
<html lang=\"en\">
  <head>
    <meta charset=\"utf-8\">
    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
    <meta name=\"description\" content=\"\">
    <meta name=\"author\" content=\"\">
    <link rel=\"shortcut icon\" href=\"../assets/ico/favicon.ico\">

    <title>SOFTWARE DE GESTION ACADEMICA EN LINEA</title>

    <!-- Bootstrap core CSS -->
    <link href=\"../dist/css/bootstrap.min.css\" rel=\"stylesheet\">

    <!-- Custom styles for this template -->
";
	 include 'fuente.php'; 
echo "   

 <link href=\"../offcanvas.css\" rel=\"stylesheet\">

    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]><script src=\"../assets/js/ie8-responsive-file-warning.js\"></script><![endif]-->

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src=\"https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js\"></script>
      <script src=\"https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js\"></script>
    <![endif]-->
  </head>

  <body>
    <div class=\"navbar navbar-fixed-top navbar-inverse\" role=\"navigation\">
      <div class=\"container\">
         <div class=\"navbar-header\">
          <button type=\"button\" class=\"navbar-toggle hidden-xs\" data-toggle=\"collapse\" data-target=\".navbar-collapse\">
            <span class=\"sr-only\">Toggle navigation</span>
         
          </button>
         
         
          
          <a  href=\"general.php\" class='hidden-xs' ><img src='../img/logo1.png'  style='margin-top:5px;'></a>
	         <div align='' class='visible-xs'>
		         <a  href=\"general.php\"  ><img src='../img/logo1.png' width='250px' style='margin-top:10px;margin-left:5px'></a>
		         <a href=\"../index.php\" ><img src='../img/salir2.png' style='float:right;margin-top:15px;margin-right:10px'></a>
	         </div>

        </div>
      	<a href=\"../index.php\" class='hidden-xs'><img src='../img/salir.png' style='float:right;margin-top:15px'>
 	      	
         </a><span style='float:right;margin-right:10px; margin-top:15px' class='label label-success hidden-xs'><span class='glyphicon glyphicon-user'></span> ".$_SESSION["user"]."  </span>  

      
      	
      </div><!-- /.container -->
    </div><!-- /.navbar -->

    <div class=\"container\">

      <div class=\"row row-offcanvas row-offcanvas-left\">
	<div class=\"collapse navbar-collapse\">
          <ul class=\"nav navbar-nav\">
           
          </ul>
        </div><!-- /.nav-collapse -->

 <div class=\"col-xs-6 col-sm-3 sidebar-offcanvas\" id=\"sidebar\" role=\"navigation\">
          <div class=\"list-group\">
            <a href=\"general.php\" class=\"list-group-item active\"><span class=\"glyphicon glyphicon-home\"></span> General</a>
            <a href=\"estudiantes.php\" class=\"list-group-item\"><span class=\"glyphicon glyphicon-th\"></span> Estudiantes</a>
            <a href=\"docentes.php\" class=\"list-group-item\"><span class=\"glyphicon glyphicon-user\"></span> Docentes</a>
            <a href=\"horario.php\" class=\"list-group-item \"><span class=\"glyphicon glyphicon-edit\"></span> Horario</a>
            <a href=\"logros.php\" class=\"list-group-item\"><span class=\"glyphicon glyphicon-edit\"></span> Logros</a>            
            <a href=\"planilla.php\" class=\"list-group-item \"><span class=\"glyphicon glyphicon-file\"></span> Planilla Notas</a>   
            <a href=\"planilla_asistencia.php\" class=\"list-group-item \"><span class=\"glyphicon glyphicon-file\"></span> Asistencia</a>                     
            <a href=\"reportes.php\" class=\"list-group-item \"><span class=\"glyphicon glyphicon-file\"></span> Informes</a>
            <a href=\"planilla_obs.php\" class=\"list-group-item \"><span class=\"glyphicon glyphicon-file\"></span> Planilla Obs.</a>
<a href=\"eventos.php\" class=\"list-group-item \"><span class=\"glyphicon glyphicon-edit\"></span> Anuncios</a>
";                        
if($rs_cta[1]==1||$rs_cta[1]==0){
	echo	"<a href=\"obs_disciplinarias.php\" class=\"list-group-item \"><span class=\"glyphicon glyphicon-file\"></span> Registro Obs.</a>";
}
echo            
          "                        
          </div>
        </div><!--/span-->





        <div class=\"col-xs-12 col-sm-9\">
          <p class=\"pull-left visible-xs\">
            <button type=\"button\" class=\"btn btn-primary btn-xs\" data-toggle=\"offcanvas\">menu</button>
          </p>
<div class=\"row\">

</div><!--/row-->
        <div class=\"row\">
		<div class=\"col-6 col-sm-6 col-lg-4\">
          	<a href=\"estudiantes.php\" class=\"thumbnail\"><div style='background:#eeeeee;height: 120px;' align='center' > <img src=\"../img/alumnos.png\" class=\"imag\" style=\"height: 51px; width: 51px;\"><br>Estudiantes</div></a></div><!--/span-->
		<div class=\"col-6 col-sm-6 col-lg-4\">
          	<a href=\"docentes.php\" class=\"thumbnail\"><div style='background:#eeeeee;height: 120px;' align='center' > <img src=\"../img/docentes.png\" class=\"imag\" style=\"height: 51px; width: 51px; \"><br>Docentes</div></a></div><!--/span-->
            <div class=\"col-6 col-sm-6 col-lg-4\">
          	<a href=\"reportes.php\" class=\"thumbnail\"><div style='background:#eeeeee;height: 120px;' align='center' > <img src=\"../img/checklist.png\" class=\"imag\" style=\"height: 51px; width: 51px; \"><br>Informes</div></a></div><!--/span-->
            <div class=\"col-6 col-sm-6 col-lg-4\">
          	<a href=\"planilla.php\" class=\"thumbnail\"><div style='background:#eeeeee;height: 120px;' align='center' > <img src=\"../img/materia.png\" class=\"imag\" style=\"height: 51px; width: 51px; \"><br>Notas</div></a></div><!--/span-->
            <div class=\"col-6 col-sm-6 col-lg-4\">
          	<a href=\"planilla_asistencia.php\" class=\"thumbnail\"><div style='background:#eeeeee;height: 120px;' align='center' > <img src=\"../img/checklist.png\" class=\"imag\" style=\"height: 51px; width: 51px; \"><br>Asistencia</div></a></div><!--/span-->
            <div class=\"col-6 col-sm-6 col-lg-4\">
          	<a href=\"obs_disciplinarias.php\" class=\"thumbnail\"><div style='background:#eeeeee;height: 120px;' align='center' > <img src=\"../img/checklist.png\" class=\"imag\" style=\"height: 51px; width: 51px; \"><br>Observaciones</div></a></div><!--/span-->
          </div><!--/row-->
        </div><!--/span-->


      </div><!--/row--><hr><footer><p>Todos los derechos reservados - Copyright &copy; 2023</p></footer>

    </div><!--/.container-->



    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src=\"https://code.jquery.com/jquery-1.10.2.min.js\"></script>
    <script src=\"../dist/js/bootstrap.min.js\"></script>
    <script src=\"../offcanvas.js\"></script>
  </body>
</html>
";
}else{

echo "
<div class=\"alert alert-danger\" >
		                    <button type=\"button\" class=\"close\" data-dismiss=\"alert\">X</button>
					Debe registrase para usar la aplicaci&oacute;n <a href='../index.php' > Ingresar</a>
				</div>";

}
?>
