Subversion Repositories Applications.papyrus

Rev

Rev 1759 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1759 Rev 1791
Line 641... Line 641...
641
	
641
	
642
	GEN_stockerFichierScript('googleMapScript', $url_google_script);
642
	GEN_stockerFichierScript('googleMapScript', $url_google_script);
643
	GEN_AttributsBody('onload', 'load()');
643
	GEN_AttributsBody('onload', 'load()');
644
    $html_bouton = '<tr>
644
    $html_bouton = '<tr>
645
<td style="text-align:left;padding:5px;" colspan="2"> 
645
<td style="text-align:left;padding:5px;" colspan="2"> 
-
 
646
<input onclick="showAddress();" name="chercher_sur_carte" value="'.VERIFIER_MON_ADRESSE.'" type="button" />';
-
 
647
	if ($obligatoire) $html_bouton .= '<span class="symbole_obligatoire">&nbsp;*</span>';
646
<input onclick="showAddress();" name="chercher_sur_carte" value="'.VERIFIER_MON_ADRESSE.'" type="button" /><span class="symbole_obligatoire">&nbsp;*</span></td>
648
	$html_bouton .= '</td>
647
</tr>';
649
</tr>';
Line 648... Line 650...
648
	$formtemplate->addElement('html', $html_bouton);
650
	$formtemplate->addElement('html', $html_bouton);
649
   
651
   
650
    $formtemplate->addElement('html', '<tr><td colspan="2"><div id="map" style="width: 600px; height: 450px"></div></td></tr>');
652
    $formtemplate->addElement('html', '<tr><td colspan="2"><div id="map" style="width: 600px; height: 450px"></div></td></tr>');
-
 
653
     $formtemplate->addElement('text', 'latitude', LATITUDE, array('id' => 'latitude', 'size' => 6, 'readonly' => 'readonly'));
651
     $formtemplate->addElement('text', 'latitude', LATITUDE, array('id' => 'latitude', 'size' => 6, 'readonly' => 'readonly'));
654
    $formtemplate->addElement('text', 'longitude', LONGITUDE, array('id' => 'longitude', 'size' => 6, 'readonly' => 'readonly'));
652
    $formtemplate->addElement('text', 'longitude', LONGITUDE, array('id' => 'longitude', 'size' => 6, 'readonly' => 'readonly'));
655
    if ($obligatoire) {
653
    $formtemplate->addRule ('latitude', LATITUDE . ' obligatoire', 'required', '', 'client');
656
	    $formtemplate->addRule ('latitude', LATITUDE . ' obligatoire', 'required', '', 'client');
654
    $formtemplate->addRule ('longitude', LONGITUDE . ' obligatoire', 'required', '', 'client');
657
	    $formtemplate->addRule ('longitude', LONGITUDE . ' obligatoire', 'required', '', 'client');
655
    
658
    }
656
    /*
659
    /*
657
    include_once GEN_CHEMIN_API.'formulaire/formulaire.fonct.google.php';
660
    include_once GEN_CHEMIN_API.'formulaire/formulaire.fonct.google.php';
Line 658... Line 661...
658
    GEN_stockerCodeScript($script);*/
661
    GEN_stockerCodeScript($script);*/
659
}
662
}
660
 
663
 
-
 
664
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
665
*
-
 
666
* $Log$
661
/* +--Fin du code ----------------------------------------------------------------------------------------+
667
* Revision 1.12.2.1  2007-12-06 10:12:01  alexandre_tb
662
*
668
* appel de la fonction GEN_AttributsBody dans le composant carte_google
663
* $Log$
669
*
664
* Revision 1.12  2007-10-22 09:15:16  alexandre_tb
670
* Revision 1.12  2007-10-22 09:15:16  alexandre_tb
665
* modification de l include pour qu il prenne en compte la langue
671
* modification de l include pour qu il prenne en compte la langue