Commit e98eb579 by Jose Baez

Merge branch 'develop' into 'master'

Develop

See merge request !37
parents c9f894c4 7f75482d
...@@ -4,7 +4,9 @@ target/ ...@@ -4,7 +4,9 @@ target/
!**/src/test/**/target/ !**/src/test/**/target/
### IntelliJ IDEA ### ### IntelliJ IDEA ###
.idea/gitmisc.xml
.idea/encodings.xml .idea/encodings.xml
.idea/misc.xml
.idea/** .idea/**
.idea/modules.xml .idea/modules.xml
.idea/jarRepositories.xml .idea/jarRepositories.xml
...@@ -14,6 +16,7 @@ target/ ...@@ -14,6 +16,7 @@ target/
*.iml *.iml
*.ipr *.ipr
/encodings.xml
### Eclipse ### ### Eclipse ###
.apt_generated .apt_generated
.classpath .classpath
......
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
</component>
</project>
\ No newline at end of file
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</list> </list>
</option> </option>
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" /> <output url="file://$PROJECT_DIR$/out" />
</component> </component>
</project> </project>
\ No newline at end of file
...@@ -20,10 +20,11 @@ public class Filtros extends HttpServlet { ...@@ -20,10 +20,11 @@ public class Filtros extends HttpServlet {
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
List<Postulante> postulantes = listarPostulante(); List<Postulante> postulantes = listarPostulante();
String respuesta = req.getParameter("id"); String respuesta = req.getParameter("id");
boolean valor = Boolean.parseBoolean(req.getParameter("valor")); String valor = req.getParameter("valor");
String nombre = req.getParameter("nombreBuscar")== null ? "0" : req.getParameter("nombreBuscar"); String nombre = req.getParameter("nombreBuscar")== null ? "0" : req.getParameter("nombreBuscar");
System.out.println(nombre);
if(respuesta != null) { if(respuesta != null) {
System.out.println(valor);
System.out.println(respuesta);
update(Integer.parseInt(req.getParameter("id")), valor); update(Integer.parseInt(req.getParameter("id")), valor);
postulantes = listarPostulante(); postulantes = listarPostulante();
} else if(nombre.length() > 1){ } else if(nombre.length() > 1){
......
...@@ -15,7 +15,7 @@ public class BootcampDao { ...@@ -15,7 +15,7 @@ public class BootcampDao {
try{ try{
Connection con= DataBase.getConnection(); Connection con= DataBase.getConnection();
PreparedStatement ps=con.prepareStatement( PreparedStatement ps=con.prepareStatement(
"insert into bootcamp (id_lenguaje,id_profesor,fecha_inicio,fecha_fin,descripcion,imagen,titulo,activo) values (?,?,?,?,?,?,?,?)"); "insert into bootcamp (id_lenguaje,id_profesor,fecha_inicio,fecha_fin,descripcion,imagen,titulo,activo) values (?,?,?::date,?::date,?,?,?,?)");
ps.setInt(1,b.getId_lenguaje()); ps.setInt(1,b.getId_lenguaje());
ps.setInt(2,b.getId_profesor()); ps.setInt(2,b.getId_profesor());
ps.setString(3,b.getFecha_inicio()); ps.setString(3,b.getFecha_inicio());
...@@ -38,7 +38,7 @@ public class BootcampDao { ...@@ -38,7 +38,7 @@ public class BootcampDao {
try{ try{
Connection con= DataBase.getConnection(); Connection con= DataBase.getConnection();
PreparedStatement ps=con.prepareStatement( PreparedStatement ps=con.prepareStatement(
"update Bootcamp set id_lenguaje=?,id_profesor=?,fecha_inicio=?,fecha_fin=?,descripcion=?,titulo=?,activo=? where id=?"); "update bootcamp set id_lenguaje=?,id_profesor=?,fecha_inicio=?::date,fecha_fin=?::date,descripcion=?,titulo=?,activo=? where id=?");
ps.setInt(1,b.getId_lenguaje()); ps.setInt(1,b.getId_lenguaje());
ps.setInt(2,b.getId_profesor()); ps.setInt(2,b.getId_profesor());
ps.setString(3,b.getFecha_inicio()); ps.setString(3,b.getFecha_inicio());
...@@ -50,13 +50,13 @@ public class BootcampDao { ...@@ -50,13 +50,13 @@ public class BootcampDao {
status=ps.executeUpdate(); status=ps.executeUpdate();
System.out.println(status);
con.close(); con.close();
}catch(Exception ex){ex.printStackTrace();} }catch(Exception ex){ex.printStackTrace();}
return status; return status;
} }
public static List<Bootcamp> listar(){ public static List<Bootcamp> listar(){
ArrayList<Bootcamp> list = new ArrayList<>(); ArrayList<Bootcamp> list = new ArrayList<>();
String sql = "select a.id, a.fecha_inicio, a.fecha_fin, a.descripcion, a.titulo,\n" + String sql = "select a.id, a.fecha_inicio, a.fecha_fin, a.descripcion, a.titulo,\n" +
...@@ -126,9 +126,8 @@ public class BootcampDao { ...@@ -126,9 +126,8 @@ public class BootcampDao {
b.setTitulo(rs.getString("titulo")); b.setTitulo(rs.getString("titulo"));
b.setFecha_fin(rs.getString("fecha_fin")); b.setFecha_fin(rs.getString("fecha_fin"));
b.setFecha_inicio(rs.getString("fecha_inicio")); b.setFecha_inicio(rs.getString("fecha_inicio"));
b.setNombre_profesor(rs.getString("nombre")); b.setId_profesor(rs.getInt("id_profesor"));
b.setApellido_profesor(rs.getString("apellido")); b.setId_lenguaje(rs.getInt("id_lenguaje"));
b.setNombre_lenguaje(rs.getString("nombre_lenguaje"));
b.setImagen(rs.getString("imagen")); b.setImagen(rs.getString("imagen"));
} }
con.close(); con.close();
......
package com.roshka.proyectofinal.bootcamp; package com.roshka.proyectofinal.bootcamp;
import com.roshka.proyectofinal.entity.Bootcamp;
import jakarta.servlet.RequestDispatcher; import jakarta.servlet.RequestDispatcher;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet; import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import jakarta.servlet.ServletException; import jakarta.servlet.ServletException;
import java.io.IOException; import java.io.IOException;
@WebServlet("/EditServletBootcamp")
public class EditServlet extends HttpServlet { public class EditServlet extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response) protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException { throws ServletException, IOException {
response.setContentType("text/html");
String sid=request.getParameter("id"); String sid=request.getParameter("id");
int id=Integer.parseInt(sid); int id=Integer.parseInt(sid);
request.setAttribute("id", id); BootcampDao bootcampDao = new BootcampDao();
Bootcamp bootcamp = bootcampDao.getBootcampById(id);
request.setAttribute("Bootcamp", bootcamp);
RequestDispatcher rd = request.getRequestDispatcher("formulario_bootcamp.jsp"); RequestDispatcher rd = request.getRequestDispatcher("formulario_bootcamp.jsp");
rd.forward(request, response); rd.include(request, response);
}
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
int id_lenguaje= Integer.parseInt(request.getParameter("id_lenguaje2"));
int id_profesor= Integer.parseInt(request.getParameter("id_profesor2"));
String fecha_inicio=request.getParameter("fecha_inicio2");
String fecha_fin=request.getParameter("fecha_fin2");
String descripcion=request.getParameter("descripcion2");
String imagen=request.getParameter("imagen2");
String titulo=request.getParameter("titulo2");
int id = Integer.parseInt(request.getParameter("id"));
String activoStr = request.getParameter("activo2");
System.out.println(activoStr);
Boolean activo = true;
if ( activoStr == null ) {
activo = false;
}else if (activoStr.equals("on")) {
activo = true;
}
System.out.println(activo);
Bootcamp bootcamp =new Bootcamp( id_lenguaje, id_profesor, fecha_inicio, fecha_fin, descripcion, imagen, titulo, activo);
bootcamp.setId(id);
int status=BootcampDao.update(bootcamp);
if(status>0){
response.sendRedirect("formulario_bootcamp.jsp");
}else{
System.out.println("Sorry! unable to update record");
}
} }
} }
\ No newline at end of file
...@@ -2,6 +2,7 @@ package com.roshka.proyectofinal.bootcamp; ...@@ -2,6 +2,7 @@ package com.roshka.proyectofinal.bootcamp;
import com.roshka.proyectofinal.entity.Bootcamp; import com.roshka.proyectofinal.entity.Bootcamp;
import jakarta.servlet.ServletException; import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet; import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
...@@ -9,6 +10,7 @@ import jakarta.servlet.http.HttpServletResponse; ...@@ -9,6 +10,7 @@ import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.io.PrintWriter; import java.io.PrintWriter;
@WebServlet("/SaveServletBootcamp")
public class SaveServlet extends HttpServlet { public class SaveServlet extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException { throws ServletException, IOException {
...@@ -23,8 +25,9 @@ public class SaveServlet extends HttpServlet { ...@@ -23,8 +25,9 @@ public class SaveServlet extends HttpServlet {
String imagen=request.getParameter("imagen"); String imagen=request.getParameter("imagen");
String titulo=request.getParameter("titulo"); String titulo=request.getParameter("titulo");
String activoStr=request.getParameter("activo"); String activoStr=request.getParameter("activo");
System.out.println(activoStr);
Boolean activo = false; Boolean activo = false;
if ( activoStr == "on" ) { if ( activoStr.equals("on") ) {
activo = true; activo = true;
} }
...@@ -33,7 +36,7 @@ public class SaveServlet extends HttpServlet { ...@@ -33,7 +36,7 @@ public class SaveServlet extends HttpServlet {
int status= BootcampDao.save(b); int status= BootcampDao.save(b);
if(status>0){ if(status>0){
out.print("<p>Record saved successfully!</p>"); out.print("<p>Record saved successfully!</p>");
request.getRequestDispatcher("index.html").include(request, response); request.getRequestDispatcher("formulario_bootcamp.jsp").include(request, response);
}else{ }else{
out.println("Sorry! unable to save record"); out.println("Sorry! unable to save record");
} }
......
...@@ -8,6 +8,11 @@ public class Lenguaje { ...@@ -8,6 +8,11 @@ public class Lenguaje {
} }
public Lenguaje(int id, String nombre_lenguaje) {
this.id = id;
this.nombre_lenguaje = nombre_lenguaje;
}
public int getId() { public int getId() {
return id; return id;
} }
......
...@@ -44,9 +44,34 @@ public class Postulante { ...@@ -44,9 +44,34 @@ public class Postulante {
this.aceptado = aceptado; this.aceptado = aceptado;
} }
public int getNroCedula() {
return nroCedula;
}
public String getNombreBootcamp() {
return nombreBootcamp;
}
public boolean isExpLaboral() {
return expLaboral;
}
public boolean isEstudioUniversitario() {
return estudioUniversitario;
}
public boolean isNotebook() {
return notebook;
}
public boolean isAceptado() {
return aceptado;
}
public int getId() { public int getId() {
return id; return id;
} }
public int getNro_cedula() { public int getNro_cedula() {
return nroCedula; return nroCedula;
} }
...@@ -118,35 +143,13 @@ public class Postulante { ...@@ -118,35 +143,13 @@ public class Postulante {
this.id = id; this.id = id;
} }
public int getNroCedula() {
return nroCedula;
}
public void setNroCedula(int nroCedula) { public void setNroCedula(int nroCedula) {
this.nroCedula = nroCedula; this.nroCedula = nroCedula;
} }
public String getNombreBootcamp() {
return nombreBootcamp;
}
public void setNombreBootcamp(String nombreBootcamp) { public void setNombreBootcamp(String nombreBootcamp) {
this.nombreBootcamp = nombreBootcamp; this.nombreBootcamp = nombreBootcamp;
} }
public boolean isExpLaboral() {
return expLaboral;
}
public boolean isEstudioUniversitario() {
return estudioUniversitario;
}
public boolean isNotebook() {
return notebook;
}
public boolean isAceptado() {
return aceptado;
}
} }
package com.roshka.proyectofinal.lenguaje;
import com.roshka.proyectofinal.entity.Lenguaje;
import jakarta.servlet.RequestDispatcher;
import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
@WebServlet("/EditServletLenguaje")
public class EditServlet extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String sid=request.getParameter("id");
int id=Integer.parseInt(sid);
LenguajeDao lenguajeDao = new LenguajeDao();
Lenguaje lenguaje = lenguajeDao.getLenguajeById(id);
request.setAttribute("Lenguaje", lenguaje);
RequestDispatcher rd = request.getRequestDispatcher("formulario_lenguaje.jsp");
rd.include(request, response);
}
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String nombre_lenguaje=request.getParameter("nombre_lenguaje");
int id = Integer.parseInt(request.getParameter("id"));
System.out.println(id);
Lenguaje lenguaje =new Lenguaje(id,nombre_lenguaje);
int status=LenguajeDao.update(lenguaje);
if(status>0){
response.sendRedirect("formulario_lenguaje.jsp");
}else{
System.out.println("Sorry! unable to update record");
}
}
}
...@@ -66,6 +66,22 @@ public class LenguajeDao { ...@@ -66,6 +66,22 @@ public class LenguajeDao {
return status; return status;
} }
public static int update(Lenguaje l){
int status=0;
try{
Connection con= DataBase.getConnection();
PreparedStatement ps=con.prepareStatement(
"update lenguaje set nombre_lenguaje=? where id=?");
ps.setString(1,l.getNombre_lenguaje());
ps.setInt(2,l.getId());
status=ps.executeUpdate();
con.close();
}catch(Exception ex){ex.printStackTrace();}
return status;
}
public static Lenguaje getLenguajeById(int id){ public static Lenguaje getLenguajeById(int id){
Lenguaje lenguaje=new Lenguaje(); Lenguaje lenguaje=new Lenguaje();
......
...@@ -78,7 +78,7 @@ public class LoginServlet extends HttpServlet { ...@@ -78,7 +78,7 @@ public class LoginServlet extends HttpServlet {
catch (Exception ignored) { } catch (Exception ignored) { }
// Si no es posible redireccionar a la pagina solicitada, llevar a la main page // Si no es posible redireccionar a la pagina solicitada, llevar a la main page
RequestDispatcher rd = request.getRequestDispatcher("menu.html"); RequestDispatcher rd = request.getRequestDispatcher("menu.jsp");
rd.include(request,response); rd.include(request,response);
} else { } else {
......
package com.roshka.proyectofinal.profesor;
import com.roshka.proyectofinal.entity.Lenguaje;
import com.roshka.proyectofinal.entity.Profesor;
import jakarta.servlet.RequestDispatcher;
import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
@WebServlet("/EditServletProfesor")
public class EditServlet extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
int id = Integer.parseInt(request.getParameter("id"));
ProfesorDao profesorDao = new ProfesorDao();
// Profesor profesor = profesorDao.getProfesorById(id);
// request.setAttribute("Profesor", profesor);
RequestDispatcher rd = request.getRequestDispatcher("formulario_profesor.jsp");
rd.include(request, response);
}
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
int id = Integer.parseInt(request.getParameter("id"));
String nombre = request.getParameter("nombre");
String apellido = request.getParameter("apellido");
String email = request.getParameter("correo");
int nro_cedula = Integer.parseInt(request.getParameter("nro_cedula"));
Profesor profesor =new Profesor(nro_cedula, nombre, apellido, email);
profesor.setId(id);
// int status=ProfesorDao.update(profesor);
// if(status>0){
// response.sendRedirect("formulario_profesor.jsp");
// }else{
// System.out.println("Sorry! unable to update record");
// }
}
}
package com.roshka.proyectofinal.profesor;
import com.roshka.proyectofinal.entity.Profesor;
import jakarta.servlet.RequestDispatcher;
import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import static com.roshka.proyectofinal.profesor.ProfesorDao.buscarPorNombre;
import static com.roshka.proyectofinal.profesor.ProfesorDao.listarProfesor;
@WebServlet("/filtros-profesor")
public class Filtros extends HttpServlet {
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
List<Profesor> profesores = listarProfesor();
String nombre = req.getParameter("nombreBuscar");
String apellido = req.getParameter("apellidoBuscar");
System.out.println(nombre);
System.out.println(apellido);
if(nombre!=null || apellido!=null){
profesores = buscarPorNombre(nombre, apellido);
}
req.getServletContext().setAttribute("profesores", profesores);
RequestDispatcher reqDisp= req.getRequestDispatcher("profesor-consulta.jsp");
reqDisp.forward(req,resp);
}
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
List<Profesor > nombre = listarProfesor();
List<Profesor > apellido = listarProfesor();
req.getServletContext().setAttribute("nombre", nombre);
req.getServletContext().setAttribute("apellido", apellido);
RequestDispatcher reqDisp= req.getRequestDispatcher("profesor-consulta.jsp");
reqDisp.forward(req,resp);
}
}
...@@ -30,35 +30,54 @@ public class ProfesorDao { ...@@ -30,35 +30,54 @@ public class ProfesorDao {
return status; return status;
} }
public static List<Profesor> listarProfesor(){
public static List<Profesor> listar(){
ArrayList<Profesor> list = new ArrayList<>(); ArrayList<Profesor> list = new ArrayList<>();
String sql = "select * from profesor"; String sql = "select * from profesor";
try{ try{
Connection con= DataBase.getConnection(); Connection con= DataBase.getConnection();
PreparedStatement ps=con.prepareStatement(sql); PreparedStatement ps=con.prepareStatement(sql);
ResultSet rs = ps.executeQuery(); ResultSet rs = ps.executeQuery();
while(rs.next()){ while(rs.next()){
Profesor profe = new Profesor(); Profesor profesorObject = new Profesor();
profe.setId(rs.getInt("id")); profesorObject.setNombre(rs.getString("nombre"));
profe.setNombre(rs.getString("nombre")); profesorObject.setApellido(rs.getString("apellido"));
profe.setApellido(rs.getString("apellido")); profesorObject.setNro_cedula(rs.getInt("nro_cedula"));
profe.setNro_cedula(rs.getInt("nro_cedula")); profesorObject.setCorreo(rs.getString("correo"));
profe.setCorreo(rs.getString("correo")); list.add(profesorObject);
list.add(profe);
} }
con.close(); con.close();
} catch (SQLException e) { } catch (SQLException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
return list; return list;
} }
public static List<Profesor> buscarPorNombre(String nombre, String apellido){
List<Profesor> profesores = new ArrayList<>();
Profesor profesorObject = new Profesor();
try{
Connection con= DataBase.getConnection();
PreparedStatement ps=con.prepareStatement("select a.id, a.nombre, a.apellido, a.nro_cedula, a.correo from profesor a " +
" where a.nombre ilike ? and a.apellido ilike ? ");
ps.setString(1, "%" + nombre + "%");
ps.setString(2, "%" + apellido + "%");
System.out.println(nombre);
ResultSet rs = ps.executeQuery();
while(rs.next()){
profesorObject.setNombre(rs.getString("nombre"));
profesorObject.setApellido(rs.getString("apellido"));
profesorObject.setNro_cedula(rs.getInt("nro_cedula"));
profesorObject.setCorreo(rs.getString("correo"));
profesores.add(profesorObject);
}
con.close();
}catch(Exception ex){
ex.printStackTrace();
}
return profesores;
}
public static int delete(int id){ public static int delete(int id){
int status=0; int status=0;
try{ try{
...@@ -72,25 +91,4 @@ public class ProfesorDao { ...@@ -72,25 +91,4 @@ public class ProfesorDao {
return status; return status;
} }
}
public static Profesor getProfesorById(int id){ \ No newline at end of file
Profesor p=new Profesor();
try{
Connection con=DataBase.getConnection();
PreparedStatement ps=con.prepareStatement("select * from profesor where id=?");
ps.setInt(1,id);
ResultSet rs=ps.executeQuery();
if(rs.next()){
p.setId(rs.getInt("id"));
p.setNombre(rs.getString("nombre"));
p.setApellido(rs.getString("apellido"));
p.setNro_cedula(rs.getInt("nro_cedula"));
p.setCorreo(rs.getString("correo"));
}
con.close();
}catch(Exception ex){ex.printStackTrace();}
return p;
}
}
(function() {
const form = document.querySelector('#agarraunolaputa');
const checkboxes = form.querySelectorAll('input[type=checkbox]');
const checkboxLength = checkboxes.length;
const firstCheckbox = checkboxLength > 0 ? checkboxes[0] : null;
function init() {
if (firstCheckbox) {
for (let i = 0; i < checkboxLength; i++) {
checkboxes[i].addEventListener('change', checkValidity);
}
checkValidity();
}
}
function isChecked() {
for (let i = 0; i < checkboxLength; i++) {
if (checkboxes[i].checked) return true;
}
return false;
}
function checkValidity() {
const errorMessage = !isChecked() ? 'Debe seleccionar al menos un lenguaje que conozca' : '';
firstCheckbox.setCustomValidity(errorMessage);
}
init();
})();
\ No newline at end of file
...@@ -12,9 +12,10 @@ body{ ...@@ -12,9 +12,10 @@ body{
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 160%;} height: 160%;
} }
/* para el logo */ /* para el logo */
img{ img{
width: 165px; width: 165px;
...@@ -43,11 +44,9 @@ p:hover{ ...@@ -43,11 +44,9 @@ p:hover{
/* contenedor */ /* contenedor */
/* para el forrmulario */ /* para el forrmulario */
.form label{ .form label{
display: block; display: block;
border: none; border: none;
align-items:center;
align-items:center;
} }
...@@ -94,9 +93,10 @@ border-radius: 10px; ...@@ -94,9 +93,10 @@ border-radius: 10px;
text-decoration:none; text-decoration:none;
background-color: rgba(11, 49, 110, 0.75); background-color: rgba(11, 49, 110, 0.75);
background-image: url(imagenes/descarga.svg); background-image: url(imagenes/descarga.svg);
border-radius: 10px;; border-radius: 5px;;
padding: 15px; padding: 10px;
border-radius: 10px; border-radius: 10px;
margin:10px;
text-decoration: none; text-decoration: none;
color:#ffff; color:#ffff;
text-align:left; text-align:left;
...@@ -104,21 +104,37 @@ border-radius: 10px; ...@@ -104,21 +104,37 @@ border-radius: 10px;
width:80px; width:80px;
text-align:center; text-align:center;
} }
/*hola mundo*/
input#ruby,input#python,input#c,input#javascript,input#java{ input#ruby,input#python,input#c,input#javascript,input#java{
width:20px; width:30px;
} }
input#experiencia_laboral,input#notebook,input#universidad{ input#experiencia_laboral,input#notebook,input#universidad{
width:100px; width:500px;
} }
/* para el alert */
.alert {
padding: 10px;
background-color: background-color: #2196F3;
color: white;
}
.alert.info {background-color: #2196F3;}
.alert.error {background-color: #ff0000;}
.closebtn {
margin-left: 15px;
color: white;
font-weight: bold;
float: right;
font-size: 22px;
line-height: 20px;
cursor: pointer;
transition: 0.3s;
}
.closebtn:hover {
/* parrafo final */ color: black;
//mi parte jose leeme }
\ No newline at end of file
</style>
// Get all elements with class="closebtn"
var close = document.getElementsByClassName("closebtn");
var i;
// Loop through all close buttons
for (i = 0; i < close.length; i++) {
// When someone clicks on a close button
close[i].onclick = function(){
// Get the parent of <span class="closebtn"> (<div class="alert">)
var div = this.parentElement;
// Set the opacity of div to 0 (transparent)
div.style.opacity = "0";
// Hide the div after 600ms (the same amount of milliseconds it takes to fade out)
setTimeout(function(){ div.style.display = "none"; }, 600);
}
}
<%@ page import="com.roshka.proyectofinal.entity.Lenguaje, com.roshka.proyectofinal.entity.Bootcamp, com.roshka.proyectofinal.lenguaje.LenguajeDao, com.roshka.proyectofinal.bootcamp.BootcampDao, com.roshka.proyectofinal.entity.Profesor, com.roshka.proyectofinal.profesor.ProfesorDao, java.util.List,java.util.Iterator, java.util.ArrayList" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" /> <link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
<!-- coneccion con el de css -->
<link rel="stylesheet" href="postulante.css">
<title>JSP Page</title> <title>JSP Page</title>
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<h1>Crear Bootcamp</h1> <h1> CREAR BOOTCAMP </h1>
<%@ page import="com.roshka.proyectofinal.entity.Lenguaje, com.roshka.proyectofinal.entity.Bootcamp, com.roshka.proyectofinal.lenguaje.LenguajeDao, com.roshka.proyectofinal.bootcamp.BootcampDao, com.roshka.proyectofinal.entity.Profesor, com.roshka.proyectofinal.profesor.ProfesorDao, java.util.List,java.util.Iterator" %> <%@ page import="com.roshka.proyectofinal.entity.Lenguaje, com.roshka.proyectofinal.entity.Bootcamp, com.roshka.proyectofinal.lenguaje.LenguajeDao, com.roshka.proyectofinal.bootcamp.BootcampDao, com.roshka.proyectofinal.entity.Profesor, com.roshka.proyectofinal.profesor.ProfesorDao, java.util.List,java.util.Iterator" %>
<% <%
LenguajeDao lenDao = new LenguajeDao(); LenguajeDao lenDao = new LenguajeDao();
List<Lenguaje> listLenguaje = lenDao.listar(); List<Lenguaje> listLen = lenDao.listar();
Iterator<Lenguaje> iter = listLenguaje.iterator(); Iterator<Lenguaje> iter = listLen.iterator();
Lenguaje len = null; Lenguaje len = null;
ProfesorDao profeDao = new ProfesorDao(); ProfesorDao profeDao = new ProfesorDao();
List<Profesor> listProfesor = profeDao.listar(); List<Profesor> listProfesor = profeDao.listarProfesor();
Iterator<Profesor> iterProfe = listProfesor.iterator(); Iterator<Profesor> iterProfe = listProfesor.iterator();
Profesor profe = null; Profesor profe = null;
%> %>
<form action="" method="post"> <form action="SaveServletBootcamp" method="post">
<label for="lenguaje">Lenguajes:</label> <label for="titulo">titulo:</label>
<select name="lenguaje" id="lenguaje"> <input type="text" name="titulo" id="titulo">
<label for="descripcion">descripcion:</label>
<input type="text" name="descripcion" id="descripcion">
<label for="fecha_inicio">fecha de inicio:</label>
<input type="text" name="fecha_inicio" id="fecha_inicio">
<label for="fecha_fin">fecha de fin:</label>
<input type="text" name="fecha_fin" id="fecha_fin">
<label for="activo">Activo:</label>
<input type="checkbox" name="activo" id="activo">
<label for="imagen">Imagen:</label>
<input type="text" name="imagen" id="imagen">
<label for="id_lenguaje">Lenguajes:</label>
<select name="id_lenguaje" id="id_lenguaje">
<% while(iter.hasNext()){ <% while(iter.hasNext()){
len = iter.next(); len = iter.next();
%> %>
<option value=<%= len.getId() %> > <option value=<%= len.getId() %> >
<%= len.getNombre_lenguaje() %> <%= len.getNombre_lenguaje() %>
...@@ -39,8 +52,8 @@ ...@@ -39,8 +52,8 @@
<% } %> <% } %>
</select> </select>
<label for="lenguaje">Profesores:</label> <label for="id_profesor">Profesores:</label>
<select name="lenguaje" id="lenguaje"> <select name="id_profesor" id="id_profesor">
<% while(iterProfe.hasNext()){ <% while(iterProfe.hasNext()){
profe = iterProfe.next(); profe = iterProfe.next();
...@@ -48,10 +61,13 @@ ...@@ -48,10 +61,13 @@
<option value=<%= profe.getId() %> > <option value=<%= profe.getId() %> >
<%= profe.getNombre() + " " + profe.getApellido() %> <%= profe.getNombre() + " " + profe.getApellido() %>
</option> </option>
<% } %> <% } %>
</select> </select>
</form>
<button type="submit">
Crear Bootcamp
</button>
</form>
</div> </div>
...@@ -87,9 +103,9 @@ ...@@ -87,9 +103,9 @@
<th> <%= boot.getNombre_lenguaje() %> </th> <th> <%= boot.getNombre_lenguaje() %> </th>
<th> <%= boot.getNombre_profesor() + " " + boot.getApellido_profesor() %> </th> <th> <%= boot.getNombre_profesor() + " " + boot.getApellido_profesor() %> </th>
<th> <%= boot.getActivo() %> </th> <th> <%= boot.getActivo() %> </th>
<th> <form action="/bootcamp/EditServlet"> <th> <form action="EditServletBootcamp" method="get">
<input type="hidden" name="id" value=<%= boot.getId() %>> <input type="hidden" name="id" value=<%= boot.getId() %>>
<input type="submit" value="Editar" > </input> <input type="submit" value="Editar" ></input>
</form> </form>
</th> </th>
<th> <th>
...@@ -104,6 +120,64 @@ ...@@ -104,6 +120,64 @@
</table> </table>
</form> </form>
</div> </div>
</body>
<%
LenguajeDao lenDao2 = new LenguajeDao();
List<Lenguaje> listLenguaje2 = lenDao2.listar();
Iterator<Lenguaje> iter2 = listLenguaje2.iterator();
Lenguaje len2 = null;
ProfesorDao profeDao2 = new ProfesorDao();
List<Profesor> listProfesor2 = profeDao2.listarProfesor();
Iterator<Profesor> iterProfe2 = listProfesor2.iterator();
Profesor profe2 = null;
Bootcamp bootcampToEdit = (Bootcamp)request.getAttribute("Bootcamp");
if(bootcampToEdit != null){
%>
<form method="post" action="EditServletBootcamp">
<label for="titulo2">titulo:</label>
<input type="text" id="titulo2" name="titulo2" value="<%= bootcampToEdit.getTitulo() %>">
<label for="descripcion2">descripcion:</label>
<input type="text" id="descripcion2" name="descripcion2" value="<%= bootcampToEdit.getDescripcion() %>">
<label for="fecha_inicio2">fecha de inicio:</label>
<input type="text" id="fecha_inicio2" name="fecha_inicio2" value="<%= bootcampToEdit.getFecha_inicio() %>">
<label for="fecha_fin2">fecha de fin:</label>
<input type="text" id="fecha_fin2" name="fecha_fin2" value="<%= bootcampToEdit.getFecha_fin() %>">
<label for="activo2">Activo:</label>
<input type="checkbox" id="activo2" name="activo2">
<label for="imagen2">Imagen:</label>
<input type="text" name="imagen2" id="imagen2" value=<%= bootcampToEdit.getImagen() %>>
<input type="hidden" value=<%= bootcampToEdit.getId() %> name="id" id="id" />
<label for="id_lenguaje2">Lenguajes:</label>
<select name="id_lenguaje2" id="id_lenguaje2">
<% while(iter2.hasNext()){
len2 = iter2.next();
%>
<option value=<%= len2.getId() %> >
<%= len2.getNombre_lenguaje() %>
</option>
<% } %>
</select>
<label for="id_profesor2">Profesores:</label>
<select id="id_profesor2" name="id_profesor2">
<% while(iterProfe2.hasNext()){
profe2 = iterProfe2.next();
%>
<option value=<%= profe2.getId() %> >
<%= profe2.getNombre() + " " + profe2.getApellido() %>
</option>
<% } %>
</select>
<button type="submit">
Editar Bootcamp
</button>
</form>
<% } %>
</body>
</html> </html>
\ No newline at end of file
...@@ -6,12 +6,13 @@ ...@@ -6,12 +6,13 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" /> <link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="postulante.css">
<title>JSP Page</title> <title>JSP Page</title>
</head> </head>
<body> <body>
<div> <div>
<h1>Crear Lenguaje</h1> <h1> CREAR LENGUAJE </h1>
<%@ page import="com.roshka.proyectofinal.entity.Lenguaje, com.roshka.proyectofinal.lenguaje.LenguajeDao, java.util.List,java.util.Iterator" %> <%@ page import="com.roshka.proyectofinal.entity.Lenguaje, com.roshka.proyectofinal.lenguaje.LenguajeDao, java.util.List,java.util.Iterator" %>
...@@ -37,6 +38,7 @@ ...@@ -37,6 +38,7 @@
Crear Lenguaje Crear Lenguaje
</button> </button>
</form> </form>
<br>
<table> <table>
<thead> <thead>
...@@ -53,14 +55,14 @@ ...@@ -53,14 +55,14 @@
%> %>
<th> <%= lenguaje.getNombre_lenguaje() %> </th> <th> <%= lenguaje.getNombre_lenguaje() %> </th>
<th> <form action="EditServlet" method="get"> <th> <form action="EditServletLenguaje" method="get">
<input type="hidden" name="id" value=<%= lenguaje.getId() %>> <input type="hidden" name="id" value=<%= lenguaje.getId() %>>
<input type="submit" value="Editar" > </input> <input type="submit" value="Editar" > </input>
</form> </form>
</th> </th>
<th> <th>
<form action="DeleteServletLenguaje" method="get"> <form action="DeleteServletLenguaje" method="get">
<input type="hidden" name="id" value= <%= lenguaje.getId() %> > <input type="hidden" name="id" value= <%= lenguaje.getId() %> name="id" id="id" >
<input type="submit" value="Borrar" > </input> <input type="submit" value="Borrar" > </input>
</form> </form>
</th> </th>
...@@ -70,6 +72,19 @@ ...@@ -70,6 +72,19 @@
</table> </table>
</form> </form>
</div> </div>
<%
Lenguaje lenguajeToEdit = (Lenguaje)request.getAttribute("Lenguaje");
if(lenguajeToEdit != null){
%>
<form method="post" action="EditServletLenguaje">
<input type="hidden" value="<%= lenguajeToEdit.getId() %>" name="id" id="id" />
<label for="nombre_lenguaje">Lenguaje:</label>
<input type="text" name="nombre_lenguaje" value="<%= lenguajeToEdit.getNombre_lenguaje() %>">
<button type="submit">Editar Lenguaje </button>
</form>
<% } %>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -6,12 +6,14 @@ ...@@ -6,12 +6,14 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" /> <link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="postulante.css">
<title>JSP Page</title> <title>JSP Page</title>
</head> </head>
<body> <body>
<div> <div>
<h1>Crear Profesor</h1> <h1> CREAR PROFESOR Y FILTRAR </h1>
<%@ page import="com.roshka.proyectofinal.entity.Profesor, com.roshka.proyectofinal.profesor.ProfesorDao, java.util.List,java.util.Iterator" %> <%@ page import="com.roshka.proyectofinal.entity.Profesor, com.roshka.proyectofinal.profesor.ProfesorDao, java.util.List,java.util.Iterator" %>
...@@ -20,7 +22,7 @@ ...@@ -20,7 +22,7 @@
<div> <div>
<% <%
ProfesorDao profeDao = new ProfesorDao(); ProfesorDao profeDao = new ProfesorDao();
List<Profesor> listProfe = profeDao.listar(); List<Profesor> listProfe = profeDao.listarProfesor();
Iterator<Profesor> iterProfe = listProfe.iterator(); Iterator<Profesor> iterProfe = listProfe.iterator();
Profesor profesor = null; Profesor profesor = null;
%> %>
...@@ -50,6 +52,15 @@ ...@@ -50,6 +52,15 @@
Crear Profesor Crear Profesor
</button> </button>
</form> </form>
<br>
<form action="filtros-profesor">
<input name="nombreBuscar">
<input name="apellidoBuscar">
<button type="submit">
Filtrar
</button>
</form>
<br>
<table> <table>
<thead> <thead>
...@@ -72,9 +83,9 @@ ...@@ -72,9 +83,9 @@
<th> <%= profesor.getNro_cedula() %> </th> <th> <%= profesor.getNro_cedula() %> </th>
<th> <%= profesor.getCorreo() %> </th> <th> <%= profesor.getCorreo() %> </th>
<th> <form action="EditServlet" method="get"> <th> <form action="EditServletProfesor" method="get">
<input type="hidden" name="id" value=<%= profesor.getId() %>> <input type="hidden" name="id" value=<%= profesor.getId() %>>
<input type="submit" value="Editar" > </input> <input type="submit" value="Editar"> </input>
</form> </form>
</th> </th>
<th> <th>
...@@ -89,6 +100,25 @@ ...@@ -89,6 +100,25 @@
</table> </table>
</form> </form>
</div> </div>
<%
Profesor profesorToEdit = (Profesor)request.getAttribute("Profesor");
if(profesorToEdit != null){
%>
<form method="post" action="EditServletProfesor">
<input type="hidden" value="<%= profesorToEdit.getId() %>" name="id" id="id" />
<label for="nombre">Nombre:</label>
<input type="text" name="nombre" value="<%= profesorToEdit.getNombre() %>" />
<label for="apellido">Apellido:</label>
<input type="text" name="apellido" value="<%= profesorToEdit.getApellido() %>"></input>
<label for="correo">Correo:</label>
<input type="text" name="correo" value="<%= profesorToEdit.getCorreo() %>"></input>
<label for="nro_cedula">Numero de Cedula:</label>
<input type="number" name="nro_cedula" value="<%= profesorToEdit.getNro_cedula() %>"></input>
<button type="submit">Editar Profesor </button>
</form>
<% } %>
</body> </body>
</html> </html>
\ No newline at end of file
img.logoi{ img.logoi {
width: 200px; width: 200px;
}
} img {
width: 400px;
img{ padding: 10px;
width: 400px; display: block;
padding: 10px; padding: 10px;
display: block; }
padding:10px ;
} .header {
.header { margin-bottom: 0;
margin-bottom: 0; width: 700px;
width: 700px; }
}
a{ a {
float: right 100px; float: right 100px;
color: #fff; color: #fff;
font-size: larger; font-size: larger;
text-decoration: none; text-decoration: none;
padding: 10px; padding: 10px;
}
}
body {
body { background: linear-gradient(100deg, rgba(20, 99, 155, 0.25), rgba(30, 148, 227, 0.25));
background: linear-gradient(100deg, rgba(20, 99, 155, 0.25), rgba(30, 148, 227, 0.25)); background-image: url(imagenes/descarga.svg);
background-image: url(webapp/imagenes/descarga.svg);
background-size: contain; background-size: contain;
background-attachment: fixed; background-attachment: fixed;
background-blend-mode: multiply; background-blend-mode: multiply;
font-family: Georgia, 'Times New Roman', Times, serif; font-family: Georgia, 'Times New Roman', Times, serif;
color: white; color: white;
position: relative; position: relative;
width: 100px; width: 100px;
height: 100px; height: 100px;
} }
/* ul{ /* ul{
list-style: none; list-style: none;
} }
.menu >ul{ .menu >ul{
...@@ -54,93 +53,73 @@ body { ...@@ -54,93 +53,73 @@ body {
marging-left marging-left
position:relative; position:relative;
} */ } */
.menu {
width: 400%;
float: left;
}
.menu ul li {
float: right;
list-style-type: none;
text-align: right;
}
div.menu{
float: right;
}
html, body {
margin:0;
padding:0;
height:100%;
}
.menu ul li a {
padding-left: 5px;
font-size: clamp(145px); .menu {
text-transform: uppercase; width: 400%;
display: block; float: left;
position: relative; }
overflow: hidden;
padding-bottom: 50px; .menu ul li {
white-space: nowrap; float: right;
} list-style-type: none;
.grafico,svg { text-align: right;
max-width: 50px; }
display: block;
height: auto; div.menu {
} float: right;
.seccion.hero { }
margin-top: 10px;
padding-bottom: 10px; .menu ul li a {
width: 900px; padding-left: 5px;
} text-decoration: none;
.hero { font-size: clamp(145px);
perspective: 100px; text-transform: uppercase;
} display: block;
.hero { position: relative;
display: grid; overflow: hidden;
grid-template-columns: auto repeat(5, 0.5fr) auto; padding-bottom: 50px;
} white-space: nowrap;
.hero { }
display: flex;
flex-direction: column; .grafico,
align-items: center; svg {
padding-left: 200px; max-width: 50px;
/* padding-right: 200px; display: block;
height: auto;
}
.seccion.hero {
margin-top: 10px;
padding-bottom: 10px;
width: 900px;
}
.hero {
perspective: 100px;
}
.hero {
display: grid;
grid-template-columns: auto repeat(5, 0.5fr) auto;
}
.hero {
display: flex;
flex-direction: column;
align-items: center;
padding-left: 200px;
/* padding-right: 200px;
*/ */
} }
/* */ /* */
.postulacion{
border-radius: 30px; .postulacion {
} border-radius: 30px;
.cta-main{ }
width: 200px;
font-family: monospace; .cta-main {
background-color: yellow; width: 200px;
border: none; font-family: monospace;
} background-color: yellow;
/* Contenido pie de pagina */ border: none;
/* usamos media quiere para el responsive */ }
/* @media (min-width: 768px)
.footer {
display: grid;
grid-template-rows: auto auto;
align-items: flex-start;
gap: 0;
padding: 80px 20px
} */
.footer{
margin-top: 10px;
padding-bottom: 10px;
height:100px;
width: 100px;
display: grid;
}
.menu-footer a{
text-decoration: none;
float: right;
}
\ No newline at end of file
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<!-- para concectar con css --> <!-- para concectar con css -->
<link rel="stylesheet" href="estilos/home.css"> <link rel="stylesheet" href="home.css">
<!-- el icono para la pagina --> <!-- el icono para la pagina -->
<link rel="shortcut icon" href="imagenes/roshkaicon.ico" sizes="any" /> <link rel="shortcut icon" href="imagenes/roshkaicon.ico" sizes="any" />
...@@ -26,15 +26,9 @@ ...@@ -26,15 +26,9 @@
<ul> <ul>
<li class="link-menu"><a href="">Home</a></li> <li class="link-menu"><a href="">Home</a></li>
<li class="link-menu"><a href="formulario.jsp">Postulate</a></li> <li class="link-menu"><a href="bootcamp.jsp">Postulate</a></li>
<li class="link-menu"><a href="formulario_bootcamp.jsp">Crear bootcamp</a>
<li class="link-menu"><a href="login.jsp">Login</a>
<li class="link-menu"><a href="protected">Recurso Protegido</a></li>
</li>
<li class="link-menu"><a href="formulario_lenguaje.jsp">Crear lenguaje</a>
</li>
<li class="link-menu"><a href="formulario_profesor.jsp">Crear profesor</a>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -63,7 +57,7 @@ ...@@ -63,7 +57,7 @@
<p data-block-key="cwggy">Es un campo de entrenamiento intensivo y gratuito para principiantes que ya programan y quieren ser parte de la empresa</p> <p data-block-key="cwggy">Es un campo de entrenamiento intensivo y gratuito para principiantes que ya programan y quieren ser parte de la empresa</p>
</div> </div>
<div class="postulacion"> <div class="postulacion">
<a href="formulario.jsp"><button type="submit" class="cta-main">POSTULACION</button></a> <a href="bootcamp.jsp"><button type="submit" class="cta-main">POSTULACION</button></a>
<!-- <a href="/postulacion" class="cta-main">POSTULACION</a> --> <!-- <a href="/postulacion" class="cta-main">POSTULACION</a> -->
</div> </div>
</div> </div>
...@@ -87,130 +81,3 @@ ...@@ -87,130 +81,3 @@
</body> </body>
</html> </html>
<style>
img.logoi {
width: 200px;
}
img {
width: 400px;
padding: 10px;
display: block;
padding: 10px;
}
.header {
margin-bottom: 0;
width: 700px;
}
a {
float: right 100px;
color: #fff;
font-size: larger;
text-decoration: none;
padding: 10px;
}
body {
background: linear-gradient(100deg, rgba(20, 99, 155, 0.25), rgba(30, 148, 227, 0.25));
background-image: url(imagenes/descarga.svg);
background-size: contain;
background-attachment: fixed;
background-blend-mode: multiply;
font-family: Georgia, 'Times New Roman', Times, serif;
color: white;
position: relative;
width: 100px;
height: 100px;
}
/* ul{
list-style: none;
}
.menu >ul{
float: right;
}
.menu li a {
color:#fff;
text-decoration:none;
padding:10px 12px;
display:block;
}
.menu li ul li {
marging-left
position:relative;
} */
.menu {
width: 400%;
float: left;
}
.menu ul li {
float: right;
list-style-type: none;
text-align: right;
}
div.menu {
float: right;
}
.menu ul li a {
padding-left: 5px;
text-decoration: none;
font-size: clamp(145px);
text-transform: uppercase;
display: block;
position: relative;
overflow: hidden;
padding-bottom: 50px;
white-space: nowrap;
}
.grafico,
svg {
max-width: 50px;
display: block;
height: auto;
}
.seccion.hero {
margin-top: 10px;
padding-bottom: 10px;
width: 900px;
}
.hero {
perspective: 100px;
}
.hero {
display: grid;
grid-template-columns: auto repeat(5, 0.5fr) auto;
}
.hero {
display: flex;
flex-direction: column;
align-items: center;
padding-left: 200px;
/* padding-right: 200px;
*/
}
/* */
.postulacion {
border-radius: 30px;
}
.cta-main {
width: 200px;
font-family: monospace;
background-color: yellow;
border: none;
}
</style>
\ No newline at end of file
<<<<<<< HEAD
=======
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
...@@ -22,5 +20,4 @@ ...@@ -22,5 +20,4 @@
</body> </body>
</html> </html>
>>>>>>> origin/develop \ No newline at end of file
* { * {
box-sizing: border-box; box-sizing: border-box;
} }
body { body {
font-family: 'Concert One', cursive; font-family: 'Concert One', cursive;
font-size: 13px font-size: 13px
......
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<link rel="shortcut icon" href="imagenes/roshkaicon.ico" sizes="any" />
</head>
<style> <style>
<link href="https://fonts.googleapis.com/css2?family=Concert+One&family=Francois+One&family=Satisfy&family=Staatliches&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Concert+One&family=Francois+One&family=Satisfy&family=Staatliches&display=swap" rel="stylesheet">
...@@ -8,7 +10,9 @@ ...@@ -8,7 +10,9 @@
* { * {
box-sizing: border-box; box-sizing: border-box;
} }
a{
text-decoration:none;
}
body { body {
font-family: 'Concert One', cursive; font-family: 'Concert One', cursive;
font-family: 'Francois One', sans-serif; font-family: 'Francois One', sans-serif;
......
<!DOCTYPE html>
<html>
<head>
<link rel="shortcut icon" href="imagenes/roshkaicon.ico" sizes="any" />
</head>
<style>
<link href="https://fonts.googleapis.com/css2?family=Concert+One&family=Francois+One&family=Satisfy&family=Staatliches&display=swap" rel="stylesheet">* {
box-sizing: border-box;
}
body {
font-family: 'Concert One', cursive;
font-family: 'Francois One', sans-serif;
font-family: 'Satisfy', cursive;
font-family: 'Staatliches', cursive;
font-size: 13px
}
.header,
.footer {
background-color: rgb(18, 18, 98);
color: white;
padding: 60px;
}
.column {
float: left;
padding: 30px;
}
.clearfix::after {
content: "";
clear: both;
display: table;
}
a {
color: white;
}
.menu {
width: 50%;
}
.content {
width: 50%;
}
.menu ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.menu li {
padding: 8px;
margin-bottom: 8px;
background-color: rgb(18, 18, 98);
color: #ffffff;
}
.menu li:hover {
background-color: rgb(18, 18, 98);
}
</style>
</head>
<body>
<div class="header">
<h1> MENU TH</h1>
<h2> EN LOS SIGUIENTES LINKS PUEDE MODIFICAR, AGREGAR O ELIMINAR DATOS DE LA BASE DE DATOS DEL BOOTCAMP </h2>
</div>
<div class="column content">
<h1>PUEDE ACCEDER A LOS SIGUIENTES LINKS:</h1>
</div>
<div class="clearfix">
<div class="column menu">
<ul>
<li><a href="formulario_bootcamp.jsp"> MANAGE BOOTCAMP </a></li>
<li><a href="filtros-postulante"> MANAGE POSTULANTE </a></li>
<li><a href="formulario_lenguaje.jsp"> MANAGE LENGUAJES </a></li>
<li><a href="formulario_profesor.jsp"> MANAGE PROFESORES </a></li>
</ul>
</div>
</div>
</body>
</html>
\ No newline at end of file
...@@ -5,17 +5,49 @@ ...@@ -5,17 +5,49 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Postulantes Manage</title>
<!-- el icono para la pagina -->
<link rel="shortcut icon" href="imagenes/roshkaicon.ico" sizes="any" />
<!-- coneccion con el de css -->
<link rel="stylesheet" href="postulante.css">
<title> POSTULANTE MANAGE </title>
</head> </head>
<body> <body>
<div> <div class="logo">
<a href="./index.html"> <img class="logoi" src="imagenes/logo-roshka.svg" alt="" /> </a>
<!-- logo con link -->
</div>
<div class="container">
<h1>Lista Postulantes</h1> <h1>Lista Postulantes</h1>
<form action="filtros-postulante" > <div class="filtros">
<input type="search" name="nombreBuscar" <form action="filtros-postulante" >
placeholder="Buscar por nombre"> <input type="search" name="nombreBuscar"
<button type="submit">Buscar</button> placeholder="Buscar por nombre">
</form> <button type="submit">Buscar</button>
</form>
<form action="filtros-postulante" method="post">
<input type="search" name="nombre" placeholder="Buscar por Bootcamp" required>
<button type="submit">Bootcamp</button>
</form>
<form action="filtros-postulante" method="post">
<input type="hidden" name="nombre" value="notebook">
<button type="submit">Notebooks</button>
</form>
<form action="filtros-postulante" method="post">
<input type="hidden" name="nombre" value="aceptado">
<button class="aceptado" type="submit">Aceptado</button>
</form>
</div>
<div>
<table> <table>
<tr> <tr>
<th>#</th> <th>#</th>
...@@ -28,26 +60,17 @@ ...@@ -28,26 +60,17 @@
<th>Experiencia laboral</th> <th>Experiencia laboral</th>
<th>Estudio universitario</th> <th>Estudio universitario</th>
<th> <th>
<form action="filtros-postulante" method="post"> Notebooks
<input type="hidden" name="nombre" value="notebook">
<button type="submit">Notebooks</button>
</form>
</th> </th>
<th> <th>
<form action="filtros-postulante" method="post"> Bootcamps
<input type="search" name="nombre" placeholder="Buscar por Bootcamp" required>
<button type="submit">Bootcamp</button>
</form>
</th> </th>
<th> <th>
<form action="filtros-postulante" method="post"> Aceptado
<input type="hidden" name="nombre" value="aceptado">
<button type="submit">Aceptado</button>
</form>
</th> </th>
<th></th>
</tr> </tr>
<tbody> <tbody class="tcuerpo">
<c:forEach var="postulante" items="${postulantes}" varStatus="myIndex"> <c:forEach var="postulante" items="${postulantes}" varStatus="myIndex">
<tr> <tr>
<td> ${myIndex.index + 1}-</td> <td> ${myIndex.index + 1}-</td>
...@@ -91,14 +114,22 @@ ...@@ -91,14 +114,22 @@
</c:if> </c:if>
</td> </td>
<td> <td>
<c:if test="${postulante.aceptado == true}"> <c:choose>
<input type="hidden" name="valor" value="false"> <c:when test="${postulante.aceptado == true}">
<button><a href="filtros-postulante?id=${postulante.id}">Rechazar</a></button> <form action="filtros-postulante" method="get">
</c:if> <input type="hidden" name="valor" value="0">
<c:if test="${postulante.aceptado != true}"> <input type="hidden" name="id" value="${postulante.id}">
<input type="hidden" name="valor" value="true"> <button type="submit">Rechazar</button>
<button><a href="filtros-postulante?id=${postulante.id}">Aceptar</a></button> </form>
</c:if> </c:when>
<c:otherwise>
<form action="filtros-postulante" method="get">
<input type="hidden" name="valor" value="1">
<input type="hidden" name="id" value="${postulante.id}">
<button type="submit">Aceptado</button>
</form>
</c:otherwise>
</c:choose>
</td> </td>
</tr> </tr>
</c:forEach> </c:forEach>
......
body{
background-image: url(imagenes/descarga.svg);
font-family:Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif;
font-weight: bold;
font-size: medium;
}
img{
width: 165px;
padding: 5px;
}
.container{
width: 300%;
max-width: 785px;
min-width: 320px;
border-radius: 15px;
padding: 1rem;
}
table{
/* background-color: wheat; */
text-align: left;
border-collapse: collapse;
width: 150%;
/* border: solid 3px black; */
}
a{
text-decoration: none;
color: antiquewhite;
}
h1{
font-family:Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif;
text-align: right;
color:wheat;
font-weight:bold;
}
button{
margin:5px;
background-image: url(imagenes/descarga.svg);
color: aliceblue;
}
th,td{
margin: 2px;
}
table tr:nth-child(odd) { /* background-color: aliceblue; */
/* background-color: rgba(11, 49, 110, 0.75) */
background-color: transparent;
}
table tr:nth-child(even) { background-image: url(imagenes/descarga.svg);
}
td{
padding: 3px;
border-color: red;
text-align: center;
/* border: solid 1px coral; */
}
th{
padding: 5px;
text-align: center;
/* border: solid 4px black; */
}
th:hover{
background-color: brown;
}
tbody{
margin: 15px;
padding: 15px
}
tr:hover td { background: aqua; }
th { border: 1px solid black; height: 30px;
background-image: url(imagenes/descarga.svg);
}
button:hover{
color: yellow;}
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<!-- el icono para la pagina -->
<link rel="shortcut icon" href="imagenes/roshkaicon.ico" sizes="any" />
<!-- coneccion con el de css -->
<link rel="stylesheet" href="postulante.css">
<title> Profesor MANAGE </title>
</head>
<body>
<div>
<h1>LISTA PROFESORES</h1>
<form action="filtros-profesor" >
<input type="search" name="nombreBuscar"
placeholder="Buscar por nombre">
<input type="search" name="apellidoBuscar"
placeholder="Buscar por apellido">
<button type="submit">Buscar</button>
</form>
<table>
<tr>
<th>#</th>
<th>Nombre</th>
<th>Apellido</th>
<th>Numero de Cedula</th>
<th>Correo</th>
<th>Editar</th>
<th>Eliminar</th>
</tr>
<tbody>
<c:forEach var="profesor" items="${profesores}" varStatus="myIndex">
<tr>
<td> ${myIndex.index + 1}-</td>
<td> ${profesor.nombre}</td>
<td> ${profesor.apellido}</td>
<td> ${profesor.nro_cedula}</td>
<td> ${profesor.correo}</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</body>
</html>
\ No newline at end of file
...@@ -10,6 +10,7 @@ Pinterest: https://pinterest.com/mycnlz/ ...@@ -10,6 +10,7 @@ Pinterest: https://pinterest.com/mycnlz/
<div class='box-form'> <div class='box-form'>
<div class='box-login-tab'></div> <div class='box-login-tab'></div>
<div class='box-login-title'> <div class='box-login-title'>
<link rel="shortcut icon" href="imagenes/roshkaicon.ico" sizes="any" />
<div class='i i-login'></div><h2> USUARIO </h2> <div class='i i-login'></div><h2> USUARIO </h2>
<link rel="stylesheet" href="usrebe.css"> <link rel="stylesheet" href="usrebe.css">
<link rel="stylesheet" href="usrebe.js"> <link rel="stylesheet" href="usrebe.js">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment