%PDF- %PDF-
Direktori : /home/alliance/domains/congress-pact1in5.eu/public_html/ |
Current File : /home/alliance/domains/congress-pact1in5.eu/public_html/p-search.php |
<?php include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/init.php"); //edition en cours $db = new BaseOps; //affichage du html include("theme/html.php"); //affichage des metas include("theme/meta.php"); echo "\n<title>Recherche - ".$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"); $this_edition=$edition->getCurrentEdition("front",$lang->getlangid()); ?> <div class="page_pays"> <h2><?=$admtext->getText("search_result",$lang->getlangid())?> </h2> <?php $query = "SELECT s.id,s.profil,sl.titre,sl.permalien FROM `section` s LEFT JOIN `section_lang` sl ON s.id=sl.section "; $query.="WHERE sl.lang=".$lang->getlangid()." "; if($pa != null || $keyword!="") { if($pa!=null) { $query.="AND s.pays=".$pa." "; } if($keyword!="") { $query.="AND (sl.titre LIKE '%".$keyword."%' OR sl.texte LIKE '%".$keyword."%' )"; } } $query.="ORDER BY `titre`"; if($db->isres($query)) { $sections = $db->select_arrays($query); foreach ($sections as $sec) { $query = "SELECT p.id 'idpage',p.*,pl.*,t.theme FROM `page` p LEFT JOIN `page_lang` pl ON p.id=pl.page LEFT JOIN `page_theme` t ON t.page = p.id "; $query.="WHERE pl.lang=".$lang->getlangid()." AND p.valide = 1 AND section = ".$sec['id']." "; if($ca != null || $th!="") { if($ca!=null) { $query.="AND p.categorie=".$ca." "; } if($th!="") { $query.="AND t.theme=".$th." "; } } $query.="ORDER BY `categorie`, `titre`"; if($db->isres($query)) { $pages = $db->select_arrays($query); echo '<h3 class="acttitre bg_profil_'.$sec['profil'].'"><a href="'.$lang->getlang().'/'.$sec['id'].'-'.$sec['permalien'].'/">'.$sec['titre'].'</a></h3> <div class="bloctexte2">'; foreach($pages as $pag) { if($pag['theme'] != "") { $query = "SELECT * FROM `theme_lang` WHERE theme = ".$pag['theme']." AND lang = ".$lang->getlangid(); $datatheme = $db->select_array($query); $themetitre = $datatheme['titre'].' : '; } else { $themetitre = ""; } $html = ""; $html.='<div class="activite"> <h3>'.$themetitre.'<a href="'.$lang->getlang().'/'.$sec['id'].'-'.$sec['permalien'].'/'.$pag['idpage'].'-'.$pag['permalien'].'.html">'.$pag['titre'].'</a></h3>'; if($pag['lieu']!=""){ $html.='<div class="lieu"><img src="images/boussole.png" alt="boussole"> '.$pag['lieu'].'</div>'; } if($pag['date_fin']!="0000-00-00" && $pag['date_fin']!=""){ $html.='<div class="lieu"><img src="images/clock.png" alt="date"> '.lang("From").' <strong>'.dateLang($pag['date_debut'],$lang->getlangid()).'</strong> '.lang("to").' <strong>'.dateLang($pag['date_fin'],$lang->getlangid()).'</strong></div>'; } else{ if($pag['date_debut']!="0000-00-00" && $pag['date_debut']!=""){ $html.='<div class="lieu"><img src="images/clock.png" alt="date"> <strong>'.dateLang($pag['date_debut'],$lang->getlangid()).'</strong></div>'; } } $html.='</div>'; echo $html; } echo '</div>'; } } } ?> </div> <?php //affichage du footer include("theme/footer.php"); ?>