%PDF- %PDF-
Direktori : /home/alliance/domains/congress-pact1in5.eu/public_html/ |
Current File : /home/alliance/domains/congress-pact1in5.eu/public_html/p-page_print.php |
<?php include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/init.php"); $db = new BaseOps; verif_get($_GET['id']); $page = new Page; $this_page = $page->infos_page($_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 = $pagesec."print/".$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>".$pg['titre']." - ".$info_titresite."</title>\n"; ?> <meta property="og:titre" content="<?php echo $pg['titre']; ?>"/> <meta property="og:type" content="non_profit"/> <meta property="og:url" content="<?php echo $url_site.$pagepg; ?>"/> <meta property="og:site_name" content="<?php echo $info_titresite; ?>"/> </head> <body style="background: #fff"> <div id="corps" style="margin: 10px;"> <div class="text" id="printbutton" style="margin: 10px;"> <a href="javascript: window.print()" class="bouton"><?php echo lang("print"); ?></a> <a href="<?php echo $pagesec.$this_page['id']."-".$this_page['permalien'].".html"; ?>" class="bouton"><?php echo lang("back"); ?></a> </div> <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']); if($result != null) { foreach ($result as $bloc) { if($bloc['valide']!=0){ $page->afficher_bloc($bloc, "page"); } } } ?> </div> </div> </body> </html>