base.jsp 4.94 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="http://kwonnam.pe.kr/jsp/template-inheritance" prefix="layout"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
12
    <link rel="icon" href="../img/LogoRoshka.ico">
Joel Florentin committed
13
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.1/font/bootstrap-icons.css">
14 15 16
    <layout:block name="cssDeclaracion">
      <link href="../css/cargoStyle.css" rel="stylesheet" type="text/css"/>
    </layout:block>
17

18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
    <title>RRHH</title>
</head>
<body>
    <header>
    
    
        <nav class="navbar navbar-expand-lg navbar-light bg-light">
            <div class="container-fluid">
              <a class="navbar-brand" href="#">ROSHKA</a>
              <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
              </button>
              <div class="collapse navbar-collapse" id="navbarNavDropdown">
                <ul class="navbar-nav">
                  <li class="nav-item">
                    <a class="nav-link active" aria-current="page" href="/home">Home</a>
                  </li>
                
                  <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                      Cargos
                    </a>
                    <ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
                      <li><a class="dropdown-item" href="/cargo">Agregar Cargo</a></li>
                      <li><a class="dropdown-item" href="/cargos">Listar cargos</a></li>
                      <li><a class="dropdown-item" href="/convocatorias">Listar convocatorias</a></li>
                    </ul>
                  </li>
                  <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
48
                      Tecnologías
49 50 51 52 53 54 55 56 57 58 59
                    </a>
                    <ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
                      <li><a class="dropdown-item" href="/tecnologia">Agregar</a></li>
                      <li><a class="dropdown-item" href="/tecnologias">Listar</a></li>
                    </ul>
                  </li>
                  <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                      Postulantes
                    </a>
                    <ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
60
                      <li><a class="dropdown-item" href="/work-with-us">Agregar</a></li>
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
                      <li><a class="dropdown-item" href="/postulantes">Listar</a></li>
                    </ul>
                  </li>
                  <li class="nav-item">
                    <a class="nav-link" href="/logout">Salir</a>
                  </li>
                </ul>
              </div>
            </div>
          </nav>
    </header>
    
    <div class="container-xxl my-md-4 bd-layout">
        <layout:block name="contents">
        
        </layout:block>
    </div>

    <layout:block name="scripts">
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
      <script>
        function buscarPagina(nro){
          nro--
          const queries = location.search.split("&");
          let existe = false;
          if(location.search.length == 0 ) location.search = "?nroPagina="+nro; 
          let fullquery = "";
          
          for (const query of queries) {
            let [key, value] = query.split("=");
            if(key.includes('nroPagina')){
              fullquery += key + "=" + nro + "&";
              existe = true;
            }
            else{
              fullquery += key + "=" + value + "&";
            }
          }
          if(!existe) fullquery += "nroPagina" + "=" + nro + "&";
          
          location.search = fullquery.substring(0,fullquery.length-1); 
        }
      </script>
103 104 105 106 107
        
    </layout:block>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
</body>
</html>