<?php
    /*
     * Acest fisier contine meniul utilizatorului simplu, logat in aplicatie.
     */

    $ci = &get_instance();
    
    $BASE_URL = base_url();
?>
<!-- Navigation -->
        <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
           
            <div class="container-fluid">
            
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand " href="<?php echo $BASE_URL?>admin"><span style="color:white;">OneApp AGD</span></a>
                
            </div>
            <!-- Top Menu Items -->
            
            <div class="collapse navbar-collapse navbar-ex1-collapse">
            <ul style="" class="nav navbar-nav">

                <li class="dropdown">
                    <a href="<?php echo $BASE_URL;?>adm/scan" ><i class="fa fa-fw fa-barcode"></i> <?php echo "Scanare";?> </a>
                </li>

                <li class="dropdown">
                    <a href="<?php echo $BASE_URL;?>adm/arhiva/intrare" ><i class="fa fa-fw fa-sign-in"></i> <?php echo "Intrare";?> </a>
                </li>

                <li class="dropdown">
                    <a href="<?php echo $BASE_URL;?>adm/arhiva/iesire" ><i class="fa fa-fw fa-sign-out"></i> <?php echo "Iesire";?> </a>
                </li>

                <li class="dropdown">
                    <a href="<?php echo $BASE_URL;?>adm/arhiva" ><i class="fa fa-fw fa-exchange"></i> <?php echo "Arhiva";?> </a>
                </li>

                <li class="dropdown">
                    <a href="<?php echo $BASE_URL;?>adm/document" ><i class="fa fa-fw fa-folder"></i> <?php echo "Lista documente";?> </a>
                </li>

                <li class="dropdown">
                    <a href="<?php echo $BASE_URL;?>adm/client" ><i class="fa fa-fw fa-users"></i> <?php echo "Lista clienti";?> </a>
                </li>

                <!-- <li class="dropdown">
                    <a href="<?php echo $BASE_URL;?>adm/raport" ><i class="fa fa-fw fa-file"></i> <?php echo "Raport";?> </a>
                </li> -->

                <!-- <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" ><i class="fa fa-fw fa-gear"></i> <?php echo "Setari";?> </a>

                    <ul class="dropdown-menu">
                        <li>
                            <a href="<?php echo $BASE_URL;?>adm/setari" ><i class="fa fa-fw fa-envelope"></i> <?php echo "Setari email";?> </a>
                        </li>
                        <li>
                        <a href="<?php echo $BASE_URL;?>adm/setari/config" ><i class="fa fa-fw fa-info-circle"></i> <?php echo "Setari config";?> </a>
                        </li>
                    </ul>
                </li> -->
                
            </ul>
            
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> 
                        <?php 
                            echo $ci->login_library->getUsername();
                        ?> <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="<?php echo $BASE_URL;?>admin/pass"><i class="fa fa-fw fa-user"></i> <?php echo "Schimba parola";?></a>
                        </li>

                        <li class="divider"></li>
                        
                        <li>
                            <a href="<?php echo $BASE_URL;?>oneLogin/logout"><i class="fa fa-fw fa-power-off"></i> <?php echo "Log out";?></a>
                        </li>
                    </ul>
                </li>
            </ul>
                    <script>
                        $('head').append("<link rel='shortcut icon' href='https://www.one-it.ro/oneitsite/uploads/2019/06/logo_OneIT_255x230px.png' type='image/x-icon' />");
                    </script>
        </div>
    </div>

</nav>
<div id = "divBackgroundModal" style="position: fixed; z-index: 1031; height: 100%; width: 100%; top: 0; left:0; background-color: #68A3C6; filter: alpha(opacity=60); opacity: 0.6; -moz-opacity: 0.8;display:none"></div>

<div id="atentie" class="modal fade">
   <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
               <h4 class="modal-title"><?='Atentie';?></h4>
           </div>
           <div class="modal-body">                                            
               <div style="background-color: white;" class="form-group">  
                   <div>
                       <span style="width: 100%;" id="textatentie"></span>
                   </div>      
               </div> 
           </div>
           <div class="modal-footer">
               <button type="button" class="btn btn-default" data-dismiss="modal"><?='Inchide';?></button>
           </div>
        </div>
    </div>
</div>

<div id="confirmare">
    <span id="textconf"></span>
</div>