<?php
session_start();
      if( (isset($_SESSION['IdAdmin'])) &&($_SESSION['IdAdmin']>0))
   {  
?>
<!DOCTYPE html>
<html>
<head>
<title>IESTP-Abancay-Docente</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="icon" href="assets/images/favicon.ico" type="image/x-icon">

<link rel="stylesheet" href="bower_components/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/pages/waves/css/waves.min.css" media="all">
<link rel="stylesheet" href="assets/icon/feather/css/feather.css">
<link rel="stylesheet" href="assets/icon/themify-icons/themify-icons.css">
<link rel="stylesheet" href="assets/icon/icofont/css/icofont.css">
<link rel="stylesheet" href="assets/icon/font-awesome/css/font-awesome.min.css">

<link rel="stylesheet" href="assets/css/style.css">
<?php
include("script_funciones.php");
include('db___cn.php');
$mysqli=conex_db_mysql();

$docente="SELECT IdDocente,Apellidos,Nombres,UrlFoto,RolDocente,GestorWeb,GestorBolsaLaboral
              FROM tb_docentes 
              WHERE IdDocente='".$_SESSION['IdDoc']."'";
$rs=$mysqli->query($docente);
$fila_docente=mysqli_fetch_array($rs);

$perfil_estudiante="SELECT Dni,Apellidos,Nombres,NumCelular,Email,UrlFoto,Usuario,Clave,CarreraProfesional,Semestre,Seccion 
                   FROM tb_estudiantes,tb_carrera,tb_semestre,tb_seccion
                   WHERE tb_estudiantes.IdCarrera=tb_carrera.IdCarrera
                   and tb_estudiantes.IdSemestre= tb_semestre.IdSemestre
                   and tb_estudiantes.IdSeccion=tb_seccion.IdSeccion 
                   and IdEstudiante='".base64_decode($_GET['Id'])."'";
$rs_perfil_estudiante=$mysqli->query($perfil_estudiante);
$fila_perfil=mysqli_fetch_array($rs_perfil_estudiante);

mysqli_close($mysqli);
?>
</head>
<body>

<div class="loader-bg">
     <div class="loader-bar"></div>
</div>

<div id="pcoded" class="pcoded">
     <div class="pcoded-overlay-box"></div>
<div class="pcoded-container navbar-wrapper">
	
	<nav class="navbar header-navbar pcoded-header">
		<div class="navbar-wrapper">
			<div class="navbar-logo">
				<?php logo(); ?>	
			</div>
			<div class="navbar-container container-fluid">
			    <?php menuSuperior($fila_docente['Nombres'],$fila_docente['UrlFoto']); ?>
			</div>
		</div>
	</nav>

<div class="pcoded-main-container"><!-- inicio pcoded-main-container -->
  <div class="pcoded-wrapper"><!-- inicio pcoded-wrapper -->

	<nav class="pcoded-navbar">
	  <div class="nav-list">
	     <div class="pcoded-inner-navbar main-menu">
	        <div class="pcoded-navigation-label">Panel Navegaci&#243;n</div>
	          <?php  MenuPrincipal($fila_docente['RolDocente'],$fila_docente['GestorWeb'],$fila_docente['GestorBolsaLaboral']); ?>
	     </div>
	  </div>
	</nav>

<div class="pcoded-content"><!-- inicio pcoded-content -->

	<div class="page-header card"> <!-- inicio page-header card - encabezado -->
		<div class="row align-items-end">
				<div class="col-lg-4">
				  
				</div>
				<div class="col-lg-8">
					<div class="page-header-breadcrumb">
							<ul class=" breadcrumb breadcrumb-title">
								<li class="breadcrumb-item">
								<a href="principal.php"><i class="feather icon-home"></i></a>
								</li>
								<li class="breadcrumb-item">
								<a href="#">Portafolio Docente</a>
								</li>
								<li class="breadcrumb-item">
								<a href="nominaMatricula.php">N&#243;mina de Matricula</a>
								</li>
								<li class="breadcrumb-item">
								<a href="#">Ver Perfil Estudiante</a>
								</li>
							</ul>
					</div>
				</div>
		</div>
	</div><!-- fin page-header card - encabezado -->

	<div class="pcoded-inner-content"><!-- inicio pcoded-inner-content - contenido dinamico -->
		<div class="main-body">
			<div class="page-wrapper">
				<div class="page-body">

					<div class="row">
							<div class="col-sm-3">
								<div class="card">
										<div class="card-header">
										    <h5>Fotografia</h5>
										</div>
									    <div class="card-block">
	                                           <img class="card-list-img img-fluid" src="../fotoEstudiantes/<?php echo $fila_perfil['UrlFoto']; ?>">
								        </div>
								</div>
							</div>
							<div class="col-sm-9">
								<div class="card">
										<div class="card-header">
										    <h5>Datos Personales</h5>
										</div>
									    <div class="card-block">
                                            <form name="formVerPerfilEstudiante" method="post" action="">
	                                            <div class="form-group row">
													   <label class="col-sm-3 col-form-label text-right">DNI:</label>
														<div class="col-sm-3">
					                                      <input type="text" id="txt_dni" class="form-control" readonly value="<?php echo $fila_perfil['Dni'] ?>">
														</div>
														<label class="col-sm-6 col-form-label"></label>
													</div>
													<div class="form-group row">
													   <label class="col-sm-3 col-form-label text-right">Apellidos:</label>
														<div class="col-sm-9">
														<input type="text" id="txt_apellidos" class="form-control" readonly value="<?php echo $fila_perfil['Apellidos'] ?>" >
														</div>
													</div>
													<div class="form-group row">
													   <label class="col-sm-3 col-form-label text-right">Nombres:</label>
														<div class="col-sm-9">
														<input type="text" id="txt_nombres" class="form-control" readonly value="<?php echo $fila_perfil['Nombres'] ?>" >
														</div>
													</div>
													<div class="form-group row">
													   <label class="col-sm-3 col-form-label text-right">N&#176; Celular:</label>
														<div class="col-sm-9">
														<input type="text" id="txt_celular" class="form-control" readonly value="<?php echo $fila_perfil['NumCelular'] ?>" >
														</div>
													</div>
													<div class="form-group row">
													   <label class="col-sm-3 col-form-label text-right">Email:</label>
														<div class="col-sm-9">
														<input type="text" id="txt_email" class="form-control" readonly value="<?php echo $fila_perfil['Email'] ?>" >
														</div>
													</div>
													<div class="form-group row">
													   <label class="col-sm-3 col-form-label text-right">Domicilio Actual:</label>
														<div class="col-sm-9">
														<input type="text" id="txt_domicilio" class="form-control" readonly value="Av. Inca Garcilazo Vega N° 345 - Nazarenas" >
														</div>
													</div>
													<div class="form-group row">
													   <label class="col-sm-3 col-form-label text-right">Programa de Estudio:</label>
														<div class="col-sm-9">
														<input type="text" id="txt_carrera" class="form-control" readonly value="<?php echo $fila_perfil['CarreraProfesional'] ?>" >
														</div>
													</div>
													<div class="form-group row">
													   <label class="col-sm-3 col-form-label text-right">Semestre:</label>
														<div class="col-sm-3">
														  <input type="text" id="txt_semestre" class="form-control" readonly value="<?php echo $fila_perfil['Semestre'] ?>" >
														</div>
														<label class="col-sm-3 col-form-label text-right">Secci&#243;n:</label>
														<div class="col-sm-3">
														<input type="text" id="txt_seccion" class="form-control" readonly value="<?php echo $fila_perfil['Seccion'] ?>" >
														</div>
													</div>
													
                                            </form>  
								        </div>
								</div>
								
							</div>

					</div>

				</div>
			</div>
		</div>
	</div><!-- fin pcoded-inner-content - contenido dinamico -->
</div> <!-- fin pcoded-content -->

<div id="styleSelector">
</div>

</div><!-- fin pcoded-wrapper -->

</div> <!-- fin pcoded-main-container -->

</div>
</div>

<script src="bower_components/jquery/js/jquery.min.js"></script>
<script src="bower_components/jquery-ui/js/jquery-ui.min.js"></script>
<script src="bower_components/popper/js/popper.min.js"></script>
<script src="bower_components/bootstrap/js/bootstrap.min.js"></script>

<script src="assets/pages/waves/js/waves.min.js"></script>
<script  src="bower_components/jquery-slimscroll/js/jquery.slimscroll.js"></script>

<script src="bower_components/modernizr/js/modernizr.js"></script>
<script  src="bower_components/modernizr/js/css-scrollbars.js"></script>

<script src="assets/js/pcoded.min.js"></script>
<script src="assets/js/vertical/vertical-layout.min.js"></script>
<script src="assets/js/script.min.js"></script>

</body>
</html>
<?php
}
else
{ 

echo "Error Ud. Debe Iniciar Sesion.................";

}
?>
