%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/congress-pact1in5.eu/public_html/theme/
Upload File :
Create Path :
Current File : /home/alliance/domains/congress-pact1in5.eu/public_html/theme/header.php

</head>
<body>

<?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/<?php if($lang->getlang() == "fr") echo "fr_FR"; else echo "en_US"; ?>/all.js#xfbml=1&appId=404527296278705";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<?php } ?>

<header>

	<div id="top">
	<div id="topmain">
	
		<div id="logo"><a href="<?php echo $lang->getlang(); ?>/"><img src="images/logo_<?php echo $lang->getlang(); ?>.png" alt="<?php echo lang("titre_site"); ?>" /></a></div>
		
		<ul id="toplinks">
			<li><a href="http://www.coe.int/t/dg3/children/1in5/"><?=lang("site1sur5");?></a></li>
			<li class="borderleft"><a href="<?php echo lang("linkcontricongress"); ?>"><?php echo lang("contricongress"); ?></a></li>
			<li class="borderleft"><a href="<?php echo $lang->trans_page($acc); ?>"><img src="images/lang_<?php echo $lang->getlang(); ?>.png" alt="Language" /><?=lang("langtrans");?></a></li>
		</ul>
		
		<div id="coelogos"><img src="images/coecongress.png" alt="Council of Europe Congress" /></div>
	
<?php $page = new Page; ?>

	<div id="menu">
		<nav role="navigation">
			<ul>
				<li><a href="<?php echo $lang->getlang(); ?>/"><div><?php echo lang("acc_site"); ?></div></a></li>
				<li><a href="<?php echo $lang->getlang(); ?>/inscription.html"><div><?php echo lang("Inscription"); ?></div></a></li>
				<li><a href="<?php echo lang("linkpact1in5"); ?>"><div><?php echo lang("pact1in5"); ?></div></a></li>
				<li><a href="<?php echo $lang->getlang(); ?>/newsletter/"><div>Newsletter</div></a></li>
				<li><a href="<?php echo $lang->getlang(); ?>/admin/connexion.php"><div class="lock"></div><div class="secure"><?php echo lang("Connexion"); ?></div></a></li>
			</ul>
		</nav>

	</div>
	
	<div id="menumobile">
		<ul class="menumobile_ul">
			
		
		</ul>
	
	</div>
	
	</div>
	</div>
</header>
<section id="search_bar">
<div class="main2">
	<? if(!isset($_GET['search_theme']) || $_GET['search_theme'] == "all") $th = null; else $th = $_GET['search_theme'];
	if(!isset($_GET['search_categorie']) || $_GET['search_categorie'] == "all") $ca = null; else $ca = $_GET['search_categorie'];
	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'];
	?>
	<form id="search_form" action="<?php echo $lang->getlang(); ?>/search.html" method="get" class="form">
			<div style="float:left; padding-top:3px;"><?=$admtext->getText("filter_by",$lang->getlangid())?></div>
		
			<select name="search_pays" class="selectbox" style="width: 163px;">
				<option value="all"><?=$admtext->getText("country",$lang->getlangid())?></option>
				<?php
					$actual_edition=$edition->getCurrentEdition("frony",$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_categorie" class="selectbox" style="width: 163px;">
				<option value="all"><?=$admtext->getText("typeacti",$lang->getlangid())?></option>
				<?php
					$res = $edition->liste_categories();
					foreach($res as $cat) {
					echo '<option value="'.$cat['id'].'"';
						if($ca == $cat['id']) echo ' selected="selected"';
					echo ' >'.$cat['titre'].'</option> ';
					}
				?>
			</select>
			
			<?php if($ca != "all" && $ca != null) { ?>
			
			<select name="search_theme" class="selectbox" style="width: 163px;">
				<option value="all"><?=$admtext->getText("theme",$lang->getlangid())?></option>
				<?php
					$res = $edition->liste_themes(false, $ca);
					$trouve = false;
					foreach($res as $theme) {
					echo '<option value="'.$theme['id'].'"';
						if($th == $theme['id']) {
							echo ' selected="selected"';
							$trouve = true;
						}
					echo ' >'.$theme['titre'].'</option> ';
					}
				?>
			</select>
			
			<?php } else { $th = null; }
				if(!$trouve) $th = null;
			?>
			
			<div style="float:right">
				<input type="text" value="<?=$keyword?>" class="keyword_search" name="keyword" /><input type="submit" value="" class="submit_search" />
			</div>
			

	</form>
</div>
</section>


<script type="text/javascript">
	$(".selectbox").selectBox().change(function(){
		$("#search_form").submit();
	});
</script>

<?php if(!$homeban) { ?>
<section id="corps">
	<?php if($main2) { ?>
<div class="main2">
	<?php } else { ?>
<div class="main">
	<?php } ?>
<?php } ?>

Zerion Mini Shell 1.0