-
Notifications
You must be signed in to change notification settings - Fork 1
/
wonderful.php
executable file
·59 lines (59 loc) · 2.37 KB
/
wonderful.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
<?php
include 'app.php';
?>
<?getHeader()?>
<body>
<!-- <nav class="pui-nav primary fixed">
<div class="inner">
<div class="title">
مکان های دیدنی
</div>
</div>
</nav> -->
<div class="ui">
<div class="header-box">
<?getMenu()?>
</div>
<div class="box-container">
<div class="space-60"></div>
<div class="container">
<div class="row">
<div class="pui-col xs-12 sm-10 sm-offset-1 md-8 md-offset-2">
<div class="raised-area">
<div class="part">
<h2>مکان های دیدنی</h2>
</div>
<?php
// $page = 1;
// if (!empty($_GET["page"])) {
// $page = $_GET["page"];
// }
// $paged_item = 2;
// $start = ($page - 1) * $paged_item;
// $getWonderful = mysqli_query($db,"SELECT * FROM `Wonderful_Places` WHERE `active`=1 ORDER BY `name` LIMIT $start, $paged_item");
$getWonderful = mysqli_query($db,"SELECT * FROM `Wonderful_Places` WHERE `active`=1");
if (!mysqli_num_rows($getWonderful) >= 1) {
echo "<div class='part red-txt'>هیچ مکان دیدنی ای پیدا نشد :(</div>";
}
else {
while ($Wonderful = mysqli_fetch_assoc($getWonderful)) {
$State = getState($Wonderful['fstate'],"name");
echo "<div class='part'>
<h3>$Wonderful[name]</h3>
<p>$Wonderful[description]</p>
<br>
<label class='lbl primary' style='float: left'><i class='material-icons'>location_on</i> $State</label>
</div>";
}
}
?>
</div>
<div class="space-60"></div>
</div>
</div>
</div>
</div>
<?getButtons()?>
</div>
<?=setTitle("مکان های دیدنی",1)?>
<?getFooter()?>