<?php
ob_start();
ini_set('session.gc_maxlifetime', 14400);
session_set_cookie_params(14400);
session_start();

if (!isset($_SESSION["nombre"]))
{
    header("Location: ../../login/login.php");
}
else
{
    require '../header.php';

if($_SESSION['pago']==1){

?>

            <div class="content-wrapper">
                <!-- Breadcrumb Section -->
                <section class="content-header">
                    <div class="container-fluid">
                        <div class="row">
                            <div class="col-sm-12">
                                <nav aria-label="breadcrumb">
                                    <ol class="breadcrumb">
                                        <li class="breadcrumb-item">
                                            <a href="#"><i class="fas fa-home"></i> Panel</a>
                                        </li>
                                        <li class="breadcrumb-item active" aria-current="page">
                                            <a href="list.php">
                                                <i class="module-icon"></i> Pago
                                            </a>
                                        </li>
                                    </ol>
                                </nav>
                            </div>
                          
                            <div class="col-sm-12" style="margin-top: 20px;">
                                <div class="card  ">
                                    <div class="card-header bg-primary">
                                        <h3 class="card-title">
                                            <i class="fas fa-search"></i>
                                            Listado de Pago Verificar
                                        </h3>
                                    </div>
                                    <div class="card-body" style="display: block;">
                                        <div class="container-fluid">
                                            <br>
                                            <table style="width:100%;" class="table table-bordered" id="producto">
                                                <thead>
                                                <tr>
                                                <th>Nombre Cliente</th>
                                                <th>Monto</th>
                                                <th>Banco</th>                            
                                                <th>Nro Operacion</th>
                                                <th>Fecha Pago</th>
                                                <th>Imagen</th>
                                                <th>Estado Pago</th>
                                                <th>Opciones</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </section>                
            </div>

            <div class="modal fade" id="modal_imagen" tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true">
                <div class="modal-dialog modal-xs" role="document">
                    <div class="modal-content">
                        <div class="modal-header bg-dark">
                            <h5 class="modal-title" id="modalLabel">Detalle Imagen</h5>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Cerrar">
                                <span aria-hidden="true">&times;</span>
                            </button>
                        </div>
                        <form id="fmrimagen">
                            <div class="modal-body">
                                <div class="row">
                                <div class="col-12 col-sm-12 col-md-12">
                                        <div class="form-group">
                                            <input type="hidden" name="idverificar" id="idverificar">
                                            <img src="" width="460px" height="400px" id="imagenvoucher"
                                            style="border: 2px solid #ddd;border-radius: 5px;padding: 5px;cursor: pointer;border-color:rgb(7, 7, 7); ">                                    
                                        </div>
                                    </div>
                                    <div class="col-12 col-sm-6 col-md-6">
                                        <div class="form-group">
                                            <label >Banco:</label>
                                            <select class="form-control" name="idbanco" id="idbanco" >   
                                            </select>                                     
                                        </div>
                                    </div>
                                    <div class="col-12 col-sm-6 col-md-6">
                                        <div class="form-group">
                                            <label >Numero de Operacion:</label>
                                            <input class="form-control" name="nroperacion" id="nroperacion" name="nroperacion">                                        
                                        </div>
                                    </div>
                                    <div class="col-12 col-sm-6 col-md-6">
                                        <div class="form-group">
                                            <label >Fecha:</label>
                                            <input class="form-control" type="date" id="fecha" name="fecha" >                                        
                                        </div>
                                    </div>
                                    <div class="col-12 col-sm-6 col-md-6">
                                        <div class="form-group">
                                            <label >Hora:</label>
                                            <input class="form-control" type="time" id="hora" name="hora">                                        
                                        </div>
                                    </div>
                                    <div class="col-12 col-sm-12 col-md-12">
                                        <div class="form-group">
                                            <label >Motivacion de Modificacion:</label>
                                            <input class="form-control" name="motivo" id="motivo" placeholder="Motivo">                                        
                                        </div>
                                    </div>
                                </div>
                            </div>
                                <div class="modal-footer">
                                
                                    <button type="button" class="btn btn-dark btn-flat" data-dismiss="modal" id="btnGuardar"> <i class="fas fa-times"></i> Cerrar</button>
                                    <button type="submit" id="btnImagen" class="btn btn-danger btn-flat"> <i class="fas fa-save"></i> Actualizar Registro</button>
                                </div>
                               
                            </div>
                        </form>
                    </div>
                </div>
            </div>


               
<?php
}
require '../footer.php';
?>
<script type="text/javascript" src="../../scripts/pago.js"></script>
<?php 
}
ob_end_flush();
?>