-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperfil.php
More file actions
126 lines (125 loc) · 4.46 KB
/
Copy pathperfil.php
File metadata and controls
126 lines (125 loc) · 4.46 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
<?php
session_start();
require_once("./motores/interno/funciones.php");
require_once("./motores/interno/validador.php");
require_once("./motores/interno/formatos.php");
require_once("./motores/interno/defs.php");
require_once("./motores/interno/MasterCat.class.php");
$catalogo = new Catalogo('migrante', "P", null, "form-control"); //Sirve para crear el arreglo de la tabla principal
?>
<!DOCTYPE html>
<html>
<head>
<title><?= NOMBRE_APLICACION ?> -- Bienvenido, <?= $_SESSION['Usuario']['nombre']; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<meta charset="utf-8">
<!-- SEO Meta Tags -->
<meta name="description" content="Descripción" />
<meta name="keywords" content="Palabras Clave" />
<meta name="author" content="CarpathiaLab" />
<!-- Mobile Specific Meta Tag -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<!-- Favicon Icon -->
<script src="js/jquery.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!--CSS-->
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/personalizado.css" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"/>
<link rel="stylesheet" href="css/jquery-ui.min.css" />
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?&libraries=places&language=es&key=AIzaSyBWe3yPvnEk__zqa04SH0UlDqsjGG_TBWs"></script>
<?= $catalogo->getScripts(); ?>
<script type="text/javascript">
function agregaRegistro() {
$.ajax({
url: "motores/hanumat.php",
type: "POST",
dataType: "JSON",
data: $("#frmAlta").serialize()
}).done(function (r) {
if (r.error == '0') {
window.location.href = r.destino;
}else {
$("#mensaje").html("<div class='alert alert-danger'> Error al guardar </div>");
setTimeout(function(){
$("#mensaje").html('');
}, 3000);
}
});
}
function doLogout() {
$.ajax({
url : "motores/hanumat.php",
type : "POST",
dataType : "JSON",
data : {
r : 's'
}
}).done(function(r) {
if (r.error == '0') {
window.location.reload();
}
});
//limpiaDers();
return false;
}
function inicia() {
edita(<?= $_SESSION['Usuario']['id'] ?>);
preparaMapa();
}
function preparaMapa() {
creaMapa_<?= $catalogo->getPrefijo() ?>();
creaPunto_<?= $catalogo->getPrefijo() ?>();
}
</script>
</head>
<body onload="inicia()">
<header>
<nav id="herramientas" class="navbar navbar-toggleable-md" style="background-color: rgba(50, 47, 47, 0.73); height:120px;">
<?= dameMenuMigrante(); ?>
</nav>
</header>
<!-- Intro Section -->
<section class="intro" style="background-image: url(img/fondo2.jpg); min-height: 60%;"></section>
</section>
<section style="position: absolute; z-index:1; min-width:100%;">
<div class="container" style=" margin-top:30px;">
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="row rounded fondo-gris1">
<div class=" rounded" style="width: 100%;background-color: rgba(50, 47, 47, 0.73); margin:8px;">
<div class="col-md-12 col-sm-12" style="margin-top:40px;">
<h3 style="color:#eaa704;">Perfil de usuario</h3>
</div>
</div>
</div>
<div class="row">
<div class="fondo-gris1 rounded col-md-12">
<div class="oferta rounded">
<form id="frmAlta" style="padding: 12px;">
<table>
<?= $catalogo->comoTabla(); ?>
</table>
<input type="hidden" id="ae" name="ae" />
<input type="hidden" id="r" name="r" value="landing.php" />
<a href="#" onclick="agregaRegistro()" class="btn btn-success">¡Guardar cambios!</a>
<a href="baja.php" class="btn btn-error">Borrar mi cuenta</a>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<footer class="text-center fixed-bottom" style="background-color: rgba(50, 47, 47, 0.73); height: 30px;">
<p>©Datametrix 2018</p>
</footer>
<script src="js/popper.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/plugins/jquery.magnific-popup.min.js"></script>
</body>
</html>