-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
342 lines (330 loc) · 16.2 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
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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
<?php include "api/command.php";?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Siam Fan</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Bai+Jamjuree&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-sweetalert/1.0.1/sweetalert.css" integrity="sha512-f8gN/IhfI+0E9Fc/LKtjVq4ywfhYAVeMGKsECzDUHcFJ5teVwvKTqizm+5a84FINhfrgdvjX8hEJbem2io1iTA==" crossorigin="anonymous" />
</head>
<body>
<?php include "compostion/header.php";?>
<!-- seconed contend -->
<div class="container">
<div class="row my-3">
<div class="col text-center">
<span class='warning'>คำเตือน: ห้ามนำข้อมูลส่วนตัวผู้อื่นมาโพสต์โดยเด็ดขาด เพราะทางเว็บไซต์มีการบันทึก IP ผู้โพสต์ในระบบของผู้ดูแล สามารถติดตามตัวผู้กระทำผิดมาลงโทษได้</span>
</div>
</div>
<div class="row ">
<!-- left -->
<div class="col-md-3 col-sm-12 p-2">
<?php include "compostion/left.php";?>
</div>
<!-- left -->
<!-- right -->
<div class="col-md-9 col-sm-12">
<div class="row">
<div class="col pb-1">
<h2 class='d-inline-block mb-0'>หาเพื่อนคุย</h2>
<small>เพื่อนทั้งหมด <?php echo $count_all_user; ?> รายการ</small>
</div>
</div>
<div class="gender-list my-4 ">
<div class='hover-effect1'>
<ul>
<li> <a class='hover-fx men' href="search?g=men"> ชาย </a></li>
<li> <a class='hover-fx women' href="search?g=women"> หญิง </a></li>
<li> <a class='hover-fx gay' href="search?g=gay"> เกย์ </a></li>
<li> <a class='hover-fx genall' href="search?g=genall"> สาว 2 </a></li>
<li> <a class='hover-fx tom' href="search?g=tom"> ทอม </a></li>
<li> <a class='hover-fx less' href="search?g=less"> เลส </a></li>
<li> <a class='hover-fx indy' href="search?g=indy"> ดี้ </a></li>
</ul>
</div>
</div>
<div class="row">
<div class="col pb-1">
<h2 class='d-inline-block mb-2'>รูปภาพโปรไฟล์เพื่อนของเรา</h2>
<small>คลิกที่ภาพเพื่อดูข้อมูลโปรไฟล์ของเพื่อนได้เลย</small>
</div>
</div>
<div class="gallery col-sm-12">
<?php for ($i = 1; $i <= 60; $i++) {?>
<a href="" title="logo">
<img src="assets/image/avatar.png" alt="logo" width="75px">
</a>
<?php }?>
</div>
<div class="row contact my-5 text-center">
<div class="col-md-3 col-sm-6">
<div class="shadow">
<a href="search?social=line">
<img class='pb-3' src="assets/image/line.png" alt="" width="75px">
<h5>เพื่อนที่มีไลน์</h5>
</a>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="shadow">
<a href="search?social=facebook">
<img class='pb-3' src="assets/image/facebook.png" alt="" width="75px">
<h5>เพื่อนที่มีเฟซบุ๊ก</h5>
</a>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="shadow">
<a href="search?social=phone">
<img class='pb-3' src="assets/image/phone-call.png" alt="" width="75px">
<h5>เพื่อนที่มีเบอร์โทร</h5>
</a>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="shadow">
<a href="search?t=search">
<img class='pb-3' src="assets/image/search.png" alt="" width="75px">
<h5>ค้นหาเพื่อน</h5>
</a>
</div>
</div>
</div>
</div>
<!-- right -->
</div>
</div>
<!-- seconed contend -->
<!-- first advertising -->
<div class="container advertising ">
<div class="row ">
<img src="https://images.unsplash.com/photo-1533069027836-fa937181a8ce?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&h=250&q=80" class="center w-100 p-2">
</div>
</div>
<!-- first advertising -->
<!-- current online -->
<div class="container my-3">
<div class="row dot_bt">
<div class="col text-center pb-2">
<h2 class='d-inline-block mb-0'>เพื่อนที่ออนไลน์</h2>
<small >อย่ารอช้า เพื่อนรออยู่ แอดไปคุยกันนเลย</small>
</div>
</div>
<div class="row py-3 p-0">
<div class="col-md-3 col-sm-12">
<a href="">
<div class="Carduser">
<div class="grid-item-left text-center">
<img src="assets/image/avatar.png" alt="" class='w-100'>
<p class='online'>
<img src="https://www.siamfans.com/media/img/user_online.gif" alt=""><span>ออนไลน์</span>
</p>
</div>
<div class="grid-item-right">
<h5>Lorem ipsum</h5>
<div class="userdescription">
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Nobis, reiciendis.
</div>
<div class='gender-age my-1'>
<span class="label gender men">gender</span>
<span class="label">56</span>
</div>
<div class="province-target">
<i class="fas fa-street-view"></i> กรุงเทพมหานคร <br>
<i class="fas fa-search"></i> เป้าหมาย
</div>
</div>
</div>
</a>
</div>
</div>
</div>
<!-- current online -->
<!-- vote zone -->
<div class="container my-3">
<div class="row dot_bt">
<div class="col text-center pb-2">
<h2 class='d-inline-block mb-0'>เพื่อนที่ได้รับการโหวตวันนี้</h2>
<small >1 สมาชิก/ 1 โหวต/ 1 คน/ 1วัน เท่านั้น !</small>
</div>
</div>
<div class="row">
<div class="col-md-2 col-sm-6 p-0">
<a href="">
<div class="Usercard2">
<div class="content-user">
<img src="assets/image/avatar.png" alt="" >
<h5>Lorem ipsum</h5>
<div class='gender-age my-1'>
<span class="label gender men">gender</span>
<span class="label">56</span>
</div>
<div class="userdescription">
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Nobis, reiciendis.
</div>
<div class="province-target text-left my-1">
<i class="fas fa-street-view"></i> กรุงเทพมหานคร <br>
<i class="fas fa-search"></i> เป้าหมาย
</div>
</div>
<div class="content-socail ">
<ul class="list-inline">
<li class="list-inline-item"><img src="assets/image/facebook.png" alt=""></li>
<li class="list-inline-item"><img src="assets/image/line.png" alt=""></li>
<li class="list-inline-item"><img src="assets/image/phone-call.png" alt=""></li>
</ul>
</div>
<div class="content-viewcount p-1">
<span class='pull-left'><i class="fa fa-bullhorn"></i> 1</span>
<span class='float-right'>11 ชั่วโมงที่แล้ว</span>
<div class="clearfix"></div>
</div>
</div>
</a>
</div>
</div>
</div>
<!-- vote zone -->
<!-- poppular zone -->
<div class="container my-3">
<div class="row dot_bt">
<div class="col text-center pb-2">
<h2 class='d-inline-block mb-0'>เพื่อนที่กำลังได้รับความนิยม</h2>
<small >เพื่อนที่ได้รับการเข้าชมโปรไฟล์มากกว่า 1,000 ครั้ง</small>
</div>
</div>
<div class="row py-3 p-0">
<div class="col-md-3 col-sm-12">
<a href="">
<div class="Carduser">
<div class="grid-item-left text-center">
<img src="assets/image/avatar.png" alt="" class='w-100'>
<p class='online'>
<i class="fas fa-eye"></i> 500 ครั้ง
</p>
</div>
<div class="grid-item-right">
<h5>Lorem ipsum</h5>
<div class="userdescription">
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Nobis, reiciendis.
</div>
<div class='gender-age my-1'>
<span class="label gender men">gender</span>
<span class="label">56</span>
</div>
<div class="province-target">
<i class="fas fa-street-view"></i> กรุงเทพมหานคร <br>
<i class="fas fa-search"></i> เป้าหมาย
</div>
</div>
</div>
</a>
</div>
</div>
</div>
<!-- poppular zone -->
<!-- fine target -->
<div class="container my-3">
<div class="row dot_bt">
<div class="col text-center pb-2">
<h2 class='d-inline-block mb-0'>เพื่อนที่กำลังมองหา</h2>
<small >เลือกเพื่อนที่กำลังมองหาเหมือนคุณ</small>
</div>
</div>
<div class="row py-3 grid-4">
<?php while ($target = mysqli_fetch_assoc($select_target)) {?>
<div class="grid4-item">
<a href='search?target=<?php echo $target['u_Target_id']; ?>' type="button" class="btn btn-custom p-2 p-4"> <h4 class='d-inline f-16'><?php if ($target['u_Target_id'] != 0) {echo $target['Target_name'] . '(' . $target['count'] . ')';} else {echo "";}?></h4> </a>
</div>
<?php }?>
</div>
</div>
<!-- fine target -->
<!-- find all friend zone -->
<div class="container my-3">
<div class="row dot_bt">
<div class="col text-center pb-2">
<h2 class='d-inline-block mb-0'>อายุเท่าไหร่ก็หาเพื่อนคุยได้</h2>
<small >หาเพื่อนคุยตามอายุที่คุณต้องการ</small>
</div>
</div>
<div class="row py-3 ">
<table class='w-100 allgender-age'>
<thead>
<tr>
<th>อายุ</th>
<?php while ($gname = mysqli_fetch_assoc($sql_gendername)) { ?>
<th><?php echo $gname['Gender_name']; ?></th>
<?php } ?>
</tr>
</thead>
<tbody>
<tr>
<td>18-24 ปี</td>
<?php foreach ($data1824 as $key => $value) {
echo "<td>".(($value == "0")? " " :$value)."</td>";
}?>
</tr>
<tr>
<td>25-34 ปี</td>
<?php foreach ($data2534 as $key => $value) {
echo "<td>".(($value == "0")? " " :$value)."</td>";
}?>
</tr>
<tr>
<td>35-44 ปี</td>
<?php foreach ($data3544 as $key => $value) {
echo "<td>".(($value == "0")? " " :$value)."</td>";
}?>
</tr>
<tr>
<td>45-54 ปี</td>
<?php foreach ($data4554 as $key => $value) {
echo "<td>".(($value == "0")? " " :$value)."</td>";
}?>
</tr>
<tr>
<td>55-64 ปี</td>
<?php foreach ($data5564 as $key => $value) {
echo "<td>".(($value == "0")? " " :$value)."</td>";
}?>
</tr>
<tr>
<td>65 ปีขึ้นไป</td>
<?php foreach ($data65up as $key => $value) {
echo "<td>".(($value == "0")? " " :$value)."</td>";
}?>
</tr>
</tbody>
</table>
</div>
</div>
<!-- find all friend zone -->
<!-- all province zone -->
<div class="container my-3">
<div class="row dot_bt">
<div class="col text-center pb-2">
<h2 class='d-inline-block mb-0 py-2'>เรามีเพื่อนอยู่ทุกจังหวัด</h2>
<small >เลือกเพื่อนตามจังหวัดที่คุณต้องการได้เลย</small>
</div>
</div>
<div class="row py-3 ">
<?php while ($province = mysqli_fetch_assoc($seleceprovince)) {?>
<div class="col-md-2 col-sm-4 p-3">
<a class='province-icon' href="<?php echo "#" . $province['u_Province_id']; ?>"><i class="fas fa-street-view"></i> <?php echo $province['Province_name'] . '(' . $province['count'] . ')'; ?> </a>
</div>
<?php }?>
</div>
</div>
<!-- all province zone -->
</body>
<script src="assets/jquery/jquery.js"></script>
<script src="assets/bootstrap/js/bootstrap.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-sweetalert/1.0.1/sweetalert.min.js" integrity="sha512-MqEDqB7me8klOYxXXQlB4LaNf9V9S0+sG1i8LtPOYmHqICuEZ9ZLbyV3qIfADg2UJcLyCm4fawNiFvnYbcBJ1w==" crossorigin="anonymous"></script>
<script src="assets/script/index.js"></script>
</html>