%PDF- %PDF-
Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/theme/ |
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/theme/header.php |
</head> <body class="body_front"> <?php if(isset($facebookapi)) { ?> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/"+<?=($lang->getlang()=="fr")?"fr_FR":"en_US"?>+"/all.js#xfbml=1&appId=404527296278705"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <?php } if((!isset($_SESSION['edition_front']) && isset($_GET['edition'])) || (isset($_GET['edition']) && $_GET['edition']!=$_SESSION['edition_front'])){ // verif $query="SELECT * FROM edition WHERE id=".$_GET['edition']; if($db->isres($query)){ $_SESSION['edition_front']=$_GET['edition']; } if(isset($_GET['return'])){ header('Location:'.$_GET['return']); } } $this_edition=$edition->getCurrentEdition("front",$lang->getlangid()); $realedition=$edition->getCurrentEdition("front",$lang->getlangid(),false); if($this_edition['id']!=$realedition['id']){ $getedition="?edition=".$this_edition['id']; } else{ $getedition=""; } ?> <div id="body2"> <header class="main"> <div id="bloc_header"> <div id="top" class="flexcontent"> <div class="logo"> <a href="<?=$lang->getlang()?>/"><img src="images/logo-<?=$lang->getlang()?>.png" alt="Semaine europĂ©enne de la dĂ©mocratie locale" /></a> </div> <div class="banniere"></div> </div> <div class="block_barre"> <nav role="navigation" class="flexcontent"> <ul> <li><a href="<?=$url_site2.$lang->getlang()?>/"><?php echo lang("acc"); ?></a></li> <li><a href="<?=$url_site2.$lang->getlang()?>/page/117-presentation.html"><?php echo lang("menu2"); ?></a></li> <li><a href="<?=$url_site2.$lang->getlang()?>/page/121-how-to-take-part-in-eldw-.html"><?php echo lang("menu3"); ?></a></li> <li><a href="<?=$url_site2.$lang->getlang()?>/page/141-previous-editions-of-eldw.html"><?php echo lang("menu4"); ?></a></li> <li><a href="<?=$url_site2.$lang->getlang()?>/page/377-partner-status.html"><?php echo lang("menu8"); ?></a></li> <li><a href="<?=$url_site2.$lang->getlang()?>/news.html"><?php echo lang("menu5"); ?></a></li> <li><a href="<?=$url_site2.$lang->getlang()?>/page/137-download.html"><?php echo lang("menu6"); ?></a></li> <li><a href="<?=$lang->getlang()?>/"><?php echo lang("menu7"); ?></a></li> </ul> <ul class="lang"> <li><a href="http://www.coe.int/t/congress/default_fr.asp"><?php echo lang("Congress website"); ?></a></li> <? if($lang->getlang()=="fr"):?> <li><a class="selected" href="<?php echo $_SERVER["REQUEST_URI"]; ?>">FR</a></li> <li><a href="<?php echo $lang->trans_page($acc); ?>">EN</a></li> <? else: ?> <li><a href="<?php echo $lang->trans_page($acc); ?>">FR</a></li> <li><a class="selected" href="<?php echo $_SERVER["REQUEST_URI"]; ?>">EN</a></li> <? endif; ?> </ul> </nav> <div id="search_bar" class="flexcontent" > <? if(!isset($_GET['search_profil']) || $_GET['search_profil'] == "all") $pr = null; else $pr = $_GET['search_profil']; if(!isset($_GET['search_pays']) || $_GET['search_pays'] == "all") $pa = null; else $pa = $_GET['search_pays']; if(!isset($_GET['keyword']) || $_GET['keyword'] == "") $keyword = ""; else $keyword = $_GET['keyword']; if(!isset($_GET['tag']) || $_GET['tag'] == "all") $tag = null; else $tag = $_GET['tag']; ?> <form id="search_form" action="<?php echo $lang->getlang(); ?>/search.html" method="get" class="form flexcontent"> <div style="float:left; padding-top:7px;"><?=$admtext->getText("filter_by",$lang->getlangid())?></div> <select name="search_pays" class="selectbox"> <option value="all"><?=$admtext->getText("country",$lang->getlangid())?></option> <?php $actual_edition=$edition->getCurrentEdition("front",$lang->getlangid()); $res = $pays->getPaysEdition($actual_edition['id'],$lang->getlangid()); foreach($res as $pay) { echo '<option value="'.$pay['id'].'"'; if($pa == $pay['id']) echo ' selected="selected"'; echo ' >'.$pay['name'].'</option> '; } ?> </select> <select name="search_profil" class="selectbox"> <option value="all"><?=$admtext->getText("collectivity_type",$lang->getlangid())?></option> <?php $res = $profil->getProfils(); foreach($res as $prof) { if($prof['id'] == 2) { if($actual_edition['id'] < 8) { echo '<option value="'.$prof['id'].'"'; if($pr == $prof['id']) echo ' selected="selected"'; echo ' >'.$prof['libelle'].'</option> '; } } else { echo '<option value="'.$prof['id'].'"'; if($pr == $prof['id']) echo ' selected="selected"'; echo ' >'.$prof['libelle'].'</option> '; } } ?> </select> <select name="tag" class="selectbox"> <option value="all"><?=$admtext->getText("tags",$lang->getlangid())?></option> <?php $tags = $obj_activite->getTags($this_edition['id'],$lang->getlangid(),1); foreach($tags as $un_tag) { echo '<option value="'.$un_tag['id_tag'].'"'; if($tag == $un_tag['id_tag']) echo ' selected="selected"'; echo ' >'.$un_tag['libelle'].'</option> '; } ?> </select> <div class="searchright flexcontent"> <input type="text" value="<?=(isset($keyword)?$keyword:'')?>" class="keyword_search" name="keyword" placeholder="<?php echo lang("search"); ?>" /><button type="submit" value="" class="submit_search"><i class="fas fa-search"></i></button> </div> </form> </div> <div id="menumobile"> <ul class="menumobile_ul"> </ul> </div> </div> <div id="old_edition" <?=($this_edition['id']==$realedition['id']? 'style="display:none"':"")?>> <? if($this_edition['id']!=$realedition['id']):?> <?if(!isset($_GET["edition"])): $monUrl = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."?edition=".$realedition['id'];?> <? else:?> <? $monUrl = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $monUrl = preg_replace("/edition=\d+/", "edition=".$realedition['id'], $monUrl);?> <? endif;?> <?=$admtext->getText("edition_consultation",$lang->getlangid());?> <?=date("Y", strtotime($this_edition['date_debut']))?> "<?=$this_edition['titre']?>"<br/> <a href="<?=$monUrl?>">« <?=$admtext->getText("retour_edition",$lang->getlangid());?></a> <? endif;?> </div> </header> <script type="text/javascript"> $(".selectbox").selectBox().change(function(){ $("#search_form").submit(); }); </script> <section id="corps" class="main flexcontent">