%PDF- %PDF-
Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/test/ |
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/test/p-pays2.php |
<?php include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/init.php"); //edition en cours $db = new BaseOps; $query="SELECT c.*,cl.name FROM `country` c LEFT JOIN `country_lang` cl ON c.`id`=cl.`country` WHERE cl.lang=".$lang->getlangid()." AND c.`id`=".$_GET['id']; $country = $db->select_array($query); //affichage du html include("theme/html.php"); //affichage des metas include("theme/meta.php"); echo "\n<title>".$country['name']." - ".$info_titresite."</title>\n"; ?> <meta property="og:type" content="non_profit"/> <meta property="fb:app_id" content="307325492664749"/> <meta property="og:url" content="<?php echo $url_site.$pageactu; ?>"/> <meta property="og:site_name" content="<?php echo $info_titresite; ?>"/> <?php //affichage du header include("theme/header.php"); //colonne de droite include("theme/droite.php"); if(!isset($_GET['edition'])){ $this_edition=$edition->getCurrentEdition("front",$lang->getlangid()); } else{ $this_edition=$edition->getEdition($_GET['edition']); } ?> <!--<div id="filariane"> <a href="/" style="background-color: #<?php echo $cat['couleur']; ?>" class="link"><?php echo $cat['titre']; ?></a> <?php if($cat['type'] != 0) { ?><a href="<?php echo $pagesec; ?>" style="background-color: #<?php echo $cat['couleur']; ?>" class="link"><?php echo $sec['titre']; ?></a><?php } ?> <div class="link"><?php echo $actu['titre']; ?></div> </div>--> <div class="ariane"><img src="images/icons/<?=$country['code_iso'];?>.png" alt="<?=$country['name'];?>"/> <span class="pays_lib"><?=$country['name'] ?></span></div> <div class="page_pays"> <? $villes=$section->getVil($country['id'],$this_edition['id'],$lang->getlangid()); ?> <h2 class="bg_profil_2"><?=lang("12-Star City")?></h2> <? if($villes==null): ?> Pas encore de ville participante <? else: foreach($villes as $ville):?> <div class="bloc_pays border_profil_2"> <?if($ville['photo1']!=""):?> <div class="gauche"> <img src="<?php echo thumb($ville['photo1'], 220,127) ?>" alt="" /> </div> <? endif; ?> <div class="droite"> <h3><a href="<?=$lang->getlang()?>/<?=$ville['id']?>-<?=$ville['permalien']?>/"><?=$ville['titre']; ?></a> <img style="display:inline; margin-bottom:-7px;" src="images/flag.png" alt="<?=lang("12-Star City")?>"/> </h3> <div class="texte"><?=substrwords(html_entity_decode($ville['texte'],ENT_QUOTES, 'UTF-8'),300,'...')?></div> </div> </div> <?endforeach; endif;?> <? $cols=$section->getCol($country['id'],$this_edition['id'],$lang->getlangid()); ?> <h2 class="bg_profil_1"><?=lang("Community partner")?></h2> <? if($cols==null): ?> Pas encore de collectivité participante <? else: foreach($cols as $col):?> <div class="bloc_pays border_profil_1"> <?if($col['photo1']!=""):?> <div class="gauche"> <img src="<?php echo thumb($col['photo1'], 220,127) ?>" alt="" /> </div> <? endif; ?> <div class="droite"> <h3><a href="<?=$lang->getlang()?>/<?=$col['id']?>-<?=$col['permalien']?>/"><?=$col['titre']; ?></a></h3> <div class="texte"><?=substrwords(html_entity_decode($col['texte'],ENT_QUOTES, 'UTF-8'),300,'...')?></div> </div> </div> <?endforeach; endif;?> <? $asss=$section->getAsso($country['id'],$this_edition['id'],$lang->getlangid()); ?> <h2 class="bg_profil_3"><?=lang("Partner association")?></h2> <? if($asss==null): ?> Pas encore de collectivité participante <? else: foreach($asss as $ass):?> <div class="bloc_pays border_profil_3"> <?if($ass['photo1']!=""):?> <div class="gauche"> <img src="<?php echo thumb($ass['photo1'], 220,127) ?>" alt="" /> </div> <? endif; ?> <div class="droite"> <h3><a href="<?=$lang->getlang()?>/<?=$ass['id']?>-<?=$ass['permalien']?>/"><?=$ass['titre']; ?></a></h3> <div class="texte"><?=substrwords(html_entity_decode($ass['texte'],ENT_QUOTES, 'UTF-8'),300,'...')?></div> </div> </div> <?endforeach; endif;?> </div> <?php //affichage du footer include("theme/footer.php"); ?>