brigate/WebContent/cerca-aggiungi.jsp

110 lines
4.1 KiB
Plaintext
Raw Normal View History

2020-04-24 16:44:53 +02:00
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Home</title>
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
crossorigin="anonymous">
<link rel="stylesheet" href="css/stile.css">
<style>
</style>
</head>
<body>
<jsp:include page="nav.jsp"></jsp:include>
<%
String messaggio = (String) request.getAttribute("messaggio");
if (messaggio != null) {
out.print("<h4>" + messaggio + "</h4>");
}
%>
<div style="margin: 25px">
<h4>Cerca contatto</h4>
<form action="contatti-ctrl" method="post">
<div class="form-group">
<label>Numero di telefono</label> <input type="number"
name="telefono" class="form-control form-control-sm">
</div>
<input type="hidden" name="azione" value="cerca">
<button type="submit" class="btn btn-light btn-sm">Cerca</button>
</form>
<hr>
<h4>Aggiungi nuovo contatto</h4>
<form action="contatti-ctrl" method="post">
<div class="cinquanta">
<div class="form-group">
<label>Nome*</label> <input type="text" name="nome"
class="form-control form-control-sm">
</div>
<div class="form-group">
<label>Cognome*</label> <input type="text" name="cognome"
class="form-control form-control-sm">
</div>
<!-- <div class="form-group"> -->
<!-- <label>Servizio sociale</label> <input type="text" -->
<!-- name="servizioSociale" class="form-control form-control-sm" value="-"> -->
<!-- </div> -->
<div class="form-group">
<label>Quartiere*</label> <select name="area"
class="form-control form-control-sm">
<option value="Calvairate/Molise">Calvairate/Molise</option>
<option value="Corvetto">Corvetto</option>
<option value="Mecenate">Mecenate</option>
</select>
</div>
<div class="form-group">
<label>Indirizzo*</label> <input type="text" name="indirizzo"
class="form-control form-control-sm">
</div>
<div class="form-group">
<label>Numero di telefono*</label> <input type="number"
name="telefono" class="form-control form-control-sm">
</div>
<div class="form-group">
<label>Email</label> <input type="email" name="email"
class="form-control form-control-sm">
</div>
</div>
<div class="cinquanta">
<div class="form-group">
<p>Composizione nucleo abitativo*</p>
<div class="form-group">
<label>Neonat_ (0-3 anni)</label> <input type="number"
name="neonat" value="0"
class="form-control form-control-sm number"><br> <label>Bambin_
(3-12 anni)</label> <input type="number" name="bambin" value="0"
class="form-control form-control-sm number"><br> <label>Adult_</label>
<input type="number" name="adult" value="0"
class="form-control form-control-sm number"><br> <label>Anzian_ (>65 anni)</label>
<input type="number" name="anzian" value="0"
class="form-control form-control-sm number"><br>
</div>
<div class="form-group">
<label style="vertical-align: top">Note sacchetto (allergie, diete, necessità...)</label>
<textarea name="noteSacchetto"
class="form-control form-control-sm"></textarea>
</div>
</div>
</div>
<input type="hidden" name="azione" value="aggiungi"><br>
<button type="submit" class="btn btn-light btn-sm">Aggiungi</button>
</form>
</div>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin="anonymous"></script>
<script
src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin="anonymous"></script>
</body>
</html>