<?php
//	session_start();
    //Incluindo a conexão com banco de dados   
  
//	include("config/conexao.php"); 
	include("cabecalho.php");

?>
    <div id="page-wrapper">
      <div class="page-content">
        <div class="row">
          <div class="col-lg-12">
            <div class="page-title">
              <ol class="breadcrumb">
                <li>
                  <i class="fa fa-home"></i> <a href="home.php">Home</a>
                </li>
                <li class="active"><i class="fa fa-pencil-square-o"></i> Notas Fiscais</li>
              </ol>
            </div>
          </div>
        </div>
        <div class="portlet portlet-default">
			<form  action="config/funcoes.php?funcao=notasFiscais" method="POST" enctype="multipart/form-data">	
			  <div class="portlet-heading text-center">
				<div class="portlet-title">
				  <h4 >2ª VIA DE NOTA FISCAL</h4>
				</div>
				<div class="clearfix"></div>
			  </div>
			  <div class="portlet-body">
                <div class="form-inline">                   
                    <div class="form-group col-sm-5">
                            <label for="datainicial">Data Início Emissão:</label>                
                            <div class='input-group date' >
                                <input type='date' class="form-control" id='dataInicial' name='dataInicial' required />
                                <span class="input-group-addon">
                                    <span class="glyphicon glyphicon-calendar"></span>
                                </span>
                            </div>
                    </div>
                    <div class="form-group col-sm-5 ">
                            <label for="datainicial">Data Fim Emissão:</label>                
                            <div class='input-group date'>
                                <input type='date' class="form-control" id='dataFinal' name='dataFinal'required />
                                <span class="input-group-addon">
                                    <span class="glyphicon glyphicon-calendar"></span>
                                </span>
                            </div>
                    </div> 
                    <div class="form-group col-sm-1" style="top:4px">                                        
                        <button type="submit" title='Buscar Notas' class="btn btn-success" style="height:32px" ><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span></button>                    
                    </div>                  
                </div><br/><br/>
                <script type="text/javascript">       
                    var date = new Date();
                    $(function () {
                        $('#dataInicial').datetimepicker({
                            locale: 'pt-BR',
                            format: "DD/MM/YYYY",
                            date: new Date(date.getFullYear(), (date.getMonth()-1) , 1)
                        });
                        $('#dataFinal').datetimepicker({
                            locale: 'pt-BR',
                            format: "DD/MM/YYYY",
                            date: new Date()
                        });
                    });     
                            
                </script>                                

                <table class="table table-striped table-responsive" id="tblNotas">
                    <thead>
                        <tr>
                        <th scope="col"></th>
                        <th scope="col">Nº Nota</th>
                        <th scope="col">Modelo</th>
                        <th scope="col">Data de Emissão</th>
                        <th scope="col">Valor (R$)</th>
                        <th scope="col">Vencimento</th>
                        <th scope="col"></th>
                        </tr>
                    </thead>
                    <tbody></tbody>

                    <?php
                    //    }
                    ?>                
                </table>				
			  </div> 
			</form>	  
        </div>
        <div class="row">
        </div>
      </div>
    </div>
  </div>

  <!-- -------------------------------------------------------------------------------------------------------------------------->
 

  <!-- -------------------------------------------------------------------------------------------------------------------------->
  <script type="text/javascript" src="https://www.google.com/jsapi"></script>		
  <script src="js/jquery/jquery-1.8.1.js"></script>
  <script src="js/jquery/jquery.maskedinput.js"></script>
  <script src="js/jquery/jquery.cadastro.usuario.js"></script>
  <script src="js/bootstrap/bootstrap.min.js"></script>
  <script src="js/slimscroll/jquery.slimscroll.min.js"></script>
  <script src="js/popupoverlay/jquery.popupoverlay.js"></script>
  <script src="js/popupoverlay/defaults.js"></script>
  <script src="js/popupoverlay/logout.js"></script>
  <script src="js/hisrc/hisrc.js"></script>
  <script src="js/datatables/jquery.dataTables.js"></script>
  <script src="js/datatables/datatables-bs3.js"></script>
  <script src="js/jquery/jquery.Layout.js"></script>

	
</body>

</html>
