Commit 5def2229 by Angel Zarate

Mejoras en el menu login

parent 9da93b2f
...@@ -15,20 +15,20 @@ public class SaveServlet extends HttpServlet { ...@@ -15,20 +15,20 @@ 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 {
response.setContentType("text/html"); response.setContentType("text/html");
PrintWriter out=response.getWriter(); PrintWriter out = response.getWriter();
String nombre=request.getParameter("nombre"); String nombre = request.getParameter("nombre");
String apellido=request.getParameter("apellido"); String apellido = request.getParameter("apellido");
String email=request.getParameter("correo"); String email = request.getParameter("correo");
String nro_cedulaStr=request.getParameter("nro_cedula"); String nro_cedulaStr = request.getParameter("nro_cedula");
int nro_cedula = Integer.parseInt(nro_cedulaStr); int nro_cedula = Integer.parseInt(nro_cedulaStr);
Profesor p =new Profesor(nro_cedula, nombre, apellido, email); Profesor p = new Profesor(nro_cedula, nombre, apellido, email);
int status=ProfesorDao.save(p); int status = ProfesorDao.save(p);
if(status>0){ if (status > 0) {
out.print("<p>Record saved successfully!</p>"); out.print("<p>Record saved successfully!</p>");
request.getRequestDispatcher("formulario_profesor.jsp").include(request, response); request.getRequestDispatcher("formulario_profesor.jsp").include(request, response);
}else{ } else {
out.println("Sorry! unable to save record"); out.println("Sorry! unable to save record");
} }
......
...@@ -17,80 +17,27 @@ ...@@ -17,80 +17,27 @@
<head> <head>
<link rel="shortcut icon" href="imagenes/roshkaicon.ico" sizes="any" /> <link rel="shortcut icon" href="imagenes/roshkaicon.ico" sizes="any" />
<link rel="stylesheet" href="menulogin.css">
<link href="https://fonts.googleapis.com/css2?family=Concert+One&family=Francois+One&family=Satisfy&family=Staatliches&display=swap" rel="stylesheet">
</head> </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> </head>
<body> <body>
<div class="logo"><img src="imagenes/logo-roshka.svg" alt="logo-roshka"></div>
<div class="header"> <div class="header">
<h1> MENU TH</h1> <h1> MENU TH</h1>
<h2> EN LOS SIGUIENTES LINKS PUEDE MODIFICAR, AGREGAR O ELIMINAR DATOS DE LA BASE DE DATOS DEL BOOTCAMP </h2> <h2> EN LOS SIGUIENTES LINKS PUEDE MODIFICAR, AGREGAR O ELIMINAR DATOS DE LA BASE DE DATOS DEL BOOTCAMP </h2>
<h3>PUEDE ACCEDER A LOS SIGUIENTES LINKS:</h3>
</div> </div>
<div class="column content"> <!-- <div class="column content">
<h1>PUEDE ACCEDER A LOS SIGUIENTES LINKS:</h1> <h1>PUEDE ACCEDER A LOS SIGUIENTES LINKS:</h1>
</div> </div> -->
<div class="clearfix"> <div class="clearfix">
<div class="column menu"> <div class="column menu">
......
* {
box-sizing: border-box;
}
img {
width: 200px;
padding: 10px;
display: block;
padding: 10px;
}
body {
font-family: 'Concert One', cursive;
font-family: 'Francois One', sans-serif;
font-family: 'Satisfy', cursive;
font-family: 'Staatliches', cursive;
font-size: 13px;
background-image: url(imagenes/descarga.svg);
}
.header,
.footer {
background-color: whitesmoke;
color: rgb(18, 18, 98);
padding: 60px;
}
.header,.footer{
background-color: aqua;
}
.column {
float: left;
padding: 30px;
}
.clearfix::after {
content: "";
clear: both;
display: table;
}
a {
color: white;
text-decoration: none;
}
.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);
}
div.header{
background-image: url(imagenes/descarga.svg);
transition-property: opacity, left;
transition-duration: 3s, 5s;
}
h1{
text-align: center;
}
\ No newline at end of file
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