19 include_once (
"FDL/Class.Doc.php");
47 $to = str_replace(
"\n",
",",
$to);
48 $to = str_replace(
'\n',
",",
$to);
49 $ts = explode(
",",
$to);
50 $tt = array_fill(0, count($ts) ,
"to");
53 $ts = array_merge($ts, explode(
",",
$cc));
54 $tt = array_merge($tt, array_fill(0, count(explode(
",",
$cc)) ,
"cc"));
56 setHttpVar(
"mail_recip", $ts);
57 setHttpVar(
"mail_copymode", $tt);
69 if ($zone ==
"") $zone =
$doc->defaultmview;
70 $zo =
$doc->getZoneOption(
"$zone");
72 $action->lay->Set(
"binarymode", ($zo ==
"B"));
74 $engine =
$doc->getZoneTransform($zone);
75 if ($engine ==
"pdf")
$action->lay->Set(
"iconmime",
$action->getImageUrl(
"mime-pdf.png"));
76 else $action->lay->Set(
"iconmime",
$action->getImageUrl(
"mime-document2.png"));
81 $action->lay->Set(
"ulink", $ulink);
82 $action->lay->Set(
"mzone", $zone);
83 $action->lay->Set(
"dochead", $dochead);
85 $action->lay->set(
"VIEWDOC", $viewdoc);