-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaddRestaurant.php
111 lines (67 loc) · 2.96 KB
/
addRestaurant.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
105
106
107
108
109
110
111
<?php
include_once 'assets/bootstrapAsset.php';
session_start();
include_once 'autoload.php';
include_once 'isAdmin.php';
if(isset($_POST['addRest'])){
$name=$_POST['name'];
$address=$_POST['address'];
$phoneNumber=$_POST['phoneNumber'];
$fbPage=$_POST['fbPage'];
$restaurant=new RestaurantRepository();
$restaurant->insert(array('name' => $name,'address' => $address,'phone' => $phoneNumber, 'fbPage' => $fbPage));
}
?>
<body>
<div class="container">
</div>
<div class="container add">
<div class="add__admin">
<div class="wavy">
<span style="--i:1;">A</span>
<span style="--i:2;">J</span>
<span style="--i:3;">O</span>
<span style="--i:4;">U</span>
<span style="--i:4;">T</span>
<span style="--i:5;">E</span>
<span style="--i:6;">R</span>
<span style="--i:7;"></span>
<span style="--i:8;"></span>
<span style="--i:9;">U</span>
<span style="--i:10;">N</span>
<span style="--i:11;"></span>
<span style="--i:12;"></span>
<span style="--i:13;">R</span>
<span style="--i:14;">E</span>
<span style="--i:15;">S</span>
<span style="--i:16;">T</span>
<span style="--i:17;">A</span>
<span style="--i:18;">U</span>
<span style="--i:19;">R</span>
<span style="--i:20;">A</span>
<span style="--i:21;">N</span>
<span style="--i:22;">T</span>
</div>
<form method="post" action="addRestaurant.php" enctype="multipart/form-data">
<div class="form-group">
<input type="text" class="form-control" name="name" placeholder="Nom Restaurant">
</div>
<div class="form-group">
<input type="text" class="form-control" name="address" placeholder="Adresse">
</div>
<div class="form-group">
<input type="file" class="form-control" name="image" placeholder="Image">
</div>
<div class="form-group">
<input type="text" class="form-control" name="phoneNumber" placeholder="Numéro De Téléphone">
</div>
<div class="form-group">
<input type="text" class="form-control" name="fbPage" placeholder="Fb">
</div>
<button type="submit" name="addRest" class="btn btn3">Submit</button>
</form>
</div>
</div>
<script src="js/admin.js"></script>
</body>
</html>