コード例 #1
0
ファイル: question.php プロジェクト: rakotobe/Rakotobe
            <th><a href="?order=obligatoire">Obligatoire</a></th>
            <th><a href="?order=rang">Rang</a></th>
            <th><a href="?order=etat">Publi&eacute;</a></th>
            <th>Modif</th>
            <th title="suppr"> Suppr </th>
          </tr>
          <?php
		  $i = 0; 
		  while ($question = mysql_fetch_array($r_question)) {		
	      ?>
          <tr>
            <td><?php echo $question['id'] ?></td>
            <td><?php echo $question['nom'] ?></td>
            <td align="center"><?php echo str_replace('|', '<br />', $question['choix']) ?></td>
            <td align="center"><?php echo $question['type'] ?></td>
            <td align="center"><?php echo CFunction::get_bool($question['obligatoire']) ?></td>
            <td align="center" nowrap="nowrap"><?php echo CHtmlSession::get_rang('question', $question['id'], $idreda) ?></td>
            <td align="center"><?php echo CHtmlSession::get_etat($question['id'], $question['etat'], $idreda) ?></td>
            <td align="center"><?php echo CHtmlSession::get_editbutton($question['id'], 1) ?></td>
            <td align="center"><?php echo CHtmlSession::get_delbutton($a, $question['id'], $id, $idreda) ?></td>
          </tr>
          <?php } ?>
        </table>
        <?php } ?>
        <?php 
//----------------------------------------------------------------------------------------------
// AJOUT
//----------------------------------------------------------------------------------------------
?>
        <?php if($a == 4) { ?>
        <form id="form_ajout" method="post" action="question.php">