<?php
$Username=$_SESSION['USERNAME'];
//$PHOTO_ADM=$_SESSION['PHOTO'];
?>

<?php
   include("connexion.php");
?>

<!--DEBUT DES INCLUDES-->
<?php 
//include("header_logo.php");
//include("header_langue.php");
//include("header_monnaie.php");
//include("header_menu.php");
//include("header_categorie.php");
?>



<?php
$r="SELECT * FROM cms_header WHERE id_logo='logo'";

foreach($connexion->query($r) as $row){
$LOGO=$row['id_logo'];
$TITRE=$row['titre'];
$ALTERNATIF=$row['alternatif'];
$LARGEUR=$row['largeur'];
$HAUTEUR=$row['hauteur'];
$PHOTO=$row['photo'];
}

?>


<header id="masterAppContainer" ng-controller="applicationListController" class="ng-scope">
        <div class="navbar navbar-inverse navbar-cpanel navbar-fixed-top" role="navigation">
                <div class="navbar-header">
                    <button type="button" id="btnSideBarToggle" class="cp-nav-toggle">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="cp-icon-bar"></span>
                        <span class="cp-icon-bar"></span>
                        <span class="cp-icon-bar"></span>                        
                    </button>

                    
                        <a id="lnkHeaderHome" class="navbar-brand navbar-brand-img" target="_top" href="" title="Accueil" role="link" aria-label="Accueil">
                            <img id="imgLogo" class="navbar-brand-logo" src="./dash_files/ico.png" alt=""> <img id="imgLogo" class="navbar-brand-logo" src="./dash_files/logo.svg" alt="">
                        </a>
                    

                    <script type="text/ng-template" id="customTemplate.html">
                      <a ng-href="{{ (match.model.url.indexOf('/') === 0 ? '' : '') + match.model.url }}" ng-attr-target="{{match.model.target}}" ng-bind-html="match.model.name">
                      </a>
                    </script>

                    <div class="navbar-preferences form-inline">
                    
                        
                          <!--  <input type="text" id="txtQuickFind" class="form-control hidden-xs input-sm input-quick-find ng-pristine ng-valid ng-touched" autocomplete="off" placeholder="Rechercher ( / )" ng-model="quickFindSelected" typeahead-template-url="customTemplate.html" ng-keyup="clearQuickFind($event)" uib-typeahead="app as app.name for app in applicationList | filter:{searchText:$viewValue}" typeahead-input-formatter="formatAppName(quickFindSelected)" typeahead-on-select="openApplication($model, $event)" role="combobox" aria-label="Rechercher" aria-autocomplete="list" aria-expanded="false" aria-owns="typeahead-34-141">
                            
                            <ul class="dropdown-menu ng-isolate-scope ng-hide" ng-show="isOpen() &amp;&amp; !moveInProgress" ng-style="{top: position().top+&#39;px&#39;, left: position().left+&#39;px&#39;}" role="listbox" aria-hidden="true" uib-typeahead-popup="" id="typeahead-34-141" matches="matches" active="activeIdx" select="select(activeIdx, evt)" move-in-progress="moveInProgress" query="query" position="position" assign-is-open="assignIsOpen(isOpen)" debounce="debounceUpdate" template-url="customTemplate.html">
     --><!-- ngRepeat: match in matches track by $index -->
     <!--
</ul> -->
                        

                        <div class="btn-group dropdown" uib-dropdown="">
                            <button id="btnUserPref" type="button" aria-label="User Preferences" uib-dropdown-toggle="" class="btn dropdown-toggle user-preferences-btn" title="User" aria-haspopup="true" aria-expanded="false">
                                <span id="lblUserNameTxt" class="hidden-inline-xs" ng-non-bindable="">Welcome <?php echo ucfirst("$Username"); ?></span>
                            </button>
                        </div>
                        <a id="lnkHeaderLogout" target="_top" href="index.php?var=logout" class="btn link-buttons" title="Déconnexion" role="link" aria-label="Déconnexion">
                            <span></span>
                            <span id="lblLogout" class="hidden-inline-xs">Déconnexion</span>
                        </a>
                    </div>
                </div>
        </div>
        <!-- UI INCLUDES GLOBAL HEADER -->
                <!-- UI INCLUDES GLOBAL HEADER END-->
    </header>