brigate/WebContent/cerca-aggiungi.jsp

107 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">
</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"
2020-04-27 18:47:09 +02:00
name="telefono" class="form-control form-control-sm" required>
2020-04-24 16:44:53 +02:00
</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"
2020-04-27 18:47:09 +02:00
class="form-control form-control-sm" required>
2020-04-24 16:44:53 +02:00
</div>
<div class="form-group">
<label>Cognome*</label> <input type="text" name="cognome"
2020-04-27 18:47:09 +02:00
class="form-control form-control-sm" required>
2020-04-24 16:44:53 +02:00
</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"
2020-04-27 18:47:09 +02:00
class="form-control form-control-sm" required>
2020-04-24 16:44:53 +02:00
</div>
<div class="form-group">
<label>Numero di telefono*</label> <input type="number"
2020-04-27 18:47:09 +02:00
name="telefono" class="form-control form-control-sm" required>
2020-04-24 16:44:53 +02:00
</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"
2020-04-27 18:47:09 +02:00
name="neonat" value="0" required
2020-04-24 16:44:53 +02:00
class="form-control form-control-sm number"><br> <label>Bambin_
(3-12 anni)</label> <input type="number" name="bambin" value="0"
2020-04-27 18:47:09 +02:00
class="form-control form-control-sm number" required><br> <label>Adult_</label>
2020-04-24 16:44:53 +02:00
<input type="number" name="adult" value="0"
2020-04-27 18:47:09 +02:00
class="form-control form-control-sm number" required><br> <label>Anzian_ (>65 anni)</label>
2020-04-24 16:44:53 +02:00
<input type="number" name="anzian" value="0"
2020-04-27 18:47:09 +02:00
class="form-control form-control-sm number" required><br>
2020-04-24 16:44:53 +02:00
</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>