Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Asistencia
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Billy Larru
Asistencia
Commits
219df09c
Commit
219df09c
authored
Aug 13, 2018
by
Billy Larru
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configurando para tener jsp dentro de directorios
parent
39731dbb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
179 additions
and
144 deletions
+179
-144
RequestsFilter.java
src/main/java/asistencia/filters/RequestsFilter.java
+0
-0
GeneralUtils.java
src/main/java/asistencia/utilities/GeneralUtils.java
+22
-5
general.js
src/main/webapp/js/general.js
+1
-1
navbar.js
src/main/webapp/js/pages/navbar.js
+1
-1
proyectar_asistencia_policias.js
src/main/webapp/js/pages/proyectar_asistencia_policias.js
+14
-0
sidebar.js
src/main/webapp/js/pages/sidebar.js
+2
-2
__template.jsp
src/main/webapp/vistas/__template.jsp
+8
-8
controlAsistenciaDocentes.jsp
...main/webapp/vistas/docentes/controlAsistenciaDocentes.jsp
+11
-10
error.jsp
src/main/webapp/vistas/error/error.jsp
+3
-3
index.jsp
src/main/webapp/vistas/index.jsp
+0
-0
main.jsp
src/main/webapp/vistas/main.jsp
+8
-10
cierreAsistenciaPolicias.jsp
src/main/webapp/vistas/policias/cierreAsistenciaPolicias.jsp
+7
-7
comparativoProyeccionPolicias.jsp
.../webapp/vistas/policias/comparativoProyeccionPolicias.jsp
+10
-10
controlAsistenciaPolicias.jsp
...main/webapp/vistas/policias/controlAsistenciaPolicias.jsp
+11
-10
crearRolPolicia.jsp
src/main/webapp/vistas/policias/crearRolPolicia.jsp
+14
-14
horarioPolicias.jsp
src/main/webapp/vistas/policias/horarioPolicias.jsp
+7
-7
mantenimientoSede.jsp
src/main/webapp/vistas/policias/mantenimientoSede.jsp
+4
-4
montoPolicias.jsp
src/main/webapp/vistas/policias/montoPolicias.jsp
+6
-6
proyectarAsistenciaPolicias.jsp
...in/webapp/vistas/policias/proyectarAsistenciaPolicias.jsp
+12
-12
footer-body.jsp
src/main/webapp/vistas/templates/footer-body.jsp
+14
-13
header-body.jsp
src/main/webapp/vistas/templates/header-body.jsp
+2
-4
header.jsp
src/main/webapp/vistas/templates/header.jsp
+17
-13
navbar.jsp
src/main/webapp/vistas/templates/navbar.jsp
+2
-2
sidebar.jsp
src/main/webapp/vistas/templates/sidebar.jsp
+1
-1
validar.jsp
src/main/webapp/vistas/templates/validar.jsp
+2
-1
No files found.
src/main/java/asistencia/filters/RequestsFilter.java
View file @
219df09c
This diff is collapsed.
Click to expand it.
src/main/java/asistencia/utilities/GeneralUtils.java
View file @
219df09c
...
...
@@ -5,22 +5,39 @@
*/
package
asistencia
.
utilities
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
/**
*
* @author sistem08user
*/
public
class
GeneralUtils
{
public
static
int
obtenerIndex
(
String
ruta
){
public
static
int
obtenerIndex
(
String
ruta
)
{
char
[]
c
=
ruta
.
toCharArray
();
int
salida
=
0
;
for
(
int
i
=
c
.
length
-
1
;
i
>=
0
;
i
--)
{
String
help
=
c
[
i
]
+
""
;
if
(!
help
.
equals
(
"/"
))
{
for
(
int
i
=
c
.
length
-
1
;
i
>=
0
;
i
--)
{
String
help
=
c
[
i
]
+
""
;
if
(!
help
.
equals
(
"/"
))
{
salida
=
i
;
}
else
{
}
else
{
break
;
}
}
return
salida
;
}
public
static
String
obtenerURIvista
(
String
ruta
)
{
String
rutaVista
=
""
;
String
patron
=
".*/vistas/(.*)"
;
Pattern
pattern
=
Pattern
.
compile
(
patron
);
Matcher
matcher
=
pattern
.
matcher
(
ruta
);
if
(
matcher
.
find
())
{
rutaVista
=
matcher
.
group
(
1
);
}
System
.
out
.
println
(
rutaVista
);
return
rutaVista
;
}
}
src/main/webapp/js/general.js
View file @
219df09c
...
...
@@ -148,7 +148,7 @@ let block = () => {
let
logOut
=
()
=>
{
document
.
querySelector
(
'#logOut'
).
addEventListener
(
'click'
,
(
e
)
=>
{
window
.
location
.
href
=
'../vistas/logout'
;
window
.
location
.
href
=
`
${
contextPath
}
/vistas/logout`
;
});
};
...
...
src/main/webapp/js/pages/navbar.js
View file @
219df09c
...
...
@@ -37,7 +37,7 @@ let DOMNav = {
continue
;
}
html
+=
'<li><a target="_blank" href="../vistas/interceptar?p='
+
url
+
'vistas/redireccionarServlet&cp='
+
cp
+
'" class="redirect" > '
//<img src="assets/images/flags/de.png" alt="">
html
+=
`<li><a target="_blank" href="
${
contextPath
}
vistas/interceptar?p=' + url + 'vistas/redireccionarServlet&cp=' + cp + '" class="redirect" > `
//<img src="assets/images/flags/de.png" alt="">
+
/*'<i class="glyphicon glyphicon-arrow-right"></i>'+*/
proyectos
[
i
].
nombre
+
'</a></li>'
;
}
document
.
getElementById
(
"proyectos"
).
innerHTML
=
html
;
...
...
src/main/webapp/js/pages/proyectar_asistencia_policias.js
View file @
219df09c
...
...
@@ -8,6 +8,20 @@ function initializeData() {
"fecha_entrada"
:
"16/06/2018"
,
"marcacion_entrada"
:
"06:59"
,
"marcacion_salida"
:
"00:00"
,
"fecha_salida"
:
"16/06/2018"
});
data
.
push
({
"dni"
:
"12345678"
,
"nombres"
:
"DELGADO CHOZO JUAN FRANCISCO"
,
"sede"
:
"CANTA CALLAO 2"
,
"horario"
:
"07:00 - 07:00"
,
"tipo_horario"
:
"AMANECIDA 24h"
,
"fecha_entrada"
:
"17/06/2018"
,
"marcacion_entrada"
:
"06:59"
,
"marcacion_salida"
:
"00:00"
,
"fecha_salida"
:
"18/06/2018"
});
data
.
push
({
"dni"
:
"12345678"
,
"nombres"
:
"DELGADO CHOZO JUAN FRANCISCO"
,
"sede"
:
"CANTA CALLAO 2"
,
"horario"
:
"07:00 - 07:00"
,
"tipo_horario"
:
"AMANECIDA 24h"
,
"fecha_entrada"
:
"17/06/2018"
,
"marcacion_entrada"
:
"06:59"
,
"marcacion_salida"
:
"00:00"
,
"fecha_salida"
:
"18/06/2018"
});
data
.
push
({
"dni"
:
"12345678"
,
"nombres"
:
"DELGADO CHOZO JUAN FRANCISCO"
,
"sede"
:
"CANTA CALLAO 2"
,
"horario"
:
"07:00 - 07:00"
,
"tipo_horario"
:
"AMANECIDA 24h"
,
"fecha_entrada"
:
"17/06/2018"
,
"marcacion_entrada"
:
"06:59"
,
"marcacion_salida"
:
"00:00"
,
"fecha_salida"
:
"18/06/2018"
});
data
.
push
({
"dni"
:
"12345678"
,
"nombres"
:
"DELGADO CHOZO JUAN FRANCISCO"
,
"sede"
:
"CANTA CALLAO 2"
,
"horario"
:
"07:00 - 07:00"
,
"tipo_horario"
:
"AMANECIDA 24h"
,
"fecha_entrada"
:
"17/06/2018"
,
"marcacion_entrada"
:
"06:59"
,
"marcacion_salida"
:
"00:00"
,
"fecha_salida"
:
"18/06/2018"
});
data
.
push
({
"dni"
:
"12345678"
,
"nombres"
:
"DELGADO CHOZO JUAN FRANCISCO"
,
"sede"
:
"CANTA CALLAO 2"
,
"horario"
:
"07:00 - 07:00"
,
"tipo_horario"
:
"AMANECIDA 24h"
,
"fecha_entrada"
:
"17/06/2018"
,
"marcacion_entrada"
:
"06:59"
,
"marcacion_salida"
:
"00:00"
,
"fecha_salida"
:
"18/06/2018"
});
data
.
push
({
"dni"
:
"12345678"
,
"nombres"
:
"DELGADO CHOZO JUAN FRANCISCO"
,
"sede"
:
"CANTA CALLAO 2"
,
"horario"
:
"07:00 - 07:00"
,
"tipo_horario"
:
"AMANECIDA 24h"
,
"fecha_entrada"
:
"17/06/2018"
,
"marcacion_entrada"
:
"06:59"
,
"marcacion_salida"
:
"00:00"
,
"fecha_salida"
:
"18/06/2018"
});
data
.
push
({
"dni"
:
"12345678"
,
"nombres"
:
"DELGADO CHOZO JUAN FRANCISCO"
,
"sede"
:
"CANTA CALLAO 2"
,
"horario"
:
"07:00 - 07:00"
,
"tipo_horario"
:
"AMANECIDA 24h"
,
"fecha_entrada"
:
"17/06/2018"
,
"marcacion_entrada"
:
"06:59"
,
"marcacion_salida"
:
"00:00"
,
"fecha_salida"
:
"18/06/2018"
});
data
.
push
({
"dni"
:
"12345678"
,
"nombres"
:
"DELGADO CHOZO JUAN FRANCISCO"
,
"sede"
:
"CANTA CALLAO 2"
,
"horario"
:
"07:00 - 07:00"
,
"tipo_horario"
:
"AMANECIDA 24h"
,
"fecha_entrada"
:
"17/06/2018"
,
"marcacion_entrada"
:
"06:59"
,
"marcacion_salida"
:
"00:00"
,
"fecha_salida"
:
"18/06/2018"
});
sedes
=
[
"LINCE"
,
"MONTESORI"
,
"AREQUIPA"
,
"ARENALES"
,
"CUBA"
,
"COCALENOS"
,
"BELISARIO"
,
"BERTONELLI"
,
"VILLA EL SALVADOR"
];
...
...
src/main/webapp/js/pages/sidebar.js
View file @
219df09c
...
...
@@ -47,12 +47,12 @@ const DOMSideBar = {
}
html
+=
`</li></ul>`
;
}
else
{
html
+=
`<li class="
${
active
}
"><a href="
${
categoria
[
k
].
url
}
"><span>
${
primeraLetraMayuscula
(
categoria
[
k
].
nombre
)}
</span></a></li>`
;
html
+=
`<li class="
${
active
}
"><a href="
${
c
ontextPath
}
vistas/
${
c
ategoria
[
k
].
url
}
"><span>
${
primeraLetraMayuscula
(
categoria
[
k
].
nombre
)}
</span></a></li>`
;
}
}
html
+=
`</li></ul>`
;
}
else
{
html
+=
`<li class="
${
active
}
"><a href="
${
modulo
[
j
].
url
}
"><i class="fa
${
modulo
[
j
].
ico
}
fa-lg"></i><span>
${
primeraLetraMayuscula
(
modulo
[
j
].
nombre
)}
</span></a></li>`
;
html
+=
`<li class="
${
active
}
"><a href="
${
contextPath
}
vistas/
${
modulo
[
j
].
url
}
"><i class="fa
${
modulo
[
j
].
ico
}
fa-lg"></i><span>
${
primeraLetraMayuscula
(
modulo
[
j
].
nombre
)}
</span></a></li>`
;
}
}
}
...
...
src/main/webapp/vistas/__template.jsp
View file @
219df09c
<
%@
include
file=
"templates/validar.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/validar.jsp"
/
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<html>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<!--template-core-->
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--css de la pagina-->
<!--css-->
</head>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<!-- content -->
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<!-- / content -->
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<!--<script src="${pageContext.request.contextPath}/plantilla/assets/js/plugins/tables/datatables/datatables.min.js" type="text/javascript"></script>-->
<!--js-->
</body>
...
...
src/main/webapp/vistas/controlAsistenciaDocentes.jsp
→
src/main/webapp/vistas/
docentes/
controlAsistenciaDocentes.jsp
View file @
219df09c
<
%@
include
file=
"templates/validar.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/validar.jsp"
/
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<html>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--css de la pagina-->
<!--<link href="../css/lib/bootstrap-select/bootstrap-select.min.css" rel="stylesheet" type="text/css"/>-->
<!--css-->
</head>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<div
class=
"col-md-6 col-md-offset-3"
>
...
...
@@ -253,14 +253,14 @@
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<script
type=
"text/javascript"
src=
"https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js
"
></script>
<script
type=
"text/javascript"
src=
"https://cdn.datatables.net/1.10.16/js/dataTables.bootstrap.min.js
"
></script>
<script
src=
"
..
/js/lib/bootstrap-select/bootstrap-select.min.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/pickers/daterangepicker.js
"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js
"
></script>
<script
src=
"
..
/js/pages/controlAsistenciaDocentes.js"
type=
"text/javascript"
></script>
<script
src=
"https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"
type=
"text/javascript
"
></script>
<script
src=
"https://cdn.datatables.net/1.10.16/js/dataTables.bootstrap.min.js"
type=
"text/javascript
"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/lib/bootstrap-select/bootstrap-select.min.js"
type=
"text/javascript"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/pickers/daterangepicker.js"
type=
"text/javascript
"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js"
type=
"text/javascript
"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/pages/controlAsistenciaDocentes.js"
type=
"text/javascript"
></script>
<!--js-->
</body>
</html>
\ No newline at end of file
src/main/webapp/vistas/error/error.jsp
View file @
219df09c
...
...
@@ -6,8 +6,8 @@
<meta
charset=
"utf-8"
>
<title>
Trismegisto Asistencia
</title>
<link
rel=
"stylesheet"
href=
"https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"
>
<link
href=
"
..
/css/pages/error.css"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"
rel=
"stylesheet"
/
>
<link
href=
"
${pageContext.request.contextPath}
/css/pages/error.css"
rel=
"stylesheet"
type=
"text/css"
/>
<style>
@import
"https://fonts.googleapis.com/css?family=Inconsolata"
;
html
{
...
...
@@ -132,7 +132,7 @@
%
>
</p>
<p
class=
"output"
>
Haga click aquí para
<a
href=
"
..
/vistas/index.jsp"
>
volver a la página principal
</a></p>
<p
class=
"output"
>
Haga click aquí para
<a
href=
"
${pageContext.request.contextPath}
/vistas/index.jsp"
>
volver a la página principal
</a></p>
</div>
</body>
...
...
src/main/webapp/vistas/index.jsp
View file @
219df09c
This diff is collapsed.
Click to expand it.
src/main/webapp/vistas/main.jsp
View file @
219df09c
<
%@
include
file=
"templates/validar.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/validar.jsp"
/
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--css-->
...
...
@@ -11,24 +11,22 @@
</head>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<jsp:include
page=
"/vistas/templates/footer-body.jsp"
/>
<!--js-->
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/forms/selects/bootstrap_select.min.js"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/forms/selects/bootstrap_select.min.js"
type=
"text/javascript"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/pages/form_bootstrap_select.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/pages/form_bootstrap_select.js"
></script>
<script>
((
window
)
=>
{
window
.
history
.
replaceState
({},
''
,
'
main.jsp'
);
window
.
history
.
replaceState
({},
''
,
contextPath
+
'vistas/
main.jsp'
);
})(
window
);
</script>
</body>
...
...
src/main/webapp/vistas/cierreAsistenciaPolicias.jsp
→
src/main/webapp/vistas/
policias/
cierreAsistenciaPolicias.jsp
View file @
219df09c
<
%@
include
file=
"templates/validar.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/validar.jsp"
/
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<html>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<!--template-core-->
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--css de la pagina-->
<!--css-->
</head>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<!-- content -->
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<!-- / content -->
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<!--js-->
...
...
src/main/webapp/vistas/comparativoProyeccionPolicias.jsp
→
src/main/webapp/vistas/
policias/
comparativoProyeccionPolicias.jsp
View file @
219df09c
<
%@
include
file=
"templates/validar.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/validar.jsp"
/
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<html>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--css de la pagina-->
<!--css-->
</head>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<div
class=
"col-md-4 col-md-offset-4"
>
<div
class=
"panel panel-primary"
>
...
...
@@ -100,14 +100,14 @@
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<script
src=
"
..
/plantilla/assets/js/plugins/tables/datatables/datatables.min.js"
type=
"text/javascript"
></script>
<script
src=
"
..
/plantilla/assets/js/plugins/ui/moment/moment.min.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/pickers/daterangepicker.js
"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js
"
></script>
<script
src=
"
..
/js/lib/lodash.js"
type=
"text/javascript"
></script>
<script
src=
"
..
/js/pages/comparativo_proyeccion_policias.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/plantilla/assets/js/plugins/tables/datatables/datatables.min.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/plantilla/assets/js/plugins/ui/moment/moment.min.js"
type=
"text/javascript"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/pickers/daterangepicker.js"
type=
"text/javascript
"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js"
type=
"text/javascript
"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/lib/lodash.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/pages/comparativo_proyeccion_policias.js"
type=
"text/javascript"
></script>
<!--js-->
</body>
...
...
src/main/webapp/vistas/controlAsistenciaPolicias.jsp
→
src/main/webapp/vistas/
policias/
controlAsistenciaPolicias.jsp
View file @
219df09c
<
%@
include
file=
"templates/validar.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/validar.jsp"
/
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<html>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--css de la pagina-->
<!--css-->
</head>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<div
class=
"col-md-6 col-md-offset-3"
>
<div
class=
"panel panel-primary"
>
...
...
@@ -372,16 +372,16 @@
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<script
type=
"text/javascript"
src=
"https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js
"
></script>
<script
type=
"text/javascript"
src=
"https://cdn.datatables.net/1.10.16/js/dataTables.bootstrap.min.js
"
></script>
<script
src=
"
..
/js/lib/bootstrap-select/bootstrap-select.min.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/pickers/daterangepicker.js
"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js
"
></script>
<script
src=
"
..
/js/pages/control_asistencia_policias.js"
type=
"text/javascript"
></script>
<script
src=
"https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"
type=
"text/javascript
"
></script>
<script
src=
"https://cdn.datatables.net/1.10.16/js/dataTables.bootstrap.min.js"
type=
"text/javascript
"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/lib/bootstrap-select/bootstrap-select.min.js"
type=
"text/javascript"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/pickers/daterangepicker.js"
type=
"text/javascript
"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js"
type=
"text/javascript
"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/pages/control_asistencia_policias.js"
type=
"text/javascript"
></script>
<!--js-->
</body>
</html>
\ No newline at end of file
src/main/webapp/vistas/crearRolPolicia.jsp
→
src/main/webapp/vistas/
policias/
crearRolPolicia.jsp
View file @
219df09c
<
%@
include
file=
"templates/validar.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/validar.jsp"
/
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<html>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--css de la pagina-->
<link
href=
"
..
/plantilla/assets/css/extras/animate.min.css"
rel=
"stylesheet"
type=
"text/css"
>
<link
href=
"
${pageContext.request.contextPath}
/plantilla/assets/css/extras/animate.min.css"
rel=
"stylesheet"
type=
"text/css"
>
<!--css-->
</head>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<div
class=
"col-md-5 col-md-offset-3"
>
<div
class=
"panel panel-primary"
>
...
...
@@ -899,22 +899,22 @@
</div>
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/core/libraries/jquery_ui/interactions.min.js
"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js
"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/core/libraries/jquery_ui/interactions.min.js"
type=
"text/javascript
"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js"
type=
"text/javascript
"
></script>
<script
src=
"
..
/js/lib/bootstrap-select/bootstrap-select.min.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/forms/selects/select2.min.js
"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/lib/bootstrap-select/bootstrap-select.min.js"
type=
"text/javascript"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/forms/selects/select2.min.js"
type=
"text/javascript
"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/ui/moment/moment.min.js
"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/pickers/daterangepicker.js
"
></script>
<script
src=
"
..
/js/lib/jquery-ui.multidatespicker.js"
type=
"text/javascript"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/ui/moment/moment.min.js"
type=
"text/javascript
"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/pickers/daterangepicker.js"
type=
"text/javascript
"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/lib/jquery-ui.multidatespicker.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/extensions/contextmenu.js
"
></script>
<script
src=
"
..
/js/pages/crearRolPolicia.js"
type=
"text/javascript"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/extensions/contextmenu.js"
type=
"text/javascript
"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/pages/crearRolPolicia.js"
type=
"text/javascript"
></script>
<!--js-->
...
...
src/main/webapp/vistas/horarioPolicias.jsp
→
src/main/webapp/vistas/
policias/
horarioPolicias.jsp
View file @
219df09c
<
%@
include
file=
"templates/validar.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/validar.jsp"
/
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<html>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<!--template-core-->
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--css de la pagina-->
<!--css-->
</head>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<!-- content -->
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<!-- / content -->
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<!--js-->
...
...
src/main/webapp/vistas/mantenimientoSede.jsp
→
src/main/webapp/vistas/
policias/
mantenimientoSede.jsp
View file @
219df09c
<
%@
include
file=
"templates/validar.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/validar.jsp"
/
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<html>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--css de la pagina-->
<!--css-->
</head>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<div
class=
"col-md-4 col-md-offset-4"
>
...
...
@@ -172,7 +172,7 @@
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<!--js-->
...
...
src/main/webapp/vistas/montoPolicias.jsp
→
src/main/webapp/vistas/
policias/
montoPolicias.jsp
View file @
219df09c
<
%@
include
file=
"templates/validar.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/validar.jsp"
/
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<html>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--css de la pagina-->
<!--css-->
</head>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<div
class=
"col-md-4 col-md-offset-4"
>
<div
class=
"panel panel-primary"
>
...
...
@@ -307,10 +307,10 @@
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<script
src=
"
..
/plantilla/assets/js/plugins/tables/datatables/datatables.min.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/forms/styling/switch.min.js
"
></script>
<script
src=
"
${pageContext.request.contextPath}
/plantilla/assets/js/plugins/tables/datatables/datatables.min.js"
type=
"text/javascript"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/forms/styling/switch.min.js"
type=
"text/javascript
"
></script>
<script>
$
(
".styled, .multiselect-container input"
).
uniform
({
radioClass
:
'choice'
...
...
src/main/webapp/vistas/proyectarAsistenciaPolicias.jsp
→
src/main/webapp/vistas/p
olicias/p
royectarAsistenciaPolicias.jsp
View file @
219df09c
<
%@
include
file=
"templates/validar.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/validar.jsp"
/
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<html>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--css de la pagina-->
<!--css-->
</head>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<div
class=
"col-md-6 col-md-offset-3"
>
<div
class=
"panel panel-primary"
>
...
...
@@ -95,17 +95,17 @@
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<script
src=
"
..
/plantilla/assets/js/plugins/ui/moment/moment.min.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/pickers/daterangepicker.js
"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js"
></script>
<script
src=
"
..
/plantilla/assets/js/plugins/tables/datatables/datatables.min.js"
type=
"text/javascript"
></script>
<script
src=
"
..
/js/lib/dataTables.rowsGroup.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/tables/handsontable/handsontable.min.js"
></script>
<script
src=
"
..
/js/lib/jquery.inputmask.bundle.min.js"
type=
"text/javascript"
></script>
<script
src=
"
..
/js/pages/proyectar_asistencia_policias.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/plantilla/assets/js/plugins/ui/moment/moment.min.js"
type=
"text/javascript"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/pickers/daterangepicker.js"
type=
"text/javascript
"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/plantilla/assets/js/plugins/tables/datatables/datatables.min.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/lib/dataTables.rowsGroup.js"
type=
"text/javascript"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/tables/handsontable/handsontable.min.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/lib/jquery.inputmask.bundle.min.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/pages/proyectar_asistencia_policias.js"
type=
"text/javascript"
></script>
<!--js-->
</body>
...
...
src/main/webapp/vistas/templates/footer-body.jsp
View file @
219df09c
...
...
@@ -15,21 +15,22 @@
<!-- /page content -->
</div>
<!-- /page container -->
<!-- Core JS files -->
<script
type="text/javascript" src="../plantilla/assets/js/plugins/loaders/pace.min.js
"></script>
<script
type="text/javascript" src="../plantilla/assets/js/core/libraries/jquery.min.js"
></script>
<script src="
..
/js/lib/jquery.cookie.js" type="text/javascript"></script>
<script
type="text/javascript" src="../plantilla/assets/js/core/libraries/bootstrap.min.js"
></script>
<script
type="text/javascript" src="../plantilla/assets/js/plugins/loaders/blockui.min.js"
></script>
<script
type="text/javascript" src="../plantilla/assets/js/plugins/forms/styling/switchery.min.js
"></script>
<script
type="text/javascript" src="../plantilla/assets/js/plugins/forms/styling/uniform.min.js
"></script>
<script
src="${pageContext.request.contextPath}/plantilla/assets/js/plugins/loaders/pace.min.js" type="text/javascript
"></script>
<script
src="${pageContext.request.contextPath}/plantilla/assets/js/core/libraries/jquery.min.js" type="text/javascript"
></script>
<script src="
${pageContext.request.contextPath}
/js/lib/jquery.cookie.js" type="text/javascript"></script>
<script
src="${pageContext.request.contextPath}/plantilla/assets/js/core/libraries/bootstrap.min.js" type="text/javascript"
></script>
<script
src="${pageContext.request.contextPath}/plantilla/assets/js/plugins/loaders/blockui.min.js" type="text/javascript"
></script>
<script
src="${pageContext.request.contextPath}/plantilla/assets/js/plugins/forms/styling/switchery.min.js" type="text/javascript
"></script>
<script
src="${pageContext.request.contextPath}/plantilla/assets/js/plugins/forms/styling/uniform.min.js" type="text/javascript
"></script>
<!--<script type="text/javascript" src="../plantilla/assets/js/plugins/forms/selects/bootstrap_multiselect.js"></script>-->
<script
type="text/javascript" src="../plantilla/assets/js/core/app.js
"></script>
<script
src="${pageContext.request.contextPath}/plantilla/assets/js/core/app.js" type="text/javascript
"></script>
<!-- /core JS files -->
<!-- /Generales -->
<script src="../js/general.js" type="text/javascript"></script>
<script src="../js/pages/navbar.js" type="text/javascript"></script>
<script src="../js/pages/sidebar.js" type="text/javascript"></script>
\ No newline at end of file
<script src="${pageContext.request.contextPath}/js/general.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/pages/navbar.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/pages/sidebar.js" type="text/javascript"></script>
\ No newline at end of file
src/main/webapp/vistas/templates/header-body.jsp
View file @
219df09c
<%@include file="navbar.jsp" %>
<jsp:include page="navbar.jsp" />
<!-- Page container -->
<div class="page-container">
...
...
@@ -7,8 +6,7 @@
<!-- Page content -->
<div class="page-content">
<%@include file="sidebar.jsp" %>
<jsp:include page="sidebar.jsp" />
<!-- Main content -->
<div class="content-wrapper">
...
...
src/main/webapp/vistas/templates/header.jsp
View file @
219df09c
...
...
@@ -4,20 +4,23 @@
<title>Trismegisto Asistencia</title>
<!-- Global stylesheets -->
<link href="https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900" rel="stylesheet" type="text/css">
<link href="../plantilla/assets/css/icons/icomoon/styles.css" rel="stylesheet" type="text/css">
<link href="../plantilla/assets/css/icons/fontawesome/styles.min.css" rel="stylesheet" type="text/css">
<link href="../plantilla/assets/css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="../plantilla/assets/css/core.css" rel="stylesheet" type="text/css">
<link href="../plantilla/assets/css/components.css" rel="stylesheet" type="text/css">
<link href="../plantilla/assets/css/colors.css" rel="stylesheet" type="text/css">
<link href="../css/general.css" rel="stylesheet" type="text/css"/>
<link href="${pageContext.request.contextPath}/plantilla/assets/css/icons/icomoon/styles.css" rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath}/plantilla/assets/css/icons/fontawesome/styles.min.css" rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath}/plantilla/assets/css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath}/plantilla/assets/css/core.css" rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath}/plantilla/assets/css/components.css" rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath}/plantilla/assets/css/colors.css" rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath}/css/general.css" rel="stylesheet" type="text/css"/>
<!--<link href="${pageContext.request.contextPath}/num/num.css" rel="stylesheet" type="text/css"/>-->
<!-- /global stylesheets -->
<script src="
..
/js/lib/cookies.js" type="text/javascript"></script>
<script src="
${pageContext.request.contextPath}
/js/lib/cookies.js" type="text/javascript"></script>
<!--<script src="../js/pages/validate.js" type="text/javascript"></script>-->
<script>
var sidebar = <%=(String)request.getSession().getAttribute("menu")%>;
var nombreUsuario = "<%=(String)request.getSession().getAttribute("nombre")%>";
var rolesUsuario = "<%=(String)request.getSession().getAttribute("roles")%>";
var sidebar = <%=(String) request.getSession().getAttribute("menu")%>;
var nombreUsuario = "<%=(String) request.getSession().getAttribute("nombre")%>";
var rolesUsuario = "<%=(String) request.getSession().getAttribute("roles")%>";
var contextPath = "${pageContext.request.contextPath}/";
</script>
\ No newline at end of file
src/main/webapp/vistas/templates/navbar.jsp
View file @
219df09c
<!-- Main navbar -->
<div class="navbar navbar-default header-highlight">
<div class="navbar-header">
<a class="navbar-brand" href="
../vistas/main.jsp"><img src="..
/plantilla/assets/images/logo_light.png" alt=""></a>
<a class="navbar-brand" href="
${pageContext.request.contextPath}/vistas/main.jsp"><img src="${pageContext.request.contextPath}
/plantilla/assets/images/logo_light.png" alt=""></a>
<ul class="nav navbar-nav visible-xs-block">
<li><a data-toggle="collapse" data-target="#navbar-mobile"><i class="icon-tree5"></i></a></li>
...
...
@@ -17,7 +17,7 @@
<ul class="nav navbar-nav navbar-right">
<li class="dropdown language-switch">
<a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<img src="assets/images/flags/gb.png" class="position-left " alt="">
<img src="
${pageContext.request.contextPath}/plantilla/
assets/images/flags/gb.png" class="position-left " alt="">
Sistemas
<span class="caret"></span>
</a>
...
...
src/main/webapp/vistas/templates/sidebar.jsp
View file @
219df09c
...
...
@@ -5,7 +5,7 @@
<!-- User menu -->
<div class="sidebar-user">
<div class="category-content tp-sidebar-category-content">
<a href="main.jsp" class="media-left" style="padding-right: 0px;">
<a href="
${pageContext.request.contextPath}/
main.jsp" class="media-left" style="padding-right: 0px;">
<!--box-shadow: 0px 0px 13px 0px rgba(0,0,0,0.75);-->
<img alt="Avatar usuario" class="avatar" style=" border-radius: 50%; border:2px solid white;">
</a>
...
...
src/main/webapp/vistas/templates/validar.jsp
View file @
219df09c
...
...
@@ -6,6 +6,6 @@
System.out.println("Validando...");
if (session.getAttribute("usuario") == null) {
response.sendRedirect(
"
main.jsp");
response.sendRedirect(
request.getContextPath() + "/vistas/
main.jsp");
}
%>
\ No newline at end of file
Billy Larru
@blarru
mentioned in commit
e219a7f8
Aug 15, 2018
mentioned in commit
e219a7f8
mentioned in commit e219a7f842b07b56d64b3ad654c25bf42d9ab907
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment