<?php 
session_start();

if(isset($_SESSION['estado_user'])=='ACTIVO' AND $_SESSION['tipo_user']){
include 'incluciones/header.php';

include 'incluciones/Db.php';
require_once "Model/viajeModel.php";
?>


<main>
    <div class="container-fluid"> <br>
        
        <div class="row" style="margin-top: 1%;">
            <div class="col-xl-12">
                <div class="card mb-4">
                    <div class="card-header" style="background: #BDBDBD;">
                        <div class="row">
                            <div class="col-md-6">
                                <i class="fas fa-list"></i>
                                Reportes de viajes 
                            </div>
                            <div class="col-md-6">
                                <div class="row">
                                    <div class="col-md-12">
                                        <form name="" action="" method="POST" autocomplete="off" style="margin-right: 0px;">
                                            <div class="form-group row">
                                                <div class="col-md-3">
                                                    <input type="text" name="numDoc_per" id="filtrar" class="form-control" placeholder="C.I.">
                                                </div>
                                                <div class="col-md-3">
                                                    <input type="date" name="fechaReg_viajInicio" class="form-control">
                                                </div>
                                                <div class="col-md-3">
                                                    <input type="date" name="fechaReg_viajFin" class="form-control">
                                                </div>
                                                <div class="col-md-3">
                                                    <span class="input-group-btn">
                                                        <button type="submit" class="btn btn-primary"   name="buscador"> Buscar </button>
                                                    </span>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="card-body">
                        <?php
                        include 'Controller/viajeReporteController.php';
                        ?>
                    </div>
                </div>
            </div>
        </div>
        
    </div>
</main>

                
<?php
include 'incluciones/footer.php';
}else{
    header('location:../../index.php');
}
?>