Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/08/2003, 21:15
leonardop
 
Fecha de Ingreso: julio-2003
Mensajes: 165
Antigüedad: 20 años, 9 meses
Puntos: 1
Hola Chuty,

Bueno, en realidad no estoy muy seguro de qué es lo que tienes en mente exactamente, pero inicialmente se me ocurre algo de este tipo:

Código:
<?php

$ResultmatrizLeg = array (
    array (
        'GRUPO_00A '  => 'GRUPO A ',
        'RELACION_O ' => 'CONJUNTAMENTE CON ',
        'GRUPO_00B '  => 'GRUPO B ',
        'GRUPO_00C '  => 'GRUPO C '),

    array (
        'GRUPO_00B '  => 'GRUPO B ',
        'RELACION_Y ' => 'OBLIGATORIO CON ',
        'GRUPO_00D '  => 'GRUPO D ',
        'GRUPO_00E '  => 'GRUPO E '));


echo "<table border=\"1\">\n";  // Tabla principal

foreach ($ResultmatrizLeg as $indice => $r) {
    echo " <tr>\n  <td>\n";

    echo "   <input type=\"checkbox\" name=\"matriz$indice\" " .
        "value=\"1\"><em>Matriz $indice</em><br /><br />\n";

    echo "   <table border=\"0\">\n";  // Tabla anidada...

    foreach($r as $k => $d) {
        $Key_campo = substr ($k, 7);
        echo "    <tr>\n<td>$Key_campo</td><td>$d</td>\n    </tr>\n";
    }
    echo "</table>\n";

    echo "  </td>\n </tr>\n";
}

echo "</table>\n";


?>
Quizás resulte útil en principio... Por supuesto, si necesitas que sea diferente en alguna forma, podemos ir retocando el ejercicio. :)

Un cordial saludo