Ejemplo n.º 1
0
            }
        } );
    } );
} );
        </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) {
        $i = 1;
Ejemplo n.º 2
0
            <?php 
$conn = new ConexionDB($_SESSION['usuario_login'], $_SESSION['password_login']);
$cSolicitud = new ControlSolicitud();
$cEstudiante = new ControlEstudiante();
$cConvocatoria = new ControlConvocatoria();
$cFacultad = new ControlFacultad();
$cPersona = new ControlPersona();
$cCondicionxsolicitud = new ControlCondicionxSolicitud();
$cCondicion_SE = new ControlCondicion_SE();
$A = new Condicion_SE();
if ($conn->conectarDB()) {
    $sesion = $conn->getConn();
    $_SESSION['sesion_logueado'] = $sesion;
    //            if(!isset($_POST['categoria']) || ($_POST['categoria']=="Todos")){
    //                echo '<br><br>';
    TablaReporte($cSolicitud, $cEstudiante, $cConvocatoria, $cFacultad, $cPersona);
    $persona = new Persona();
    $persona = $cPersona->buscarPersonaxUsuario($_SESSION['usuario_login']);
    if ($persona->getTipo_persona() == 'Estudiante') {
        echo '<script language="javascript">window.location="menu.php"</script>';
    }
    //            }
    //            else{
    //                echo '<SELECT name="subcategoria" SIZE="1" onchange="" class="col-sm-2"><OPTION VALUE="estadoValidado">Estado</option><OPTION VALUE="Puntaje">Puntaje</option><OPTION VALUE="Codigo">Codigo Estudiante</option><OPTION VALUE="Periodo">Periodo</option></SELECT><br><br> ';
    //
    //                if(!isset($_POST['subcategoria'])){
    //                    TablaReporte($cSolicitud,$cEstudiante,$cConvocatoria,$cFacultad,$cPersona);
    //                }
    //                else{
    //                    if(($_POST['subcategoria']=="estadoValidado")){
    //