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
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
353 additions
and
326 deletions
+353
-326
RequestsFilter.java
src/main/java/asistencia/filters/RequestsFilter.java
+71
-70
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
+103
-112
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
...
@@ -34,80 +34,85 @@ import org.json.JSONObject;
...
@@ -34,80 +34,85 @@ import org.json.JSONObject;
* @author Percy Oliver Quispe Huarcaya
* @author Percy Oliver Quispe Huarcaya
*/
*/
public
class
RequestsFilter
implements
Filter
{
public
class
RequestsFilter
implements
Filter
{
private
FilterConfig
filterConfig
=
null
;
private
FilterConfig
filterConfig
=
null
;
public
RequestsFilter
()
{
public
RequestsFilter
()
{
}
}
private
void
doBeforeProcessing
(
ServletRequest
req
,
ServletResponse
resp
,
FilterChain
chain
)
private
void
doBeforeProcessing
(
ServletRequest
req
,
ServletResponse
resp
,
FilterChain
chain
)
throws
IOException
,
ServletException
{
throws
IOException
,
ServletException
{
HttpServletRequest
request
=
(
HttpServletRequest
)
req
;
HttpServletRequest
request
=
(
HttpServletRequest
)
req
;
HttpServletResponse
response
=
(
HttpServletResponse
)
resp
;
HttpServletResponse
response
=
(
HttpServletResponse
)
resp
;
String
uri
=
request
.
getRequestURI
();
String
uri
=
request
.
getRequestURI
();
if
(
uri
.
endsWith
(
"vistas/index.jsp"
))
{
if
(
uri
.
endsWith
(
"vistas/index.jsp"
))
{
if
(
request
.
getSession
().
getAttribute
(
"codigo"
)
!=
null
)
{
if
(
request
.
getSession
().
getAttribute
(
"codigo"
)
!=
null
)
{
response
.
sendRedirect
(
"main.jsp"
);
response
.
sendRedirect
(
"main.jsp"
);
return
;
return
;
}
}
chain
.
doFilter
(
req
,
resp
);
chain
.
doFilter
(
req
,
resp
);
}
else
{
}
else
{
if
(
request
.
getSession
().
getAttribute
(
"codigo"
)
!=
null
)
{
if
(
request
.
getSession
().
getAttribute
(
"codigo"
)
!=
null
)
{
if
(
uri
.
endsWith
(
".jsp"
))
{
if
(
uri
.
endsWith
(
".jsp"
))
{
HttpSession
session
=
request
.
getSession
();
HttpSession
session
=
request
.
getSession
();
HttpRequest
httpRequest
=
new
HttpRequest
();
HttpRequest
httpRequest
=
new
HttpRequest
();
JSONObject
valid
=
null
;
JSONObject
valid
=
null
;
String
respuesta
=
""
;
String
respuesta
=
""
;
String
auth
=
""
;
String
auth
=
""
;
try
{
try
{
if
(
session
.
getAttribute
(
"Authorization"
)
!=
null
)
{
if
(
session
.
getAttribute
(
"Authorization"
)
!=
null
)
{
auth
=
(
String
)
session
.
getAttribute
(
"Authorization"
);
auth
=
(
String
)
session
.
getAttribute
(
"Authorization"
);
}
else
{
}
else
{
setError
(
response
);
setError
(
response
);
}
respuesta
=
httpRequest
.
getRespuesta
(
RequestPath
.
VERIFICAR_LOGIN
,
HttpRequest
.
POST
,
new
JSONObject
(
"{}"
),
auth
);
valid
=
new
JSONObject
(
respuesta
);
if
(
valid
.
getBoolean
(
"status"
))
{
JSONObject
menu
=
new
JSONObject
(
valid
.
getString
(
"menu"
));
//Obtiene el menu
List
<
Object
>
vistas
=
new
ArrayList
<>();
JSONObject
rolvista
=
valid
.
getJSONObject
(
"rolvista"
);
JSONArray
urls
=
rolvista
.
getJSONArray
(
"vistas"
);
for
(
int
i
=
0
;
i
<
urls
.
length
();
i
++)
{
vistas
.
add
(
urls
.
get
(
i
));
}
}
respuesta
=
httpRequest
.
getRespuesta
(
RequestPath
.
VERIFICAR_LOGIN
,
HttpRequest
.
POST
,
new
JSONObject
(
"{}"
),
auth
);
vistas
.
add
(
"main.jsp"
);
valid
=
new
JSONObject
(
respuesta
);
String
ruta
=
request
.
getRequestURI
();
if
(
valid
.
getBoolean
(
"status"
))
{
// int indice = GeneralUtils.obtenerIndex(ruta);
JSONObject
menu
=
new
JSONObject
(
valid
.
getString
(
"menu"
));
//Obtiene el menu
// String rutaJsp = ruta.substring(indice, ruta.length());
List
<
Object
>
vistas
=
new
ArrayList
<>();
String
rutaJsp
=
GeneralUtils
.
obtenerURIvista
(
ruta
);
JSONObject
rolvista
=
valid
.
getJSONObject
(
"rolvista"
);
System
.
out
.
println
(
"Ruta: "
+
ruta
);
JSONArray
urls
=
rolvista
.
getJSONArray
(
"vistas"
);
System
.
out
.
println
(
"rutajsp: "
+
rutaJsp
);
for
(
int
i
=
0
;
i
<
urls
.
length
();
i
++)
{
System
.
out
.
println
(
vistas
);
vistas
.
add
(
urls
.
get
(
i
));
boolean
acceso
=
vistas
.
contains
(
rutaJsp
);
}
System
.
out
.
println
(
acceso
);
vistas
.
add
(
"main.jsp"
);
if
(!
acceso
)
{
String
ruta
=
request
.
getRequestURI
();
request
.
getSession
().
setAttribute
(
"error"
,
"no tiene acceso a la vista solicitada"
);
//Esta session se elimina en el jsp (para que no ocupe memoria)
int
indice
=
GeneralUtils
.
obtenerIndex
(
ruta
);
String
rutaJsp
=
ruta
.
substring
(
indice
,
ruta
.
length
());
boolean
acceso
=
vistas
.
contains
(
rutaJsp
);
if
(!
acceso
)
{
request
.
getSession
().
setAttribute
(
"error"
,
"no tiene acceso a la vista solicitada"
);
//Esta session se elimina en el jsp (para que no ocupe memoria)
request
.
getRequestDispatcher
(
"/vistas/error.jsp"
).
forward
(
request
,
response
);
return
;
}
session
.
setAttribute
(
"menu"
,
menu
.
toString
());
}
else
{
deleteCredenciales
(
response
,
request
);
request
.
getSession
().
setAttribute
(
"error"
,
"no tiene credenciales validas"
);
request
.
getRequestDispatcher
(
"/vistas/error.jsp"
).
forward
(
request
,
response
);
request
.
getRequestDispatcher
(
"/vistas/error.jsp"
).
forward
(
request
,
response
);
return
;
return
;
}
}
}
catch
(
Exception
ex
)
{
session
.
setAttribute
(
"menu"
,
menu
.
toString
());
request
.
getSession
().
setAttribute
(
"error"
,
ex
.
getMessage
());
}
else
{
deleteCredenciales
(
response
,
request
);
request
.
getSession
().
setAttribute
(
"error"
,
"no tiene credenciales validas"
);
request
.
getRequestDispatcher
(
"/vistas/error.jsp"
).
forward
(
request
,
response
);
request
.
getRequestDispatcher
(
"/vistas/error.jsp"
).
forward
(
request
,
response
);
return
;
return
;
}
}
}
catch
(
Exception
ex
)
{
request
.
getSession
().
setAttribute
(
"error"
,
ex
.
getMessage
());
request
.
getRequestDispatcher
(
"/vistas/error.jsp"
).
forward
(
request
,
response
);
return
;
}
}
chain
.
doFilter
(
request
,
response
);
}
else
{
deleteCredenciales
(
response
,
request
);
request
.
getSession
().
setAttribute
(
"error"
,
"no tiene una sesion activa"
);
request
.
getRequestDispatcher
(
"/vistas/error.jsp"
).
forward
(
request
,
response
);
}
}
chain
.
doFilter
(
request
,
response
);
}
else
{
deleteCredenciales
(
response
,
request
);
request
.
getSession
().
setAttribute
(
"error"
,
"no tiene una sesion activa"
);
request
.
getRequestDispatcher
(
"/vistas/error.jsp"
).
forward
(
request
,
response
);
}
}
}
}
}
private
void
deleteCredenciales
(
HttpServletResponse
response
,
HttpServletRequest
request
)
{
private
void
deleteCredenciales
(
HttpServletResponse
response
,
HttpServletRequest
request
)
{
request
.
getSession
().
invalidate
();
request
.
getSession
().
invalidate
();
Cookie
cookieAuth
=
new
Cookie
(
"Authorization"
,
""
);
Cookie
cookieAuth
=
new
Cookie
(
"Authorization"
,
""
);
cookieAuth
.
setMaxAge
(
0
);
cookieAuth
.
setMaxAge
(
0
);
...
@@ -125,6 +130,7 @@ public class RequestsFilter implements Filter {
...
@@ -125,6 +130,7 @@ public class RequestsFilter implements Filter {
builder
=
Response
.
status
(
Response
.
Status
.
UNAUTHORIZED
).
entity
(
response
);
builder
=
Response
.
status
(
Response
.
Status
.
UNAUTHORIZED
).
entity
(
response
);
throw
new
WebApplicationException
(
builder
.
build
());
throw
new
WebApplicationException
(
builder
.
build
());
}
}
private
void
doAfterProcessing
(
ServletRequest
request
,
ServletResponse
response
)
private
void
doAfterProcessing
(
ServletRequest
request
,
ServletResponse
response
)
throws
IOException
,
ServletException
{
throws
IOException
,
ServletException
{
...
@@ -159,17 +165,12 @@ public class RequestsFilter implements Filter {
...
@@ -159,17 +165,12 @@ public class RequestsFilter implements Filter {
public
void
doFilter
(
ServletRequest
request
,
ServletResponse
response
,
public
void
doFilter
(
ServletRequest
request
,
ServletResponse
response
,
FilterChain
chain
)
FilterChain
chain
)
throws
IOException
,
ServletException
{
throws
IOException
,
ServletException
{
doBeforeProcessing
(
request
,
response
,
chain
);
doBeforeProcessing
(
request
,
response
,
chain
);
// chain.doFilter(request, response);
// chain.doFilter(request, response);
doAfterProcessing
(
request
,
response
);
doAfterProcessing
(
request
,
response
);
}
}
/**
/**
...
@@ -191,13 +192,13 @@ public class RequestsFilter implements Filter {
...
@@ -191,13 +192,13 @@ public class RequestsFilter implements Filter {
/**
/**
* Destroy method for this filter
* Destroy method for this filter
*/
*/
public
void
destroy
()
{
public
void
destroy
()
{
}
}
/**
/**
* Init method for this filter
* Init method for this filter
*/
*/
public
void
init
(
FilterConfig
filterConfig
)
{
public
void
init
(
FilterConfig
filterConfig
)
{
this
.
filterConfig
=
filterConfig
;
this
.
filterConfig
=
filterConfig
;
if
(
filterConfig
!=
null
)
{
if
(
filterConfig
!=
null
)
{
}
}
...
@@ -216,20 +217,20 @@ public class RequestsFilter implements Filter {
...
@@ -216,20 +217,20 @@ public class RequestsFilter implements Filter {
sb
.
append
(
")"
);
sb
.
append
(
")"
);
return
(
sb
.
toString
());
return
(
sb
.
toString
());
}
}
private
void
sendProcessingError
(
Throwable
t
,
ServletResponse
response
)
{
private
void
sendProcessingError
(
Throwable
t
,
ServletResponse
response
)
{
String
stackTrace
=
getStackTrace
(
t
);
String
stackTrace
=
getStackTrace
(
t
);
if
(
stackTrace
!=
null
&&
!
stackTrace
.
equals
(
""
))
{
if
(
stackTrace
!=
null
&&
!
stackTrace
.
equals
(
""
))
{
try
{
try
{
response
.
setContentType
(
"text/html"
);
response
.
setContentType
(
"text/html"
);
PrintStream
ps
=
new
PrintStream
(
response
.
getOutputStream
());
PrintStream
ps
=
new
PrintStream
(
response
.
getOutputStream
());
PrintWriter
pw
=
new
PrintWriter
(
ps
);
PrintWriter
pw
=
new
PrintWriter
(
ps
);
pw
.
print
(
"<html>\n<head>\n<title>Error</title>\n</head>\n<body>\n"
);
//NOI18N
pw
.
print
(
"<html>\n<head>\n<title>Error</title>\n</head>\n<body>\n"
);
//NOI18N
// PENDING! Localize this for next official release
// PENDING! Localize this for next official release
pw
.
print
(
"<h1>The resource did not process correctly</h1>\n<pre>\n"
);
pw
.
print
(
"<h1>The resource did not process correctly</h1>\n<pre>\n"
);
pw
.
print
(
stackTrace
);
pw
.
print
(
stackTrace
);
pw
.
print
(
"</pre></body>\n</html>"
);
//NOI18N
pw
.
print
(
"</pre></body>\n</html>"
);
//NOI18N
pw
.
close
();
pw
.
close
();
ps
.
close
();
ps
.
close
();
...
@@ -246,7 +247,7 @@ public class RequestsFilter implements Filter {
...
@@ -246,7 +247,7 @@ public class RequestsFilter implements Filter {
}
}
}
}
}
}
public
static
String
getStackTrace
(
Throwable
t
)
{
public
static
String
getStackTrace
(
Throwable
t
)
{
String
stackTrace
=
null
;
String
stackTrace
=
null
;
try
{
try
{
...
@@ -260,9 +261,9 @@ public class RequestsFilter implements Filter {
...
@@ -260,9 +261,9 @@ public class RequestsFilter implements Filter {
}
}
return
stackTrace
;
return
stackTrace
;
}
}
public
void
log
(
String
msg
)
{
public
void
log
(
String
msg
)
{
filterConfig
.
getServletContext
().
log
(
msg
);
filterConfig
.
getServletContext
().
log
(
msg
);
}
}
}
}
src/main/java/asistencia/utilities/GeneralUtils.java
View file @
219df09c
...
@@ -5,22 +5,39 @@
...
@@ -5,22 +5,39 @@
*/
*/
package
asistencia
.
utilities
;
package
asistencia
.
utilities
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
/**
/**
*
*
* @author sistem08user
* @author sistem08user
*/
*/
public
class
GeneralUtils
{
public
class
GeneralUtils
{
public
static
int
obtenerIndex
(
String
ruta
){
public
static
int
obtenerIndex
(
String
ruta
)
{
char
[]
c
=
ruta
.
toCharArray
();
char
[]
c
=
ruta
.
toCharArray
();
int
salida
=
0
;
int
salida
=
0
;
for
(
int
i
=
c
.
length
-
1
;
i
>=
0
;
i
--)
{
for
(
int
i
=
c
.
length
-
1
;
i
>=
0
;
i
--)
{
String
help
=
c
[
i
]
+
""
;
String
help
=
c
[
i
]
+
""
;
if
(!
help
.
equals
(
"/"
))
{
if
(!
help
.
equals
(
"/"
))
{
salida
=
i
;
salida
=
i
;
}
else
{
}
else
{
break
;
break
;
}
}
}
}
return
salida
;
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 = () => {
...
@@ -148,7 +148,7 @@ let block = () => {
let
logOut
=
()
=>
{
let
logOut
=
()
=>
{
document
.
querySelector
(
'#logOut'
).
addEventListener
(
'click'
,
(
e
)
=>
{
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 = {
...
@@ -37,7 +37,7 @@ let DOMNav = {
continue
;
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>'
;
+
/*'<i class="glyphicon glyphicon-arrow-right"></i>'+*/
proyectos
[
i
].
nombre
+
'</a></li>'
;
}
}
document
.
getElementById
(
"proyectos"
).
innerHTML
=
html
;
document
.
getElementById
(
"proyectos"
).
innerHTML
=
html
;
...
...
src/main/webapp/js/pages/proyectar_asistencia_policias.js
View file @
219df09c
...
@@ -8,6 +8,20 @@ function initializeData() {
...
@@ -8,6 +8,20 @@ function initializeData() {
"fecha_entrada"
:
"16/06/2018"
,
"marcacion_entrada"
:
"06:59"
,
"marcacion_salida"
:
"00:00"
,
"fecha_salida"
:
"16/06/2018"
});
"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"
,
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"
});
"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"
];
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 = {
...
@@ -47,12 +47,12 @@ const DOMSideBar = {
}
}
html
+=
`</li></ul>`
;
html
+=
`</li></ul>`
;
}
else
{
}
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>`
;
html
+=
`</li></ul>`
;
}
else
{
}
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"
%
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--template-core-->
<!--css de la pagina-->
<!--css de la pagina-->
<!--css-->
<!--css-->
</head>
</head>
<body>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<!-- content -->
<!-- / content -->
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<!--js de la pagina-->
<!--<script src="${pageContext.request.contextPath}/plantilla/assets/js/plugins/tables/datatables/datatables.min.js" type="text/javascript"></script>-->
<!--js-->
<!--js-->
</body>
</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"
%
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--template-core-->
<!--css de la pagina-->
<!--css de la pagina-->
<!--<link href="../css/lib/bootstrap-select/bootstrap-select.min.css" rel="stylesheet" type="text/css"/>-->
<!--<link href="../css/lib/bootstrap-select/bootstrap-select.min.css" rel="stylesheet" type="text/css"/>-->
<!--css-->
<!--css-->
</head>
</head>
<body>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<!-- content -->
<div
class=
"col-md-6 col-md-offset-3"
>
<div
class=
"col-md-6 col-md-offset-3"
>
...
@@ -253,14 +253,14 @@
...
@@ -253,14 +253,14 @@
<!-- / content -->
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<!--js de la pagina-->
<script
type=
"text/javascript"
src=
"https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js
"
></script>
<script
src=
"https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"
type=
"text/javascript
"
></script>
<script
type=
"text/javascript"
src=
"https://cdn.datatables.net/1.10.16/js/dataTables.bootstrap.min.js
"
></script>
<script
src=
"https://cdn.datatables.net/1.10.16/js/dataTables.bootstrap.min.js"
type=
"text/javascript
"
></script>
<script
src=
"
..
/js/lib/bootstrap-select/bootstrap-select.min.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/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
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/pickers/daterangepicker.js"
type=
"text/javascript
"
></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/widgets.min.js"
type=
"text/javascript
"
></script>
<script
src=
"
..
/js/pages/controlAsistenciaDocentes.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/pages/controlAsistenciaDocentes.js"
type=
"text/javascript"
></script>
<!--js-->
<!--js-->
</body>
</body>
</html>
</html>
\ No newline at end of file
src/main/webapp/vistas/error/error.jsp
View file @
219df09c
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<title>
Trismegisto Asistencia
</title>
<title>
Trismegisto Asistencia
</title>
<link
rel=
"stylesheet"
href=
"https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"
>
<link
href=
"https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"
rel=
"stylesheet"
/
>
<link
href=
"
..
/css/pages/error.css"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"
${pageContext.request.contextPath}
/css/pages/error.css"
rel=
"stylesheet"
type=
"text/css"
/>
<style>
<style>
@import
"https://fonts.googleapis.com/css?family=Inconsolata"
;
@import
"https://fonts.googleapis.com/css?family=Inconsolata"
;
html
{
html
{
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
%
>
%
>
</p>
</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>
</div>
</body>
</body>
...
...
src/main/webapp/vistas/index.jsp
View file @
219df09c
<
%
<jsp:include
page=
"templates/validar.jsp"
/>
response
.
setHeader
("
Cache-Control
",
"
no-cache
");
//
Forces
caches
to
obtain
a
new
copy
of
the
page
from
the
origin
server
response
.
setHeader
("
Cache-Control
",
"
no-store
");
//
Directs
caches
not
to
store
the
page
under
any
circumstance
response
.
setDateHeader
("
Expires
",
0
);
//
Causes
the
proxy
cache
to
see
the
page
as
"
stale
"
response
.
setHeader
("
Pragma
",
"
no-cache
");
//
HTTP
1
.
0
backward
compatibility
if
(
session
.
getAttribute
("
usuario
")
!=
null
)
{
response
.
sendRedirect
("
main
.
jsp
");
}
%
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<!-- Global stylesheets -->
<!-- Global stylesheets -->
<link
href=
"https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900"
rel=
"stylesheet"
type=
"text/css"
>
<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/icomoon/styles.css"
rel=
"stylesheet"
type=
"text/css"
>
<link
href=
"../plantilla/assets/css/bootstrap.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/core.css"
rel=
"stylesheet"
type=
"text/css"
>
<link
href=
"../plantilla/assets/css/components.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=
"../plantilla/assets/css/colors.css"
rel=
"stylesheet"
type=
"text/css"
>
<!-- /global stylesheets -->
<!-- /global stylesheets -->
</head>
</head>
<body
class=
"login-container"
>
<body
class=
"login-container"
>
<!-- Page container -->
<!-- Page container -->
<div
class=
"page-container"
>
<div
class=
"page-container"
>
<!-- Page content -->
<!-- Page content -->
<div
class=
"page-content"
>
<div
class=
"page-content"
>
<!-- Main content -->
<!-- Main content -->
<div
class=
"content-wrapper"
>
<div
class=
"content-wrapper"
>
<!-- Content area -->
<!-- Content area -->
<div
class=
"content"
>
<div
class=
"content"
>
<!-- Advanced login -->
<!-- Advanced login -->
<form
action=
"#"
id=
"login"
>
<form
action=
"#"
id=
"login"
>
<div
class=
"panel panel-body login-form"
>
<div
class=
"panel panel-body login-form"
>
<div
class=
"text-center"
>
<div
class=
"text-center"
>
<div
class=
"icon-object border-slate-300 text-slate-300"
><i
class=
"icon-reading"
></i></div>
<div
class=
"icon-object border-slate-300 text-slate-300"
><i
class=
"icon-reading"
></i></div>
<h5
class=
"content-group"
>
PROYECTO
<small
class=
"display-block"
>
Ingrese sus credenciales
</small></h5>
<h5
class=
"content-group"
>
PROYECTO
<small
class=
"display-block"
>
Ingrese sus credenciales
</small></h5>
</div>
</div>
<div
class=
"form-group has-feedback has-feedback-left"
>
<div
class=
"form-group has-feedback has-feedback-left"
>
<input
type=
"text"
id=
"usuario"
name=
"usuario"
class=
"form-control"
placeholder=
"Usuario"
value=
"blarru"
>
<input
type=
"text"
id=
"usuario"
name=
"usuario"
class=
"form-control"
placeholder=
"Usuario"
value=
"blarru"
>
<div
class=
"form-control-feedback"
>
<div
class=
"form-control-feedback"
>
<i
class=
"icon-user text-muted"
></i>
<i
class=
"icon-user text-muted"
></i>
</div>
</div>
</div>
</div>
<div
class=
"form-group has-feedback has-feedback-left"
>
<input
type=
"password"
id=
"pass"
name=
"pass"
class=
"form-control"
placeholder=
"Contraseña"
value=
"123456"
>
<div
class=
"form-control-feedback"
>
<i
class=
"icon-lock2 text-muted"
></i>
</div>
</div>
<div
class=
"form-group"
>
<button
type=
"button"
id=
"signIn"
class=
"btn bg-blue btn-block"
>
Ingresa
<i
class=
"icon-arrow-right14 position-right"
></i></button>
</div>
</div>
</form>
<!-- /advanced login -->
<!-- Footer -->
<div
class=
"footer text-muted text-center"
>
©
2015.
<a
href=
"#"
>
Proyecto
</a>
por
<a
href=
"#"
>
Área Sistemas TIC
</a>
</div>
<!-- /footer -->
</div>
<!-- /content area -->
<div
class=
"form-group has-feedback has-feedback-left"
>
<input
type=
"password"
id=
"pass"
name=
"pass"
class=
"form-control"
placeholder=
"Contraseña"
value=
"123456"
>
<div
class=
"form-control-feedback"
>
<i
class=
"icon-lock2 text-muted"
></i>
</div>
</div>
</div>
<!-- /main content -->
<div
class=
"form-group"
>
<button
type=
"button"
id=
"signIn"
class=
"btn bg-blue btn-block"
>
Ingresa
<i
class=
"icon-arrow-right14 position-right"
></i></button>
</div>
</div>
</form>
<!-- /advanced login -->
<!-- Footer -->
<div
class=
"footer text-muted text-center"
>
©
2015.
<a
href=
"#"
>
Proyecto
</a>
por
<a
href=
"#"
>
Área Sistemas TIC
</a>
</div>
</div>
<!-- /footer -->
<!-- /page content -->
</div>
<!-- /content area -->
</div>
</div>
<!-- /main content -->
<!-- /page container -->
</div>
<script>
<!-- /page content -->
((
window
)
=>
{
window
.
history
.
replaceState
({},
''
,
'index.jsp'
);
</div>
})(
window
);
<!-- /page container -->
</script>
<script>
<!--javascript template-->
((
window
)
=>
{
<!-- Core JS files -->
window
.
history
.
replaceState
(
{}
,
''
,
'index.jsp'
);
<script
src=
"../plantilla/assets/js/plugins/loaders/pace.min.js"
type=
"text/javascript"
></script>
})(
window
);
<script
src=
"../plantilla/assets/js/core/libraries/jquery.min.js"
type=
"text/javascript"
></script>
</script>
<script
src=
"../plantilla/assets/js/core/libraries/bootstrap.min.js"
type=
"text/javascript"
></script>
<script
src=
"../plantilla/assets/js/plugins/forms/validation/validate.min.js"
type=
"text/javascript"
></script>
<!--javascript template-->
<script
src=
"../js/lib/jquery-validation-config.js"
type=
"text/javascript"
></script>
<!-- Core JS files -->
<script
src=
"../plantilla/assets/js/plugins/notifications/sweet_alert.min.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/loaders/pace.min.js"
></script>
<script
src=
"../js/general.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/core/libraries/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/core/libraries/bootstrap.min.js"
></script>
<script
src=
"../plantilla/assets/js/plugins/loaders/blockui.min.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/forms/validation/validate.min.js"
></script>
<!-- /core JS files -->
<script
type=
"text/javascript"
src=
"../js/lib/jquery-validation-config.js"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/notifications/sweet_alert.min.js"
></script>
<!-- Theme JS files -->
<script
type=
"text/javascript"
src=
"../js/general.js"
></script>
<script
src=
"../plantilla/assets/js/plugins/forms/styling/uniform.min.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/loaders/blockui.min.js"
></script>
<script
src=
"../plantilla/assets/js/core/app.js"
type=
"text/javascript"
></script>
<!-- /core JS files -->
<script
src=
"../plantilla/assets/js/pages/login.js"
type=
"text/javascript"
></script>
<!-- /theme JS files -->
<!-- Theme JS files -->
<!--javascript template-->
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/forms/styling/uniform.min.js"
></script>
<script
src=
"../js/lib/cookies.js"
type=
"text/javascript"
></script>
<script
src=
"../js/pages/index.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/core/app.js"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/pages/login.js"
></script>
</body>
<!-- /theme JS files -->
<!--javascript template-->
<script
src=
"../js/lib/cookies.js"
type=
"text/javascript"
></script>
<script
src=
"../js/pages/index.js"
type=
"text/javascript"
></script>
</body>
</html>
</html>
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"
%
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--template-core-->
<!--css-->
<!--css-->
...
@@ -11,24 +11,22 @@
...
@@ -11,24 +11,22 @@
</head>
</head>
<body>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<!-- content -->
<!-- / content -->
<!-- / content -->
<jsp:include
page=
"/vistas/templates/footer-body.jsp"
/>
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<!--js-->
<!--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>
<script>
((
window
)
=>
{
((
window
)
=>
{
window
.
history
.
replaceState
({},
''
,
'
main.jsp'
);
window
.
history
.
replaceState
({},
''
,
contextPath
+
'vistas/
main.jsp'
);
})(
window
);
})(
window
);
</script>
</script>
</body>
</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"
%
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--template-core-->
<!--css de la pagina-->
<!--css de la pagina-->
<!--css-->
<!--css-->
</head>
</head>
<body>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<!-- content -->
<!-- / content -->
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<!--js de la pagina-->
<!--js-->
<!--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"
%
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--template-core-->
<!--css de la pagina-->
<!--css de la pagina-->
<!--css-->
<!--css-->
</head>
</head>
<body>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<!-- content -->
<div
class=
"col-md-4 col-md-offset-4"
>
<div
class=
"col-md-4 col-md-offset-4"
>
<div
class=
"panel panel-primary"
>
<div
class=
"panel panel-primary"
>
...
@@ -100,14 +100,14 @@
...
@@ -100,14 +100,14 @@
<!-- / content -->
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<!--js de la pagina-->
<script
src=
"
..
/plantilla/assets/js/plugins/tables/datatables/datatables.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=
"
..
/plantilla/assets/js/plugins/ui/moment/moment.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
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/pickers/daterangepicker.js
"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/pickers/daterangepicker.js"
type=
"text/javascript
"
></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/widgets.min.js"
type=
"text/javascript
"
></script>
<script
src=
"
..
/js/lib/lodash.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/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}
/js/pages/comparativo_proyeccion_policias.js"
type=
"text/javascript"
></script>
<!--js-->
<!--js-->
</body>
</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"
%
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--template-core-->
<!--css de la pagina-->
<!--css de la pagina-->
<!--css-->
<!--css-->
</head>
</head>
<body>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<!-- content -->
<div
class=
"col-md-6 col-md-offset-3"
>
<div
class=
"col-md-6 col-md-offset-3"
>
<div
class=
"panel panel-primary"
>
<div
class=
"panel panel-primary"
>
...
@@ -372,16 +372,16 @@
...
@@ -372,16 +372,16 @@
<!-- / content -->
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<!--js de la pagina-->
<script
type=
"text/javascript"
src=
"https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js
"
></script>
<script
src=
"https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"
type=
"text/javascript
"
></script>
<script
type=
"text/javascript"
src=
"https://cdn.datatables.net/1.10.16/js/dataTables.bootstrap.min.js
"
></script>
<script
src=
"https://cdn.datatables.net/1.10.16/js/dataTables.bootstrap.min.js"
type=
"text/javascript
"
></script>
<script
src=
"
..
/js/lib/bootstrap-select/bootstrap-select.min.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/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
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/pickers/daterangepicker.js"
type=
"text/javascript
"
></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/widgets.min.js"
type=
"text/javascript
"
></script>
<script
src=
"
..
/js/pages/control_asistencia_policias.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/pages/control_asistencia_policias.js"
type=
"text/javascript"
></script>
<!--js-->
<!--js-->
</body>
</body>
</html>
</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"
%
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--template-core-->
<!--css de la pagina-->
<!--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-->
<!--css-->
</head>
</head>
<body>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<!-- content -->
<div
class=
"col-md-5 col-md-offset-3"
>
<div
class=
"col-md-5 col-md-offset-3"
>
<div
class=
"panel panel-primary"
>
<div
class=
"panel panel-primary"
>
...
@@ -899,22 +899,22 @@
...
@@ -899,22 +899,22 @@
</div>
</div>
<!-- / content -->
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<!--js de la pagina-->
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/core/libraries/jquery_ui/interactions.min.js
"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/core/libraries/jquery_ui/interactions.min.js"
type=
"text/javascript
"
></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/widgets.min.js"
type=
"text/javascript
"
></script>
<script
src=
"
..
/js/lib/bootstrap-select/bootstrap-select.min.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/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}/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
src=
"${pageContext.request.contextPath}/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
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/pickers/daterangepicker.js"
type=
"text/javascript
"
></script>
<script
src=
"
..
/js/lib/jquery-ui.multidatespicker.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=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/extensions/contextmenu.js"
type=
"text/javascript
"
></script>
<script
src=
"
..
/js/pages/crearRolPolicia.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/pages/crearRolPolicia.js"
type=
"text/javascript"
></script>
<!--js-->
<!--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"
%
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--template-core-->
<!--css de la pagina-->
<!--css de la pagina-->
<!--css-->
<!--css-->
</head>
</head>
<body>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<!-- content -->
<!-- / content -->
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<!--js de la pagina-->
<!--js-->
<!--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"
%
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--template-core-->
<!--css de la pagina-->
<!--css de la pagina-->
<!--css-->
<!--css-->
</head>
</head>
<body>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<!-- content -->
<div
class=
"col-md-4 col-md-offset-4"
>
<div
class=
"col-md-4 col-md-offset-4"
>
...
@@ -172,7 +172,7 @@
...
@@ -172,7 +172,7 @@
<!-- / content -->
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<!--js de la pagina-->
<!--js-->
<!--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"
%
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--template-core-->
<!--css de la pagina-->
<!--css de la pagina-->
<!--css-->
<!--css-->
</head>
</head>
<body>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<!-- content -->
<div
class=
"col-md-4 col-md-offset-4"
>
<div
class=
"col-md-4 col-md-offset-4"
>
<div
class=
"panel panel-primary"
>
<div
class=
"panel panel-primary"
>
...
@@ -307,10 +307,10 @@
...
@@ -307,10 +307,10 @@
<!-- / content -->
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<!--js de la pagina-->
<script
src=
"
..
/plantilla/assets/js/plugins/tables/datatables/datatables.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
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/forms/styling/switch.min.js
"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/forms/styling/switch.min.js"
type=
"text/javascript
"
></script>
<script>
<script>
$
(
".styled, .multiselect-container input"
).
uniform
({
$
(
".styled, .multiselect-container input"
).
uniform
({
radioClass
:
'choice'
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"
%
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--template-core-->
<!--css de la pagina-->
<!--css de la pagina-->
<!--css-->
<!--css-->
</head>
</head>
<body>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<!-- content -->
<div
class=
"col-md-6 col-md-offset-3"
>
<div
class=
"col-md-6 col-md-offset-3"
>
<div
class=
"panel panel-primary"
>
<div
class=
"panel panel-primary"
>
...
@@ -95,17 +95,17 @@
...
@@ -95,17 +95,17 @@
<!-- / content -->
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<!--js de la pagina-->
<script
src=
"
..
/plantilla/assets/js/plugins/ui/moment/moment.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
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/pickers/daterangepicker.js
"
></script>
<script
src=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/pickers/daterangepicker.js"
type=
"text/javascript
"
></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/widgets.min.js"
type=
"text/javascript"
></script>
<script
src=
"
..
/plantilla/assets/js/plugins/tables/datatables/datatables.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=
"
..
/js/lib/dataTables.rowsGroup.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/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=
"${pageContext.request.contextPath}/plantilla/assets/js/plugins/tables/handsontable/handsontable.min.js"
type=
"text/javascript"
></script>
<script
src=
"
..
/js/lib/jquery.inputmask.bundle.min.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/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}
/js/pages/proyectar_asistencia_policias.js"
type=
"text/javascript"
></script>
<!--js-->
<!--js-->
</body>
</body>
...
...
src/main/webapp/vistas/templates/footer-body.jsp
View file @
219df09c
...
@@ -15,21 +15,22 @@
...
@@ -15,21 +15,22 @@
<!-- /page content -->
<!-- /page content -->
</div>
</div>
<!-- /page container -->
<!-- /page container -->
<!-- Core JS files -->
<!-- Core JS files -->
<script
type="text/javascript" src="../plantilla/assets/js/plugins/loaders/pace.min.js
"></script>
<script
src="${pageContext.request.contextPath}/plantilla/assets/js/plugins/loaders/pace.min.js" type="text/javascript
"></script>
<script
type="text/javascript" src="../plantilla/assets/js/core/libraries/jquery.min.js"
></script>
<script
src="${pageContext.request.contextPath}/plantilla/assets/js/core/libraries/jquery.min.js" type="text/javascript"
></script>
<script src="
..
/js/lib/jquery.cookie.js" type="text/javascript"></script>
<script src="
${pageContext.request.contextPath}
/js/lib/jquery.cookie.js" type="text/javascript"></script>
<script
type="text/javascript" src="../plantilla/assets/js/core/libraries/bootstrap.min.js"
></script>
<script
src="${pageContext.request.contextPath}/plantilla/assets/js/core/libraries/bootstrap.min.js" type="text/javascript"
></script>
<script
type="text/javascript" src="../plantilla/assets/js/plugins/loaders/blockui.min.js"
></script>
<script
src="${pageContext.request.contextPath}/plantilla/assets/js/plugins/loaders/blockui.min.js" type="text/javascript"
></script>
<script
type="text/javascript" src="../plantilla/assets/js/plugins/forms/styling/switchery.min.js
"></script>
<script
src="${pageContext.request.contextPath}/plantilla/assets/js/plugins/forms/styling/switchery.min.js" type="text/javascript
"></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/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/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 -->
<!-- /core JS files -->
<!-- /Generales -->
<!-- /Generales -->
<script src="../js/general.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/general.js" type="text/javascript"></script>
<script src="../js/pages/navbar.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/pages/navbar.js" type="text/javascript"></script>
<script src="../js/pages/sidebar.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/pages/sidebar.js" type="text/javascript"></script>
\ No newline at end of file
\ 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 -->
<!-- Page container -->
<div class="page-container">
<div class="page-container">
...
@@ -7,8 +6,7 @@
...
@@ -7,8 +6,7 @@
<!-- Page content -->
<!-- Page content -->
<div class="page-content">
<div class="page-content">
<%@include file="sidebar.jsp" %>
<jsp:include page="sidebar.jsp" />
<!-- Main content -->
<!-- Main content -->
<div class="content-wrapper">
<div class="content-wrapper">
...
...
src/main/webapp/vistas/templates/header.jsp
View file @
219df09c
...
@@ -4,20 +4,23 @@
...
@@ -4,20 +4,23 @@
<title>Trismegisto Asistencia</title>
<title>Trismegisto Asistencia</title>
<!-- Global stylesheets -->
<!-- Global stylesheets -->
<link href="https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900" rel="stylesheet" type="text/css">
<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="${pageContext.request.contextPath}/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="${pageContext.request.contextPath}/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="${pageContext.request.contextPath}/plantilla/assets/css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="../plantilla/assets/css/core.css" rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath}/plantilla/assets/css/core.css" rel="stylesheet" type="text/css">
<link href="../plantilla/assets/css/components.css" rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath}/plantilla/assets/css/components.css" rel="stylesheet" type="text/css">
<link href="../plantilla/assets/css/colors.css" rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath}/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}/css/general.css" rel="stylesheet" type="text/css"/>
<!--<link href="${pageContext.request.contextPath}/num/num.css" rel="stylesheet" type="text/css"/>-->
<!-- /global stylesheets -->
<!-- /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 src="../js/pages/validate.js" type="text/javascript"></script>-->
<script>
<script>
var sidebar = <%=(String)request.getSession().getAttribute("menu")%>;
var sidebar = <%=(String) request.getSession().getAttribute("menu")%>;
var nombreUsuario = "<%=(String)request.getSession().getAttribute("nombre")%>";
var nombreUsuario = "<%=(String) request.getSession().getAttribute("nombre")%>";
var rolesUsuario = "<%=(String)request.getSession().getAttribute("roles")%>";
var rolesUsuario = "<%=(String) request.getSession().getAttribute("roles")%>";
var contextPath = "${pageContext.request.contextPath}/";
</script>
</script>
\ No newline at end of file
src/main/webapp/vistas/templates/navbar.jsp
View file @
219df09c
<!-- Main navbar -->
<!-- Main navbar -->
<div class="navbar navbar-default header-highlight">
<div class="navbar navbar-default header-highlight">
<div class="navbar-header">
<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">
<ul class="nav navbar-nav visible-xs-block">
<li><a data-toggle="collapse" data-target="#navbar-mobile"><i class="icon-tree5"></i></a></li>
<li><a data-toggle="collapse" data-target="#navbar-mobile"><i class="icon-tree5"></i></a></li>
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<ul class="nav navbar-nav navbar-right">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown language-switch">
<li class="dropdown language-switch">
<a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<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
Sistemas
<span class="caret"></span>
<span class="caret"></span>
</a>
</a>
...
...
src/main/webapp/vistas/templates/sidebar.jsp
View file @
219df09c
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<!-- User menu -->
<!-- User menu -->
<div class="sidebar-user">
<div class="sidebar-user">
<div class="category-content tp-sidebar-category-content">
<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);-->
<!--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;">
<img alt="Avatar usuario" class="avatar" style=" border-radius: 50%; border:2px solid white;">
</a>
</a>
...
...
src/main/webapp/vistas/templates/validar.jsp
View file @
219df09c
...
@@ -6,6 +6,6 @@
...
@@ -6,6 +6,6 @@
System.out.println("Validando...");
System.out.println("Validando...");
if (session.getAttribute("usuario") == null) {
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