index.php
28.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<!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>