<!DOCTYPE html>

<?php
//define('ROOT_PATH', dirname(__FILE__));

Include("../includes/con_cliente.php");

//Include ROOT_PATH . '/includes/con_cliente.php';

 require_once('../connection.php');
    session_start();

    if(isset($_SESSION['User']))
    {
        $query="select * from tbusuario where nomeuser='".$_SESSION['User']."'";
        $result=mysqli_query($con,$query);
        $resultado = mysqli_fetch_assoc($result);
        $r_resultado = $resultado;
    }
    else
    {
        header("location:index.php");
    }


    $result_alunos = "SELECT * FROM tblcto WHERE lctvlrbaixado = 0 ORDER BY lctvencimento ASC ";
    $resultado_alunos = mysqli_query($con, $result_alunos);



    $c_fornecedor="SELECT DISTINCT lctfornecedor FROM tblcto ORDER BY lctfornecedor asc";
    $r_fornecedor= mysql_query($c_fornecedor);

    $c_grupo="SELECT DISTINCT lctgcusto FROM tblcto ORDER BY lctgcusto asc";
    $r_grupo= mysql_query($c_grupo);

    $c_centro="SELECT DISTINCT lctccusto FROM tblcto ORDER BY lctccusto asc";
    $r_centro= mysql_query($c_centro);

    $c_conta="SELECT DISTINCT lctcconta FROM tblcto ORDER BY lctcconta asc";
    $r_conta= mysql_query($c_conta);








?>

<html>
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">

	<link rel="stylesheet" href="../node_modules/bootstrap/compiler/bootstrap.css">
	<link rel="stylesheet" href="../node_modules/bootstrap/compiler/styler.css">
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
	<link rel="stylesheet" href="https://cdn.rawgit.com/Eonasdan/bootstrap-datetimepicker/e8bddc60e73c1ec2475f827be36e1957af72e2ea/build/css/bootstrap-datetimepicker.css" />

	<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.15/jquery.mask.min.js"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
	<script src="jquery.maskMoney.js" type="text/javascript"></script>

	<title>Sistema SCA - Grupo BRO</title>

</head>
<body>

	<!--<nav class="navbar fixed-top navbar-expand-lg navbar-dark" style="background-color: #3333ff;">
      <a class="navbar-brand" href="menu.php">
            <img src="../img/logomarca.png" width="50" height="40" class="d-inline-block align-center" alt="">Contas a Pagar  -  <?php echo $resultado["nomeuser"];?>
            
      </a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo02" aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse" id="navbarTogglerDemo02">
        <ul class="navbar-nav mr-auto mt-2 mt-lg-0">
        </ul>
        <form class="form-inline my-2 my-lg-0">
          <button class="btn btn-primary btn-sm my-2 my-sm-0">
            <a href="gdocumentos.php" style="color:inherit"> Voltar </a></button>
        </form>
      </div>
    </nav>

    <div class="container theme-showcase" role="main" style="margin-top: 3rem;">
      <div class="page-header">
        
      </div>
      <div class="pull-right">
        <button type="button" class="btn btn-xs btn-success btn-sm" data-toggle="modal" data-target="#myModalcad">Novo</button>
      </div>
    </div> -->

    <div class="container-fluid">
    	<div class="row">
    		<div class="col-sm-12">
		        <?php
		        	$pagina = 'home';
		        	if(!empty($_GET['pagina']))
		        	{
		        		$pagina = $_GET['pagina'];
		        	}
		        	if (file_exists("$pagina.php"))
		        	{
		        		Include("$pagina.php");
		        	}
		        	else
		        	{
		        		?> <svg class="bi bi-chevron-right" width="32" height="32" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M6.646 3.646a.5.5 0 01.708 0l6 6a.5.5 0 010 .708l-6 6a.5.5 0 01-.708-.708L12.293 10 6.646 4.354a.5.5 0 010-.708z" clip-rule="evenodd"/></svg> Página Não Encontrada !<?php 
		        	}


		        ?>

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




</body>
</html>