Subversion Repositories Applications.papyrus

Rev

Rev 1467 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1467 Rev 1490
Line 17... Line 17...
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: inscription.class.php,v 1.22 2007-06-25 09:59:03 alexandre_tb Exp $
22
// CVS : $Id: inscription.class.php,v 1.23 2007-06-26 09:32:33 neiluj Exp $
23
/**
23
/**
24
* Inscription
24
* Inscription
25
*
25
*
26
* Un module d'inscription, en general ce code est specifique a
26
* Un module d'inscription, en general ce code est specifique a
27
* un site web
27
* un site web
Line 29... Line 29...
29
*@package inscription
29
*@package inscription
30
//Auteur original :
30
//Auteur original :
31
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
31
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.22 $ $Date: 2007-06-25 09:59:03 $
34
*@version       $Revision: 1.23 $ $Date: 2007-06-26 09:32:33 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 202... Line 202...
202
	              });
202
	              });
203
		          map.addOverlay(marker);
203
		          map.addOverlay(marker);
204
		          setLatLonForm(marker);
204
		          setLatLonForm(marker);
205
	  		    }
205
	  		    }
206
	        });' ;
206
	        });' ;
-
 
207
	        
-
 
208
			if($_REQUEST['action'] == 'modifier') {
207
			if ($this->getElementValue ('latitude') != '' && $this->getElementValue('longitude') != '') {
209
				if ($this->getElementValue ('latitude') != '' && $this->getElementValue('longitude') != '') {
208
				$script .= '
210
					$script .= '
209
						point = new GLatLng('.$this->getElementValue('latitude').', '.$this->getElementValue('longitude').');
211
							point = new GLatLng('.$this->getElementValue('latitude').', '.$this->getElementValue('longitude').');
210
						marker = new GMarker(point, {draggable: true});
212
							marker = new GMarker(point, {draggable: true});
211
						map.addOverlay(marker);' ;
213
							map.addOverlay(marker);' ;
-
 
214
				} 
212
			} 
215
			}
213
	        $script .= 'geocoder = new GClientGeocoder();
216
		    $script .= 'geocoder = new GClientGeocoder();
214
	      }
-
 
215
	    };
217
	    };
216
	    function showAddress() {
218
	    function showAddress() {
217
	      var adress_1 = document.getElementById("a_adresse1").value ;
219
	      var adress_1 = document.getElementById("a_adresse1").value ;
218
	      var adress_2 = document.getElementById("a_adresse2").value ;
220
	      var adress_2 = document.getElementById("a_adresse2").value ;
219
	      var ville = document.getElementById("a_ville").value ;
221
	      var ville = document.getElementById("a_ville").value ;