<!DOCTYPE html>

<html lang="pt">

    <head>
        
        <!-- Global site tag (gtag.js) - Google AdWords: 1036809317 -->
        <script async src="https://www.googletagmanager.com/gtag/js?id=AW-1036809317"></script>
        <script>
          window.dataLayer = window.dataLayer || [];
          function gtag(){dataLayer.push(arguments);}
          gtag('js', new Date());
          gtag('config', 'AW-1036809317');
        </script>
        
        
        
        
        <meta charset="utf-8">

        <meta http-equiv="X-UA-Compatible" content="IE=edge">

        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>

            ::Cursos Vip::

        </title>

        <script src="<?= base_url() ?>lib/jquery/jquery-2.1.3.min.js"></script> 

        <script src="<?= base_url() ?>js/mascara.js"></script> 

        <link rel="stylesheet" href="<?= base_url() ?>lib/bootstrap/dist/css/bootstrap.min.css">

        <link href="<?= base_url() ?>lib/jasny-bootstrap/css/jasny-bootstrap.min.css" rel="stylesheet" media="screen">

        <link href="<?php echo base_url(); ?>css/area_aluno.css" rel="stylesheet" type="text/css">
        
        <style>
    
	.typeahead { border: 2px solid #FFF;border-radius: 4px;padding: 8px 12px;max-width: 300px;min-width: 290px;background: rgba(152, 207, 58, 0.99);color: #FFF;}
	.tt-menu { width:300px; }
	ul.typeahead{margin:0px;padding:10px 0px;}
	ul.typeahead.dropdown-menu li a {padding: 10px !important;	border-bottom:#CCC 1px solid;color:#000;}
	ul.typeahead.dropdown-menu li:last-child a { border-bottom:0px !important; }
	.bgcolor {max-width: 550px;min-width: 290px;max-height:340px;background:url("world-contries.jpg") no-repeat center center;padding: 100px 10px 130px;border-radius:4px;text-align:center;margin:10px;}
	.demo-label {font-size:1.5em;color: #686868;font-weight: 500;color:#FFF;}
	.dropdown-menu>.active>a, .dropdown-menu>.active>a:focus, .dropdown-menu>.active>a:hover {
		text-decoration: none;
		background-color: #1f3f41;
		outline: 0;
	}
</style>
        
        <script>
  		(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  		(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  		m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-80938612-1', 'auto');
  ga('send', 'pageview');

</script>

<script src="<?= base_url() ?>assets/js/typeahead.js"></script> 
    </head>



    <body>   



        <div class="container">

            <div class="row">

                <div class="col-md-12 col-xs-12">

                    <nav class="navbar" id="top-menu">

                        <div class="container-fluid">

                            <div class="navbar-header">

                                <button type="button" class="navbar-toggle top" data-toggle="collapse" data-target="#myNavbar">

                                    <span class="icon-bar"></span>

                                    <span class="icon-bar"></span>

                                    <span class="icon-bar"></span>                        

                                </button>

                            </div>

                            <div class="collapse navbar-collapse" id="myNavbar">

                                <ul class="nav navbar-nav">

                                    <li><a href="<?= base_url() ?>">Home</a></li>

                                    <li><a href="<?= base_url('cursos') ?>">Cursos</a></li>

                                    <li><a href="<?= base_url("planos") ?>" >Planos</a></li>

                                    <li><a href="<?= base_url("faleconosco") ?>">Fale Conosco</a></li>
                                    
                                    <li><a href="<?= base_url("/uploads/CONTRATODEADESAO6.pdf") ?>">Termo de Uso</a></li>

                                </ul>

                                <ul class="nav navbar-nav navbar-right">

                                    <li><a href="<?= base_url('aluno/aluno/logout') ?>"><span class="glyphicon glyphicon-log-in"></span> Logout</a></li>

                                </ul>

                            </div>

                        </div>

                    </nav>

                </div>

            </div><!--row navbar-->



            <div class="row"><!--row informações topo-->  

                <div class="col-md-6 col-xs-6">

                    <a href="<?php echo base_url(); ?>">

                        <img src="<?php echo base_url(); ?>imgs/logo.png" USEMAP="#map1" class="logo">

                    </a>

                </div>

                <div class="col-md-2"></div> 

                <div class="col-md-4 col-xs-6">

                    <?php
                    if (isset($_SESSION['imazon']['email'])):

                        $plano = $this->pm->get_validade_plano($_SESSION['email_aluno']);

                        echo '<p class="notifica-nome-aluno">Ol&aacute;, ' . $_SESSION['nome_aluno'] . '</p>';



                        if (count($plano) == 1) {

                            /*$dt_assinatura = date("d/m/Y", strtotime($plano[0]->dt_val_ass));

                            if (strtotime(date('Y-m-d')) > strtotime($plano[0]->dt_val_ass)) {

                                echo '<p class="notifica-assinatura">Sua assinatura expirou em: ' . $dt_assinatura . '.</p>';
                            } else {

                                echo '<p class="notifica-assinatura">Sua assinatura expira em: ' . $dt_assinatura . '</p>';
                            }*/
                            
                            if(count(explode("/",$plano[0]->dt_val_ass)) > 1)
                            {
                                $data = implode("-",array_reverse(explode("/",$plano[0]->dt_val_ass)));
                            }
                            elseif(count(explode("-",$plano[0]->dt_val_ass)) > 1)
                            {
                                $data = implode("/",array_reverse(explode("-",$plano[0]->dt_val_ass)));
                            }
                            
                            if( ($data!=='00/00/0000') || ($plano[0]->dt_val_ass!=='0000-00-00') )
                            {
                                echo '<p class="notifica-assinatura">Sua assinatura vai expirar em: ' . $data . '.</p>';
                            }
                        }





                    endif;
                    ?>

                    <form class="form-inline" action="<?= base_url('site/buscar_curso') ?>" method="post">

                        <div class="form-group nav-busca">

                            <div class="input-group">

                                <input type="text" class="form-control input-lg" name="filter" value="<?php
                    if ($this->input->post('filter')) {

                        echo $this->input->post('filter');
                    }
                    ?>" placeholder="Buscar curso">

                                <div class="input-group-addon btn-busca-header" style="padding: 17px;">

                                    <span class="glyphicon glyphicon-search form-control-feedback" style="top: 6px;"></span>

                                </div>

                            </div>

                        </div>

                    </form>

                </div>

            </div>
<?php
if ($this->agent->is_browser() && $this->agent->browser() == "Internet Explorer") {
    echo '<div style="padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; background: #F23838; color: #f5f5f5;">Seu navegador n&atilde;o possui suporte para o nosso site. Por favor, baixe e instale um dos seguintes navegadores: <a href="https://www.google.com.br/chrome/browser/desktop/" target=_blank" style="color: #f5f5f5; font-weight: bold;">Google Chrome</a> ou <a href="https://www.mozilla.org/pt-BR/firefox/new/" target=_blank" style="color: #f5f5f5; font-weight: bold;">Mozila Firefox</a>.</div>';
}
?>