Example #1
0
                    .draw();
            }
        } );
    } );
} );
        </script>
         
    </head>
    <body>  
        
        <div class="col-sm-10">
           <?php 
$dao = new dao(DB_HOST, DB_USER_CREATOR, DB_PASSWORD_CREATOR, DB_NAME);
$dao->conectar();
$rutina = new daoRutina($dao);
$arreglo = $rutina->buscarRutinasTodo();
TablaReporte($arreglo, $rutina);
function TablaReporte($cArreglo, $rutina)
{
    echo '<table id="reporte" class="display" cellspacing="0" width="100%"> ' . '<thead style="display: table-row-group"><tr><th>' . "TIPO EJERCICIO" . '</th><th>' . "NOMBRE EJERCICIO" . '</th> <th>' . "NIVEL" . '</th> <th>' . "DESCRIPCION" . '</th> <th>' . "AGREGAR" . '</th> </tr></thead>
                        <tfoot  style="display: table-header-group">
            <tr>
                <th>tipo ejercicio</th>
                <th>nombre ejercicio</th>
                <th>nivel</th>
                <th>descripcion</th>
                <th>agregar</th>
            </tr>
        </tfoot>    
                    <tbody>';
    foreach ($cArreglo as $posicion => $valor) {