<?php
require_once "config/init.php";
include "includes/header.php";?>

<?php include "includes/navbar.php";?>

  <div id="wrapper">

    <!-- Sidebar -->
   <?php include "includes/sidebar.php";?>

    <div id="content-wrapper">

      <div class="container-fluid">

        <!-- Breadcrumbs-->
        <ol class="breadcrumb">
          <li class="breadcrumb-item">
            <a href="#">Ola</a>
          </li>
          <li class="breadcrumb-item active"><?php echo $_SESSION['nome'];?></li>
        </ol>

     
	
    

<button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#myModal">
  Transacoes
</button>

<!-- The Modal -->
<div class="modal" id="myModal">
  <div class="modal-dialog">
    <div class="modal-content">

      <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title">Relatorios</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>

      <!-- Modal body -->
      <div class="modal-body">
     
	   <div class='col-sm-8'>
	    <form action="report_data_conta.php" target="_blank" method="post">
		  
		  <div class="form-group">
		   <label for="inicio">Inicio</label>
		    <input type="date" name="inicio" class="form-control" required/>
		  </div>
		  
		  <div class="form-group">
		   <label for="fim">Fim</label>
		    <input type="date" name="fim" class="form-control" required/>
		  </div>
		  
		  <div class="form-group">
		   <label for="local">Conta</label>
		    <select required name="local" class="form-control">
			 <option></option>
			 <?php selectConta();?>
			</select>
		  </div>
		  
		  <div class="form-group">
		    <input type="submit" name="submit" class="btn btn-info btn-sm" value="Submit"/>
		  </div>
		 
		</form>
	   </div>
	 
	 
      </div>

      <!-- Modal footer -->
      <div class="modal-footer">
        <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
      </div>

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

<!-- Button to Open the Modal -->
<button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#myModal30">
  30 dias
</button>

<!-- The Modal -->
<div class="modal" id="myModal30">
  <div class="modal-dialog">
    <div class="modal-content">

      <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title">30 dias</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>

      <!-- Modal body -->
      <div class="modal-body">
       
	   <div class="container">
	  <div class="col-sm-8">
	   <form action="trinta.php" target="_blank" method="post">
	   
	   <div class="form-group">
		   <label for="local">Conta</label>
		    <select required name="local" class="form-control">
			 <option></option>
			<?php selectConta();?>
			</select>
		  </div>
	   
	   <div class="form-group">
		   <input type="submit" name="submit" class="btn btn-info btn-block" value="Submeter"/>
		  </div>
	   
	   </form>
	   </div>
	   </div>
	   
	   
	   
      </div>

      <!-- Modal footer -->
      <div class="modal-footer">
        <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
      </div>

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

<!-- Button to Open the Modal -->
<button type="button" class="btn btn-success btn-sm" data-toggle="modal" data-target="#myModal90">
 90 dias
</button>

<!-- The Modal -->
<div class="modal" id="myModal90">
  <div class="modal-dialog">
    <div class="modal-content">

      <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title">90 dias</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>

      <!-- Modal body -->
      <div class="modal-body">
	  <div class="container">
	  <div class="col-sm-8">
       <form action="noventa.php" target="_blank" method="post">
	   
	   <div class="form-group">
		   <label for="local">Conta</label>
		    <select required name="local" class="form-control">
			 <option></option>
			 <?php selectConta();?>
			</select>
		  </div>
	   
	    <div class="form-group">
		   <input type="submit" name="submit" class="btn btn-info btn-block" value="Submeter"/>
		  </div>
	   
	   </form>
	   </div>
	   </div>
      </div>

      <!-- Modal footer -->
      <div class="modal-footer">
        <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
      </div>

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

<!-- Button to Open the Modal -->
<button type="button" class="btn btn-warning btn-sm" data-toggle="modal" data-target="#myModal180">
 180 dias
</button>

<!-- The Modal -->
<div class="modal" id="myModal180">
  <div class="modal-dialog">
    <div class="modal-content">

      <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title">180 dias</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>

      <!-- Modal body -->
      <div class="modal-body">
	  
	  <div class="container">
	  <div class="col-sm-8">
       <form action="cento_oitenta.php" target="_blank" method="post">	   
	   <div class="form-group">
		   <label for="local">Conta</label>
		    <select required name="local" class="form-control">
			 <option></option>
			 <?php selectConta();?>
			</select>
		  </div>
		  
		  <div class="form-group">
		   <input type="submit" name="submit" class="btn btn-info btn-block" value="Submeter"/>
		  </div>
	   
	   </form>
	   </div>
	   </div>
	   
      </div>

      <!-- Modal footer -->
      <div class="modal-footer">
        <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
      </div>

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

<!-- Button to Open the Modal -->
<button type="button" class="btn btn-danger btn-sm" data-toggle="modal" data-target="#myModal365">
 365 dias
</button>

<!-- The Modal -->
<div class="modal" id="myModal365">
  <div class="modal-dialog">
    <div class="modal-content">

      <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title">365 dias</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>

      <!-- Modal body -->
      <div class="modal-body">
	  
	  <div class="container">
	  <div class="col-sm-8">
       <form action="trezentos_65.php" target="_blank" method="post">
	   
	   <div class="form-group">
		   <label for="local">Conta</label>
		    <select required name="local" class="form-control">
			 <option></option>
			 <?php selectConta();?>
			</select>
		  </div>
	   <div class="form-group">
		   <input type="submit" name="submit" class="btn btn-info btn-block" value="Submeter"/>
		  </div>
	   
	   </form>
	   </div>
	   </div>
	   
	   
      </div>

      <!-- Modal footer -->
      <div class="modal-footer">
        <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
      </div>

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

<button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#report2">
  Relatorio de pagamentos
</button>

<!-- The Modal -->
<div class="modal" id="report2">
  <div class="modal-dialog">
    <div class="modal-content">

      <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title">Relatorios</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>

      <!-- Modal body -->
      <div class="modal-body">
     
	   <div class='col-sm-8'>
	    <form action="report_creditos_data_cliente.php" target="_blank" method="post">
		  
		  <div class="form-group">
		   <label for="inicio">Inicio</label>
		    <input type="date" name="inicio" class="form-control" required/>
		  </div>
		  
		  <div class="form-group">
		   <label for="fim">Fim</label>
		    <input type="date" name="fim" class="form-control" required/>
		  </div>

		  <div class="form-group">
		    <input type="submit" name="submit" class="btn btn-info btn-sm" value="Submit"/>
		  </div>
		 
		</form>
	   </div>
	 
	 
      </div>

      <!-- Modal footer -->
      <div class="modal-footer">
        <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
      </div>

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



<button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#myModal1">
  Relatorio de clientes
</button>

<!-- The Modal -->
<div class="modal" id="myModal1">
  <div class="modal-dialog">
    <div class="modal-content">

      <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title">Relatorios</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>

      <!-- Modal body -->
      <div class="modal-body">
     
	   <div class='col-sm-8'>
	    <form action="report_cliente.php" target="_blank" method="post">
		  
		  
		  <div class="form-group">
		   <label for="cliente">Nome do Cliente</label>
		    <select required name="cliente" class="form-control">
			 <option></option>
			<?php buscaCliente();?>
			</select>
		  </div>
		  
		  <div class="form-group">
		    <input type="submit" name="submit" class="btn btn-info btn-sm" value="Submit"/>
		  </div>
		 
		</form>
	   </div>
	 
	 
      </div>

      <!-- Modal footer -->
      <div class="modal-footer">
        <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
      </div>

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


<button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#myModal_2">
  BM Mensal
</button>

<!-- The Modal -->
<div class="modal" id="myModal_2">
  <div class="modal-dialog">
    <div class="modal-content">

      <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title">Relatorios</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>

      <!-- Modal body -->
      <div class="modal-body">
     
	   <div class='col-sm-8'>
	    <form action="report_bm_mensal.php" target="_blank" method="post">
		  
		  <div class="form-group">
		   <label for="inicio">Inicio</label>
		    <input type="date" name="inicio" class="form-control" required/>
		  </div>
		  
		  <div class="form-group">
		   <label for="fim">Fim</label>
		    <input type="date" name="fim" class="form-control" required/>
		  </div>
		  
	
		  
		  <div class="form-group">
		    <input type="submit" name="submit" class="btn btn-info btn-sm" value="Submit"/>
		  </div>
		 
		</form>
	   </div>
	 
	 
      </div>

      <!-- Modal footer -->
      <div class="modal-footer">
        <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
      </div>

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


<button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#myModal_4">
  BM Trimestral
</button>

<!-- The Modal -->
<div class="modal" id="myModal_4">
  <div class="modal-dialog">
    <div class="modal-content">

      <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title">Relatorios</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>

      <!-- Modal body -->
      <div class="modal-body">
     
	   <div class='col-sm-8'>
	    <form action="report_bm_trimestral.php" target="_blank" method="post">
		  
		  <div class="form-group">
		   <label for="inicio">Inicio</label>
		    <input type="date" name="inicio" class="form-control" required/>
		  </div>
		  
		  <div class="form-group">
		   <label for="fim">Fim</label>
		    <input type="date" name="fim" class="form-control" required/>
		  </div>
		  
	
		  
		  <div class="form-group">
		    <input type="submit" name="submit" class="btn btn-info btn-sm" value="Submit"/>
		  </div>
		 
		</form>
	   </div>
	 
	 
      </div>

      <!-- Modal footer -->
      <div class="modal-footer">
        <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
      </div>

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

<button type="button" class="btn btn-success btn-sm"><a href="export-data.php" style="text-decoration:none; color:white"><span>Excel Report</span></a></button>

      </div>
      <!-- /.container-fluid -->

      <!-- Sticky Footer -->
     <?php include "includes/footer.php";?>

    </div>
    <!-- /.content-wrapper -->

  </div>
  <!-- /#wrapper -->

  <!-- Scroll to Top Button-->
  <a class="scroll-to-top rounded" href="#page-top">
    <i class="fas fa-angle-up"></i>
  </a>

  <!-- Logout Modal-->
<?php include "includes/logout_modal.php"; ?>

  <!-- Bootstrap core JavaScript-->
  <script src="vendor/jquery/jquery.min.js"></script>
  <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

  <!-- Core plugin JavaScript-->
  <script src="vendor/jquery-easing/jquery.easing.min.js"></script>

  <!-- Page level plugin JavaScript-->
  <script src="vendor/chart.js/Chart.min.js"></script>
  <script src="vendor/datatables/jquery.dataTables.js"></script>
  <script src="vendor/datatables/dataTables.bootstrap4.js"></script>

  <!-- Custom scripts for all pages-->
  <script src="js/sb-admin.min.js"></script>

  <!-- Demo scripts for this page-->
  <script src="js/demo/datatables-demo.js"></script>
  <script src="js/demo/chart-area-demo.js"></script>

</body>

</html>
