17 include_once (
"FDL/Class.Dir.php");
26 $docid = GetHttpVars(
"docid");
28 if (
$docid ==
"")
$action->exitError(_(
"no document reference"));
30 if (!
$doc->isAlive())
$action->exitError(sprintf(_(
"unknow document reference '%s'") , GetHttpVars(
"docid")));
35 $answers =
$doc->getWasks();
39 foreach ($answers as $ans) {
40 $wask = new_doc(
$dbaccess, $ans[
"waskid"]);
41 $t = $wask->getArrayRawValues(
"was_t_answer");
42 foreach ($t as $k => $v) {
43 $t[$k][
"waskid"] = $wask->id;
44 $t[$k][
"checked"] = ($ans[
"key"] == $v[
"was_keys"]);
46 $action->lay->setBlockData(
"OPTIONS" . $wask->id, $t);
48 $title.= $wask->getTitle();
52 "waskid" => $wask->id,
53 "ask" => $wask->getRawValue(
"was_ask")
56 $action->lay->setBlockData(
"WASK", $tw);
57 $action->parent->AddJsRef(
"FDL:viewdoc.js",
true);
new_Doc($dbaccess, $id= '', $latest=false)
if($file) if($subject==""&&$file) if($subject=="") $err