<?php include 'reportes.php'; $client = new Reporte(); $usuario = $_GET; $count = $client->countEncUsuario($_GET); // $count =8001; if ($count == 0 || $count == null) { ?> <p><span> <span class="glyphicon glyphicon-warning-sign" style="font-size:16px;"></span> Aún no existen registros para generar descargar. </span></p> <?php } else { ?> <div class="col-lg-12"> <p><span>A continuacion se previsualizan los reportes generados de la consulta. De clic en el icono <span class="glyphicon glyphicon-download" style="font-size:16px;"></span> para descargar. </span></p> <table class="table table-condensed table-striped" > <thead> <tr> <th>#</th> <th>Reporte</th> <th>Descarga</th> </tr> </thead> <tbody id="reportes"></tbody> </table> </div> <script> var totalRegistros = parseInt("<?php echo $count; ?> "); // convertir en int