Ejemplo n.º 1
0
 /**
  * createEvaluation: generate the evaluation itself (questions and answers)
  * @param   the evaluation
  * @returns a table row
  */
 function createEvaluation($tree)
 {
     $tr = new HTM("tr");
     $td = new HTM("td");
     $td->attr("class", "table_row_even");
     $td->html("<hr noshade=\"noshade\" size=\"1\">\n");
     ob_start();
     $tree->showTree();
     $html = ob_get_contents();
     ob_end_clean();
     $td->html($html);
     $td->setTextareaCheck();
     $tr->cont($td);
     return $tr;
 }