-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathajout_objet.php
104 lines (91 loc) · 2.6 KB
/
ajout_objet.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php session_start(); ?>
<DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" href="css/style.css" type="text/css"/>
<link rel="stylesheet" href="css/dropbox.css" type="text/css"/>
<script type="text/javascript" src="scripts/jquery.js"></script>
<link rel="stylesheet" href="css/jquery-ui.min.css" type="text/css" />
<script src="scripts/jquery.qtip.min.js"></script>
<link rel="stylesheet" href="scripts/jquery.qtip.min.css" />
<script src="scripts/script_checkobjet.js"></script>
<script>
$(document).ready(function()
{
$('[title!=""]').qtip(
{
position: {
my:'center left',
at:'center right',
},
style : {
classes: 'qtip-bootstrap'
}
});
});
</script>
</head>
<body>
<?php include("include/entete.php"); ?>
<div id="bodycentered">
<h2>Formulaire d'ajout d'objet</h2>
<?php
/*if (!isset($_SESSION['login_entreprise'])){
echo "Désolé vous ne pouvez pas ajouter d'objet sans être logué.";
}
else {*/
?>
<div id="ajoutobjet">
<form method="POST" enctype="multipart/form-data" id="cibleFormAjout" action="controleurs/post_objet.php" >
<p>
<label for="nom_objet">Nom de votre objet :</label>
</p>
<p>
<input id="nom_objet" type="text" name="nom_objet">
</p>
<p>
<label for="categorie_objet">Catégorie :</label>
</p>
<p>
<select id="categorie_objet" name="categorie_objet" >
<?php
require_once('controleurs/categories.php');
?>
</select>
</p>
<p>
<label for="description">Description:</label>
</p>
<p>
<textarea id="description" name="description" placeholder="Décrivez votre objet ici"></textarea>
</p>
</div>
<p>
<div id="dropbox">
<span class="message"> Veuillez glisser-déposer ici l'image de votre objet...</span>
</div>
</p>
<p>
<div class="msgObligatoire">Tout les champs sont obligatoires.</div>
</p>
<p>
<input type="submit" value="Ajouter" >
</p>
</form>
<div class="">
<span class="validateObjet"><?php if(isset($error)) { if ($error) { echo $error['msg']; }} ?></span>
</div>
</div>
<?php include("include/footer.php");?>
<!-- Inclure JQuery -->
<script src="scripts/jquery.js"></script>
<!-- Inclure le plugin HTML5 Uploader -->
<script src="scripts/jquery.filedrop.js"></script>
<!-- Le script principal de la dropbox -->
<script src="scripts/script_dropbox.js"></script>
<?php
//}
?>
</body>
</html>