<!DOCTYPE html>
<html lang="pt-br">
<head>


<!--ICONE FAVICON BARRA DE TITULO -->
<link rel="apple-touch-icon" sizes="57x57" href="/img/fav/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/img/fav//apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/img/fav//apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/img/fav//apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/img/fav//apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/img/fav//apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/img/fav//apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/img/fav//apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/img/fav//apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192"  href="/img/fav//android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/fav//favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/img/fav//favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/img/fav//favicon-16x16.png">
<link rel="manifest" href="/img/fav/manifest.json">
<meta name="msapplication-TileColor" content="#f4c0a6">
<meta name="msapplication-TileImage" content="/img/fav/ms-icon-144x144.png">
<meta name="theme-color" content="#f4c0a6">
<!--FIM DO ICONE FAVICON BARRA DE TITULO -->


	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<meta name="description" content="Portal de Cursos da Escola Q-Cursos Networks, Participe das nossas formações e seja um profissional reconhecido!!">
	<meta name="author" content="Hugo Vasconcelos">
	

	

	<?php if(@$palavras_chaves == ""){ ?>
	<meta name="keywords" content="cursos, portal de cursos, curso de tecnologia, cursos de programação, cursos online">
	<?php }else{ ?>
	<meta name="keywords" content="<?php echo $palavras_chaves; ?>">
	<?php } ?>

	<?php if(@$nome_curso_titulo == ""){ ?>
	<title>Portal Q-Cursos</title>
	<?php }else{ ?>
	<title><?php echo $nome_curso_titulo; ?></title>
	<?php } ?>


	<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">

	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.css">

	<link rel="stylesheet" href="css/estilos-site.css">
	<link rel="stylesheet" href="css/estilos-padrao.css">
	<link rel="stylesheet" href="css/cursos.css">
	<link rel="stylesheet" href="css/detalhes_curso.css">


<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>


<script src="js/validation.js"></script>

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>


</head>


<body id="page-top">

<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top mb-4">
	<div class="container">
		<a class="navbar-brand js-scroll-trigger" href="index.php#page-top">
		<img src="img/logo-qcursos.png" class="img-logo"> <span class="texto-logo">Q-Cursos</span></a>
		<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" arial-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle Navigation">
			Menu <i class="fas fa-bars"></i>
	    </button>
	    <div class="collapse navbar-collapse" id="navbarResponsive">
	    	<ul class="navbar-nav text-uppercase ml-auto textos-menu">
	    		<li class="nav-item">
	    			<a class="nav-link js-scroll-trigger" href="index.php#formacoes">Formações</a>
	    		</li>

	    		 <li class="nav-item dropdown">
			        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
			          Cursos
			        </a>
			        <div class="dropdown-menu" aria-labelledby="navbarDropdown">
			          <a class="submenu dropdown-item" href="index.php#cursos">Lançamentos</a>
			          <a class="submenu dropdown-item" href="cursos.php">Todos os Cursos</a>
			          
			          <a class="submenu dropdown-item" href="categorias.php">Categorias</a>
			        </div>
      			</li>


	    		
	    		<li class="nav-item">
	    			<a class="nav-link js-scroll-trigger" href="index.php#qcursos">Q-Cursos</a>
	    		</li>
	    		<li class="nav-item">
	    			<a class="nav-link js-scroll-trigger" href="index.php#alunos">Alunos</a>
	    		</li>
	    		<li class="nav-item">
	    			<a class="nav-link js-scroll-trigger" href="index.php#contatos">Contato</a>
	    		</li>

	    		<?php 

	    		@session_start();
	    		$nivel_usu = @$_SESSION['nivel_usuario'];
	    		if(!@$_SESSION['usuario']){ 
	    			

	    		 ?>
				
					<li class="nav-item">
	    			<a class="nav-link js-scroll-trigger" href="login.php" target="_blank">Login</a>
	    			</li>
				
				<?php  } else{ ?>



					
	    		 <li class="nav-item dropdown">
			        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
			          Painel
			        </a>
			        <div class="dropdown-menu" aria-labelledby="navbarDropdown">

			          <?php if ($nivel_usu == "Aluno"){ ?>
			          <a class="submenu dropdown-item" target="_blank" href="painel-aluno/painel_aluno.php">Painél Aluno</a>

			      	  <?php } ?>
			          

			           <?php if ($nivel_usu == "Professor"){ ?>
			          <a class="submenu dropdown-item" target="_blank" href="painel-professor/painel_professor.php">Painél Professor</a>
			          <?php } ?>

			           <?php if ($nivel_usu == "Administrador"){ ?>
			          <a class="submenu dropdown-item" target="_blank" href="painel-admin/painel_admin.php">Painél Administrador</a>
			          <?php } ?>

			          <a class="submenu dropdown-item" href="logout.php">Sair</a>
			          
			          
			        </div>
      			</li>

				<?php }

	    		 ?>

	    		
	    	</ul>
	    	<form class="form-inline my-2 my-lg-0">
		      <input class="form-control mr-sm-2" type="search" placeholder="Pesquisar" aria-label="Pesquisar" name="txtpesquisarCursos">
		      <button class="btn btn-outline-light my-2 my-sm-0 botao-buscar" type="submit" name="buttonPesquisar"><i class="fas fa-search"></i></button>


		    </form>
	    </div>
	</div>
</nav>


 <?php 

 if(isset($_GET['buttonPesquisar']) and $_GET['txtpesquisarCursos'] != ''){

$nome = $_GET['txtpesquisarCursos'];

echo "<script language='javascript'>window.location='cursos.php?nome=$nome'; </script>";

 }

 ?>