%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/congress-eldw.eu/public_html/
Upload File :
Create Path :
Current File : /home/alliance/domains/congress-eldw.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;
$acc=false;

//affichage du html
include("theme/html.php");
//affichage des metas
include("theme/meta.php");
echo "\n<title>".$trad->t('Search','search',$lang->getlang())." - ".$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 ?>"/>
<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="text">

	<h2><?=$trad->t('Search','search',$lang->getlang())?></h2>
	
<?php
	$keyword=$_GET['keyword'];
	$query="SELECT DISTINCT p.id_page FROM page p LEFT JOIN page_lang pl ON p.id_page=pl.id_page LEFT JOIN bloc b ON p.id_page=b.id_page LEFT JOIN bloc_lang bl 
	ON b.id_bloc=bl.id_bloc WHERE (bl.id_lang=".$lang->getlangid()." OR bl.id_lang=2) AND (pl.id_lang=".$lang->id()." OR pl.id_lang=2) 
	AND (bl.texte LIKE ".qS('%'.$keyword.'%')." OR bl.soustitre LIKE ".qS('%'.htmlentities(utf8_decode($keyword)).'%')." OR pl.titre LIKE ".qS('%'.htmlentities(utf8_decode($keyword)).'%').") ORDER BY p.date_crea DESC";
	$list_top=$db->select_arrays($query);
	$i=0;
	echo "<h3>".$trad->t('Search for :','search',$lang->getlang())." ".$_GET['keyword']."</h3>";;
	echo "<h3>".count($list_top)." ".$trad->t('result(s) found.','search',$lang->getlang())."</h3>";;
	$type="top";
	if($list_top!=null){	
		foreach($list_top as $uneactu){
			
			$actu=$page->aff_actu($uneactu['id_page'],$lang->id());
			include("templates/accueil/actu.php");
			$i++;
			if($i>3){
				$type="bottom";
			}
		}
	}
?>

</div>


<?php

//affichage du footer
include("theme/footer.php");

?>

Zerion Mini Shell 1.0