<?php 
    session_start();
    include '../validacion.php';
    include '../siguientedia.php';
    include "../conexion/conexion.php";
if (isset($_SESSION['start'])) {
?>

<!DOCTYPE html>
<html lang="en">
   <head>
   <title>Mi Perfil - Recursos Humanos</title>
   <?php 
   include '../layout/header.php'; 
   ?>  
   </head>
   <body class="inner_page profile_page">
      <div class="full_container">
         <div class="inner_container">

            <!-- MENÚ  -->
            <?php include '../layout/menu.php'; ?>
            <!-- FIN DEL MENÚ -->

            <!-- right content -->
            <div id="content">
               <!-- SUB-MENÚ -->
               <?php include '../layout/submenu.php'; ?>
               <!-- FIN DEL SUB-MENÚ -->
               <!-- dashboard inner -->
               <div class="midde_cont">
                  <div class="container-fluid">
                     <div class="row column_title">
                        <div class="col-md-12">
                           <div class="page_title">
                              <h2>Mi Información</h2>
                           </div>
                        </div>
                     </div>
                     <!-- row -->
                     <div class="row column1">
                        <div class="col-md-2"></div>
                        <div class="col-md-8">
                           <div class="white_shd full margin_bottom_30">
                              <div class="full graph_head">
                                 <div class="heading1 margin_0">
                                    <h2>Mi cuenta</h2>
                                 </div>
                              </div>
                              <div class="full price_table padding_infor_info">
                                 <div class="row">
                                    <!-- user profile section --> 
                                    <!-- profile image -->
                                    <div class="col-lg-12">
                                       <div class="full dis_flex center_text">
                                          <div class="profile_img"><img width="180" class="rounded-circle" src="../images/layout_img/perfil.png" alt="#" /></div>
                                          <div class="profile_contant">
                                             <div class="contact_inner">
                                                <h3><?php echo $nombreusuario_sesion; ?></h3>
                                                <p><i class="fa fa-user"></i><?php if($idrol_sesion == 1){echo " ADMINISTRADOR";} else if($idrol_sesion == 2){echo " LÍDER";} else if($idrol_sesion == 3){echo " COLABORADOR";}?> <?php echo $empresa; ?></p>
                                                <ul class="list-unstyled">
                                                   <li><i class="fa fa-envelope"></i> Correo: <?php echo $correo_sesion; ?></li>
                                                   <li><i class="fa fa-phone"></i> Celular: +51 <?php echo $celular_sesion; ?></li>
                                                   <!-- <li><i class="fa fa-phone"></i> Celular: <?php $a = date('W',strtotime('2022-01-03')); echo $a; ?></li> -->
                                                   <li><i class="fa fa-id-card"></i> DNI: <?php echo $dni_sesion; ?></li>
                                                   <li><i class="fa-solid fa-clock"></i> Turno: <?php echo $turno_sesion; ?></li>
                                                   <li><i class="fa-solid fa-building"></i> Sede: <?php echo $sede_sesion; ?></li>
                                                   <li><i class="fa-solid fa-calendar"></i> Fecha de Ingreso: <?php echo date('d-m-Y',strtotime($fechaingreso_sesion)); ?></li>
                                                </ul>
                                                <!-- <p>------------------------------------------------------------------------------------</p> -->
                                                <!-- <div class="col-md-12 mb-3">                                       -->
                                                   <a href="editarusuario.php?usuario=<?php echo $idusuario_sesion; ?>"  class="fa-solid fa-pen-to-square" style="font-size:18pt; margin:15px"></a>
                                                <!-- </div>  -->
                                            </div>                                             
                                            <div class="user_progress_bar">
                                                <div class="progress_bar">
                                                    Skill Bars 
                                                   <?php 
                                                //   $b = 100;
                                                //   $c = "width:".$b."%;";
                                                   ?>
                                                   <span class="skill" style="<?php echo $c;?>">Meta Semanal<span class="info_valume"><?php echo $b."%";?></span></span>                   
                                                   <div class="progress skill-bar ">
                                                      <div class="progress-bar progress-bar-animated progress-bar-striped" role="progressbar" aria-valuenow="<?php echo $b;?>" aria-valuemin="0" aria-valuemax="100" style="<?php echo $c;?>">
                                                      </div>
                                                   </div>
                                                   <span class="skill" style="width:78%;">Website Design <span class="info_valume">78%</span></span>   
                                                   <div class="progress skill-bar">
                                                      <div class="progress-bar progress-bar-animated progress-bar-striped" role="progressbar" aria-valuenow="78" aria-valuemin="0" aria-valuemax="100" style="width: 78%;">
                                                      </div>
                                                   </div>
                                                   <span class="skill" style="width:47%;">Automation & Testing <span class="info_valume">47%</span></span>
                                                   <div class="progress skill-bar">
                                                      <div class="progress-bar progress-bar-animated progress-bar-striped" role="progressbar" aria-valuenow="54" aria-valuemin="0" aria-valuemax="100" style="width: 54%;">
                                                      </div>
                                                   </div>
                                                   <span class="skill" style="width:65%;">UI / UX <span class="info_valume">65%</span></span>
                                                   <div class="progress skill-bar">
                                                      <div class="progress-bar progress-bar-animated progress-bar-striped" role="progressbar" aria-valuenow="65" aria-valuemin="0" aria-valuemax="100" style="width: 65%;">
                                                      </div>
                                                   </div>
                                                </div>
                                             </div>
                                          </div>
                                       </div>
                                    </div>
                                 </div>
                              </div>
                           </div>
                           <div class="col-md-2"></div>
                        </div>
                        <!-- end row -->
                     </div>
                     <!-- FOOTER -->
                     <?php include '../layout/footer.php' ?>
                     <!-- FIN DEL FOOTER -->
                  </div>
                  <!-- end dashboard inner -->
               </div>
            </div>
         </div>
      </div>
   <!-- INCLUYENDO JS. -->
   <?php include '../layout/pie.php' ?>
   </body>
</html>

<?php
} else {
  echo'<script type="text/javascript">alert("Inicie Sesión Nuevamente");window.location.href="../login/login.php";</script>';
}
?>
