Пример #1
0
                <th>Aucune</th>
                <th>Débutant</th>
                <th>Intermédiaire</th>
                <th>Confirmé</th>
                <th>Expert</th>
            </tr>
        </thead>
        
        <tbody>
            
            <?php 
foreach ($user->resume->skills as $key => $competence) {
    echo "<tr><th>" . $competence->nom . "</th>";
    for ($i = 1; $i < 6; $i++) {
        echo "<td>";
        echo form_radio($competence->skill_id, $i, test_comp($user->resume->skills[$key]->score, $i));
        echo "</td>";
    }
    echo "</tr>";
}
?>
            
        </tbody>                        
    </table>
</div>

<p class="lead">Divers</p>

<div id='styles' class='well'>
    <div class='row-fluid'> 
              
Пример #2
0
                <th>Débutant</th>
                <th>Intermédiaire</th>
                <th>Confirmé</th>
                <th>Expert</th>
            </tr>
        </thead>
        
        <tbody>
            
            <?php 
foreach ($comp_list as $key => $competence) {
    echo "<tr><th>" . $competence->nom . "</th>";
    for ($i = 1; $i < 6; $i++) {
        echo "<td>";
        //if(isset($userdata->competences[$key]) && ($userdata->competence[$key]->score == $i)) { $checked = true; } else { $checked = false; }
        echo form_radio($competence->id, $i, test_comp($userdata, $key, $i));
        echo "</td>";
    }
    echo "</tr>";
}
?>
            
        </tbody>                        
    </table>
</div>

<p class="lead">Divers</p>

<div id='styles' class='well'>
    <div class='row-fluid'>