postulante-consulta.jsp 6.98 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
   <%@ page import= "jakarta.servlet.http.* , java.lang.Object" %>
			<%HttpSession session1 = request.getSession(true);
			Object done = session1.getAttribute("logon.isDone");
			 if (done == null) {
				session1.setAttribute("login.target", HttpUtils.getRequestURL(request).toString());
				response.sendRedirect(request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() +"/login.jsp");
				return;

            }%>

11 12
<%@ 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" %>
13
<!DOCTYPE html>
14
<html>
15

16
<head>
17
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
Angel Zarate committed
18

19 20
    
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
Angel Zarate committed
21 22 23 24
      <!-- 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">
Rebecca Arzamendia committed
25
    <title> POSTULANTE MANAGE </title>
26
</head>
27

28
<body>
29 30 31 32
<div class="botones"><a href="logout">LOGOUT</a><br>
        <a href="index.html">INICIO</a><br>
        <a href="menu.jsp">MENU</a><br>
        </div>
33
    <div class="logo">
34
        <a href="./login.jsp"> <img class="logoi" src="imagenes/logo-roshka.svg" alt="" /> </a>
35 36 37
        <!-- logo con link -->
    </div>
    <div class="container">
38
        <h1>Lista Postulantes</h1>
39 40 41 42 43 44 45 46 47 48 49
        <div class="input-group">
                <form action="filtros-postulante" >
                    <input   type="search" name="nombreBuscar"
                        placeholder="Buscar por nombre">
                    <button type="submit">Buscar</button>
                </form>
    
                <form action="filtros-postulante" method="post" style="display:inline">
                  <input type="search" name="nombre" placeholder="Buscar por Bootcamp" required>
                  <button type="submit">Bootcamp</button>
                </form>
50

51 52
            </div>
       
53

54 55 56 57
            <form action="filtros-postulante" method="post">
                <input type="hidden" name="nombre" value="notebook">
                <button type="submit">Notebooks</button>
            </form>
58

59 60 61 62
             <form action="filtros-postulante" method="post">
                <input type="hidden" name="nombre" value="aceptado">
                <button class="aceptado" type="submit">Aceptado</button>
             </form>
63 64 65 66 67

                    
        </div>
        
            
68
    <div>
69
       
70 71 72 73 74 75 76 77 78 79 80
        <table>
            <tr>
                <th>#</th>
                <th>Nombre</th>
                <th>Apellido</th>
                <th>Cedula</th>
                <th>Correo</th>
                <th>Telefono</th>
                <th>Direccion</th>
                <th>Experiencia laboral</th>
                <th>Estudio universitario</th>
81
                <th>
82
                    Notebooks
83 84
                </th>
                <th>
85
                    Bootcamps
86 87
                </th>
                <th>
Angel Zarate committed
88
                    Aceptado
89
                </th>
90
               
Angel Zarate committed
91
            </tr>
92
            <tbody class="tcuerpo">
93 94 95 96 97 98 99 100 101
                <c:forEach var="postulante" items="${postulantes}" varStatus="myIndex">
                    <tr>
                        <td> ${myIndex.index + 1}-</td>
                        <td> ${postulante.nombre}</td>
                        <td> ${postulante.apellido}</td>
                        <td> ${postulante.nroCedula}</td>
                        <td> ${postulante.correo}</td>
                        <td> ${postulante.telefono}</td>
                        <td> ${postulante.direccion}</td>
Josebaezx committed
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
                        <td> 
                            <c:if test="${postulante.expLaboral == true}">
	                            SI
                            </c:if>
                            <c:if test="${postulante.expLaboral != true}">
	                            NO
                            </c:if>
                        </td>
                        <td> 
                            <c:if test="${postulante.estudioUniversitario == true}">
	                            SI
                            </c:if>
                            <c:if test="${postulante.estudioUniversitario != true}">
	                            NO
                            </c:if>
                        </td>
                        <td> 
                            <c:if test="${postulante.notebook == true}">
                            SI
                        </c:if>
                        <c:if test="${postulante.notebook != true}">
                            NO
                        </c:if>
                        </td>
126 127 128
                        <td> ${postulante.nombreBootcamp}</td>
                        <td>
                            <c:if test="${postulante.aceptado == true}">
Josebaezx committed
129
	                            SI
130 131
                            </c:if>
                            <c:if test="${postulante.aceptado != true}">
132 133 134 135
	                            NO
                            </c:if>
                        </td>
                        <td>
Jose Baez committed
136 137 138 139 140 141 142 143 144 145 146 147
                        <c:choose>
                            <c:when test="${postulante.aceptado == true}">
                                <form action="filtros-postulante" method="get">
                                                                   <input type="hidden" name="valor" value="0">
                                                                   <input type="hidden" name="id" value="${postulante.id}">
                                                                  <button type="submit">Rechazar</button>
                                                                </form>
                            </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}">
148
                                                                   <input type="hidden" name="bootcampId" value="${postulante.bootcampId}">
149 150 151
                                                                   <input type="hidden" name="nombre" value="${postulante.nombre}">
                                                                   <input type="hidden" name="apellido" value="${postulante.apellido}">
                                                                   <input type="hidden" name="correo" value="${postulante.correo}">
Jose Baez committed
152 153 154 155
                                                                   <button type="submit">Aceptado</button>
                                                                </form>
                            </c:otherwise>
                        </c:choose>
156 157 158 159 160 161
                        </td>
                    </tr>
                </c:forEach>
            </tbody>
        </table>
    </div>
162
</body>
163 164

</html>