<?php
        session_start();
        header('Content-type: text/html; charset=utf-8');
        if (!isset($_SESSION["nome"])) {
            header("location:index.php");
       
        } else {
            
        }
        $seqUnidade = $_POST['seqUnidade'];
       
        if (isset($_SESSION["seqUnidade"])) {
            $seqUnidade = $_SESSION["seqUnidade"];
            $nome = $_SESSION["nome"];
        }
      
        ?>

        <!DOCTYPE html>
<html lang="pt-BR">

    <head>

        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
        <meta name="description" content="Portal Força Máxima">
        <meta name="author" content="Vinícius">
        <!--    <link rel="icon" href="../../favicon.ico">-->

        <title>Portal Força Máxima</title>
        <link rel="icon" href="../imagens/favicon.ico">

        <!-- Bootstrap core CSS -->
        <link href="https://fonts.googleapis.com/css?family=Roboto:400,500" rel="stylesheet">
        <!-- waves.css -->
        <link rel="stylesheet" href="../assets/pages/waves/css/waves.min.css" type="text/css" media="all">
        <!-- Required Fremwork -->
        <link rel="stylesheet" type="text/css" href="../assets/css/bootstrap/css/bootstrap.min.css">
        <!-- waves.css -->
        <link rel="stylesheet" href="../assets/pages/waves/css/waves.min.css" type="text/css" media="all">
        <!-- themify icon -->
        <link rel="stylesheet" type="text/css" href="../assets/icon/themify-icons/themify-icons.css">
        <!-- Font Awesome -->
        <link rel="stylesheet" type="text/css" href="../assets/icon/font-awesome/css/font-awesome.min.css">
        <!-- scrollbar.css -->
        <link rel="stylesheet" type="text/css" href="../assets/css/jquery.mCustomScrollbar.css">
        <!-- am chart export.css -->
        <link rel="stylesheet" href="../assets/css/export.css" type="text/css" media="all" />
        <!-- Style.css -->
        <link rel="stylesheet" type="text/css" href="../assets/css/style.css">
        <link rel="stylesheet" type="text/css" href="../css/main.css">
        <link rel="stylesheet" type="text/css" href="../css/accordion.css.css">
        <script src="../js/main.js "></script>
        <script src="../js/accordion.js.js "></script>


        <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
        <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
        <!--<script src="../../assets/js/ie-emulation-modes-warning.js"></script>-->

        <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
                  <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
                  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
                <![endif]-->

    </head>

    <body>
        



    <!-- /. NAV TOP  -->
    <div id="pcoded" class="pcoded">
        <div class="pcoded-overlay-box"></div>
        <div class="pcoded-container navbar-wrapper">
            <nav class="navbar header-navbar pcoded-header">
                <div class="navbar-wrapper">
                    <div class="navbar-logo">
                        <a class="mobile-menu waves-effect waves-light" id="mobile-collapse" href="#!">
                            <i class="ti-menu"></i>
                        </a>
                        <div class="mobile-search waves-effect waves-light">
                            <div class="header-search">
                                <div class="main-search morphsearch-search">
                                    <div class="input-group">
                                        <span class="input-group-addon search-close"><i class="ti-close"></i></span>
                                        <input type="text" class="form-control" placeholder="Enter Keyword">
                                        <span class="input-group-addon search-btn"><i class="ti-search"></i></span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- logo escola parceira -->
                        <a href="inicio.php">
                            <img class="img-fluid" src="../images/logosolta.png" width="65%" height="65%" alt="Theme-Logo" />
                        </a>
                        <a class="mobile-options waves-effect waves-light">
                            <i class="ti-more"></i>
                        </a>
                    </div>

                    <div class="navbar-container container-fluid">
                        <ul class="nav-left">
                            <li>
                                <div class="sidebar_toggle"><a href="javascript:void(0)"><i class="ti-menu"></i></a></div>
                            </li>

                            <li>
                                <a href="#!" onclick="javascript:toggleFullScreen()" class="waves-effect waves-light">
                                    <i class="ti-fullscreen"></i>
                                </a>
                            </li>
                        </ul>
                        <!-- MENU SUPERIOR DIREITO -->
                        <ul class="nav-right">

                            <li class="user-profile header-notification">

                                <a href="#" class="waves-effect waves-light">
                                    <?php echo $nome; ?>
                                    &nbsp  &nbsp
                                    <img src="../images/user.png" class="img-radius" alt="User-Profile-Image">
                                    <i class="ti-angle-down"></i>
                                </a>
                                <ul class="show-notification profile-notification">

                                    <li class="waves-effect waves-light">
                                        <a href="logoff.php">
                                            <i class="ti-layout-sidebar-left"></i> Sair
                                        </a>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                        <!-- FIM MENU SUPERIOR DIREITO -->

                    </div>
                </div>
            </nav>
            <!-- fim barra superior -->

            <!-- inicio barra lateral -->
            <div class="pcoded-main-container">
                <div class="pcoded-wrapper">
                    <nav class="pcoded-navbar" id="menu">
                        <div class="sidebar_toggle"><a href="#"><i class="icon-close icons"></i></a></div>
                        <div class="pcoded-inner-navbar main-menu">
                            <div class="">
                                <!-- identificação do usuario -->
                                <div class="main-menu-header">
                                    <img src="../images/user.png" class="img-radius-profile" alt="User-Profile-Image">
                                    <div class="user-details">
                                        
                                    </div>

                                </div>
                                <!-- fim identificação do usuario -->
                                <!-- login e logout abaixo da logo -->
                                <!-- 
                                    <div class="main-menu-content">
                                        <ul>

                                            <li class="more-details"></li>
                                                <a href="principal.php?p=novaSenha.php"><i class="fa fa-key"></i>Nova Senha teste</a>
                                            </li>
                                            <li class="more-details">
                                                <a href="../conexao/logoff.php"><i class="ti-layout-sidebar-left"></i>Logout</a>
                                            </li>
                                        </ul>
                                    </div>
                                -->
                            </div>

                            <div class="pcoded-navigation-label" data-i18n="nav.category.navigation"></div>

                            <!-- inicio menu -->
                            <ul class="pcoded-item pcoded-left-item">
                                <div id="accordion">
                                    <div class="card-header" >
                                        <li>
                                            <a href="inicio.php" target="tela" class="waves-effect waves-dark">
                                                <span class="pcoded-micon"><i class="fa fa-home"></i><b></b></span>
                                                <span class="pcoded-mtext" data-i18n="nav.form-components.main">Início</span>
                                                <span class="pcoded-mcaret"></span>
                                            </a>
                                        </li>
                                    </div>
                                </div>
                                <!-- consultas -->
                                <div id="accordion">
                                    <div class="card-header" >
                                        <li>
                                            <a href="#" target="tela" class="waves-effect waves-dark" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                                                <span class="pcoded-micon"><i class="fa fa-home"></i><b></b></span>
                                                <span class="pcoded-mtext" data-i18n="nav.form-components.main">Consultas</span>
                                                <span class="pcoded-mcaret"></span>
                                            </a>
                                        </li>
                                    </div>

                                    <div id="collapseOne" class="collapse" aria-labelledby="headingOne" data-parent="#accordion">
                                        <div class="card-body">

                                            <li>                                                        
                                                <a href="geral.php?u=<?php echo $seqUnidade; ?>" target="tela" >
                                                    <span class="pcoded-micon"><i class="fa fa-arrow-right"></i><b></b></span>
                                                    Inscrições
                                                </a>
                                            </li>
                                        </div>
                                    </div>
                                </div>

                                <!-- relatorios -->
                                <div id="accordion">
                                    <div class="card-header" >
                                        <li>
                                            <a href="#" target="tela" class="waves-effect waves-dark" data-toggle="collapse" data-target="#relatorios" aria-expanded="true" aria-controls="collapseOne">
                                                <span class="pcoded-micon"><i class="fa fa-home"></i><b></b></span>
                                                <span class="pcoded-mtext" data-i18n="nav.form-components.main">Relatórios</span>
                                                <span class="pcoded-mcaret"></span>
                                            </a>
                                        </li>
                                    </div>

                                    <div id="relatorios" class="collapse" aria-labelledby="headingOne" data-parent="#accordion">
                                        <div class="card-body">

                                            <li>
                                                <a href="unidadeTurmaTurno.php?u=<?php echo $seqUnidade; ?>" target="tela">
                                                    <span class="pcoded-micon"><i class="fa fa-arrow-right"></i><b></b></span>
                                                    Inscritos por Unidade/Turma/Turno
                                                </a>
                                            </li>

                                            <br>

                                            <li>
                                                <a href="presenca.php?u=<?php echo $seqUnidade; ?>" target="tela">
                                                    <span class="pcoded-micon"><i class="fa fa-arrow-right"></i><b></b></span>
                                                    Estatística
                                                </a>
                                            </li>

                                        </div>
                                    </div>
                                </div>

                                <!-- notas -->
                                <div id="accordion">
                                    <div class="card-header" >
                                        <li>
                                            <a href="#" target="tela" class="waves-effect waves-dark" data-toggle="collapse" data-target="#notas" aria-expanded="true" aria-controls="collapseOne">
                                                <span class="pcoded-micon"><i class="fa fa-home"></i><b></b></span>
                                                <span class="pcoded-mtext" data-i18n="nav.form-components.main">Notas</span>
                                                <span class="pcoded-mcaret"></span>
                                            </a>
                                        </li>
                                    </div>

                                    <div id="notas" class="collapse" aria-labelledby="headingOne" data-parent="#accordion">
                                        <div class="card-body">

                                            <li>                                                        
                                            <li>                                                            
                                                <a href="lancamentoNotas.php?u=<?php echo $seqUnidade; ?>" target="tela">
                                                    <span class="pcoded-micon"><i class="fa fa-arrow-right"></i><b></b></span>
                                                    Lançar Notas
                                                </a>
                                            </li>


                                            </a>
                                            </li>
                                        </div>
                                    </div>
                                </div>

                                <!-- configurações -->
                                <?php
                               
                            
                                if ($seqUnidade == 0) { ?> 
                               
                                    <div id = "accordion">
                                        <div class = "card-header" >
                                            <li>
                                                <a href = "#" target = "tela" class = "waves-effect waves-dark" data-toggle = "collapse" data-target = "#configuracoes" aria-expanded = "true" aria-controls = "collapseOne">
                                                    <span class = "pcoded-micon"><i class = "fa fa-home"></i><b></b></span>
                                                    <span class = "pcoded-mtext" data-i18n = "nav.form-components.main">Configurações</span>
                                                    <span class = "pcoded-mcaret"></span>
                                                </a>
                                            </li>
                                        </div>

                                        <div id = "configuracoes" class = "collapse " aria-labelledby = "headingOne" data-parent = "#accordion">
                                            <div class = "card-body">

                                                <li>
                                                <li>
                                                    <a href = "cadastroBolsao.php" target = "tela">
                                                        <span class = "pcoded-micon"><i class = "fa fa-arrow-right"></i><b></b></span>
                                                        Cadastro de Bolsões
                                                    </a>
                                                </li>


                                                </a>
                                                </li>
                                            </div>
                                        </div>
                                    </div>
                               <?php }?>
                             



                            </ul>
                        </div>

                    </nav>
                </div>

                <div class="pcoded-content">
                    <div class="page-header">
                        <div class="page-block">
                            <div class="row align-items-center">
                                <div class="col-md-8">
                                    <div class="page-header-title">

                                        <h5 class="m-b-10">ADM Bolsão</h5>
                                        <p class="m-b-0">Portal Força Máxima</p>


                                    </div>
                                </div>
                                <div class="col-md-4">
                                    <ul class="breadcrumb-title">

                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="pcoded-content">
                    <iframe width="100%" height="700" name="tela" frameborder="0" style="background-image:url(../images/campanha/inicio.jpg)"></iframe>
                </div>

                <div class="pcoded-content">
                    <p align="right"> grupoforcamaxima ® 2022 - Todos os direitos reservados. &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</p>
                </div>

                <script type="text/javascript" src="../assets/js/jquery/jquery.min.js"></script>
                <script type="text/javascript" src="../assets/js/jquery-ui/jquery-ui.min.js "></script>
                <script type="text/javascript" src="../assets/js/popper.js/popper.min.js"></script>
                <script type="text/javascript" src="../assets/js/bootstrap/js/bootstrap.min.js "></script>
                <script type="text/javascript" src="../assets/pages/widget/excanvas.js "></script>
                <!-- waves js -->
                <script src="../assets/pages/waves/js/waves.min.js"></script>
                <!-- jquery slimscroll js -->
                <script type="text/javascript" src="../assets/js/jquery-slimscroll/jquery.slimscroll.js "></script>
                <!-- modernizr js -->
                <script type="text/javascript" src="../assets/js/modernizr/modernizr.js "></script>
                <!-- slimscroll js -->
                <script type="text/javascript" src="../assets/js/SmoothScroll.js"></script>
                <script src="../assets/js/jquery.mCustomScrollbar.concat.min.js "></script>
                <!-- Chart js -->
                <script src="../assets/js/raphael/raphael.min.js"></script>
                <script src="../assets/js/morris.js/morris.js"></script>
                <!-- Custom js -->
                <script src="../assets/js/morris-custom-chart.js"></script>
                <script type="text/javascript" src="../assets/js/morris-custom-chart.js"></script>
                <!-- amchart js -->
                <script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
                <script src="../assets/pages/widget/amchart/gauge.js"></script>
                <script src="../assets/pages/widget/amchart/serial.js"></script>
                <script src="../assets/pages/widget/amchart/light.js"></script>
                <script src="../assets/pages/widget/amchart/pie.min.js"></script>
                <script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
                <script type="text/javascript" src="assets/pages/accordion/accordion.js"></script>
                <!-- menu js -->
                <script src="../assets/js/pcoded.min.js"></script>
                <script src="../assets/js/vertical-layout.min.js "></script>
                <!-- custom js -->
                <script type="text/javascript" src="../assets/pages/dashboard/custom-dashboard.js"></script>
                <script type="text/javascript" src="../assets/js/script.js "></script>
                <!-- modulo multiselct -->
                <script type="text/javascript" src="../js/jquery-multiselect.js"></script> 