$sq->create($question, $question_type); $msg = _('Question Added'); } /* Error */ if ($sq->isError()) { $msg = $sq->getErrorMessage(); form_release_key(getStringFromRequest("form_key")); } echo "<h3>" . $msg . "</h3>"; /* Add now Question */ $sq = false; } } /* Show Add/Modify form * If $question is null it is add form, otherwise modify */ echo $sh->showAddQuestionForm($sq); /* Show existing questions */ $sqf = new SurveyQuestionFactory($g); $sqs =& $sqf->getSurveyQuestions(); if (!$sqs) { echo _('No questions found'); } else { echo $sh->showQuestions($sqs); } $sh->footer(array()); // Local Variables: // mode: php // c-file-style: "bsd" // End: