-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
274 lines (218 loc) · 9.04 KB
/
home.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<!---------------------------------------------------php------------------------------------->
<?php
// connect to database
$DB_HOST="127.0.0.1";
$DB_USERNAME="root";
$DB_PASSWORD="mysql";
$DB_NAME="ecommerce";
$conn = mysqli_connect($DB_HOST,$DB_USERNAME,$DB_PASSWORD,$DB_NAME);
if (mysqli_connect_errno())
echo "Failed to connect to MySQL datbas ecommerce : " . mysqli_connect_error();
?>
<!---------------------------------------------------php------------------------------------->
<!DOCTYPE html>
<html>
<head>
<title>AYo_website.com</title>
<link rel="stylesheet" href="css/fontawesome.css"/>
<link rel="stylesheet" href="css/normalize.css"/>
<link rel="stylesheet" href="css/style.css"/>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<script src="script/jquery-3.3.1.min.js"></script>
<script src="script/jquery.nicescroll.min.js"></script>
<script src="script/script.js"></script>
</head>
<body>
<!-- /////////////////////////////////// header div //////////////////////////////////-->
<header>
<div class="container">
<div class="title">
<span class="logo main-color">walker</span>
<span class="slogo"><sub>jns</sub></span>
<span class="about minu ">about us</span>
<span class="contact minu ">contact us</span>
<span class="products minu ">our products</span>
</div>
<h1><span >welcom</span> back </h1>
<div class="mid text-center">
<h1><span >walker</span> men's ware </h1>
<p>smart colection for men's ware <br/>best choise for men ,be styleish and choise walker </p>
<ul>
<li><a href="index.php" style="text-decoration:none;" class="logspan">
<span>logout <i class="fas fa-sign-out-alt fa-lg"></i>
</span></a ></li>
</ul>
</div>
</div>
</header>
<!-- ///////////////////////////////////login div //////////////////////////////////-->
<!-- ///////////////////////////////////end header div //////////////////////////////////-->
<!--------- ------------------------- about us section ------------------------- ------>
<div class="aboutus">
<div class="container">
<img src="images/m2.jpg" class="imginf">
<div class="info">
<h2>walker factocy sence 1997</h2>
<p>we start our work sence 1997 and develop ourselves to help you </p>
<p class="hide c1">and we stand with you to achive your goal</p>
<span class="s1 spaninf">read more</span>
</div>
<div class="info">
<h2>walker pranshs </h2>
<p>we start with one stor but know we have more than 100 stors</p>
<p class="hide c2"> in evry city in egypt you will find us to help you make best choise</p>
<span class="s2 spaninf">read more</span>
</div>
<img src="images/m1.png" class="imginf">
</div>
</div>
<!-- ///////////////////////////////////our best sall div //////////////////////////////////-->
<div class="sale">
<div class="container">
<h1>sale and best ofers</h1>
<div class="salepro trep text-center">
<div class="imgpro">
</div>
<h5>popa ksjd</h5>
<p>dfjijgf kjfgijsg jfirs</p>
<span>$ <span>1.0</span></span>
</div>
<div class="salepro text-center">
<div class="imgpro">
</div>
<h5>popa ksjd</h5>
<p>dfjijgf kjfgijsg jfirs</p>
<span>$ <span>1.0</span></span>
</div>
<div class="salepro text-center">
<div class="imgpro">
</div>
<h5>popa ksjd</h5>
<p>dfjijgf kjfgijsg jfirs</p>
<span>$ <span>1.0</span></span>
</div>
<div class="salepro stock text-center">
<div class="imgpro">
</div>
<h5>popa ksjd</h5>
<p>dfjijgf kjfgijsg jfirs</p>
<span>$ <span>110</span></span>
</div>
<div class="salepro popa text-center">
<div class="imgpro">
</div>
<h5>popa ksjd</h5>
<p>dfjijgf kjfgijsg jfirs</p>
<span>$ <span>1.0</span></span>
</div>
<div class="salepro popa text-center">
<div class="imgpro">
</div>
<h5>popa ksjd</h5>
<p>dfjijgf kjfgijsg jfirs</p>
<span>$ <span>1.0</span></span>
</div>
<div class="salepro popa text-center">
<div class="imgpro">
</div>
<h5>popa ksjd</h5>
<p>dfjijgf kjfgijsg jfirs</p>
<span>$ <span>1.0</span></span>
</div>
<div class=" salepro popa text-center">
<div class="imgpro">
</div>
<h5>popa ksjd</h5>
<p>dfjijgf kjfgijsg jfirs</p>
<span>$ <span>1.0</span></span>
</div>
</div>
</div>
<!--------- ------------------------- php ------------------------- ------>
<?php
if(isset($_POST['submitbuy']))
{
$TPname=$_POST['Pname'];
$TAddress =$_POST['Address'];
$Tphone=$_POST['phone'];
$Tbprice=$_POST['bprice'];
$query=" insert into buer (Pname,Address,phone,bprice )values('". $TPname ."','". $TAddress."','". $Tphone ."','". $Tbprice ."')";
$result=mysqli_query($conn,$query);
if($result){
echo "done buy" ;
}else{
echo "data not insert";
}
}
?>
<!--------- ------------------------- php ------------------------- ------>
<div class="buy" style="display:none">
<form action="home.php" method="post">
<div class="cont">
<h1>buy card</h1>
<input type="text" placeholder="product name" name="Pname " required />
<input type="text" placeholder="address" name="Address "required />
<input type="text" placeholder="phone" name="phone " required/>
<input type="text" placeholder="price" name="bprice " required/>
<button type="submit" class="button" name="submitbuy">buy</button>
</div>
</form>
</div>
<div class="nbar text-center">
<i class="back fas fa-angle-left fa-lg"></i>
<i class="next fas fa-angle-right fa-lg"></i>
</div>
<!--------- ------------------------- products section ------------------------- ------>
<div class="products">
<div class="container">
<h1 style="color:rgba(0, 0, 0, 0.7);">products</h1>
<div class="cati" style="width:100%;padding-bottom:30px;">
<span class="minu">popa</span>
<span class="minu">popa</span>
<span class="minu">popa</span>
<span class="minu">popa</span>
<span class="minu">popa</span>
<span class="minu">popa</span>
</div>
</div>
</div>
<div class="sale">
<div class="container">
<div class="salepro text-center probuy">
<div class="imgpro">
</div>
<h5>popa ksjd</h5>
<p>dfjijgf kjfgijsg jfirs</p>
<span>$ <span>1.0</span></span>
</div>
<div class="salepro text-center probuy">
<div class="imgpro">
</div>
<h5>popa ksjd</h5>
<p>dfjijgf kjfgijsg jfirs</p>
<span>$ <span>1.0</span></span>
</div>
<div class="salepro text-center probuy">
<div class="imgpro">
</div>
<h5>popa ksjd</h5>
<p>dfjijgf kjfgijsg jfirs</p>
<span>$ <span>1.0</span></span>
</div>
<div class="salepro text-center probuy">
<div class="imgpro">
</div>
<h5>popa ksjd</h5>
<p>dfjijgf kjfgijsg jfirs</p>
<span>$ <span>110</span></span>
</div>
</div>
</div>
</body>
</html>
<!---------------------------------------------------php------------------------------------->
<?php
//to close connection of data base
mysqli_close($conn);
?>
<!---------------------------------------------------php------------------------------------->