Пример #1
0
                                <td>
                                    <button class="btn-mini btn-info" style="margin-bottom:10px" type="button" onclick="ventana('familiar.php?f=0')"><i class="icon-search icon-white"></i></button>
                                </td>
                                 <td width="200px">
                                    <input type="text" style="width:200px" value="<?php 
    print $Datos_Participante_familiar[$j]['nombrefam'];
    ?>
" name="nombrefam[]" id="cam_nombrefam0" readonly/>
                                </td>
                                 <td width="120px">
                                    <select name="parentescofam[]" style="width:120px" onchange="validar_parentesco(this);" id="cam_parentescofam" >
                                        <option value="">-</option>
                                        <?php 
    require_once '../clases/clase_parentesco.php';
    $lobjParentesco = new clsParentesco();
    $laParentescos = $lobjParentesco->consultar_parentescos();
    for ($i = 0; $i < count($laParentescos); $i++) {
        echo '<option value="' . $laParentescos[$i][0] . '"';
        if ($Datos_Participante_familiar[$j]['idparentesco'] == $laParentescos[$i][0]) {
            echo 'selected';
        }
        echo '>' . $laParentescos[$i][1] . '</option>';
    }
    ?>
                                    </select>
                                </td>
                                <td width="150px" align="center">
                                    <input type="checkbox" name="representantefam[]" <?php 
    if ($Datos_Participante_familiar[$j]['representante'] == '1') {
        echo 'checked';
    }