

<?php $nom_utilisateur = $_session['nom_utilisateur'];
    if($nom_utilisateur==''){ ?>
    	
  <div class="oPageCentered oFormContainer">
    <h3>Se connecter</h3>
    
<form action="<?php echo URL::base().'page/login'; ?>" name="login" id="login" class="oForm-login" autocomplete="on" method="post" novalidate="novalidate">
    
<input type="text" name="username" id="username" value="" maxlength="1000" class="oFormJumbo oFormMed oInputText valid" placeholder="Nom d'utilisateur">    
<input type="password" name="password" id="password" value="" class="oFormJumbo oFormMed oInputText" placeholder="Mot de passe">
<footer class="oFormFooter cols">
        <div class="col col1of3">
            
<input type="submit" name="submit" id="submit" value="Se connecter" class="oBtn oBtnPrimary">        </div>
        <div class="col col2of3">
            <label class="oOpt oOptLbl oMute oRememberMe">
            &nbsp;&nbsp;<input type="hidden" name="remember_me" value="0">
			<input type="checkbox" name="remember_me" id="remember_me" value="1">Se souvenir de moi la &nbsp;&nbsp; prochaine fois</label>
        </div>
    </footer>

</form>
</div>
  
 <?php
											
 }else{ ?>

 <div class="oNavContainer">

    <script>
    odesk.pageConfig.companyRef = 'd6705176';
</script>

<div class="oDropdown oCompanyDropdown" id="simpleCompanySelector">
    <span class="oDropdownValue" title="Kamel Ha" data-reference="d6705176">Kamel Ha</span>
    <ul class="oDropdownList">
                <li data-reference="d6705176" title="Kamel Ha">
            <a href="/home/index/d6705176" class="oDropdownItem isCurrent"><img class="oCompanyLogoTiny" alt="Kamel Ha" src="/images/REL58799ecf3628ba78c08344ee6f294ad9/svg-icons/user.svg">Kamel Ha</a>
        </li>
                <li class="oDropdownFooter unselectable">
            <span class="oNavMutedText">ha_kamel</span>
            <a class="oLogout" href="/logout">Log out</a>        </li>
    </ul>
</div>

    <ul class="oUserList">
                                                    <li>
                        <div class="oDropdown">
                <span class="oNavIcon oNavIconNotifications oDropdownValue" title="Notifications"></span>
                                            <ul class="oDropdownList oMessagesDropdownList">
                            <li class="isLoading oLockOverlay"></li>
                            <li class="oDropdownFooter unselectable">
                                <a href="/notifications">See all notifications</a>
                            </li>
                        </ul>
                                </div>
                    </li>
                                                    <li>
                            <a href="/UserSettings/profile" class="oNavIcon oNavIconSettings" title="Settings"> </a>
                    </li>
                                        <li>
                        <div class="oDropdown">
                <span class="oNavIcon oNavIconHelp oDropdownValue" title="Help &amp; Community"></span>
                                            <ul class="oDropdownList">
                                                        <li><a href="https://support.odesk.com/login" class="oDropdownItem " target="_blank">Help and Support</a></li>
                                                        <li><a href="https://www.odesk.com/community/" class="oDropdownItem ">Community and Forums</a></li>
                                                        <li><a href="/disputes/" class="oDropdownItem jsDisputes">Disputes </a></li>
                                                        <li><a href="http://www.odesk.com/blog/category/whats-new-on-odesk" class="oDropdownItem " target="_blank">New on oDesk!</a></li>
                                                    </ul>
                                </div>
                    </li>
            </ul>
</div>
<?php
 echo form::open('/page/logout'); 
  echo 'Bienvenue : ';?>&nbsp;<?php echo $nom_utilisateur.' ';
?>
  <br/><button id="create-user">Déconnexion</button> 
 <p/><br/>
   <a href="<?php echo URL::base().'gestioncommandes/monespace'; ?>" class="monespace" style="color:yellow;">  
  Mon Espace</a>
  ( Total= <?php echo number_format(session::instance()->get('total'), 2, ',', ' '); ?> &nbsp;)
 <?php
 echo form::close();
?>

<?php
}

?>


    
  