%PDF- %PDF-
Direktori : /home/alliance/domains/congress-intercultural.eu/public_html/ |
Current File : /home/alliance/domains/congress-intercultural.eu/public_html/p-initiative.php |
<?php include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/init.php"); include_once("inc/session.php"); if(!isset($_GET['lang'])){ $_GET['lang']="fr"; } $search=true; $subheader=false; $ini=$initiative->getWithLang($_GET['initiative'],$lang->id()); $thetheme=$theme->getWithLang($ini['id_theme'],$lang->id()); $cat_theme=$theme->getWithLang($thetheme['id_parent'],$lang->id()); //affichage du html include("theme/html.php"); //affichage des metas include("theme/meta.php"); echo "\n<title>".$ini['titre']." - ".$info_titresite."</title>\n"; //affichage du header include("theme/header.php"); if($ini['id_pays']!=0): $unpays=$country->getWithLang($ini['id_pays'],$lang->id()); ?> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyCPivdNX5TFi2D2NO41GnN9Q97Rd2hBHSo&sensor=true&language=<?=$lang->getlang(); ?>"></script> <script type="text/javascript"> var strasbourg = new google.maps.LatLng(48.562451,7.738556); var marker; var centre; var map; var geocoder; var markersArray = []; var styles = [ { stylers: [ { hue: "#0E99D3" }, { saturation: 30 } ] },{ featureType: "road", elementType: "geometry.fill", stylers: [ { hue: "#000000" }, { lightness: 30 }, { saturation: -100 } ] },{ featureType: "road", elementType: "geometry.stroke", stylers: [ { hue: "#000000" }, { lightness: 0 }, { saturation: -100 } ] },{ featureType: "landscape.man_made", elementType: "geometry", stylers: [ { hue: "#f7d4a8" } ] },{ featureType: "poi.park", elementType: "geometry", stylers: [ { color: "#e2f7a8" } ] },{ featureType: "road", elementType: "labels", stylers: [ { visibility: "off" } ] } ]; $(document).ready(function() { geocoder = new google.maps.Geocoder(); var styledMap = new google.maps.StyledMapType(styles, {name: "<?=lang("titresite");?>"}); var address = "<?=(($sec['ville']!="")?$sec['ville'].", ".utf8_encode(html_entity_decode($unpays['name'])):utf8_encode(html_entity_decode($unpays['name']))) ?>"; geocoder.geocode( { 'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { centre = results[0].geometry.location; //Création de la map var mapOptions = { zoom: 5, center: centre, mapTypeControlOptions: { mapTypeIds: [google.maps.MapTypeId.HYBRID, 'map_style'] } }; map = new google.maps.Map(document.getElementById('gmap'), mapOptions); map.mapTypes.set('map_style', styledMap); map.setMapTypeId('map_style'); // Création du marker var marker = new google.maps.Marker({ map: map, animation: google.maps.Animation.DROP, position: results[0].geometry.location }); } else { address = "<?php echo utf8_encode(html_entity_decode($unpays['name'])); ?>"; geocoder.geocode( { 'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { centre = results[0].geometry.location; //Création de la map var mapOptions = { zoom: 5, center: centre, mapTypeControlOptions: { mapTypeIds: [google.maps.MapTypeId.HYBRID, 'map_style'] } }; map = new google.maps.Map(document.getElementById('gmap'), mapOptions); map.mapTypes.set('map_style', styledMap); map.setMapTypeId('map_style'); // Création du marker var marker = new google.maps.Marker({ map: map, animation: google.maps.Animation.DROP, position: results[0].geometry.location }); } else { alert('Geocode was not successful for the following reason: ' + status); } }); } }); }); </script> <? endif; //colonne de droite include("theme/droite.php"); ?> <div class="initiative"> <div class="theme_header" style="background-image:url('uploads/<?=$cat_theme['photo']?>')"> <h1><?=$ini['titre']?></h1> </div> <div id="filariane"> <a style="color:#<?=$cat_theme['couleur']?>" href="<?=$url_site.$lang->getlang()?>/" class="link_home"><i class="fa fa-home" aria-hidden="true"></i></a> <i class="fa fa-caret-right" aria-hidden="true"></i> <?='<a style="color:#'.$cat_theme['couleur'].'" class="link" href="'.$lang->getlang().'/theme/'.$cat_theme['id_theme']."-".cleanUrl($cat_theme['libelle']).'.html">'.$cat_theme['libelle'].'</a> <i class="fa fa-caret-right" aria-hidden="true"></i>'?> <?=(($thetheme['id_parent']!=0)?'<a style="color:#'.$cat_theme['couleur'].'" class="link" href="'.$lang->getlang().'/theme/'.$thetheme['id_theme']."-".cleanUrl($thetheme['libelle']).'.html">'.$thetheme['libelle'].'</a> <i class="fa fa-caret-right" aria-hidden="true"></i> ':"")?> <div style="color:#<?=$cat_theme['couleur']?>" class="link"><?=$ini['titre']?></div> </div> <? if($ini['description']!=""):?> <div class="description"> <div class="texte"> <?=(html_entity_decode($ini['description']))?> </div> </div> <? endif;?> <? if($ini['lien']!=""):?> <div class="lien"> <a style="color:#<?=$cat_theme['couleur']?>" href="<?=$ini['lien']?>" target="_blank"> <i class="fa fa-external-link" aria-hidden="true"></i><?=(html_entity_decode($ini['libelle_lien']))?></a> </div> <? endif;?> <div id="gmap"></div> </div> <? //affichage du footer include("theme/footer.php"); ?>