id; } else { $objQuestion = Question :: getInstance($_REQUEST['answerType']); $action = api_get_self()."?modifyQuestion=".$modifyQuestion."&newQuestion=".$newQuestion; } if(is_object($objQuestion)) { /********************* * FORM STYLES *********************/ // if you have a better way to improve the display, please inform me e.marguin@elixir-interactive.com $styles = ' '; echo $styles; /********************* * INIT FORM *********************/ $form = new FormValidator('question_admin_form','post',$action); /********************* * FORM CREATION *********************/ $objQuestion -> createForm ($form,array('Height'=>150)); $objQuestion -> createAnswersForm ($form); $form->addElement('style_submit_button','submitQuestion',get_lang('CreateModif'), 'class="save"'); $renderer = $form->defaultRenderer(); $renderer->setElementTemplate('