<?php
session_start();

$server=$_SERVER["HTTP_HOST"]."/qa.du"; 
$home="http://".$server."/index.php";
$close="http://".$server."/includes/close.php";
$admin="http://".$server."/includes/admin.php";
$loginRed="http://".$server."/includes/session.php";

$session=isset($_SESSION['usuario']) ? $_SESSION['usuario'] : '';
$role=isset($_SESSION['role']) ? $_SESSION['role'] : '';


if ($_SESSION['usuario']==null || $_SESSION['usuario'] == "") {
    header("Location:".$loginRed);
  
    die();
  }

  
if ($_SESSION['role']=='GENERIC') {
  header("Location:".$loginRed);

  die();
}
//$tipo=$_GET["tipoCobro"];

 ?>
 <!--<input type="hidden" name="" id="tipo_cobro" value="">

  <button onClick="window.location.reload();">Refresh Page</button>-->



 <!DOCTYPE html>
 <html lang="es">
<head>

  <link rel="shortcut icon" href="../img/icon.ico" type="image/x-icon"/>

  
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=no">
  
  <link rel="stylesheet"   href="../css/style.css?n=1">
  <link href="../fonts/awesome/css/all.css" rel="stylesheet">
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
  

  <script src="../js/jquery.min.js"></script>
  <script src="../js/functions.js"></script>
  <script type="text/javascript" src="../js/jquery_3.6.0.min.js"></script>
  <script src="../plugins/sweetalert2/sweetalert2.all.min.js "></script>


  
  <title>
      Invitado Du!
   </title>

    
</head>
<body>

  <?php
include "../header.php"; 
     ?>

  <main>

    <div class="contAdmin">
    
      <div class="menuAdmin">


        <section class="menuAdminSelec" id="reportes" onclick="menuAdmin('infoReportes','reportes')"><i class="fa-solid fa-file-excel"></i> <span class="nameMenuL"> Reportes<span></section>

    


      </div>

      <div class="admin_items">

        <section class="nomostrado mostrarDos" id="infoReportes">
             <form method="post" action="reporteVentas.php" id="reportForm" onsubmit="return false" name="formReport">
              <h1>Generar Reporte</h1>
              <p>Seleccione el rango de fechas en que desea generar el informe de ventas</p>
              <input type="date" name="fechaInicio" id="fechaInicio"  required> al <input type="date" name="fechaFinal" id="fechaFinal" required>
              <button  name="generarReporte" onclick="genRep()"  class="btnok"> Generar</button>

             </form>
          </section>

    </div>

  </main>  
       

</body>


</html>



