示例#1
0
<?php use_helper('ijani', 'GMap'); ?>
<p><?php echo $presta->getName(); ?></p>
<p><?php echo rating_status($presta->getRating()); ?></p>
<br/>
<p><?php echo $presta->getPresentation(); ?></p>
<p>Domaines :
  <?php foreach($presta->Domaines as $domain): ?>
  <?php echo link_to($domain->getName(), '@domaine?id='.$domain->getId().'&domaine='.$domain->getName()); ?>
  <?php endforeach; ?>
</p>
<?php include_map($gmap, array('width' => '320px', 'height' => '240px')); ?>
<?php include_map_javascript($gmap); ?>
<p>Adresse : <?php echo $presta->getAddress(); ?></p>
<p><?php echo $presta->getReperes(); ?>
<p>Tel : <?php echo $presta->getTel() ?></p>
<p>Mobile : <?php echo $presta->getMobile() ?></p>
<?php include_component('comment', 'formComment', array('object' => $presta)) ?>
<?php include_component('comment', 'list', array('object' => $presta, 'i' => 0)) ?>
<?php 
require_once GMAP_LIB_PATH . 'helper/GMapHelper.php';
?>

<html>
  <head>
    <?php 
include_google_map_javascript_file($gMap);
?>
    <script type="text/javascript">
    function moveToDarwin() {
      var darwin = new google.maps.LatLng(-12.461334, 130.841904);
      map.set_center(darwin);
    }
  </script>
  </head>
  <body>

    <h1>The Map</h1>
    <?php 
include_map($gMap);
?>

    <br />
    <!-- Javascript included at the bottom of the page -->
    <?php 
include_map_javascript($gMap);
?>
  </body>
</html>