<?php if ($_POST) { switch ($_POST['opcion']) { case 'finanzas': include_once "../controller/cContratos.php"; $cContratos = new cContratos(); echo $cContratos->listaConvenios($_POST['fecha_inicio'], $_POST['fecha_fin'], $_POST['activo']); sleep(1); break; case 'nuevoConvenio': include_once "../controller/cContratos.php"; $cContratos = new cContratos(); $datos = $cContratos->getContratosVig($_POST['fecha_inicio'], $_POST['fecha_fin'], $_POST['activo']); ?> <table id="example" class="table table-hover table-striped" data-page-length='15'> <thead> <tr> <th>Clave persona</th> <th>Clave expedente</th> <th>Folio de Contrato</th> <th>Nombre/Razón</th> <th>Fecha del Contrato</th> <th>Monto</th> <th>Plazo(meses)</th> <th>Acciones</th> </tr> </thead> <tbody style="text-transform: uppercase;"> <?php while ($row = $datos->NextRow()) {
<div class="col-lg-1"> <div class="form-group"> <label style="visibility: hidden">visibe</label> <p class="btn btn-primary" onclick="filtrar()"> FILTRAR </p> </div> </div> </div> </div> <div style="display: block;" class="grid-body " id="contenedorPP"> <div class="dataTables_wrapper form-inline"> <?php include_once "../controller/cContratos.php"; $contratos = new cContratos(); $contratos->listaConvenios($inicio, $fin, 'true'); ?> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <!-- fin -->