$br = new HTMpty("br"); $tableA = new HTM("table"); $tableA->attr("border", "0"); $tableA->attr("align", "center"); $tableA->attr("cellspacing", "0"); $tableA->attr("cellpadding", "2"); $tableA->attr("width", "250"); $trA = new HTM("tr"); $tdA = new HTM("td"); $tdA->attr("class", "blank"); $tdA->html($lib->createInfoBox($command)); $trA->cont($tdA); $tableA->cont($trA); $trA = new HTM("tr"); $tdA = new HTM("td"); $tdA->cont(EvalCommon::createTitle(_("Antwortenvorlagen"), NULL, 2)); $trA->cont($tdA); $tableA->cont($trA); $trA = new HTM("tr"); $tdA = new HTM("td"); $table = new HTM("table"); $table->attr("border", "0"); $table->attr("align", "center"); $table->attr("cellspacing", "0"); $table->attr("cellpadding", "3"); $table->attr("width", "100%"); $tr = new HTM("tr"); $td = new HTM("td"); $td->attr("class", "table_row_even"); if (!$command || $command == "back") { /* the template selection lists --------------------------------------- */
$userID = StudipObject::createNewID(); } else { $userID = $auth->auth["uid"]; } /* ---------------------------------------------------------- end: variables */ $br = new HTMpty("br"); /* Surrounding Form -------------------------------------------------------- */ $form = new HTM("form"); $form->attr("action", URLHelper::getLink(Request::url())); $form->attr("method", "post"); $form->html(CSRFProtection::tokenTag()); if (Request::isXHR()) { header('X-Title:' . _("Stud.IP Online-Evaluation")); } else { // TODO: This should use Assets::img() but on the other hand it should also use templates $titlebar = EvalCommon::createTitle(_("Stud.IP Online-Evaluation"), Icon::create('test', 'info_alt')->asImagePath()); $form->cont($titlebar); } /* Surrounding Table ------------------------------------------------------- */ $table = new HTM("table"); $table->attr("border", "0"); $table->attr("align", "center"); $table->attr("cellspacing", "0"); $table->attr("cellpadding", "3"); $table->attr("width", "100%"); $table->attr("class", "table_row_even"); /* count mandatory items */ $mandatories = checkMandatoryItems($eval); $answers = Request::quotedArray('answers'); /* ------------------------------------------------------------------------- */ if ($votedNow) {