%PDF- %PDF-
Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/ |
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/p-page_lang.php |
<?php include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/init.php"); verif_get($_GET['id']); $this_page = $page->infos_page($_GET['id'],$_GET['language']); if($this_page == null) { header("Location: 404.html"); exit(0); } $affsec = true; $sec = $section->getSection($_GET['sect'],$lang->getlangid()); $pagesec = $lang->getlang()."/".$sec['id']."-".$sec['permalien']."/"; $pagepg = $pagesec.$this_page['id']."-".$this_page['permalien'].".html"; $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`=".$sec['pays']; $country = $db->select_array($query); $facebookapi = true; //affichage du html include("theme/html.php"); //affichage des metas include("theme/meta.php"); echo "\n<title>".$this_page['titre']." - ".$info_titresite."</title>\n"; ?> <meta property="og:titre" content="<?php echo $this_page['titre']; ?>"/> <meta property="og:image" content="<?php echo $url_site."images/logo.png" ?>"/> <meta property="og:type" content="non_profit"/> <meta property="fb:app_id" content="404527296278705"/> <meta property="og:url" content="<?php echo $url_site.$pagepg; ?>"/> <meta property="og:site_name" content="<?php echo $info_titresite; ?>"/> <?php //affichage du header include("theme/header.php"); //colonne de droite ?> <div class="ariane"> <a href="<?=$lang->getlang()?>/<?=$country['id'];?>-pays.html"><img src="images/icons/<?=strtolower($country['code_iso']);?>.png" alt="<?=$country['name'];?>"/> <span class="pays_lib"><?=$country['name'] ?></span></a> <span class="sup_section_lib bg_profil_<?=$sec['profil']?>"><a href="<?=$lang->getlang()?>/<?=$sec['id']?>-<?=$sec['permalien']?>/"><?=substrwords($sec['titre'],65) ?></a></span> <span class="section_lib"><?=substrwords($this_page['titre'],65) ?></span> </div> <div class="text"> <p class="surtitre"><strong>« <?=$sec['titre']?> »</strong> <?=$admtext->getText("mentionactivite",$lang->getlangid());?> « <?=lang("profil_".$sec['profil'])?> »</p> <h2 class="titreacti"><?php echo $this_page['titre']; ?></h2> <?php if(!($this_page['lieu']=="" && ($this_page['date_debut']=="" || $this_page['date_debut']=="0000-00-00") && ($this_page['date_fin']=="" || $this_page['date_fin']=="0000-00-00") && $this_page['public']=="")){ ?> <div id="pageinfos" class="bg_profil_<?=$sec['profil']?>"> <?php $html = ""; if($this_page['lieu']!=""){ $html.='<div class="lieu"><img src="images/boussole.png" alt="boussole"> '.$this_page['lieu'].'</div>'; } if($this_page['date_fin']!="0000-00-00" && $this_page['date_fin']!=""){ //$html.='<div class="date"><img src="images/boussole.png" alt="boussole"> '.$this_page['lieu'].'</div>'; $html.='<div class="lieu"><img src="images/clock.png" alt="date"> '.lang("From").' <strong>'.dateLang($this_page['date_debut'],$lang->getlangid()).'</strong> '.lang("to").' <strong>'.dateLang($this_page['date_fin'],$lang->getlangid()).'</strong></div>'; } else{ if($this_page['date_debut']!="0000-00-00" && $this_page['date_debut']!=""){ //$html.='<div class="date"><img src="images/boussole.png" alt="boussole"> '.$this_page['lieu'].'</div>'; $html.='<div class="lieu"><img src="images/clock.png" alt="date"> <strong>'.dateLang($this_page['date_debut'],$lang->getlangid()).'</strong></div>'; } } if($this_page['public']!=""){ $html.='<div class="lieu"><img src="images/public.png" alt="public"> '.$this_page['public'].'</div>'; } echo $html; ?> </div> <?php } $result = $page->liste_blocs($_GET['id'],$_GET['language']); $result_lang = $page->liste_blocs($_GET['id']); if($result != null) { foreach ($result as $bloc) { if(($bloc['type'] == 1 || $bloc['type'] == 2 || $bloc['type'] == 3) && $bloc['texte']==""){ $bloc=$result_lang[$key]; } if(($bloc['type'] == 6) && $bloc['boutontext']==""){ $bloc=$result_lang[$key]; } if(($bloc['type'] == 7) && $bloc['soustitre']==""){ $bloc=$result_lang[$key]; } if($bloc['valide']!=0){ $page->afficher_bloc($bloc, "page"); } } } ?> </div> </section> <section class="partager"> <div class="icons"> <div><a href="#partager_mail" class="inline"><img src="images/mail.png" alt="Mail" /> <?php echo lang("mail"); ?></a></div> <div><a href="<?php echo $pagesec."print/".$this_page['id']."-".$this_page['permalien'].".html"; ?>"><img src="images/print.png" alt="Print" /> <?php echo lang("print"); ?></a></div> </div> <div style="display: none;"> <div id="partager_mail"> <form action="<?php echo $lang->getlang(); ?>/partager/page.html" method="post" class="form"> <table> <tr> <td class="label"><?php echo lang("email"); ?> <span class="etoile">*</span></td> <td class="field"><input type="text" name="email" value="<?php echo $_POST['email']; ?>" /></td> </tr> </table> <div class="form_bouton"> <input type="hidden" name="post" value="1" /> <input type="hidden" name="id" value="<?php echo $this_page['id']; ?>" /> <input type="submit" class="bouton" id="maj_bouton" value="<?php echo lang("mail"); ?>" /> </div> </form> </div> </div> <div class="fb-like" data-href="<?php echo $url_site.$pagepg; ?>" data-send="false" data-width="400" data-show-faces="false"></div> <?php //affichage du footer include("theme/footer.php"); ?>