/trunk/bibliotheque/elements/liste.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: liste.php,v 1.3 2008-11-19 09:28:46 aperonnet Exp $ |
// CVS : $Id: liste.php,v 1.2 2008-09-17 14:18:12 alexandre_tb Exp $ |
/** |
* |
*@package bazar |
27,13 → 27,10 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2008 |
*@version $Revision: 1.3 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
// TODO : Semble inutilise cf ; formulaire.fonct.inc |
include_once PAP_CHEMIN_API_PEAR.'PEAR.php'; |
46,7 → 43,6 |
} |
function toHTML($valeur) { |
$html = ''; |
$val = $this->options['nom_bdd']; |
//pour les champs renseignes par une liste, on va chercher le label de la liste, plutot que l'id |
53,7 → 49,7 |
$requete = 'SELECT blv_label FROM bazar_fiche_valeur_liste, bazar_liste_valeurs WHERE bfvl_ce_fiche='. |
$GLOBALS['_BAZAR_']['id_fiche'].' AND bfvl_ce_liste='.$this->options['nom_bdd']. |
' AND bfvl_valeur=blv_valeur AND blv_ce_liste='.$this->options['nom_bdd']. |
' AND blv_ce_i18n="'.$GLOBALS['_BAZAR_']['langue'].'" ORDER by blv_valeur'; |
' AND blv_ce_i18n="'.$GLOBALS['_BAZAR_']['langue'].'"'; |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ; |
if (DB::isError ($resultat)) { |
return ($resultat->getMessage().'<br />'.$resultat->getDebugInfo()) ; |
76,7 → 72,7 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* $Log: liste.php,v $ |
* Revision 1.2 2008-09-17 14:18:12 alexandre_tb |
* fusion avec aha |
* |
/trunk/bibliotheque/elements/labelhtml.php |
---|
46,10 → 46,8 |
$html = ''; |
$val = $this->options['nom_bdd']; |
// On ecrit le label uniquement si le champs obligatoire est a 1 |
if ($this->options['obligatoire'] == 1) { |
$html .= '<div class="BAZ_label BAZ_rubrique_'.$GLOBALS['_BAZAR_']['class'].'">'. |
if ($this->options['obligatoire'] == 1) $res .= '<div class="BAZ_label BAZ_rubrique_'.$GLOBALS['_BAZAR_']['class'].'">'. |
$this->options['label'].'</div>'."\n"; |
} |
return $html; |
} |
57,7 → 55,10 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* $Log: labelhtml.php,v $ |
* Revision 1.2 2008-09-17 14:18:12 alexandre_tb |
* fusion avec aha |
* |
* Revision 1.1.2.1 2008-04-16 12:35:25 alexandre_tb |
* version initiale |
* |
/trunk/bibliotheque/elements/checkbox.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: checkbox.php,v 1.3 2008-11-19 09:28:46 aperonnet Exp $ |
// CVS : $Id: checkbox.php,v 1.2 2008-09-17 14:18:12 alexandre_tb Exp $ |
/** |
* |
*@package bazar |
27,7 → 27,7 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2008 |
*@version $Revision: 1.3 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
72,7 → 72,7 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* $Log: checkbox.php,v $ |
* Revision 1.2 2008-09-17 14:18:12 alexandre_tb |
* fusion avec aha |
* |
/trunk/bibliotheque/elements/listedatedeb.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: listedatedeb.php,v 1.3 2008-11-19 09:28:46 aperonnet Exp $ |
// CVS : $Id: listedatedeb.php,v 1.2 2008-09-17 14:18:12 alexandre_tb Exp $ |
/** |
* |
*@package bazar |
27,7 → 27,7 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2008 |
*@version $Revision: 1.3 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
89,7 → 89,7 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* $Log: listedatedeb.php,v $ |
* Revision 1.2 2008-09-17 14:18:12 alexandre_tb |
* fusion avec aha |
* |
/trunk/bibliotheque/elements/texte.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: texte.php,v 1.4 2008-11-19 09:28:46 aperonnet Exp $ |
// CVS : $Id: texte.php,v 1.3 2008-10-29 10:36:44 alexandre_tb Exp $ |
/** |
* |
*@package bazar |
27,7 → 27,7 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2008 |
*@version $Revision: 1.4 $ |
*@version $Revision: 1.3 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
67,7 → 67,7 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* $Log: texte.php,v $ |
* Revision 1.3 2008-10-29 10:36:44 alexandre_tb |
* l'element texte s affiche meme pour le titre et la description |
* |
/trunk/bibliotheque/elements/textelong.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: textelong.php,v 1.4 2008-11-19 09:28:46 aperonnet Exp $ |
// CVS : $Id: textelong.php,v 1.3 2008-10-29 10:35:40 alexandre_tb Exp $ |
/** |
* |
*@package bazar |
27,7 → 27,7 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2008 |
*@version $Revision: 1.4 $ |
*@version $Revision: 1.3 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
57,7 → 57,7 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* $Log: textelong.php,v $ |
* Revision 1.3 2008-10-29 10:35:40 alexandre_tb |
* l'element textlong s affiche meme pour le titre et la description |
* |
/trunk/bibliotheque/elements/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: carte_google.php,v 1.2 2008-09-17 14:18:12 alexandre_tb Exp $ |
// CVS : $Id: carte_google.php,v 1.1.2.1 2008-04-16 12:35:25 alexandre_tb Exp $ |
/** |
* |
*@package bazar |
27,7 → 27,7 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2008 |
*@version $Revision: 1.2 $ |
*@version $Revision: 1.1.2.1 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
39,6 → 39,7 |
var $option = array(); |
function Bazar_carte_google($options) { |
unset ($options['nom_bdd']); // fout la merde avec google maps v2 |
$this->options = $options; |
} |
48,33 → 49,47 |
$val = $this->options['nom_bdd']; |
$script = ' |
// Variables globales |
// cette fonction peut déjà être présente |
if (typeof(addListener) != \'function\') { |
// fonction portable pour ajout de listeners |
function addListener(element, baseName, handler) |
{ |
if (element.addEventListener) { |
element.addEventListener(baseName, handler, false) ; |
} else if (element.attachEvent) { |
element.attachEvent(\'on\'+baseName, handler) ; |
} |
} |
} |
var map = null; |
addListener(window,\'load\',loadMap) ; |
var geocoder = null; |
var lat = document.getElementById("latitude"); |
var lon = document.getElementById("longitude"); |
function load() { |
if (GBrowserIsCompatible()) { |
function loadMap() { |
var point = new google.maps.LatLng('.$GLOBALS['_BAZAR_']['ligne_resultat']['bf_latitude'].', '.$GLOBALS['_BAZAR_']['ligne_resultat']['bf_longitude'].'); |
var optionsGoogleMapsv3 = { |
// On centre la carte sur le languedoc roussillon |
center: point, |
zoom: 7, |
mapTypeId: google.maps.MapTypeId.G_HYBRID_MAP, |
mapTypeControl: true, |
scaleControl: true |
}; |
map = new google.maps.Map(document.getElementById("map"), optionsGoogleMapsv3); |
map = new GMap2(document.getElementById("map"), G_HYBRID_MAP); |
marker = new google.maps.Marker({ |
position: point, |
map: map |
}); |
map.addControl(new GSmallMapControl()); |
map.addControl(new GMapTypeControl()); |
map.addControl(new GScaleControl()); |
map.enableContinuousZoom(); |
// On centre la carte sur le marqueur |
center = new GLatLng('.$GLOBALS['_BAZAR_']['ligne_resultat']['bf_latitude'].', '.$GLOBALS['_BAZAR_']['ligne_resultat']['bf_longitude'].'); |
map.setCenter(center, 7);map.setMapType(G_HYBRID_MAP); |
point = new GLatLng('.$GLOBALS['_BAZAR_']['ligne_resultat']['bf_latitude'].', '.$GLOBALS['_BAZAR_']['ligne_resultat']['bf_longitude'].'); |
marker = new GMarker(point, {draggable: true}); |
map.addOverlay(marker); |
} |
};' ; |
GEN_stockerCodeScript($script); |
GEN_stockerFichierScript('googleMapScript', $this->options['nom_bdd']); |
//GEN_stockerFichierScript('googleMapScript', $this->options['nom_bdd']); |
GEN_stockerFichierScript('googleMapScript', "http://maps.googleapis.com/maps/api/js?sensor=false&key=".BAZ_GOOGLE_KEY); |
// On ajoute l attribut load a la balise body |
GEN_AttributsBody('onload', 'load()'); |
//GEN_AttributsBody('onload', 'load()'); |
$html = '<div id="map" style="width: 400px; height: 300px"></div>'; |
return $html; |
} |
83,10 → 98,7 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.1.2.1 2008-04-16 12:35:25 alexandre_tb |
* version initiale |
* |
* |
* +-- Fin du code ----------------------------------------------------------------------------------------+ |
*/ |
?> |
?> |
/trunk/bibliotheque/elements/listedatefin.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: listedatefin.php,v 1.3 2008-11-19 09:28:46 aperonnet Exp $ |
// CVS : $Id: listedatefin.php,v 1.2 2008-09-17 14:18:12 alexandre_tb Exp $ |
/** |
* |
*@package bazar |
27,7 → 27,7 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2008 |
*@version $Revision: 1.3 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
89,7 → 89,7 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* $Log: listedatefin.php,v $ |
* Revision 1.2 2008-09-17 14:18:12 alexandre_tb |
* fusion avec aha |
* |
/trunk/bibliotheque/elements/champs_mail.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: champs_mail.php,v 1.3 2008-11-19 09:28:46 aperonnet Exp $ |
// CVS : $Id: champs_mail.php,v 1.2 2008-09-17 14:18:12 alexandre_tb Exp $ |
/** |
* |
*@package bazar |
27,7 → 27,7 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2008 |
*@version $Revision: 1.3 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
58,7 → 58,7 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* $Log: champs_mail.php,v $ |
* Revision 1.2 2008-09-17 14:18:12 alexandre_tb |
* fusion avec aha |
* |