diff options
author | cecigg <caggsld@gmail.com> | 2013-12-14 14:25:13 (GMT) |
---|---|---|
committer | cecigg <caggsld@gmail.com> | 2013-12-14 14:25:13 (GMT) |
commit | 3b14ac9a6dadda4fbafd1b74d2fbed80140235b7 (patch) | |
tree | 5fa5c8457e2f26fb2a0ece02bd512f9c90df1bad /EjercitarWeb | |
parent | 68a74e6dbd2a356ecc7e8bc5fc9c43dbe77d253e (diff) |
se agrego contador de ejercicios resueltos y se arreglo el css de login y asignatura.
Diffstat (limited to 'EjercitarWeb')
-rw-r--r-- | EjercitarWeb/WebContent/Asignatura.jsp | 107 | ||||
-rw-r--r-- | EjercitarWeb/WebContent/css/ejercitar-base.css | 14 | ||||
-rw-r--r-- | EjercitarWeb/WebContent/login.jsp | 2 | ||||
-rw-r--r-- | EjercitarWeb/src/src/NuevaAsignaturaServlet.java | 6 |
4 files changed, 71 insertions, 58 deletions
diff --git a/EjercitarWeb/WebContent/Asignatura.jsp b/EjercitarWeb/WebContent/Asignatura.jsp index 8f96cd0..be7d2ce 100644 --- a/EjercitarWeb/WebContent/Asignatura.jsp +++ b/EjercitarWeb/WebContent/Asignatura.jsp @@ -1,64 +1,67 @@ <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<%@ include file="templateCSS.jsp" %> - <html> <head> -<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> -<title>Asignatura</title> - + <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> + <title>Asignatura</title> + <%@ include file="templateHEAD.jsp"%> <!-- validaciones --> <script src="js/jquery-1.7.1.min.js"></script> <script src="js/jquery.validate.min.js"></script> <script src="js/validaciones.js"></script> - - - + <!-- Estilos --> + <style> + .e-border-center { + width: 500px; + margin: 2px auto; + } + .e-form { + width: 100%; + } + </style> </head> - - -<body> -<%@page import="model.Curso" import="java.util.List" %> -<div id="content"> -<form id="form1" name="form1" method="post" action=""> - -<fieldset> - <p> - <label>Nombre</label> - <input type="text" name="nombre" id="nombre"/> - </p> - <p> - <label>Descripcion</label> - <input type="text" name="descripcion" /> - </p> - <p> - <label>Curso:</label> - <select id="curso" name="curso"> - <% List<Curso> cursos = (List<Curso>) request.getAttribute("lista_cursos"); %> - <% for(Curso curso : cursos) {%> - <option value="<%= curso.getIdCurso() %>"><%= curso.getEscuela().getNombre() + " " + curso.getSeccion() + " " + curso.getTurno() %></option> - <% } %> - </select> - </p> - - <p> - <label>Usar plantilla:</label> - <select id="plantilla" name="plantilla" value="Seleccione una plantilla" default="asdf"> - - <option value="0"> Seleccione una opcion..</option> - <option value="1"> Matematica </option> - </select> - </p> - <p class="nolabel"> - <button type="submit" name="Submit"> <img src="css/img/guardar.png" align="middle"/> Guardar </button> - - </p> - - -</fieldset> - -</form> -</div> +<body class="e-body"> + <%@page import="model.Curso" import="java.util.List" %> + <div class="e-viewport"> + <div class="e-border-north"></div> + <div class="e-border-center"> + <form class="e-form" method="post" action=""> + <div class="e-form-body"> + <div class="e-form-field"> + <label for="nombre">Nombre:</label> + <input type="text" name="nombre" id="nombre"/> + </div> + <div class="e-form-field"> + <label for="descripcion">Descripcion:</label> + <input type="text" name="descripcion" /> + </div> + <div class="e-form-field"> + <label for="curso">Curso:</label> + <select id="curso" name="curso"> + <% List<Curso> cursos = (List<Curso>) request.getAttribute("lista_cursos"); %> + <% for(Curso curso : cursos) {%> + <option value="<%= curso.getIdCurso() %>"><%= curso.getEscuela().getNombre() + " " + curso.getSeccion() + " " + curso.getTurno() %></option> + <% } %> + </select> + </div> + <div class="e-form-field"> + <label for="plantilla">Usar plantilla:</label> + <select id="plantilla" name="plantilla" value="Seleccione una plantilla" default="asdf"> + <option value="0">Seleccione una opcion..</option> + <option value="1">Matematica </option> + </select> + </div> + </div> + <div class="e-form-footer"> + <button class="e-button e-button-submit" type="submit" name="Submit">Guardar</button> + </div> + </form> + </div> + <div class="e-border-south"> + Ejercitar: Un Modelo de aprendizaje asistido por computadora</br> + Ceci Godoy - Samu Reyes - FP-UNA + </div> + </div> </body> </html>
\ No newline at end of file diff --git a/EjercitarWeb/WebContent/css/ejercitar-base.css b/EjercitarWeb/WebContent/css/ejercitar-base.css index 39c3fe5..750e09d 100644 --- a/EjercitarWeb/WebContent/css/ejercitar-base.css +++ b/EjercitarWeb/WebContent/css/ejercitar-base.css @@ -159,7 +159,7 @@ input, textarea, select { } .e-form-field label { - width: 20%; + width: 30%; text-align: right; display: block; float: left; @@ -168,13 +168,13 @@ input, textarea, select { margin-right: 5px; } -.e-form-field input { +.e-form-field input, .e-form-field select { height: 35px; border: 1px solid rgb(77, 144, 254); color: rgb(0, 0, 0); padding: 0px 8px; vertical-align: text-top; - width: 74%; + width: 64%; background: none repeat scroll 0% 0% rgb(255, 255, 255); /* box-shadow */ -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3) inset; @@ -187,7 +187,13 @@ input, textarea, select { border-radius: 2px; } -.e-form-field input:hover { +.e-form-field select { + padding: 8px; + padding-right: 0px; + width: 68%; +} + +.e-form-field input:hover, .e-form-field select:hover { border: 1px solid rgb(90, 90, 255); } diff --git a/EjercitarWeb/WebContent/login.jsp b/EjercitarWeb/WebContent/login.jsp index 0eb63e3..9fef1aa 100644 --- a/EjercitarWeb/WebContent/login.jsp +++ b/EjercitarWeb/WebContent/login.jsp @@ -10,7 +10,7 @@ <body> <div class="e-window"> <div class="e-msg e-msg-error e-hide-display-mode"><%= request.getAttribute("error") %></div> - <form class="e-form" id="form1" name="form1" method="post" action="" > + <form class="e-form" method="post" action="" > <div class="e-form-body"> <div class="e-form-field"> <label for="usuario">Usuario:</label> diff --git a/EjercitarWeb/src/src/NuevaAsignaturaServlet.java b/EjercitarWeb/src/src/NuevaAsignaturaServlet.java index 4846f5e..0d37e59 100644 --- a/EjercitarWeb/src/src/NuevaAsignaturaServlet.java +++ b/EjercitarWeb/src/src/NuevaAsignaturaServlet.java @@ -77,7 +77,11 @@ public class NuevaAsignaturaServlet extends HttpServlet { usaPlantilla = true; } - abr.agregarAsignatura(asignatura, usaPlantilla, plantilla); + abr.agregarAsignatura(asignatura); + + if(usaPlantilla){ + abr.copiarRedAsignatura(3, asignatura); + } response.sendRedirect("/EjercitarWeb/MenuPrincipalServlet"); |