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
3eebd824
Commit
3eebd824
authored
Sep 14, 2018
by
Billy Larru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX detalleMontosAdministrativos, referencia a js y css ahora apuntan a la raiz del proyecto]
parent
01801e82
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
161 additions
and
141 deletions
+161
-141
RequestsFilter.java
src/main/java/asistencia/filters/RequestsFilter.java
+0
-0
GeneralUtils.java
src/main/java/asistencia/utilities/GeneralUtils.java
+29
-13
__template.jsp
src/main/webapp/vistas/__template.jsp
+17
-16
main.jsp
src/main/webapp/vistas/main.jsp
+22
-22
detalleMontosAdministrativos.jsp
...os/montosAdministrativos/detalleMontosAdministrativos.jsp
+11
-11
footer-body.jsp
src/main/webapp/vistas/templates/footer-body.jsp
+17
-17
header-body.jsp
src/main/webapp/vistas/templates/header-body.jsp
+9
-9
header.jsp
src/main/webapp/vistas/templates/header.jsp
+13
-12
navbar.jsp
src/main/webapp/vistas/templates/navbar.jsp
+39
-38
sidebar.jsp
src/main/webapp/vistas/templates/sidebar.jsp
+2
-2
validar.jsp
src/main/webapp/vistas/templates/validar.jsp
+2
-1
No files found.
src/main/java/asistencia/filters/RequestsFilter.java
View file @
3eebd824
This diff is collapsed.
Click to expand it.
src/main/java/asistencia/utilities/GeneralUtils.java
View file @
3eebd824
...
...
@@ -5,22 +5,38 @@
*/
package
asistencia
.
utilities
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
/**
*
* @author sistem08user
*/
public
class
GeneralUtils
{
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
(
"/"
)){
salida
=
i
;
}
else
{
break
;
}
}
return
salida
;
}
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
(
"/"
))
{
salida
=
i
;
}
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
);
}
return
rutaVista
;
}
}
src/main/webapp/vistas/__template.jsp
View file @
3eebd824
<
%@
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-->
<!--css de la pagina-->
<head>
<jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--css de la pagina-->
<!--css-->
</head>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<!-- content -->
<!--css-->
</head>
<body>
<jsp:include
page=
"/vistas/templates/header-body.jsp"
/
>
<!-- content -->
<!-- / content -->
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<!--js de la pagina-->
<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-->
<!--js-->
</body>
</body>
</html>
\ No newline at end of file
src/main/webapp/vistas/main.jsp
View file @
3eebd824
<
%@
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"
%
>
<!--template-core-->
<!--css-->
<head>
<jsp:include
page=
"/vistas/templates/header.jsp"
/
>
<!--template-core-->
<!--css-->
<!--css-->
</head>
<!--css-->
</head>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<body>
<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-->
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/forms/selects/bootstrap_select.min.js"
></script>
<!--js-->
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/forms/selects/bootstrap_select.min.js"
></script>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/pages/form_bootstrap_select.js"
></script>
<script>
((
window
)
=>
{
window
.
history
.
replaceState
({},
''
,
'main.jsp'
);
})(
window
);
</script>
</body>
<script
type=
"text/javascript"
src=
"../plantilla/assets/js/pages/form_bootstrap_select.js"
></script>
<script>
((
window
)
=>
{
window
.
history
.
replaceState
({},
''
,
'main.jsp'
);
})(
window
);
</script>
</body>
</html>
src/main/webapp/vistas/modals/administrativos/montosAdministrativos/detalleMontosAdministrativos.jsp
View file @
3eebd824
<
%
--
<%@
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/sweetalert2.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-4 col-md-offset-4"
>
<div
class=
"panel panel-primary"
>
...
...
@@ -55,15 +55,15 @@
</div>
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
jsp:include
page=
"/vistas/templates/footer-body.jsp"
/
>
<!--js de la pagina-->
<script
src=
"
..
/plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js"
type=
"text/javascript"
></script>
<script
src=
"
..
/plantilla/assets/js/plugins/ui/moment/moment.min.js"
type=
"text/javascript"
></script>
<script
src=
"
..
/plantilla/assets/js/plugins/pickers/datepicker.js"
type=
"text/javascript"
></script>
<script
src=
"
..
/js/lib/bootstrap-select.min.js"
type=
"text/javascript"
></script>
<script
src=
"
..
/plantilla/assets/js/plugins/forms/selects/select2.min.js"
></script>
<script
src=
"
..
/js/lib/lodash.js"
type=
"text/javascript"
></script>
<script
src=
"
..
/js/pages/detalle_montos_administrativos.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/ui/moment/moment.min.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/plantilla/assets/js/plugins/pickers/datepicker.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/lib/bootstrap-select.min.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/plantilla/assets/js/plugins/forms/selects/select2.min.js"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/lib/lodash.js"
type=
"text/javascript"
></script>
<script
src=
"
${pageContext.request.contextPath}
/js/pages/detalle_montos_administrativos.js"
type=
"text/javascript"
></script>
<!--js-->
</body>
...
...
src/main/webapp/vistas/templates/footer-body.jsp
View file @
3eebd824
<!-- Footer -->
<div class="footer text-muted">
© 2018. <a href="#">Trismegisto Asistencia</a> <a href="#"></a>
© 2018. <a href="#">Trismegisto Asistencia</a> <a href="#"></a>
</div>
<!-- /footer -->
...
...
@@ -17,25 +17,25 @@
</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"></script>
<script
src="${pageContext.request.contextPath}
/plantilla/assets/js/core/libraries/jquery.min.js"></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"></script>
<script
src="${pageContext.request.contextPath}
/plantilla/assets/js/plugins/loaders/blockui.min.js"></script>
<script
src="${pageContext.request.contextPath}
/plantilla/assets/js/plugins/forms/styling/switchery.min.js"></script>
<script
src="${pageContext.request.contextPath}
/plantilla/assets/js/plugins/forms/styling/uniform.min.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"></script>
<!-- /core JS files -->
<!--axios-->
<script src="
..
/plantilla/assets/js/plugins/tables/datatables/datatables.min.js" type="text/javascript"></script>
<script src="
..
/js/lib/axios.min.js" type="text/javascript"></script>
<script src="
..
/js/lib/sweetalert2.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/axios.min.js" type="text/javascript"></script>
<script src="
${pageContext.request.contextPath}
/js/lib/sweetalert2.min.js" type="text/javascript"></script>
<!-- /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 @
3eebd824
<
%@include file="navbar.jsp" %
>
<
jsp:include page="navbar.jsp" /
>
<!-- Page container -->
<div class="page-container">
<!-- Page content -->
<div class="page-content">
<!-- Page content -->
<div class="page-content">
<%@include file="sidebar.jsp" %
>
<jsp:include page="sidebar.jsp" /
>
<!-- Main content -->
<div class="content-wrapper">
<!-- Main content -->
<div class="content-wrapper">
<!-- Content area -->
<div class="content">
\ No newline at end of file
<!-- Content area -->
<div class="content">
\ No newline at end of file
src/main/webapp/vistas/templates/header.jsp
View file @
3eebd824
...
...
@@ -4,22 +4,22 @@
<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"/>
<!-- /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 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}/";
var contextPath = "${pageContext.request.contextPath}/";
</script>
\ No newline at end of file
src/main/webapp/vistas/templates/navbar.jsp
View file @
3eebd824
<!-- Main navbar -->
<div class="navbar navbar-default header-highlight">
<div class="navbar-header">
<a class="navbar-brand" href="..
/vistas/main.jsp"><img src="${pageContext.request.contextPath}/plantilla/assets/images/logo_light.png" alt=""></a>
<div class="navbar-header">
<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>
<li><a class="sidebar-mobile-main-toggle"><i class="icon-paragraph-justify3"></i></a></li>
</ul>
</div>
<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 class="sidebar-mobile-main-toggle"><i class="icon-paragraph-justify3"></i></a></li>
</ul>
</div>
<div class="navbar-collapse collapse" id="navbar-mobile">
<ul class="nav navbar-nav">
<li><a class="sidebar-control sidebar-main-toggle hidden-xs"><i class="icon-paragraph-justify3"></i></a></li>
</ul>
<div class="navbar-collapse collapse" id="navbar-mobile">
<ul class="nav navbar-nav">
<li><a class="sidebar-control sidebar-main-toggle hidden-xs"><i class="icon-paragraph-justify3"></i></a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown language-switch">
<a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<img src="${pageContext.request.contextPath}/plantilla/assets/images/flags/gb.png" class="position-left " alt="">
Sistemas
<span class="caret"></span>
</a>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown language-switch">
<a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<img src="${pageContext.request.contextPath}/plantilla/assets/images/flags/gb.png" class="position-left " alt="">
Sistemas
<span class="caret"></span>
</a>
<ul class="dropdown-menu" id="proyectos">
</ul>
</li>
<ul class="dropdown-menu" id="proyectos">
</ul>
</li>
<li class="dropdown dropdown-user">
<a class="dropdown-toggle" data-toggle="dropdown">
<img src="" class="avatar" alt="" >
<span class="usuario-nombre"></span>
<i class="caret"></i>
</a>
<li class="dropdown dropdown-user">
<a class="dropdown-toggle" data-toggle="dropdown">
<img src="" class="avatar" alt="" >
<span class="usuario-nombre"></span>
<i class="caret"></i>
</a>
<ul class="dropdown-menu dropdown-menu-right">
<li>
<a id="logOut">
<i class="fa fa-sign-out"></i> Salir
</a>
</li>
<!--<li><a href="#" id="logOut"><i class="icon-switch2"></i> Logout</a></li>-->
</ul>
</li>
</ul>
</div>
<ul class="dropdown-menu dropdown-menu-right">
<li>
<a id="logOut">
<i class="fa fa-sign-out"></i> Salir
</a>
</li>
<!--<li><a href="#" id="logOut"><i class="icon-switch2"></i> Logout</a></li>-->
</ul>
</li>
</ul>
</div>
</div>
<!-- /main navbar -->
\ No newline at end of file
src/main/webapp/vistas/templates/sidebar.jsp
View file @
3eebd824
<!-- Main sidebar -->
<div class="sidebar sidebar-main">
<div class="sidebar-content">
<!-- 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 @
3eebd824
...
...
@@ -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
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