-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
180 lines (130 loc) · 8.17 KB
/
Copy pathindex.php
File metadata and controls
180 lines (130 loc) · 8.17 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
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
<!-- START MAIN PAGE BY BASEL AHMED -->
<?php include'inc/db.php'; ?>
<!-- STARAT HTML PAGE BY BASEL AHMED -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>M_Store </title>
<link rel="stylesheet" href="fontawesome-free-6.0.0-beta3-web/css/all.css">
<link rel="stylesheet" href="fontawesome-free-6.0.0-beta3-web/css/v4-shims.css">
<link rel='stylesheet' href='css/bootstrap.min.css'>
<link rel='stylesheet' href='css/style3.css'>
</head>
<body>
<!-- STRAT NAV BY BASEL AHMED -->
<nav class="navbar navbar-expand-lg fixed-top navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#"> <i class="fas fa-store-alt fa-2x text-info"></i> <span> MyStore </span> </a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index.php"> <i class="fas fa-home fa-2x text-white"></i> <span> Home </span> </a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Devices
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item " href="main/Sone.php">Sone</a></li>
<li><a class="dropdown-item" href="main/Samsung.php">Samsung</a></li>
<li><a class="dropdown-item" href="main/iphone.php">iphone</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="index.php">All Devices</a></li>
</ul>
</li>
<li class="nav-item d-flexd ">
<a class="nav-link active " aria-current="page" href="regist.php"> <span>Sing in</span> </a>
</li>
</ul>
<form class="d-flex" action="main/search.php" method="get" >
<input class="form-control me-2" name="searchArea" type="search" placeholder="Write Name Of Device..." aria-label="Search">
<button class="btn btn-outline-primary" name="search" type="submit"> <i class="fas fa-search "></i></button>
</form>
</div>
</div>
</nav>
<!-- END NAV BY BASEL AHMED -->
<!-- START CONTAINER BY BASEL AHMED -->
<div class="container -lg mt-5">
<div class="row">
<?php
// STATRT QUEARY FOR DISOLAY DATA FROM DATABASE BY BASEL AHMED
$sql='select * from items1 ';
$ret=mysqli_query($con,$sql);
while($res=mysqli_fetch_assoc($ret))
{
echo'
<div class="col-lg-4 col-sm-12 m ">
<p>'.$res['Name'].'</p>
<div class="thumbanil">
<img src="images/'.$res['img'].'">
<hr>';?>
<p> <a class="btn btn-light" href="showmore.php?id=<?php echo $res['id']?>"><button class="btn btn-outline-primary" > Detalis of Device</button></a></p>
<?php echo'</div>
</div>';
}
// END QUREAY FOR DISPALY DATA FROM DATABASE BY BASEL AHMED
?>
</div>
</div>
<!-- END CONTAINER BY BASEL AHMED -->
<!-- STRAT FOOTER BY BASEL AHMED -->
<div class="footer">
<div class="col-lg-6">
<form action="" method="POST" class=" p-5 ">
<div class="row">
<div class="col-sm-6 offset-sm-6">
</div>
<div class="form-group text-white p-1">
<label><i class="fas fa-user text-info"></i> <span> User Name </span> </label>
<input type="name" name="name" class="form-control" placeholder="Write Your Name">
</div>
<div class="form-group text-white p-1 ">
<label> <i class="fas fa-envelope text-info"></i> Email </label>
<input type="email" name="email" class="form-control" placeholder="Write Your Eamil">
</div>
<div class="form-group p-1 text-white">
<label> <i class="fas fa-lock text-info"></i> Pssword </label>
<input type="password" name="password" class="form-control" placeholder="Write Your Password">
</div>
<div class="form-group p-1">
<input type="submit" name="singin" value="Sing In" class="btn btn-outline-primary mt-3">
<?php
if(isset($_POST['singin']))
{
$user=$_POST['name'];
$pass=$_POST['password'];
$sql="SELECT * FROM users where username='$user' And password='$pass' ";
$ret=mysqli_query($con,$sql);
while($res=mysqli_fetch_assoc($ret))
{
$_SESSION['user']=$user;
echo"<script>window.location.href='wlcome.php'</script>";
// header("Location:user/wlcome.php");
}
}
?>
</div>
</div>
</form>
<div class="text-white foot">
<p>
<i class="fas fa-envelope fa-1x text-info"> </i> <span class=" text-white "> Baselahmed856@gmial.com </span><br>
<i class="fas fa-mobile-alt fa-1x text-info"> </i> <span class=" text-white "> +967773216193 </span> <br>
<i class="fas fa-map-marker-alt fa-1x text-info"> </i> <span class=" text-white "> Aden - Yemen </span> <br>
</p>
<i class="fas fa-code fa-1x text-info"> </i> <span class=" text-white "> Copyright © 2021 BASEL AL-QRUPEAY </span>
</div>
</div>
</div>
<!-- END FOOTER BY BASEL AHMED -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
<!-- END HTML PAGE BY BASEL AHMED -->