20 include_once (
"FDL/Class.Doc.php");
 
   21 include_once (
"FDL/Class.DocAttr.php");
 
   23 include_once (
"FDL/freedom_util.php");
 
   30     $docid = GetHttpVars(
"id");
 
   31     $abstract = (GetHttpVars(
"abstract", 
'N') == 
"Y"); 
 
   37     $listattr = 
$doc->GetNormalAttributes();
 
   39     foreach ($listattr as $k => $v) {
 
   44         if ($v->mvisibility != 
"H") {
 
   46             if ($abstract && !$v->isInAbstract) {
 
   47                 $action->lay->
Set(
"V_" . $v->id, 
"");
 
   48                 $action->lay->
Set(
"L_" . $v->id, 
"");
 
   50                 $action->lay->
Set(
"V_" . strtoupper($v->id) , $htmlval ? 
$doc->GetHtmlValue($v, 
$value, 
"_self", $htmllink) : 
$value);
 
   51                 $action->lay->
Set(
"L_" . strtoupper($v->id) , $v->getLabel());
 
   56     $listattr = 
$doc->GetFieldAttributes();
 
   58     foreach ($listattr as $k => $v) {
 
   60         $action->lay->
Set(
"L_" . strtoupper($v->id) , $v->getLabel());
 
viewattr(Action &$action, $htmlval=true, $htmllink=true)
new_Doc($dbaccess, $id= '', $latest=false)