32 $this->lay->set(
"V_PUBM_BODY", str_replace(
"[",
"[", $this->lay->get(
"V_PUBM_BODY")));
34 $uid = getHttpVars(
"uid");
37 if ($udoc->isAlive()) {
38 $listattr = $udoc->GetNormalAttributes();
40 foreach ($listattr as $k => $v) {
41 $value = $udoc->getValue($v->id);
43 if (
$value || ($v->type ==
"image")) $this->lay->Set(strtoupper($v->id) , $udoc->GetHtmlValue($v,
$value, $atarget, $ulink));
44 else $this->lay->Set(strtoupper($v->id) ,
false);
58 $listattr = $udoc->GetNormalAttributes();
59 foreach ($listattr as $k => $v) {
61 "aid" =>
"[" . strtoupper($k) .
"]",
62 "alabel" => str_replace(
"'",
"\\'", $v->getLabel())
65 $listattr = $udoc->GetFileAttributes();
66 foreach ($listattr as $k => $v) {
67 if ($v->type ==
"image") {
69 "aid" =>
"<img src=\"[" . strtoupper($k) .
"]\">",
70 "alabel" => str_replace(
"'",
"\\'", $v->getLabel())
74 "aid" =>
"<a href=\"[" . strtoupper($k) .
"]\">" . $v->getLabel() .
"</a>",
75 "alabel" => str_replace(
"'",
"\\'", $v->getLabel())
79 $this->lay->set(
"famattr", sprintf(_(
"%s attribute") , $this->
getValue(
"pubm_fam",
"personne")));
80 $this->lay->setBlockData(
"ATTR", $tatt);
93 $body = $this->
getValue(
"pubm_body");
94 $zonebodycard =
"FDL:FDL_PUBPRINTONE:S";
101 if (preg_match(
"/\[[a-z]+_[a-z0-9_]+\]/i", str_replace(
"[",
"[", $body))) {
102 foreach (
$t as $k => $v) {
103 $zoneu = $zonebodycard .
"?uid=" . $v[
"id"];
105 "doc" => $this->
viewDoc($zoneu,
"",
true) ,
106 "subject" => $v[
"title"]
110 $laydoc = $this->
viewDoc($zonebodycard,
"",
true);
112 foreach (
$t as $k => $v) {
115 "subject" => $v[
"title"]
119 if (
$err) $action->AddWarningMsg(
$err);
120 if (count(
$t) == 0) $action->AddWarningMsg(_(
"no available persons found"));
122 $this->lay->setBlockData(
"DOCS", $tlay);
137 include_once (
"FDL/mailcard.php");
140 $body = $this->
getValue(
"pubm_body");
143 $mailattr = strtolower($this->
getValue(
"PÜBM_MAILATT",
"us_mail"));
146 $zonebodycard =
"FDL:FDL_PUBSENDMAIL:S";
147 if (preg_match(
"/\[[a-z]+_[a-z0-9_]+\]/i", $body)) {
148 foreach (
$t as $k => $v) {
149 $mail =
getv($v, $mailattr);
151 $zoneu = $zonebodycard .
"?uid=" . $v[
"id"];
156 "name" => $v[
"title"],
158 "color" => (
$err) ?
"#ea4c4c" :
"#7df89d",
165 foreach (
$t as $k => $v) {
166 $mail =
getv($v, $mailattr);
167 if ($mail !=
"") $tmail[] = $mail;
170 $bcc = implode(
",", $tmail);
176 "color" => (
$err) ?
"#ea4c4c" :
"#7df89d",
180 if (
$err) $action->AddWarningMsg(
$err);
181 $this->lay->setBlockData(
"MAILS",
$tout);
191 $this->lay->set(
"dirid", $this->
id);
201 foreach (
$t as $k => $v) {
203 "udocid" => $v[
"id"],
204 "utitle" => $v[
"title"]
210 $this->lay->setBlockData(
"DOCS", $tlay);
211 $this->lay->set(
"dirid", $this->
id);