<?php
ob_start();
session_start();

if (!isset($_SESSION["nombre"]))
{
  header("Location: index.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>
                                            Movimientos por Actualizar Linea 
                                        </h3>
                                    </div>
                                    <div class="card-body" style="display: block;">
                                        <div class="container-fluid">
                                            <div class="row">
                                                <div class="form-group col-lg-6 col-md-5 col-sm-5 col-xs-12">
                                                       <button class="btn btn-danger btn-flat" style="margin-bottom:-10px" onclick="actualizar_procesados(event)"><i class="fa fa-refresh"></i> Actualizar Linea</button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="card-body" style="display: block;">
                                        <div class="container-fluid">
                                            <br>
                                            <table style="width:100%;" class="table table-bordered" id="pendiente">
                                                <thead>
                                                <tr>
                                                <th>Nombre Cliente</th>
                                                <th>Nro Contrato</th>
                                                <th>Situacion Contrato</th>                            
                                                <th>Mensualidad</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </section>                
            </div>

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