예제 #1
0
     $thinkedit->outputcache->end();
     if ($thinkedit->outputcache->get($cache_id)) {
         $thinkedit->outputcache->remove($cache_id);
     }
     if ($new_node) {
         echo '<div class="info">Votre commentaire a bien été envoyé. Il sera ajouté d\'ici peu. Merci !</div>';
     } else {
         echo '<div class="info">Problème technique, votre commentaire n\'a pas été ajouté</div>';
     }
     //	}
     //else
     //	{
     //			echo '<div class="info">Vous n\'avez pas tapé le bon code. Veuillez réessayer afin que votre message soit posté.</div>';
     //	}
 }
 if ($form->isCancel()) {
     echo '<div class="info">Commentaire annulé</div>';
 }
 $form->setConfirmLabel('Envoyer');
 foreach ($discussion->field as $field) {
     if ($field->getType() != 'id' && $field->isUsedIn('public')) {
         $form->add('<div>');
         $form->add($field->getTitle() . ' :');
         $form->add('<br/>');
         $form->add($field->renderUi());
         $form->add('<br/>');
         $form->add('<br/>');
         $form->add('</div>');
     }
 }
 $form->add('<div>');