<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<html>
<?php
//
include "application/src/HeaderLanguage.php";
$header_text = new HeaderLanguage();
$nav_text = $header_text->getNavBarText();

?>

<head>
    <link rel="icon" href="<?php echo base_url(); ?>/assets/images/icon/iconjudocup.png">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="<?php echo base_url(); ?>assets/css/materialize.css" rel="stylesheet" type="text/css">
    <link href="<?php echo base_url(); ?>assets/css/custom.css" rel="stylesheet" type="text/css">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons"
          rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>

<nav>
    <div class="nav-wrapper indigo">
        <a href="<?php echo base_url()?>timekeeper/init" class="brand-logo">JudoCup</a>
        <a href="" data-activates="mobile-demo" class="button-collapse"><i class="material-icons">menu</i></a>
        <ul class="right hide-on-med-and-down">

            <li class="<?php echo strpos($_SERVER['REQUEST_URI'], 'delegado') ? 'active' : null; ?>">
                <a class="dropdown-button  " data-beloworigin="true" href="#!"
                   data-activates="dropdown_user"><?php echo $nav_text['nav_user'] ?>(<?php echo $this -> session -> userdata('timekeeper')?>)<i class="material-icons right">perm_identity</i></a>
                <ul id='dropdown_user' class='dropdown-content'>

                    <li>
                        <a href="<?php echo base_url() ?>sessionManager/closeSessionTimekeeper"><?php echo $nav_text['nav_user_close_session']; ?>
                            <i class="material-icons right">power_settings_new</i></a>
                    </li>


                </ul>
            </li>
            <li>
                <a id="refresh_btn"onclick="refresh_window()" class=""><i class="material-icons">refresh</i></a>
            </li>



        </ul>
        <ul class="side-nav" id="mobile-demo">


            <li class="<?php echo strpos($_SERVER['REQUEST_URI'], 'delegado') ? 'active' : null; ?>">
                <a class="dropdown-button  " data-beloworigin="true" href="#!"
                   data-activates="dropdown_user_mobile"><?php echo $nav_text['nav_user'] ?><i
                        class="material-icons right">perm_identity</i></a>
                <ul id='dropdown_user_mobile' class='dropdown-content'>

                    <li>
                        <a href="<?php echo base_url() ?>sessionManager/closeSessionTimekeeper"><?php echo $nav_text['nav_user_close_session']; ?>
                            <i class="material-icons left">power_settings_new</i></a>
                    </li>

                </ul>
            </li>
            <li>
                <a id="refresh_btn"onclick="refresh_window()" class=""><i class="material-icons">refresh</i></a>
            </li>
        </ul>

    </div>
</nav>
<div id="overlay">
    <div class="spinner"></div>
</div>