-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform_produit.php
More file actions
executable file
·80 lines (65 loc) · 3.71 KB
/
form_produit.php
File metadata and controls
executable file
·80 lines (65 loc) · 3.71 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Fiches de sécurité</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="./CSS/style.css"/>
</head>
<body>
<header class="page_header">
<div class="logo_utt">
<img src="./Images/logo-utt.png" alt="[Logo UTT]"/>
</div>
<div class="titre_page">
<h1>Fiches de sécurité</h1>
</div>
</header>
<main class="formulaire_produit">
<div class="ajout_produit">
Ajout d'un nouveau produit
<form method="post" action="insert_produit.php">
<p>
Numéro CAS :<input type="text" name="num_cas"><br />
Nom du produit :<input type="text" name="nom_produit"><br />
Nom en anglais :<input type="text" name="nom_anglais"><br />
Nom scientifique :<input type="text" name="nom_scientifique"><br />
Formule brute :<input type="text" name="formule_brute"><br />
Quantité :<input type="text" name="quantite"><br />
Commentaire libre :<br />
<textarea name="com_libre" rows="3" colomns="25">
</textarea><br />
Fournisseur :<input type="text" name="fournisseur"><br />
Masse molaire :<input type="text" name="masse_molaire"><br />
Densité :<input type="text" name="densité"><br />
Température de fusion :<input type="text" name="temp_fusion"><br />
Température d'ébullition :<input type="text" name="temp_ebullition"><br />
Température d'autoflamme :<input type="text" name="temp_autoflamme"><br />
Indice optique :<input type="text" name="indice_optique"><br />
<br />
Pictogramme de sécurité :<br/>
<?php
require 'mysql_connect.php';
$requete_pict_secu = "SELECT nom FROM pictogramme_securite";
$resultat_pict_secu = mysqli_query($connection,$requete_pict_secu) or exit(mysqli_error($connection));
while($data_picto_secu=mysqli_fetch_array($resultat_pict_secu)) {
echo '<input type="checkbox" id="picto_secu" name="picto_secu[]" value="'.$data_picto_secu["nom"].'" /> <label for="picto_secu">'.$data_picto_secu["nom"].'</label>';
}
?><br /><br />
Pictogramme de précaution :
<?php
require 'mysql_connect.php';
$requete_pict_precau = "SELECT nom FROM pictogramme_precaution";
$resultat_pict_precau = mysqli_query($connection,$requete_pict_precau) or exit(mysqli_error($connection));
while($data_picto_precau=mysqli_fetch_array($resultat_pict_precau)) {
echo '<input type="checkbox" id="picto_precau" name="picto_precau[]" value="'.$data_picto_precau["nom"].'" /> <label for="picto_precau">'.$data_picto_precau["nom"].'</label>';
}
?><br /><br />
Mélange dangereux :<input type="text" name="melange_dangereux"><br />
<input type="submit" name="form_produit" value="Ajouter un produit">
</p>
</form>
</div>
</main>
</body>
</html>