%PDF- %PDF-
Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/ |
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/p-page2.php |
<?php include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/init.php"); verif_get($_GET['id']); if(isset($_GET['language'])){ $this_page = $page->infos_page2($_GET['id'],$_GET['language']); } else{ $this_page = $page->infos_page2($_GET['id'],$lang->getlangid()); } 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 = "2-".$pagesec.$this_page['id']."-".$this_page['permalien'].".html"; if($_GET['permalien'] != $this_page['permalien']) { //header("Location:".$url_site.$pagepg); //exit(0); } $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 include("theme/droite.php"); ?> <div class="ariane"> <a href="<?=$lang->getlang()?>/<?=$country['id'];?>-pays.html"><img src="images/icons/<?=strtolower($country['code_iso']);?>.png" alt="<?=$country['name'];?>"/></a> <span class="pays_lib"><a href="<?=$lang->getlang()?>/<?=$country['id'];?>-pays.html"><?=$country['name'] ?></a></span> <span class="sup_section_lib bg_profil_<?=$sec['profil']?>"><a href="<?=$lang->getlang()?>/<?=$sec['id']?>-<?=$sec['permalien']?>/"><?=substrwords($sec['titre'],50) ?></a></span> <span class="section_lib"><?=substrwords($this_page['titre'],50) ?></span> </div> <div class="blanc padding2 mt10 page_activite flexcontent"> <div class="gauche"> <p class="surtitre"><strong>« <?=$sec['titre']?> »</strong> <?=$admtext->getText("mentionactivite",$lang->getlangid());?> « <?=lang("profil_".$sec['profil'])?> »</p> <?$query="SELECT * FROM `page_lang` WHERE lang=".$sec['section_lang']." AND trad_valide=1"; if($db->isres($query) && !(isset($_GET['language']))): ?> <?=$admtext->getText("partenaire_autrelang",$lang->getlangid());?> <a href="<?=$lang->getlang()?>/<?=$sec['id']?>-<?=$sec['permalien']?>/<?=$this_page['id']?>-<?=$this_page['permalien']?>.html<?=$getedition?><?=($getedition!=""?"&language=".$sec['section_lang']:"?language=".$sec['section_lang'])?>"><?=$lang->getlangName($sec['section_lang'],$lang->getlangid())?></a> <? endif; if(isset($_GET['language'])): ?> <?=$admtext->getText("partenaire_autrelang",$lang->getlangid());?> <a href="<?=$lang->getlang()?>/<?=$sec['id']?>-<?=$sec['permalien']?>/<?=$this_page['id']?>-<?=$this_page['permalien']?>.html<?=$getedition?>"><?=$lang->getlangName($lang->getlangid(),$lang->getlangid())?></a> <? endif;?> <h1 class="titreacti"><?php echo $this_page['titre']; ?></h1> <?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"))){ ?> <div id="pageinfos"> <?php $html = ""; if($this_page['lieu']!=""){ $html.='<div class="lieu"><i class="fas fa-map-marker-alt vert"></i> '.$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"><i class="far fa-calendar-alt vert"></i> '.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"><i class="far fa-calendar-alt vert"></i> <strong>'.dateLang($this_page['date_debut'],$lang->getlangid()).'</strong></div>'; } } echo $html; ?> </div> <?php } ?> <div> <?=$this_page['description']?> </div> <? $tags=$obj_activite->getTagsActivite($_GET['id'],$lang->getlangid(),1); foreach($tags as $un_tag){ echo '<span class="un_tag"><a class="tag hintable" href="'.$lang->getlang().'/search.html?search_pays=all&search_profil=all&tag='.$un_tag['id_tag'].'&keyword=">'.$un_tag['libelle'].'</a> '.(($un_tag['detail']!='')?'<span class="hint2" style="display:none">'.$un_tag['detail'].'</span>':'').'</span></span>'; } ?> <div class="mt10"><?=$this_page['bilan']?></div> </div> <?php if ($this_page['photo1'] != null) { ?> <div class="droite"> <div class="imagessection bg_profil_<?=$this_page['profil']?>"> <a href="uploads/<?php echo $this_page['photo1']; ?>" class="fgalerie" rel="gal"><img src="<?php echo thumb($this_page['photo1'], 394,260, true) ?>" class="photo1" alt="Image du partenaire" /></a> <div class="miniatures flexcontent"> <?php if ($this_page['photo2'] != null) echo "<a href=\"uploads/".$this_page['photo2']."\" class=\"fgalerie\" rel=\"gal\"><img src=\"".thumb($this_page['photo2'], 129,89, true)."\" class=\"minimargin1\" /></a>"; if ($this_page['photo3'] != null) echo "<a href=\"uploads/".$this_page['photo3']."\" class=\"fgalerie\" rel=\"gal\"><img src=\"".thumb($this_page['photo3'], 129,89, true)."\" class=\"minimargin2\" /></a>"; if ($this_page['photo4'] != null) echo "<a href=\"uploads/".$this_page['photo4']."\" class=\"fgalerie\" rel=\"gal\"><img src=\"".thumb($this_page['photo4'], 129,89, true)."\" class=\"minimargin3\" /></a>"; ?> </div> </div> </div> <?php } ?> </div> </section> </section> <section class="partager"> <div class="main"> <div class="icons"> <div><a href="#partager_mail" class="inline"><i class="far fa-envelope vert"></i> <?php echo lang("mail"); ?></a></div> <div><a href="<?php echo $pagesec."print/".$this_page['id']."-".$this_page['permalien'].".html"; ?>"><i class="fas fa-print vert"></i> <?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> </div> <script type="text/javascript"> var helpboxes=1; if (typeof helpboxes != 'undefined' && helpboxes){ $(function(){ if ($('.hintable')) { $('.hintable').mouseover(function() { var pos=$(this).offset(); $(this).parent().find('.hint2:first').css('display', 'block').css("left",(pos.left+$(this).outerWidth()+6)+"px"); }); $('.hintable').mouseout(function() { $(this).parent().find('.hint2:first').css('display', 'none'); }); } }); } </script> <?php //affichage du footer include("theme/footer.php"); ?>