19 lines
890 B
PHP
19 lines
890 B
PHP
<?php
|
|
class gmap extends Module {
|
|
protected $moduleTitle = 'Google Maps';
|
|
protected $paramsList = array(
|
|
'visibility'
|
|
);
|
|
|
|
public function __construct($params){
|
|
parent::__construct(__CLASS__, $params);
|
|
}
|
|
|
|
public function build(){
|
|
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" />
|
|
|
|
<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>';
|
|
}
|
|
} |