예제 #1
0
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Formulaire de contact</title>
<script type="text/javascript" src="../plug/prototype/prototype.js"></script>
<script type="text/javascript" src="../ajax/script.js"></script>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="question-wrap" style="overflow: hidden; width: 300px;">
<form  id="form" method="post">
  <div id="msginfo"></div>
  <p>
    <input type="hidden" name="id_page" id="id_page" value="<?php echo $id_page ?>"/>
  </p>
  <?php echo CFormQuestion::get_elements(); ?>
  <p>
    <label id="label_image">Code de s&eacute;curit&eacute;</label>
    <img src="/plug/captcha/secure.php?fake=<?php echo md5(microtime()); ?>" alt="CAPTCHA Image" />
  </p>
  <p>
    <label id="label_code">R&eacute;p&eacute;tez le code</label>
    <input type="text" name="code" id="code" size="8" />
  </p>
  <p class="last">
    <label id="label_submiter">&nbsp;</label>
    <input class="bouton floatleft" name="submit" id="submiter" type="button" value="Enregistrer" onclick="envoyer()"/>
  </p>
</form>
</div>
</body>
예제 #2
0
 <p> <?php echo CForm::get_hidden(55) ?> </p>
 <p> <?php echo CForm::get_hidden($id, 'id') ?> </p>
 <fieldset>
   <legend>Formulaire de modification de Question </legend>
   <p>
     <label>Question </label>
     <input name="nom" type="text" value="<?php echo $nom ?>" />
     <?php echo CHtml::get_msginfo($error_signe['nom'])?> </p>
 	<p>
     <label>R&eacute;p.  possibles </label>
     <input name="choix" type="text" value="<?php echo $choix ?>" />
     <?php echo CHtml::get_msginfo($error_signe['choix'])?></p>
   <p>
     <label>Choix</label>
     <select name="type">
       <?php echo CFormQuestion::get_option($type, $id); ?>
     </select>
     <?php echo CHtml::get_msginfo($error_signe['type'])?> </p>
   <p>
     <label>Obligatoire </label>
     <input  type="radio" name="obligatoire" value="0" <?php echo CForm::get_checked($obligatoire,0) ?> />
     non
     <input  type="radio" name="obligatoire" value="1" <?php echo CForm::get_checked($obligatoire,1) ?> />
     oui<?php echo CHtml::get_msginfo($error_signe['obligatoire'])?></p>
   <p>
     <label>Publier </label>
     <input  type="radio" name="etat" value="0" <?php echo CForm::get_checked($etat,0) ?> />
     non
     <input  type="radio" name="etat" value="1" <?php echo CForm::get_checked($etat,1) ?> />
     oui<?php echo CHtml::get_msginfo($error_signe['etat'])?></p>
   <p>