-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpage4square.php
More file actions
128 lines (110 loc) · 3.19 KB
/
page4square.php
File metadata and controls
128 lines (110 loc) · 3.19 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
<?php
include( "queryFunctions.php" );
include( "sessionRedirector.php" );
$userid = $_SESSION[ "userid" ];
$type = getUserType( $userid );
include( "foursquareHelper.php" );
if ( !isset( $_POST[ "btnSearch" ] ) ) {
header( "Location: adminindex.php" );
}
global $connection;
$query = "SELECT * FROM places WHERE placeid = " . $_POST["cbplaces"];
$results = mysqli_query( $connection, $query );
$row = mysqli_fetch_assoc( $results );
$lat = $row["lattitude"];
$long = $row[ "longitude" ];
$name = $row[ "placename" ];
$radius = 20000;
$placeidheader = $_POST["cbplaces"];
if ( $type == "admin" ) {
include( "adminDashboardHeader.php" );
} else {
include( "userDashboardHeader.php" );
}
?>
<div class="breadcrumbs">
<div class="col-sm-4">
<div class="page-header float-left">
<div class="page-title">
<?php echo "<h1>Tags: " . implode(", ", getCurrentPlaceTags($placeidheader))."</h1>" ?>
</div>
</div>
</div>
<div class="col-sm-8">
<div class="page-header float-right">
<div class="page-title">
<ol class="breadcrumb text-left">
<li class="active">
<?php //echo "User Id ".$userid ?>
</li>
</ol>
</div>
</div>
</div>
</div>
<div class="breadcrumbs">
<div class="col-sm-4">
<div class="page-header float-left">
<div class="page-title">
<?php echo "<h1>Transports: " . implode(", ", getCurrentPlaceTransport($placeidheader))."</h1>" ?>
</div>
</div>
</div>
<div class="col-sm-8">
<div class="page-header float-right">
<div class="page-title">
<ol class="breadcrumb text-left">
<li class="active">
<?php //echo "User Id ".$userid ?>
</li>
</ol>
</div>
</div>
</div>
</div>
<div class="content mt-3"> </div>
<?php
$resultFrom4s = getVenuesListUsingLatLng( $lat, $long, $radius );
foreach ( $resultFrom4s as $i ) {
//$resultFromPhotos = getPhotos($i['id']);
//echo($resultFromPhotos);
echo( "
<div class='col-xl-4 col-lg-3'>
<div class='card'>
<div class='card-body'>
<div class='stat-widget-one'>
<div>" );
echo( " <div class='stat-text '><h6><strong>" . $i[ 'name' ] . "<strong></h6></div><br>" );
echo( " <div><img alt='image' src='" . getPhotoSingle( $i[ 'id' ] ) . "'/></div><br/>" );
echo( "</div>
<div class='stat-content dib'>" );
if ( isset( $i[ 'city' ] ) ) {
echo( " <div class='stat-text '><strong>Address : </strong></div>" );
$add = $i[ "city" ].' '.$i['country'];
//$addr=explode(" ",$add);
//$address=implode(' ',array_slice($addr, 0)).', India';
//$add
} else
$add = "<br>";
echo( " <div class='stat-text'><mark>" . $add . "<mark></div>" );
if ( isset( $i[ 'rating' ] ) ) {
echo( " <div class='stat-text '><strong>Ratings : </strong></div>" );
$rate = $i[ 'rating' ];
} else
$rate = "<br>";
echo( " <div class='stat-text'><mark>" . $rate . "<mark></div>" );
echo( "
</div>
</div>
</div>
</div>
</div>" );
}
?>
</div>
<?php
if ( $type == "admin" ) {
include( "adminDashboardFooter.php" );
} else {
include( "userDashboardFooter.php" );
}