%PDF- %PDF-
Direktori : /home/alliance/domains/congress-intercultural.eu/public_html/ |
Current File : /home/alliance/domains/congress-intercultural.eu/public_html/p-search.php |
<?php include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/init.php"); include_once("inc/session.php"); //affichage du html include("theme/html.php"); //affichage des metas include("theme/meta.php"); echo "\n<title>".$trad->t("Search","front",$lang->id())." - ".$info_titresite."</title>\n"; ?> <?php //affichage du header include("theme/header.php"); //colonne de droite include("theme/droite.php"); ?> <div class="page_pays"> <div class="block_titre2"> <h1><?=$trad->t("Search results",'front',$lang->getlangid())?></h1> </div> <?php if(isset($_GET["keyword"])){ $_GET["keyword_large"]=$_GET["keyword"]; } if(!isset($_GET["choix_sous_cat"])){ $_GET["choix_sous_cat"]=0; } if(!isset($_GET["cat"])){ $_GET["cat"]=0; } if(!isset($_GET["choix_pays"])){ $_GET["choix_pays"]=0; } ?> <? $initiatives=$initiative->getSearch($_GET["cat"],$_GET["choix_sous_cat"],$_GET["choix_pays"],$_GET["keyword_large"]); ?> <div class="filtres"> <? if($_GET["choix_sous_cat"]!=0): $thetheme=$theme->getWithLang($_GET["choix_sous_cat"],$lang->id());?> <div class="filtre"><?=$trad->t("Topic :","front",$lang->id())?> <?=$thetheme['libelle']?></div> <? elseif($_GET["cat"]!=0): $thetheme=$theme->getWithLang($_GET["cat"],$lang->id());?> <div class="filtre"><?=$trad->t("Topic :","front",$lang->id())?> <?=$thetheme['libelle']?></div> <? endif; ?> <? if($_GET["choix_pays"]!=0): $thepays=$country->getWithLang($_GET["choix_pays"],$lang->id());?> <div class="filtre"><?=$trad->t("Country :","front",$lang->id())?> <?=$thepays['name']?></div> <? endif; ?> <? if($_GET["keyword_large"]!=""):?> <div class="filtre"><?=$trad->t("Keyword :","front",$lang->id())?> <?=$_GET["keyword_large"]?></div> <? endif; ?> </div> <div class="results"><?=count($initiatives).' '.$trad->t("results","front",$lang->id())?></div> <div class="liste_initiative"> <?foreach($initiatives as $uneinitiative): $thetheme=$theme->getWithLang($uneinitiative['id_theme'],$lang->id()); $cat_theme=$theme->getWithLang($thetheme['id_parent'],$lang->id()); ?> <div class="une_ini" style="border-color:#<?=$cat_theme['couleur']?>"> <h3><a style="color:#<?=$cat_theme['couleur']?>" href="<?=$lang->getlang()?>/initiative/<?=$uneinitiative['id_initiative']."-".cleanUrl($uneinitiative['titre']).".html"?>"><?=$uneinitiative['titre']?></a></h3> <?=substrwords(html_entity_decode($uneinitiative['description']),150,'... <a style="color:#'.$cat_theme['couleur'].'" href="'.$lang->getlang().'/initiative/'.$uneinitiative['id_initiative'].'-'.cleanUrl($uneinitiative['titre']).'.html">['.$trad->t("Read more","front",$lang->id()).']</a>');?> </div> <? endforeach; ?> </div> </div> <?php //affichage du footer include("theme/footer.php"); ?>