17 include_once (
"FDL/Class.DocFam.php");
22 $docid = GetHttpVars(
"famid");
25 if (
$doc->isAlive()) {
27 $listattr =
$doc->GetNormalAttributes();
28 foreach ($listattr as $k => $v) {
30 "aid" =>
"[V_" . strtoupper($k) .
"]",
31 "alabel" => str_replace(
'"',
'\\"', $v->getLabel())
34 $listattr =
$doc->GetFileAttributes();
35 foreach ($listattr as $k => $v) {
36 if ($v->type ==
"image") {
38 "aid" =>
"<img src='[V_" . strtoupper($k) .
"]'>",
39 "alabel" => str_replace(
'"',
'\\"', $v->getLabel())
43 "aid" =>
"<a href='[V_" . strtoupper($k) .
"]'>" . $v->getLabel() .
"</a>",
44 "alabel" => str_replace(
'"',
'\\"', $v->getLabel())
49 $action->lay->set(
"DOCATTR", json_encode($tatt));
fckdocattr(Action &$action)
new_Doc($dbaccess, $id= '', $latest=false)