ingresaremp

mail@pastecode.io avatar
unknown
java
3 years ago
3.7 kB
4
Indexable
Never
<%-- 
    Document   : ingresaremp
    Created on : 08-16-2021, 05:35:09 PM
    Author     : Usuario
--%>


<%@ page language="java" import="java.*" %>
<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title>Empleados</title>
        <meta charset = "utf-8">
        <meta http-equiv= "X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="css/bootstrap.min.css">
    </head>
    <body>
        <div class = "container">
            <div class="row">
                <h3>Empleados</h3>
            </div>
            <div class="row col-md-5">
                <form role="form"action="ingresar.jsp"method="POST">
                    <div class="col-md-10">
                        <div class="well well-sm">
                            <strong>
                                <span class="glyphicon glyphicon-asterisk">
                                </span>Campos requeridos
                            </strong>
                        </div>
                        <div class="form-group">
                            <label for="nombre">Nombres:</label>
                            <div class="input-group">
                                <input type="text"class="form-control"name="nombre"id="nombre"placeholder="Ingresa el nombre" required>
                                <span class="input-group-addon">
                                    <span class="glyphicon glyphicon-asterisk">
                                    </span>
                                </span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="apellido">Apellidos:</label>
                            <div class="input-group">
                                <input type="text"class="form-control"id="apellido"name="apellido"placeholder="Ingresa el apellido" required>
                                <span class="input-group-addon">
                                    <span class="glyphicon glyphicon-asterisk">
                                    </span>
                                </span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="telefono">Telefono:</label>
                            <div class="input-group">
                                <input type="text"class="form-control"id="telefono"name="telefono"placeholder="Ingresa el teléfono" required>
                                <span class="input-group-addon">
                                    <span class="glyphicon glyphicon-asterisk">
                                    </span>
                                </span>
                            </div>
                        </div>
                        <input type="submit"class="btn btn-info"value="Guardar">
                    </div>
                </form>
                <%-- Verificando si la variable resultado esta vacía--%>
                <%if (request.getParameter("resultado")!=null){
                %>
                <div class="alert alert-success col-md-10">
                    <b><%=request.getParameter("resultado") %></b>
                </div>
                <%
                }
                %>
            </div>
            <!--notese el uso de jsp:include -->
            <jsp:include page="consulta.jsp" />
        </div><!-- /container -->
    </body>
</html>