index.php 28.1 KB
<!DOCTYPE html>
<html lang="en">

<head>
    <title>Mi Perfil - Coneepec </title>
    <!-- HTML5 Shim and Respond.js IE10 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 10]>
      <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]-->
    <!-- Meta -->
    <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">
    <meta name="description" content="#">
    <meta name="keywords" content="Admin , Responsive, Landing, Bootstrap, App, Template, Mobile, iOS, Android, apple, creative app">
    <meta name="author" content="#">
    <!-- Favicon icon -->
    <link rel="icon" href="<?php echo constant ('URL');?>src/menu/assets/images/favicon.ico" type="image/x-icon">
    <!-- Google font-->
    <link href="<?php echo constant ('URL');?>src/menu/assets/fonts/fonts-opensans.css" rel="stylesheet">
    <!-- Required Fremwork -->
    <link rel="stylesheet" type="text/css" href="<?php echo constant ('URL');?>src/menu/bower_components/bootstrap/css/bootstrap.min.css">
    <!-- themify-icons line icon -->
    <link rel="stylesheet" type="text/css" href="<?php echo constant ('URL');?>src/menu/assets/icon/themify-icons/themify-icons.css">
    <!-- ico font -->
    <link rel="stylesheet" type="text/css" href="<?php echo constant ('URL');?>src/menu/assets/icon/icofont/css/icofont.css">
    <!-- feather Awesome -->
    <link rel="stylesheet" type="text/css" href="<?php echo constant ('URL');?>src/menu/assets/icon/feather/css/feather.css">
    <!-- Style.css -->
    <link rel="stylesheet" type="text/css" href="<?php echo constant ('URL');?>src/menu/assets/css/style.css">
    <link rel="stylesheet" type="text/css" href="<?php echo constant ('URL');?>src/menu/assets/css/jquery.mCustomScrollbar.css">
    <link rel="stylesheet" href="<?php echo constant ('URL');?>src/menu/assets/scss/partials/menu/_pcmenu.htm">
    <!--forms-wizard css-->
    <link rel="stylesheet" type="text/css" href="<?php echo constant ('URL');?>src/menu/bower_components/jquery.steps/css/jquery.steps.css">

</head>

<body>
    <?php include_once 'views/header.php';?>

            
                                <!-- Page-header start -->
                                <div class="page-header">
                                    <div class="row align-items-end">
                                        <div class="col-lg-8">
                                            <div class="page-header-title">
                                                <div class="d-inline">
                                                    <h4>Mi Perfil</h4>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-4">
                                            <div class="page-header-breadcrumb">
                                                <ul class="breadcrumb-title">
                                                <li class="breadcrumb-item">
                                                        <a href="<?php echo constant('URL');?>home"> <i class="feather icon-home"></i> Inicio</a>
                                                    </li>
                                                    <li class="breadcrumb-item active"><strong><a href="<?php echo constant('URL') . "usuarios/viewEdit/" . $this->id_persona;?>"><i class="feather icon-user"></i> Mi Perfil</a> </strong></li>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!-- Page-header end -->
                                <?php echo $this->mensaje;?>

                                <!-- Page-body start -->
                                    <div class="page-body">
                                        <!--profile cover start-->
                                        <div class="row">
                                            <div class="col-lg-12">
                                                <div class="cover-profile">
                                                    <div class="profile-bg-img">
                                                        <img class="profile-bg-img img-fluid" src="<?php echo constant('URL');?>src/menu/assets/images/user-profile/bg-img1.jpg" alt="bg-img">
                                                        <div class="card-block user-info">
                                                            <div class="col-md-12">
                                                                <div class="media-left">
                                                                    <a href="#" class="profile-image">
                                                                        <img class="user-img img-radius" src="<?php echo constant('URL');?>src/menu/assets/images/user-profile/social.jpg" alt="user-img">
                                                                    </a>
                                                                </div>
                                                                <div class="media-body row">
                                                                    <div class="col-lg-12">
                                                                        <div class="user-title">
                                                                            <h2><?php echo $this->persona->primer_nombre . " " . $this->persona->primer_apellido; ?></h2>
                                                                            <span class="text-white"><?php echo $this->persona->perfil; ?></span>
                                                                        </div>
                                                                    </div>
                                                                    <div>
                                                                        <div class="pull-right cover-btn">
                                                                            <a href="<?php echo constant ('URL');?>home" class="btn btn-info btn-out-dotted"><i class="icofont icofont-home" style="font-size: 1.2em; color: white"></i> Inicio</a>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <!--profile cover end-->
                                        <div class="row">
                                            <div class="col-lg-12">
                                                <!-- tab header start -->
                                                <div class="tab-header card">
                                                    <ul class="nav nav-tabs md-tabs tab-timeline" role="tablist" id="mytab">
                                                        <li class="nav-item">
                                                            <a class="nav-link active" data-toggle="tab" href="#personal" role="tab">Información Personal</a>
                                                            <div class="slide"></div>
                                                        </li>
                                                        <li class="nav-item">
                                                            <a class="nav-link" data-toggle="tab" href="#binfo" role="tab">Información de Usuario</a>
                                                            <div class="slide"></div>
                                                        </li>
                                                    </ul>
                                                </div>
                                                <!-- tab header end -->
                                                <!-- tab content start -->
                                                <div class="tab-content">
                                                    <!-- tab panel personal start -->
                                                    <div class="tab-pane active" id="personal" role="tabpanel">
                                                        <!-- personal card start -->
                                                        <div class="card">
                                                            <div class="card-header">
                                                                <h5 class="card-header-text">Acerca del Usuario <?php echo $this->persona->primer_nombre . " " . $this->persona->primer_apellido;?></h5>
                                                                <a id="edit-btn" href="<?php echo constant ('URL') . "perfil/viewEdit/" . $this->persona->id_persona;?>" class="btn btn-sm btn-primary waves-effect waves-light f-right">
                                                                    <i class="icofont icofont-edit"></i> Editar Datos Personales
                                                                </a>
                                                            </div>
                                                            <div class="card-block">
                                                                <div class="view-info">
                                                                    <div class="row">
                                                                        <div class="col-lg-12">
                                                                            <div class="general-info">
                                                                                <div class="row">
                                                                                    <div class="col-lg-12 col-xl-6">
                                                                                        <div class="table-responsive">
                                                                                            <table class="table m-0">
                                                                                                <tbody>
                                                                                                    <tr>
                                                                                                        <th scope="row">Tipo de Documento de Identidad</th>
                                                                                                        <td><?php echo $this->persona->tipo_documento; ?></td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <th scope="row">Nro. de Identificación</th>
                                                                                                        <td><?php echo $this->persona->identificacion; ?></td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <th scope="row">Nombres</th>
                                                                                                        <td><?php echo $this->persona->primer_nombre . " " . $this->persona->segundo_nombre; ?></td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <th scope="row">Apellidos</th>
                                                                                                        <td><?php echo $this->persona->primer_apellido . " " . $this->persona->segundo_apellido; ?></td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <th scope="row">Género</th>
                                                                                                        <td><?php echo $this->persona->genero; ?></td>
                                                                                                    </tr>
                                                                                                </tbody>
                                                                                            </table>
                                                                                        </div>
                                                                                    </div>
                                                                                    <!-- end of table col-lg-6 -->
                                                                                    <div class="col-lg-12 col-xl-6">
                                                                                        <div class="table-responsive">
                                                                                            <table class="table">
                                                                                                <tbody>
                                                                                                    <tr>
                                                                                                        <th scope="row">País de Residencia</th>
                                                                                                        <td><?php echo $this->persona->pais; ?></td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <th scope="row">Ciudad de Residencia</th>
                                                                                                        <td><?php echo $this->persona->ciudad; ?></td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <th scope="row">Correo Electrónico</th>
                                                                                                        <td><?php echo $this->persona->correo; ?></td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <th scope="row">Teléfono</th>
                                                                                                        <td><?php echo $this->persona->telefono; ?></td>
                                                                                                    </tr>
                                                                                                </tbody>
                                                                                            </table>
                                                                                        </div>
                                                                                    </div>
                                                                                    <!-- end of table col-lg-6 -->
                                                                                </div>
                                                                                <!-- end of row -->
                                                                            </div>
                                                                            <!-- end of general info -->
                                                                        </div>
                                                                        <!-- end of col-lg-12 -->
                                                                    </div>
                                                                    <!-- end of row -->
                                                                </div>
                                                                
                                                            </div>
                                                            <!-- end of card-block -->
                                                        </div>
                                                        
                                                        <!-- personal card end-->
                                                    </div>
                                                    <!-- tab pane personal end -->
                                                    <!-- tab pane info start -->
                                                    <div class="tab-pane" id="binfo" role="tabpanel">
                                                        <!-- info card start -->
                                                        <div class="card">
                                                            <div class="card-header">
                                                                <h5 class="card-header-text">Acerca del Usuario <?php echo $this->persona->primer_nombre . " " . $this->persona->primer_apellido;?></h5>
                                                                <a id="edit-btn" href="<?php echo constant ('URL') . "perfil/viewEditUser/" . $this->persona->id_persona;?>" class="btn btn-sm btn-primary waves-effect waves-light f-right">
                                                                    <i class="icofont icofont-edit"></i> Editar Usuario
                                                                </a>
                                                            </div>
                                                            <div class="card-block">
                                                                <div class="row">
                                                                    <div class="col-md-12">
                                                                        <div class="card b-l-warning business-info services m-b-20">
                                                                            <div class="card-header">
                                                                                <div class="service-header">
                                                                                    <a href="#">
                                                                                        <h5 class="card-header-text"><?php echo $this->persona->usuario; ?></h5>
                                                                                    </a>
                                                                                </div>
                                                                                
                                                                                
                                                                            </div>
                                                                            <div class="card-block">
                                                                                <div class="row">
                                                                                    <div class="col-sm-12">
                                                                                    <div class="row">
                                                                                    <div class="col-lg-12 col-xl-12">
                                                                                        <div class="table-responsive">
                                                                                            <table class="table m-0">
                                                                                                <tbody>
                                                                                                    <tr>
                                                                                                        <th scope="row">Nombre de Usuario</th>
                                                                                                        <td><?php echo $this->persona->usuario; ?></td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <th scope="row">Perfil de Usuario</th>
                                                                                                        <td><?php echo $this->persona->perfil; ?></td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <th scope="row">Estatus</th>
                                                                                                        <td><?php echo $this->persona->estatus; ?></td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <th scope="row">Rol(es) de Usuario</th>
                                                                                                        <td>
                                                                                                        <?php 
                                                                                                            $i=1;
                                                                                                            while($i<=count($this->informacion_u)){
                                                                                                        ?>
                                                                                                       
                                                                                                        
                                                                                                            
                                                                                                                <?php echo $this->rol[$i]['rol'.$i]; ?>
                                                                                                            <br>
                                                                                                        
                                                                                                                <?php 
                                                                                                                $i++;
                                                                                                            }
                                                                                                        ?>
                                                                                                        
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    
                                                                                                </tbody>
                                                                                            </table>
                                                                                        </div>
                                                                                    </div>
                                                                                    
                                                                                </div>
                                                                                <!-- end of row -->
                                                                                    </div>
                                                                                    <!-- end of col-sm-8 -->
                                                                                </div>
                                                                                <!-- end of row -->
                                                                            </div>
                                                                            <!-- end of card-block -->
                                                                        </div>
                                                                    </div>
                                                                    
                                                                </div>
                                                            </div>
                                                        </div>
                                                        
                                                        <!-- info card end -->
                                                    </div>
                                                    <!-- tab pane info end -->
                                                    
                                                </div>
                                                <!-- tab content end -->
                                            </div>
                                        </div>
                                    </div>
                                    <!-- Page-body end -->
                               
                                
    <?php include_once 'views/footer.php';?>
    <script src="<?php echo constant ('URL');?>src/menu/bower_components/jquery.steps/js/jquery.steps.js"></script>
    <script src="<?php echo constant ('URL');?>src/menu/assets/pages/user-profile.js"></script>

    <script type="text/javascript" src="<?php echo constant ('URL');?>src/menu/assets/pages/form-validation/validate.js"></script>
    <script src="<?php echo constant ('URL');?>src/menu/assets/pages/forms-wizard-validation/form-wizard.js"></script>

<!-- NOTA: revisen el footer, ahi integre todos los js que necesita el header para que funcione, 
    si necesitan, agregar un plugin lo hacen a partir de este comentario -->
                        
    
    
</body>

</html>