<?php
include 'header.php';
include 'erpc_financeiro_contas_pagar_toolbar.php';
require_once 'inc/usuario.php';
require_once 'connect.php';

checkLogin('login.php');


//Busca de acordo com campos do FILTER
if( isset($_POST['buscar'])){
		
	$dt_inicio = $_POST['dt_inicio'];
    $dt_final  = $_POST['dt_final'];
    $id_status = $_POST['id_status_baixa'];
    
}
       
?>
<form method="post" action="erpc_pedidos_venda_ws.php" id=validate_custom>
  <div class="block">
    <div class="header">
      <h2>Relatório das Vendas</h2>
    </div>
    <div class="block">
      <div class="content">
        <?php
        displayMessagesAndErrors(true);
        ?>
      </div>
    </div>
  </div>
  <ul class="nav nav-tabs" role="tablist">
    <li role="presentation" class="active"><a href="#form1" aria-controls="form1" role="tab" data-toggle="tab">Receitas</a></li>
    <li role="presentation"><a href="#form2" aria-controls="form2" role="tab" data-toggle="tab">Despesas</a></li>
    <li role="presentation"><a href="#form3" aria-controls="form3" role="tab" data-toggle="tab">Mensagens</a></li>
    <li role="presentation"><a href="#form4" aria-controls="form4" role="tab" data-toggle="tab">Veículo</a></li>
    <li role="presentation"><a href="#form9" aria-controls="form9" role="tab" data-toggle="tab">Status</a></li>
  </ul>

<!-- Tab panes -->
<div class="tab-content">

  <div role="tabpanel" class="tab-pane fade in active" id="form1">
    <? include "erpc_financeiro_relatorio_list1.php" ?>
  </div> <!-- tab-pane -->

  <div role="tabpanel" class="tab-pane fade in" id="form2">
    <? include "erpc_financeiro_relatorio_list2.php" ?>
  </div> <!-- tab-pane -->

  <div role="tabpanel" class="tab-pane fade in" id="form3">
    <? include "erpc_pedidos_venda3_mensagens_add.php" ?>
  </div> <!-- tab-pane -->

  <div role="tabpanel" class="tab-pane fade in" id="form4">
    <? include "erpc_pedidos_venda4_veiculo_add.php" ?>
  </div> <!-- tab-pane -->

  <div role="tabpanel" class="tab-pane fade in" id="form9">
    <? include "erpc_pedidos_venda10_status.php" ?>
  </div> <!-- tab-pane -->

</div> <!-- 1o tab-content -->

 
 
 

  <ul class="nav nav-tabs" role="tablist">
    <li role="presentation" class="active"><a href="#form5" aria-controls="form5" role="tab" data-toggle="tab">Totais</a></li>
  </ul>
<!-- Tab panes -->

<div class="tab-content">

  <div role="tabpanel" class="tab-pane fade in active" id="form5">
    <? include "erpc_pedidos_venda6_totais_add.php" ?>
  </div> <!-- tab-pane -->

</div>


  <div class="block">
    <div class="content controls">
      <div class="form-row">
        <div class="col-md-12 text-right">
          <button type="submit" name="btn-add" id="btn-add" class="btn btn-primary btn-cleanx" onClick="$('#validate_custom').validationEngine('hide');" >Adicionar</button>
          <button type="button" name="btn-voltar" id="btn-voltar" class="btn btn-default btn-cleanx">Voltar</button>
        </div>
      </div>
    </div>
  </div>
</form>

<?php include 'inc/helper_modal_div.php'; ?>
<?php include 'footer.php'; ?>
<script type='text/javascript' src='js\pedidos_venda.js' ></script>
<style>
  .input-group {
    min-width:130px;// if you want width please write here //
    text-align:left;
  }
</style>
