landing.html
9.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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SIGEMWEB - Dashboard</title>
<!-- Google Font: Source Sans Pro -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/admin-lte@3.2/dist/css/adminlte.min.css">
<style>
.content-wrapper { padding: 0; margin-left: 250px; height: calc(100vh - 57px); overflow: hidden; }
iframe#main-iframe { width: 100%; height: 100%; border: none; }
.brand-link { background-color: #0056b3 !important; color: white !important; font-weight: bold;}
.main-header { background-color: #006ddb !important; border-bottom: none; }
.navbar-light .navbar-nav .nav-link { color: white; font-weight: 600;}
/* Treeview in popup */
.modal-treeview ul { list-style-type: none; padding-left: 20px; }
.modal-treeview li { margin-bottom: 5px; cursor: default;}
.modal-treeview li span { font-size: 14px; font-weight: 500; }
.modal-treeview li span.clickable:hover { color: #0056b3; cursor: pointer; font-weight: bold; }
</style>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-light">
<!-- Left navbar links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
</li>
<li class="nav-item d-none d-sm-inline-block">
<span class="nav-link" style="color: white; font-size: 18px; margin-left:10px;">Municipalidad de <span id="nav-entidad-text" style="font-weight: 800;">...</span> <span style="font-size: 14px; font-weight: 300;">¡Emergente y Sostenible!</span></span>
</li>
</ul>
<!-- Right navbar links -->
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
<a class="nav-link" data-toggle="dropdown" href="#" style="color: white;">
<i class="far fa-user mr-2"></i> <span id="nav-user-text">Cargando...</span>
</a>
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
<a href="#" class="dropdown-item" onclick="cerrarSesion()">
<i class="fas fa-sign-out-alt mr-2 text-danger"></i> Cerrar Sesión
</a>
</div>
</li>
</ul>
</nav>
<!-- /.navbar -->
<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="#" class="brand-link text-center mb-2">
<span class="brand-text"><b>SIGEM</b>WEB</span>
</a>
<!-- Sidebar Menu -->
<nav class="mt-2">
<ul class="nav nav-pills nav-sidebar flex-column text-sm" data-widget="treeview" role="menu" data-accordion="false">
<li class="nav-item">
<a href="#" class="nav-link" onclick="loadContent('/gis-geoserver/widgets')">
<i class="nav-icon fas fa-tachometer-alt"></i>
<p>Dashboard <span class="right badge badge-primary">New</span></p>
</a>
</li>
<!-- Legacy Tree -->
<li class="nav-item menu-open">
<a href="#" class="nav-link active" style="background-color: #343a40;">
<i class="nav-icon fas fa-chart-line"></i>
<p>
Control de Gestión
<i class="right fas fa-angle-left"></i>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item menu-open">
<a href="#" class="nav-link">
<i class="far fa-dot-circle nav-icon"></i>
<p>Mapas <i class="right fas fa-angle-left"></i></p>
</a>
<ul class="nav nav-treeview" style="margin-left: 10px;">
<li class="nav-item menu-open">
<a href="#" class="nav-link">
<i class="fas fa-map nav-icon text-info"></i>
<p>Tributarios <i class="right fas fa-angle-left"></i></p>
</a>
<ul class="nav nav-treeview" style="margin-left: 10px;">
<li class="nav-item">
<a href="#" class="nav-link" data-toggle="modal" data-target="#modalMorosidad">
<i class="fas fa-layer-group nav-icon text-warning"></i>
<p>Mapa Morosidad/Pago</p>
</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<!-- Dummy Options -->
<li class="nav-header">OTRAS OPCIONES</li>
<li class="nav-item">
<a href="#" class="nav-link" onclick="notImplemented()">
<i class="nav-icon fas fa-file-invoice-dollar text-muted"></i>
<p>Liquidaciones</p>
</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link" onclick="notImplemented()">
<i class="nav-icon fas fa-users text-muted"></i>
<p>Contribuyentes</p>
</a>
</li>
</ul>
</nav>
<!-- /.sidebar-menu -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<iframe id="main-iframe" src="/gis-geoserver/widgets"></iframe>
</div>
<!-- Main Footer -->
<footer class="main-footer" style="padding: 5px; font-size: 12px;">
<strong>Sistema de Información Geográfica Municipal.</strong>
Todos los derechos reservados.
</footer>
</div>
<!-- ./wrapper -->
<!-- Modal Pop-up para Selección de Mapa (Exactamente como el legado) -->
<div class="modal fade" id="modalMorosidad" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-sm" role="document" style="margin-top: 15vh;">
<div class="modal-content shadow-lg" style="border: 1px solid #17a2b8;">
<div class="modal-header bg-info" style="padding: 10px;">
<h6 class="modal-title" style="font-weight: bold;"><i class="fas fa-filter"></i> Selección Capas Geo</h6>
<button type="button" class="close text-white" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body modal-treeview">
<ul>
<li><i class="fas fa-minus-square mr-1 text-secondary"></i> <span>MAPA DE MOROSIDAD</span>
<ul>
<li><i class="fas fa-plus-square mr-1 text-secondary"></i> <span>IMPUESTOS ADEUDADOS</span>
<ul>
<li><i class="fas fa-plus mr-1 text-muted"></i> <span class="clickable" onclick="notImplemented()">Impuesto Inmobiliario</span></li>
<li><i class="fas fa-plus mr-1 text-muted"></i> <span class="clickable" onclick="notImplemented()">Patente Comercial</span></li>
<li><i class="fas fa-plus-square mr-1 text-secondary"></i> <span>Todos</span>
<ul>
<li><i class="far fa-window-restore mr-1 text-muted"></i> <span class="clickable" onclick="notImplemented()">POR TOTAL</span></li>
<li><i class="far fa-clock mr-1 text-muted"></i> <span class="text-primary font-weight-bold clickable" onclick="loadMap()">ULTIMO PAGO / TODOS</span></li>
</ul>
</li>
</ul>
</li>
<li><i class="fas fa-plus-square mr-1 text-muted"></i> <span class="clickable" onclick="notImplemented()">IMPUESTOS PAGADOS</span></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
<!-- jQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="https://cdn.jsdelivr.net/npm/admin-lte@3.2/dist/js/adminlte.min.js"></script>
<script>
// Recuperar datos de sesión
const token = localStorage.getItem('jwt');
const userName = localStorage.getItem('user_name');
const entidad = localStorage.getItem('entidad');
if (!token) {
window.location.href = "/gis-geoserver/login";
}
document.getElementById('nav-user-text').innerText = userName || 'Operador Local';
document.getElementById('nav-entidad-text').innerText = entidad || 'N/D';
function notImplemented() {
alert("OPCIÓN NO IMPLEMENTADA");
}
function loadContent(url) {
document.getElementById('main-iframe').src = url;
}
function loadMap() {
// Cierra el modal de forma programática usando jQuery de Bootstrap
$('#modalMorosidad').modal('hide');
// Redirige el iframe central hacia nuestro impecable mapas.html
loadContent('/gis-geoserver/mapas');
}
function cerrarSesion() {
localStorage.clear();
window.location.href = "/gis-geoserver/login";
}
</script>
</body>
</html>