<?php
/**
 * @package linea21\templates\admin
 * @author $Author$ - linea21 <info@linea21.com>
 * @version $Id$ 
 * @access public
 * @license http://opensource.org/licenses/gpl-3.0.html
 */
?>
<!-- header -->
<header id="header">
<div id="tools" class="flex-container">
	<div class="w33" id="sitename">
		<?php echo SITE_NAME; ?>
		<?php echo newVersionNotifier(); ?>
	</div>
	<div class="item-fluid" id="bienvenue">
    	<?php
    	if($l21auth->GetSessionElement('firstname')) $title= ucfirst($l21auth->GetSessionElement('firstname'));
    	else $title= $l21auth->GetSessionElement('login');
    	?>
    	<!-- <i class="fa fa-user"></i>  -->
    	<?php
    	echo _t('header','welcome');
    	?>
		<span><?php echo $title; ?></span>, <a href="logout.php?token=<?php echo $l21auth->GetSessionElement('logout_token'); ?>" class="logout"><i class="fa fa-power-off" aria-hidden="true"></i> <?php echo _t('header','deconnexion');?></a>
	  	<a href="../public/index.php" title="<?php echo mb_ucfirst(_t('divers', 'back_public')); ?>" id="goto-front"><i class="fa fa-home" aria-hidden="true"></i> <span><?php echo mb_ucfirst(_t('divers', 'back_public')); ?></span></a> | 
	  	<a href="../admin/search.php?rub=home" title="<?php echo _t('menu_alt','do_search'); ?>" id="searchDiv"><i class="fa fa-search" aria-hidden="true"></i></a>
		<div class="mod left" id="containersearch">
      		<form method="post" action="search.php">
          		<div>
        	  		<input type="text" class="searchincome" name="search" id="searchincome" accesskey="s" value="<?php echo _t('menu_alt','search_here'); ?>" onclick="if (this.defaultValue==this.value) this.value=''" onblur="if (this.value=='') this.value=this.defaultValue" />
        	  		<input type="submit" id="gosearch" name="valid" value="" />
          		</div>
      		</form>
		</div> <!-- closing  #containersearch div -->
	</div> <!-- closing  #bienvenue div -->
</div> <!-- closing  #tools div -->
<?php 
include_once("common_menu.php");
?>
</header>
<!--end header -->