17 include_once (
"FDL/Class.Doc.php");
32 include_once (
"FDL/editutil.php");
35 $docid = GetHttpVars(
"mid");
36 $zone = GetHttpVars(
"mzone");
37 $ulink = GetHttpVars(
"ulink");
38 $dochead = GetHttpVars(
"dochead");
39 $viewdoc = (GetHttpVars(
"viewdoc",
"Y") ==
"Y");
41 $from = GetHttpVars(
"_mail_from",
"");
42 $to = GetHttpVars(
"mail_to");
43 $cc = GetHttpVars(
"mail_cc");
48 $to = str_replace(
"\n",
",",
$to);
49 $to = str_replace(
'\n',
",",
$to);
50 $ts = explode(
",",
$to);
51 $tt = array_fill(0, count($ts) ,
"to");
54 $ts = array_merge($ts, explode(
",",
$cc));
55 $tt = array_merge($tt, array_fill(0, count(explode(
",",
$cc)) ,
"cc"));
57 setHttpVar(
"mail_recip", $ts);
58 setHttpVar(
"mail_copymode", $tt);
70 $action->parent->setVolatileParam(
"overrideICreate",
"true");
71 if ($zone ==
"") $zone =
$doc->defaultmview;
72 $zo =
$doc->getZoneOption(
"$zone");
74 $action->lay->
Set(
"binarymode", ($zo ==
"B"));
76 $engine =
$doc->getZoneTransform($zone);
77 if ($engine ==
"pdf") $action->lay->
Set(
"iconmime", $action->parent->getImageLink(
"mime-pdf.png"));
78 else $action->lay->
Set(
"iconmime", $action->parent->getImageLink(
"mime-document2.png"));
81 $action->lay->eSet(
"from",
$from);
82 $action->lay->
Set(
"mid",
$doc->id);
83 $action->lay->eSet(
"ulink", ($ulink ? $ulink :
"Y"));
84 $action->lay->eSet(
"mzone", $zone);
85 $action->lay->eSet(
"dochead", $dochead);
86 $action->lay->
Set(
"title",
$doc->getHTMLTitle());
87 $action->lay->set(
"VIEWDOC", $viewdoc);
editmail(Action &$action)
getMailAddr($userid, $full=false)
exitError($texterr, $exit=true, $code="")
new_Doc($dbaccess, $id= '', $latest=false)
editmode(Action &$action)
if($file) if($subject==""&&$file) if($subject=="") $err