<?php 
session_start();
include '../../conexao/index.php';
$id_compra = $_GET['id'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <?php include 'includes/head.php'; ?>
</head>
<body>
    <div class="main-wrapper">
        <div class="header">
            <?php include 'includes/header.php' ?>
        </div>
        <div class="sidebar" id="sidebar">
            <?php include 'includes/side_bar.php'; ?>
        </div>
        <div class="page-wrapper">
            <div class="content">
                <div class="row">
                    <div class="col-sm-4 col-3">
                        <h4 class="page-title">Relatório de Caixa</h4>
                    </div>
                    <div class="col-sm-8 col-9 text-right m-b-20">
                        
                        <a href="relatorio/print_caixa.php" class="btn btn btn-primary btn-rounded float-right" target="_blank"><i class="fa fa-print"></i> Imprimir</a>
                    </div>
                </div>
				<div class="row">
					<div class="col-md-12">
						<div class="table-responsive">
							<table class="table table-border table-striped custom-table datatable mb-0">
								<thead>
									<tr>
										<th>#</th>
										<th>Status</th>
										<th>Valor de Abertura</th>
										<th>Valor de Fecho</th>
										<th>Data de Abertura</th>
										<th>Data de Fecho</th>
									</tr>
								</thead>
								<tbody>
									<?php
										$sql = "SELECT * FROM periodo";
										$rs = mysqli_query($db, $sql) or die(mysqli_error($db));
										while ($dados = mysqli_fetch_array($rs)) {
									?>
										<tr> 
											<td><?php echo $dados['idperiodo']; ?></td>
											<td><?php echo $dados['diaperiodo']; ?></td>
											<td><?php echo $dados['aberturaperiodo']; ?></td>
											<td><?php echo $dados['fechoperiodo']; ?></td>
											<td><?php echo $dados['dataaberturaperiodo']; ?></td>
											<td><?php echo $dados['datafechoperiodo']; ?></td>
										</tr>
									<?php
										}
									?>
									
								</tbody>
							</table>
						</div>
					</div>
                </div>
            </div>
        </div>
    </div>
    <div class="sidebar-overlay" data-reff=""></div>
    <?php include 'includes/footer_plugins.php'; ?>
</body>


<!-- patients23:19-->
</html>