17 function viewemessage($target =
"_self", $ulink =
true, $abstract =
false)
19 include_once (
"FDL/Lib.Dir.php");
24 if (preg_match(
"/<([^>]*)>/",
$from, $erg)) {
27 $this->lay->set(
"hasphoto",
false);
30 if (count($tdir) == 1) {
35 $vphoto = $first->getRawValue(
"us_photo");
37 $photo = $first->GetHtmlAttrValue(
"us_photo");
38 $this->lay->set(
"photo", $photo);
39 $this->lay->set(
"hasphoto", ($photo !=
""));
42 $hashtml = ($this->
getRawValue(
"emsg_htmlbody") !=
"");
44 $this->lay->set(
"hashtml", $hashtml);
46 $this->lay->set(
"TO",
false);
47 $this->lay->set(
"CC",
false);
54 foreach ($recips as $k => $addr) {
55 $addr = str_replace(array(
62 if ($reciptype[$k] ==
"cc") $tcc[] = $addr;
63 elseif ($reciptype[$k] ==
"bcc") $tbcc[] = $addr;
67 if (count($tto) > 0) {
68 $this->lay->set(
"TO", implode(
"; ", $tto));
70 if (count($tcc) > 0) {
71 $this->lay->set(
"CC", implode(
"; ", $tcc));
79 if (($this->
id > 0) && ($this->doctype !=
'C') && ($aclname ==
"edit") && ($this->
getFamilyParameterValue(
"emsg_editcontrol") !=
"freeedit"))
return _(
"electronic messages cannot be modified");
80 else return parent::control($aclname,
$strict);
viewdefaultcard($target="_self", $ulink=true, $abstract=false, $viewhidden=false)
getFamilyParameterValue($idp, $def="")
getMultipleRawValues($idAttr, $def="", $index=-1)
internalGetDocCollection($dbaccess, $dirid, $start="0", $slice="ALL", $sqlfilters=array(), $userid=1, $qtype="LIST", $fromid="", $distinct=false, $orderby="title", $latest=true, $trash="", &$debug=null, $folderRecursiveLevel=2, $join= '',\SearchDoc &$searchDoc=null)
control($aclname, $strict=false)
getRawValue($idAttr, $def="")