Esempio n. 1
0
<?php

include_once "header.php";
include_once "sidebar.php";
$userid = $_GET['uid'];
$data = getUserProfile($userid)[0];
$pos = getUserLatLng($userid)[0];
?>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            Map
        </h1>

        <ol class="breadcrumb">
            <li><a href="dashboard.php"><i class="fa fa-dashboard"></i>Home</a></li>
            <li class="active">Here</li>
        </ol>
    </section>
    <script src="https://maps.googleapis.com/maps/api/js"></script>

    <script>
        var map;
        function initMap() {
            
            var latlng =  {lat: <?php 
echo $pos['lat'];
?>
, lng: <?php 
echo $pos['lng'];
Esempio n. 2
0
                        <td><?php 
    echo $row["location"];
    ?>
</td>
                        <td>
                          <a  href="user_map.php?uid=<?php 
    echo $row["userid"];
    ?>
" 
                              class="address_cell" 
                              data-lat='<?php 
    echo getUserLatLng($row["userid"])[0]["lat"];
    ?>
'
                              data-lng='<?php 
    echo getUserLatLng($row["userid"])[0]["lng"];
    ?>
'>View Map</a>
                        </td>
                        <td><a href="user_agenda.php?uid=<?php 
    echo $row["userid"];
    ?>
#week">View Agenda</a></td>
                        <td><a href="detail.php?p=<?php 
    echo $id;
    ?>
">Click</a></td>
                        <td><a href="add_profile.php?e=<?php 
    echo $id;
    ?>
"><i class="fa fa-fw fa-pencil"></i></a></td>