25 $action->parent->AddCssRef(
"USERCARD:faddbook.css",
true);
28 $img = $this->getValue(
"us_photo");
30 $this->lay->set(
"hasPhoto",
false);
32 $this->lay->set(
"hasPhoto",
true);
33 $imgu = $this->GetHtmlValue($this->getAttribute(
"us_photo") ,
$img);
34 $this->lay->set(
"photo", $imgu);
37 $this->lay->set(
"nom", $this->getValue(
"us_lname"));
38 $this->lay->set(
"prenom", $this->getValue(
"us_fname"));
40 $soc = $this->getValue(
"us_society");
41 $this->lay->set(
"hasSoc", ($soc !=
"" ?
true :
false));
42 $this->lay->set(
"societe", $soc);
44 $mail = $this->getValue(
"us_mail");
45 $this->lay->set(
"hasMail", ($mail !=
"" ?
true :
false));
46 $this->lay->set(
"addmail", $mail);
48 $mob = $this->getValue(
"us_mobile");
49 $this->lay->set(
"nomob", $mob);
50 $this->lay->set(
"hasMob", ($mob !=
"" ?
true :
false));
52 $tel = $this->getValue(
"us_phone");
53 $this->lay->set(
"notel", $tel);
54 $this->lay->set(
"hasTel", ($tel !=
"" ?
true :
false));
56 $sky = $this->getValue(
"us_skypeid");
57 $this->lay->set(
"skypeid", $sky);
58 $this->lay->set(
"hasSky", ($sky !=
"" ?
true :
false));
60 $msn = $this->getValue(
"us_msnid");
61 $this->lay->set(
"msnid", $msn);
62 $this->lay->set(
"hasMsn", ($msn !=
"" ?
true :
false));
71 $action->parent->AddCssRef(
"USERCARD:faddbook.css",
true);
72 $action->parent->AddJsRef($action->GetParam(
"CORE_PUBURL") .
"/USERCARD/Layout/faddbook.js");
74 setHttpVar(
"specialmenu",
"menuab");
95 $this->viewdefaultcard(
$target, $ulink, $abstract);
96 $la = $this->getAttributes();
99 foreach (
$la as $k => $v) {
100 $va = $this->getValue($v->id);
101 if (($va || ($v->type ==
"array")) && (!in_array($v->id,
$ta)) && (!$v->inArray())) {
103 if ((($v->mvisibility ==
"R") || ($v->mvisibility ==
"W"))) {
104 if ($v->type ==
"array") {
105 $hv = $this->getHtmlValue($v, $va,
$target, $ulink);
108 "lothers" => $v->labelText,
113 $tabs[$v->fieldSet->labelText][] = $v->id;
117 "lothers" => $v->labelText,
119 "vothers" => $this->getHtmlValue($v, $va,
$target, $ulink) ,
122 $tabs[$v->fieldSet->labelText][] = $v->id;
127 $this->lay->setBlockData(
"OTHERS",
$to);
129 foreach ($tabs as $k => $v) {
132 "aids" =>
"['" . implode(
"','", $v) .
"']"
135 $this->lay->setBlockData(
"TABS", $ltabs);
140 $this->viewdefaultcard(
$target, $ulink, $abstract);
141 $socid = $this->getValue(
"us_idsociety");
142 if ($socid) $soc = new_doc($this->dbaccess, $socid);
143 if ($socid && $soc->isAlive()) {
144 $this->lay->set(
"socphone", $soc->getValue(
"si_phone"));
145 $this->lay->set(
"socfax", $soc->getValue(
"si_fax"));
147 $this->lay->set(
"socphone",
"");
148 $this->lay->set(
"socfax",
"");
150 $secid = $this->getValue(
"us_idsecr");
151 if ($secid) $sec = new_doc($this->dbaccess, $secid);
152 if ($secid && $sec->isAlive()) {
153 $this->lay->set(
"secrphone", $sec->getValue(
"us_pphone"));
155 $this->lay->set(
"secrphone",
"");