2010-09-24 12:08:02 +02:00
|
|
|
<?php
|
|
|
|
class gmap extends Module {
|
2010-10-05 17:30:04 +02:00
|
|
|
protected $moduleTitle = 'Google Maps';
|
2010-10-06 10:24:08 +02:00
|
|
|
protected $paramsList = array(
|
2010-09-24 12:08:02 +02:00
|
|
|
'visibility'
|
|
|
|
);
|
|
|
|
|
|
|
|
public function __construct($params){
|
2010-10-05 17:30:04 +02:00
|
|
|
parent::__construct(__CLASS__, $params);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function build(){
|
2010-09-27 12:48:53 +02:00
|
|
|
echo '<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=fr"></script>
|
|
|
|
<script type="text/javascript" src="'.$this->pathToModule.'js/'.$this->moduleName.'.js"></script>
|
|
|
|
<link rel="stylesheet" href="'.$this->pathToModule.'css/'.$this->moduleName.'.css" type="text/css" />
|
2010-09-24 12:08:02 +02:00
|
|
|
|
2010-09-27 12:48:53 +02:00
|
|
|
<div id="myAdress"><label for="myAdressField"><img src="images/interface/map.png" /> Adresse pour Google Maps :</label><input type="text" name="myAdressField" id="myAdressField" /></div><a href="#map" id="gmapLink"></a><div id="map"><div id="mymap" style="width:400px;height:400px"></div></div>';
|
2010-09-24 12:08:02 +02:00
|
|
|
}
|
|
|
|
}
|