2010-09-23 17:50:26 +02:00
|
|
|
<?php
|
|
|
|
class mappy extends Module {
|
2010-10-05 17:30:04 +02:00
|
|
|
protected $moduleTitle = 'Mappy';
|
2010-09-23 17:50:26 +02:00
|
|
|
protected static $paramsList = array(
|
|
|
|
'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="'.$this->pathToModule.'js/'.$this->moduleName.'.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="'.$this->pathToModule.'css/'.$this->moduleName.'.css">';
|
2010-09-23 17:50:26 +02:00
|
|
|
echo '<script src="http://axe.mappy.com/1v1/init/get.aspx?version=2.01&solution=ajax&auth=HbTTpMfC4//GWuldL2IsF+HJA4xVuTBsIQi0wcC7xRz+e17hobrJ+1947aq34rdjYAPy6nBYBQF8o56Qzdun9w=="></script>
|
|
|
|
<div id="mymap"></div>
|
|
|
|
<div id="myAdress"><input type="text" name="myAdressField" id="myAdressField" /></div>';
|
|
|
|
}
|
|
|
|
}
|