Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 352 → Rev 356

/trunk/configuration/baz_config.inc.php
19,7 → 19,7
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: baz_config.inc.php,v 1.36 2007-10-01 12:03:19 alexandre_tb Exp $
// CVS : $Id: baz_config.inc.php,v 1.37 2007-12-14 09:53:23 alexandre_tb Exp $
/**
* Fichier de configuration du bazar
*
31,7 → 31,7
*@author Florian SCHMITT <florian@ecole-et-nature.org>
//Autres auteurs :
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.36 $ $Date: 2007-10-01 12:03:19 $
*@version $Revision: 1.37 $ $Date: 2007-12-14 09:53:23 $
// +------------------------------------------------------------------------------------------------------+
*/
 
175,9 → 175,12
define ('BAZ_GOOGLE_KEY', ''); // Indiquer ici la cle google necessaire pour l appli bazar.carte_google.php
 
if (defined ('BAZ_GOOGLE_KEY')) {
define ('BAZ_GOOGLE_CENTRE_LAT', '');
define ('BAZ_GOOGLE_CENTRE_LON', '');
define ('BAZ_GOOGLE_ALTITUDE', ''); // de 1 a 15
define ('BAZ_GOOGLE_CENTRE_LAT', '43.444943');
define ('BAZ_GOOGLE_CENTRE_LON', '3.537598');
define ('BAZ_GOOGLE_ALTITUDE', '8'); // de 1 a 15
define ('BAZ_GOOGLE_IMAGE_LARGEUR', 600); // en pixel
define ('BAZ_GOOGLE_IMAGE_HAUTEUR', 450);
define ('BAZ_GOOGLE_MAXIMISE_TAILLE', false); // Si a true, la carte essaie de s etendre sur toute la largeur disponible
}
 
 
189,6 → 192,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.36 2007-10-01 12:03:19 alexandre_tb
* constantes liees a la cartographie google des fiches
*
* Revision 1.35 2007-09-28 14:29:13 jp_milcent
* Ajout de la gestion de l'affichage des vues ou pas.
*
/trunk/bibliotheque/bazar.fonct.php
19,7 → 19,7
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: bazar.fonct.php,v 1.75 2007-12-04 09:07:21 alexandre_tb Exp $
// CVS : $Id: bazar.fonct.php,v 1.76 2007-12-14 09:56:02 alexandre_tb Exp $
/**
*
* Fonctions du module bazar
31,7 → 31,7
*@author Florian Schmitt <florian@ecole-et-nature.org>
//Autres auteurs :
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.75 $ $Date: 2007-12-04 09:07:21 $
*@version $Revision: 1.76 $ $Date: 2007-12-14 09:56:02 $
// +------------------------------------------------------------------------------------------------------+
*/
 
546,7 → 546,7
$formtemplate = new HTML_QuickForm('formulaire', 'post', preg_replace ('/&amp;/', '&', $lien_formulaire->getURL()) );
$squelette =& $formtemplate->defaultRenderer();
$squelette->setFormTemplate("\n".'<form {attributes}>'."\n".'<table style="border:0;width:100%;">'."\n".'{content}'."\n".'</table>'."\n".'</form>'."\n");
$squelette->setElementTemplate( '<tr>'."\n".'<td style="font-size:12px;width:120px;text-align:right;">'."\n".'{label}'.
$squelette->setElementTemplate( '<tr>'."\n".'<td>'."\n".'{label}'.
'<!-- BEGIN required --><span class="symbole_obligatoire">&nbsp;*</span><!-- END required -->'."\n".
' </td>'."\n".'<td style="text-align:left;padding:5px;"> '."\n".'{element}'."\n".
'<!-- BEGIN error --><span class="erreur">{error}</span><!-- END error -->'."\n".
753,6 → 753,8
if ($tableau[$i]['type']=='carte_google') {
include_once GEN_CHEMIN_API.'formulaire/formulaire.fonct.google.php';
GEN_stockerCodeScript($script);
// On ajoute l attribut load a la balise body
GEN_AttributsBody('onload', 'load()');
}
}
}
763,6 → 765,8
if ($tableau[$i]['type'] == 'carte_google') {
include_once GEN_CHEMIN_API.'formulaire/formulaire.fonct.google.php';
GEN_stockerCodeScript($script);
// On ajoute l attribut load a la balise body
GEN_AttributsBody('onload', 'load()');
}
}
}
1399,6 → 1403,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.75 2007-12-04 09:07:21 alexandre_tb
* Fusion avec la livraison AHA : 4 déc 2007
*
* Revision 1.74 2007-10-25 09:41:31 alexandre_tb
* mise en place de variable de session pour eviter que les formulaires soit valider 2 fois, pour les url, fichiers et image
*
/trunk/bazar.carte_google.php
19,7 → 19,7
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: bazar.carte_google.php,v 1.6 2007-12-04 16:20:23 jp_milcent Exp $
// CVS : $Id: bazar.carte_google.php,v 1.7 2007-12-14 09:59:15 alexandre_tb Exp $
/**
*
*@package bazar
27,7 → 27,7
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
//Autres auteurs :
*@copyright Tela-Botanica 2000-2007
*@version $Revision: 1.6 $
*@version $Revision: 1.7 $
// +------------------------------------------------------------------------------------------------------+
*/
 
100,7 → 100,8
// Variables globales
var map = null;
var lat = document.getElementById("latitude");
var lon = document.getElementById("longitude");
var lon = document.getElementById("longitude");';
if (BAZ_GOOGLE_MAXIMISE_TAILLE) $script .= '
// Pour gerer la taille
var winW = 630, winH = 560;
var deltaH = 220;
125,7 → 126,8
window.onresize = function () {
setWinHW();
if (map) map.checkResize();
}
}';
$script .= '
function createMarker(point, chaine) {
var icon = new GIcon();
141,8 → 143,10
});
return marker;
}
function load() {
setWinHW();
function load() {';
if (BAZ_GOOGLE_MAXIMISE_TAILLE) $script .= '
setWinHW();';
$script .= '
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
170,7 → 174,8
include_once BAZ_CHEMIN_APPLI.'bibliotheque/bazarTemplate.class.php';
$modele = new bazarTemplate($GLOBALS['_BAZAR_']['db']);
$html = $modele->getTemplate(BAZ_TEMPLATE_ACCUEIL_CARTE_GOOGLE, $GLOBALS['_BAZAR_']['langue']);
$res = str_replace ('{CARTE}', '<div id="map" style="width: 600px; height: 450px"></div>', $html);
$res = str_replace ('{CARTE}', '<div id="map" style="width: '.BAZ_GOOGLE_IMAGE_LARGEUR.
'px; height: '.BAZ_GOOGLE_IMAGE_HAUTEUR.'px"></div>', $html);
 
return $res;
}
179,6 → 184,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.6 2007-12-04 16:20:23 jp_milcent
* Fusion avec la livraison AHA : 4 décembre 2007
*
* Revision 1.5.2.1 2007-12-04 16:19:32 jp_milcent
* Ajout de la prise en charge de l'applette body_attributs
*