-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaggiungiLibro.php
85 lines (82 loc) · 3.23 KB
/
aggiungiLibro.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
include_once "includes/navBar.inc.php";
?>
<!DOCTYPE html>
<html>
<head>
<title>Vendita libri</title>
<link rel="stylesheet" href="includes/main.css">
</head>
<body>
<h1>Aggiungi un nuovo libro:</h1>
<div class="form">
<form>
<div class="input">
<label><strong>Email:</strong></label>
<br>
<?php
echo '<input type="email" name="email" placeholder="Email" value="' . $_SESSION["email"] . '" readonly required>';
?>
</div>
<br>
<div class="input">
<label><strong>Nome del libro:</strong></label>
<br>
<input type="text" name="nomeLibro" placeholder="Nome del libro" required>
</div>
<br>
<div class="input">
<label><strong>Volume del libro (se applicabile):</strong></label>
<br>
<input type="text" name="volume" placeholder="Volume del libro (se applicabile)">
</div>
<br>
<div class="input">
<label><strong>ISBN:</strong></label>
<br>
<input type="number" name="ISBN" placeholder="Codice ISBN" required>
</div>
<br>
<div class="input">
<label><strong>Autore del libro:</strong></label>
<br>
<input type="text" name="autore" placeholder="Autore del libro" required>
</div>
<br>
<div class="input">
<label><strong>Editore del libro:</strong></label>
<br>
<input type="text" name="editore" placeholder="Editore del libro" required>
</div>
<br>
<div class="input">
<label><strong>Prezzo del libro:</strong></label>
<br>
<input type="number" name="prezzo" placeholder="Prezzo del libro" required>
</div>
<br>
<div class="input">
<label><strong>Condizione del libro:</strong></label>
<br>
<select name="condizioneLibro_select" required>
<option value="Perfette (mai usato)">Perfette (mai usato)</option>
<option value="Ottime">Ottime</option>
<option value="Buone">Buone</option>
<option value="Discrete">Discrete</option>
<option value="Pessime">Pessime</option>
</select>
</div>
<br>
<div class="input">
<label><strong>Materia:</strong></label>
<br>
<input type="text" name="materia" placeholder="Materia del libro">
</div>
<br>
<div class="button">
<button>Inserisci</button>
</div>
</form>
</div>
</body>
</html>