<?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>
    <title>JudoCup 柔道</title>
    <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() ?>welcome/login" 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'], 'competition') ? 'active' : null; ?>">
                <a class="tooltipped" data-position="behind" data-delay="50"
                   data-tooltip="<?php echo $nav_text['nav_tooltip_competiton'] ?>"
                   href="<?php echo base_url() ?>competition"><?php echo $nav_text['nav_competitions'] ?></a>
            </li>
            <li class="<?php echo strpos($_SERVER['REQUEST_URI'], 'team') ? 'active' : null; ?>"><a
                        class="tooltipped" data-position="behind" data-delay="50"
                        data-tooltip="<?php echo $nav_text['nav_tooltip_teams'] ?>"
                        href="<?php echo base_url() ?>team"><?php echo $nav_text['nav_teams'] ?><i
                            class="material-icons right">group</i></a></li>
            <li class="<?php echo strpos($_SERVER['REQUEST_URI'], 'referee') ? 'active' : null; ?>"><a
                        class="tooltipped" data-position="behind" data-delay="50"
                        data-tooltip="<?php echo $nav_text['nav_tooltip_referees'] ?>"
                        href="<?php echo base_url() ?>referee"><?php echo $nav_text['nav_referees'] ?></a></li>


            <li class="<?php echo strpos($_SERVER['REQUEST_URI'], 'competitor') ? 'active' : null; ?>">
                <a class="tooltipped" data-position="behind" data-delay="50"
                   data-tooltip="<?php echo $nav_text['nav_tooltip_competitors'] ?>"
                   href="<?php echo base_url() . 'competitor' ?>"><?php echo $nav_text['nav_competitors'] ?></a>
            </li>

            <li class="<?php echo strpos($_SERVER['REQUEST_URI'], 'timekeeper') ? 'active' : null; ?>">
                <a class="tooltipped" data-position="behind" data-delay="50"
                   data-tooltip="<?php echo $nav_text['nav_tooltip_timekeeper'] ?>"
                   href="<?php echo base_url() . 'timekeeper' ?>"><?php echo $nav_text['nav_timekeeper'] ?></a>
            </li>

            <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'] ?><i class="material-icons right">perm_identity</i></a>
                <ul id='dropdown_user' class='dropdown-content'>
                    <li>
                        <a href="<?php echo base_url() ?>delegado"><?php echo $nav_text['nav_user_settings']; ?> <i
                                    class="material-icons right">settings</i></a>
                    </li>
                    <li>
                        <a onclick="return confirm('<?php echo $nav_text['confirm_close_session']?>')" href="<?php echo base_url() ?>sessionManager/closeSession"><?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'], 'competition') ? 'active' : null; ?>"><a
                        class="tooltipped" data-position="behind" data-delay="50"
                        data-tooltip="<?php echo $nav_text['nav_tooltip_competiton'] ?>"
                        href="<?php echo base_url() ?>competition"><?php echo $nav_text['nav_competitions'] ?></a></li>
            <li class="<?php echo strpos($_SERVER['REQUEST_URI'], 'team') ? 'active' : null; ?>"><a class="tooltipped"
                                                                                                    data-position="behind"
                                                                                                    data-delay="50"
                                                                                                    data-tooltip="<?php echo $nav_text['nav_tooltip_teams'] ?>"
                                                                                                    href="<?php echo base_url() ?>team"><?php echo $nav_text['nav_teams'] ?>
                    <i
                            class="material-icons right">group</i></a></li>
            <li class="<?php echo strpos($_SERVER['REQUEST_URI'], 'referee') ? 'active' : null; ?>"><a
                        class="tooltipped" data-position="behind" data-delay="50"
                        data-tooltip="<?php echo $nav_text['nav_tooltip_referees'] ?>"
                        href="<?php echo base_url() ?>referee""><?php echo $nav_text['nav_referees'] ?></a></li>


            <li class="<?php echo strpos($_SERVER['REQUEST_URI'], 'competitor') ? 'active' : null; ?>">
                <a class="tooltipped" data-position="behind" data-delay="50"
                   data-tooltip="<?php echo $nav_text['nav_tooltip_competitors'] ?>"
                   href="<?php echo base_url() . 'competitor' ?>"><?php echo $nav_text['nav_competitors'] ?></a>
            </li>

            <li class="<?php echo strpos($_SERVER['REQUEST_URI'], 'timekeeper') ? 'active' : null; ?>">
                <a class="tooltipped" data-position="behind" data-delay="50"
                   data-tooltip="<?php echo $nav_text['nav_tooltip_timekeeper'] ?>"
                   href="<?php echo base_url() . 'timekeeper' ?>"><?php echo $nav_text['nav_timekeeper'] ?></a>
            </li>

            <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() ?>delegado""><?php echo $nav_text['nav_user_settings']; ?> <i
                                class="material-icons left">settings</i></a>
                    </li>
                    <li>
                        <a onclick="return confirm('<?php echo $nav_text['confirm_close_session']?>')" href="<?php echo base_url() ?>sessionManager/closeSession"><?php echo $nav_text['nav_user_close_session']; ?>
                            <i class="material-icons left">power_settings_new</i></a>
                    </li>

                </ul>
            </li>

        </ul>

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


