-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
172 lines (162 loc) · 6.35 KB
/
index.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
<!---------- Meta HTML Starts --------->
<html>
<head>
<title>Tanaka Japan</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style-index.css">
<link rel="stylesheet" href="css/style-info.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<!---------- Meta HTML Ends --------->
<!---------- Logo and Search Panel HTML Code Starts --------->
<div class="width-100 search-panel">
<div class="container">
<div class="width-20">
<a href="index.php"><img src="images/logo-2.png" class="logo" style="max-height: 40px;"></a>
</div>
<div class="width-50">
<input class="search-textbox" type="text" placeholder="ค้นหาสินค้าในเว็บไซต์">
<button class="search-button">
<i class="fa fa-search" aria-hidden="true"></i>
</button>
</div>
<div class="width-30">
<ul class="cart-sect">
<li>
<i class="fa fa-heart-o" aria-hidden="true"></i>
<a class="head1mr" href="about.php">เกี่ยวกับเรา</a>
</li>
<li>
<i class="fa fa-user-circle-o" aria-hidden="true"></i>
<a href="add.php">เข้าสู่ระบบ</a>
</li>
<li>
<i class="fa fa-shopping-cart" aria-hidden="true"></i>
<a href="construction.php"> ตระกร้าสินค้า (0)</a>
</li>
</ul>
</div>
</div>
</div>
<!---------- Logo and Search Panel HTML Code Ends --------->
<!---------- Main Menu HTML Code Starts --------->
<div class="width-100">
<div class="container">
<ul class="main-menu">
<li>
<a href="#">Home</a>
</li>
<li>
<a href="#">iPhone</a>
</li>
<li>
<a href="#">Samsung</a>
</li>
<li>
<a href="#">Nokia</a>
</li>
<li>
<a href="#">Motorola</a>
</li>
<li>
<a href="#">iPad</a>
</li>
<li>
<a href="#">Accessories</a>
</li>
</ul>
</div>
</div>
<!---------- Main Menu HTML Code Ends --------->
<!---------- Slider HTML Code Starts --------->
<!-- <div class="width-100">
<img class="wimg100 slider" src="images/slider-1.png">
</div> -->
<!---------- Slider HTML Code Ends --------->
<!---------- Info HTML Code Starts --------->
<div class="container">
<?php
include('php/config.php');
// Fetch all students from the database
$query = mysqli_query($con, "SELECT * FROM product");
while ($data = mysqli_fetch_array($query)) {
echo '
<div class="col-md-4">
<div class="card">
<div class="card-body">
<div class="info-row">
<div><strong>รหัสสินค้า:</strong> '.$data['ProductID'].'</div>
<div><strong>ชื่อสินค้า:</strong> '.$data['ProductName'].'</div>
<div><strong>คำอธิบายสินค้า:</strong> '.$data['ProductDescription'].'</div>
<div><strong>ราคา:</strong> '.$data['ProductPrice'].'</div>
<div><strong>คะแนนสินค้า:</strong> '.$data['ProductRating'].'</div>
</div>
</div>
</div>
</div>';
}
?>
</div>
<!-- <div class="card-footer">
<a class="btn btn-warning" href="edit.php?list='.$data['list'].'" role="button">Edit</a>
<a class="btn btn-danger" href="delete.php?list='.$data['list'].'" role="button">Delete</a>
</div>
-->
<!---------- Info HTML Code Ends --------->
<!-- Footer-Section HTML Code STARTS -->
<div class="width-100 margin-top-50 footer">
<div class="container">
<div class="width-25">
<h2 class="quicklink-heading">Account Detail</h2>
<ul class="quicklink-menu">
<li><a href="index.php">Home</a></li>
<li><a href="about.php">About us</a></li>
<li><a href="construction.php">Search</a></li>
<li><a href="construction.php">Cart</a></li>
<li><a href="construction.php">Checkout</a></li>
</ul>
</div>
<div class="width-25">
<h2 class="quicklink-heading">Quick Link</h2>
<ul class="quicklink-menu">
<li><a href="construction.php">My Profile</a></li>
<li><a href="construction.php">Change Password</a></li>
<li><a href="construction.php">Order History</a></li>
<li><a href="construction.php">My Whislist</a></li>
<li><a href="exchange.php">นโยบายการคืนสินค้า</a></li>
</ul>
</div>
<div class="width-25">
<h2 class="quicklink-heading">Quick Link</h2>
<ul class="quicklink-menu">
<li><a href="construction.php">Login</a></li>
<li><a href="about.php">Faq</a></li>
<li><a href="construction.php">Contact us</a></li>
<li><a href="construction.php">Download App</a></li>
<li><a href="construction.php">Refer & Earn Cashback</a></li>
</ul>
</div>
<div class="width-25">
<h2 class="quicklink-heading">ติดต่อเรา</h2>
<ul class="get-in-touch">
<li><i class="fa fa-envelope-o" aria-hidden="true"></i> อีเมล:<a href="mailto:[email protected]" class="footer-e-mail" style="text-decoration: none;"> [email protected]</a></li>
<li><i class="fa fa-headphones" aria-hidden="true"></i> Place Holder</li>
<li><i class="fa fa-fax" aria-hidden="true"></i> Place Holder</li>
<li><i class="fa fa-globe" aria-hidden="true"></i> WEBSITE:<a href="#" class="footer-website"> https://www.tanaka.shop</a></li>
</ul>
<ul class="social-media">
<li><a href="#"><img src="images/icon-facebook.png"></a></li>
<li><a href="#"><img src="images/icon-twitter.png"></a></li>
<li><a href="#"><img src="images/icon-linkedin.png"></a></li>
<li><a href="#"><img src="images/icon-instagram.png"></a></li>
</ul>
</div>
</div>
</div>
<!---------- Footer-Section HTML Code Ends --------->
<!-- Footer-bottom Section HTML Code STARTS -->
<div class="width-100 footer2-bacbor">
<p class="footer2-content">© 2024 TanakaShop_TH. All Rights Reserved</p>
</div>
<!---------- Footer-bottom Section HTML Code Ends --------->