Un ENORME merci à tous pour votre aide et aiguillage.
Voici le code que j'ai mis :
foreach ($options as $oID => $op_data) {
$maxlength = ( $op_data['length'] > 0 ? ' maxlength="' . $op_data['length'] . '"' : '' );
$code_html = '<input type="text" name="id[' . $oID . '][t]"' . $maxlength . ' onFocus="javascript:this.value=\'\'"/>' . $op_data['name'] . ':' . ($op_data['instructions'] != '' ? '<br /><span class="smallText">' . $op_data['instructions'] . '</span>' : '' );
switch ($op_data['type']) {
case 1:
$a_cacher[] = $code_html;
break;
case 4:
$a_afficher[] = $codehtml;
...reste de code
break;
case 3:
$a_afficher[] = $codehtml;
...reste de code
break;
case 2:
$a_afficher[] = $codehtml;
...reste de code
break;
case 0:
$a_afficher[] = $codehtml;
...reste de code
break;
} //end of switch
} //end of foreach
foreach($a_afficher as $codehtml)
echo $codehtml;
echo '<tr><td><div class="clicTitre"><a onclick="afficheId(\'contenu\');">Option pour demande d\'offre</a></div><div class="contenant" id="contenu"><div class="clicCacher"><a onclick="cacheId(\'contenu\');">Fermer</a></div>';
echo "<script type='text/javascript'>";
echo " cacheId('contenu');";
echo "</script>";
foreach($a_cacher as $code_html)
echo $code_html;
echo '</div></td></tr>';
ET CA MARCHE en plus !MERCI ENCORE UNE FOIS