-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdependencias.php
More file actions
189 lines (186 loc) · 7.11 KB
/
Copy pathdependencias.php
File metadata and controls
189 lines (186 loc) · 7.11 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
<?php
require_once("./motores/interno/defs.php");
require_once("./motores/interno/conexion.php");
require_once("./motores/interno/formatos.php");
session_start();
$hayUsuario = (isset($_SESSION['Usuario']) && !($_SESSION['Usuario']['rol'] == 't' || $_SESSION['Usuario']['rol'] == 'n'));
$dbcon = conectaDB();
?>
<!DOCTYPE html>
<html>
<head>
<title><?= NOMBRE_APLICACION ?></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>
<!--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">
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 firmado(event){
//alert(event.keyCode);
if(event == undefined || event.keyCode == 13){
$.ajax({
url : './motores/hanumat.php',
type : 'post',
dataType : 'JSON',
data : {
r : 'l',
usr : $("#usuario").val(),
pwd : $("#pwd").val()
}
}).done(function(r) {
if (r.error == '0') {
window.location.href = "./" + r.pagina;
} else {
console.log(r);
$("#mensaje").html("<div class='alert alert-danger' style='background-color: #e54343;color: #fff;'><strong>"+r.errmsg+" intente nuevamente</strong></div>");
setTimeout(function(){
$("#mensaje").html('');
}, 4000);
}
});
return false;
}
}
</script>
</head>
<body class="">
<header>
<nav id="herramientas" class="navbar navbar-toggleable-md" style="background-color: rgba(50, 47, 47, 0.73); height:120px;">
<!--<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#opciones" aria-controls="opciones" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="#"><img src="img/logo-small.png" alt="logo"></a>
<div id="opciones" class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="nav-item"><a class="nav-link" href="registro.php">REGISTRARSE</a></li>
<li class="nav-item"><a class="nav-link" href="#" data-toggle="modal" data-target="#firmado">INICIAR SESIÓN</a></li>
</ul>
</div>-->
<?= ($hayUsuario ? dameMenuMigrante() : dameMenuGeneral()); ?>
</nav>
</header>
<!-- Intro Section -->
<section class="intro" style="background-image: url(img/fondo2.jpg); min-height: 60%;"></section>
</section>
<!-- Intro Section End -->
<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;">Directorio de dependencias</h3>
</div>
</div>
</div>
<div class="row" >
<div class="col-md-12 col-sm-12 mt-2 ">
<?php
$qry = "select * from vc_directorio;";
$rs = $dbcon->query($qry);
$campos = $rs->fetch_fields();
while ($fila = $rs->fetch_assoc()) {
//$largoOfer = (strlen($fila[1]) > 10 ? "" : "col-md-6 col-sm-12 col-xs-12");
echo("<div class='fondo-gris1 rounded col-md-12'>
<div id='oferta rounded' class='oferta'>
<h5 class='text-center mt-4'>{$fila['Nombre']}</h5><div class='row'>");
foreach ($campos as $cmp) {
if ($cmp->name != 'Nombre')
echo("<p class='col-md-3'>$cmp->name: <strong>{$fila[$cmp->name]}</strong></p>");
}
echo("</div></div></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>
<!--Modal (Signin/Signup Page)-->
<div class="modal fade" id="firmado">
<div class="modal-dialog">
<div class="container">
<div class="modal-form">
<div class="tab-content">
<!-- Sign in form -->
<form class="tab-pane transition scale fade in active" id="signin-form" autocomplete="off" onkeypress="firmado(event)">
<input type="hidden" value="l" name="r" />
<center><img src="img/logo-big.png" alt="" height="100%" width="100">
<h3 class="modal-title">Iniciar Sesión</h3>
</center>
<div class="form-group space-top-2x">
<label for="usuario" class="sr-only">Usuario</label>
<input type="email" class="form-control" id="usuario" placeholder="Usuario" readonly onfocus="$(this).removeAttr('readonly');" required>
<span class="error-label"></span>
<span class="valid-label"></span>
</div>
<div class="form-group">
<label for="password" class="sr-only">Contraseña</label>
<input type="password" class="form-control" id="pwd" placeholder="Contraseña" readonly onfocus="$(this).removeAttr('readonly');" required>
<a class="helper-link" href="#">Se te olvidó tu contraseña?</a>
<span class="error-label"></span>
<span class="valid-label"></span>
</div>
<label class="checkbox">
<input type="checkbox">
Recuérdame </label>
<div class="space-top-2x clearfix">
<button type="button" class="btn-round btn-ghost btn-danger pull-left" data-dismiss="modal">
<i class="flaticon-cross37"></i>
</button>
<button type="button" value="enviar" onclick="firmado(undefined)" class="btn-round btn-ghost btn-success pull-right">
<i class="flaticon-correct7"></i>
</button>
</div>
</form>
</div>
<!-- Hidden real nav tabs -->
<ul class="nav-tabs hidden">
<li id="form-2">
<a href="#signin-form" data-toggle="tab">Entrar</a>
</li>
</ul>
</div>
</div>
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- Footer -->
<!-- Javascript (jQuery) Libraries and Plugins -->
<script src="js/popper.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>