case "editfree_scale": $question = new EvaluationQuestion(Request::option('template_editfree_scale'), NULL, EVAL_LOAD_ALL_CHILDREN); $td->cont($lib->createTemplateFormFree($question)); break; case "back": $td->cont(" "); break; } $tr->cont($td); $table->cont($tr); $tdA->cont($table); $trA->cont($tdA); $tableA->cont($trA); } /* Javascript function for preview-link */ $js = EvalCommon::createEvalShowJS(YES); /* --------------------------------------------------------------------- */ return $js->createContent() . $tableA->createContent(); /* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */ function save1($myuserid) { $mineexists = 0; /*Existiert Question/Template schon?*/ $qdb = new EvaluationQuestionDB(); if (!$template_id) { $template_id = Request::option("template_id"); } if ($qdb->exists($template_id)) { $question = new EvaluationQuestion($template_id, NULL, EVAL_LOAD_ALL_CHILDREN); if ($question->getParentID() != $myuserid) {