30 "USERCARD:VIEWABSTRACTCARD"
56 $this->
AddParamRefresh(
"US_IDSOCIETY,US_SOCADDR",
"US_WORKADDR,US_WORKTOWN,US_WORKPOSTALCODE,US_WORKWEB,US_WORKCEDEX,US_COUNTRY,US_SPHONE,US_SFAX");
60 if (
$doc->isAlive()) {
61 if ($this->
getValue(
"US_SOCADDR") !=
"") {
62 $this->setValue(
"US_WORKADDR",
$doc->getValue(
"SI_ADDR",
" "));
63 $this->setValue(
"US_WORKTOWN",
$doc->getValue(
"SI_TOWN",
" "));
64 $this->setValue(
"US_WORKPOSTALCODE",
$doc->getValue(
"SI_POSTCODE",
" "));
65 $this->setValue(
"US_WORKWEB",
$doc->getValue(
"SI_WEB",
" "));
66 $this->setValue(
"US_WORKCEDEX",
$doc->getValue(
"SI_CEDEX",
" "));
67 $this->setValue(
"US_COUNTRY",
$doc->getValue(
"SI_COUNTRY",
" "));
69 $this->setValue(
"US_SCATG",
$doc->getValue(
"SI_CATG"));
70 $this->setValue(
"US_JOB",
$doc->getValue(
"SI_JOB"));
72 if ($this->
getValue(
"US_PPHONE") !=
"") $this->setValue(
"US_PHONE", $this->
getValue(
"US_PPHONE") .
" (" . _(
"direct") .
")");
73 else $this->setValue(
"US_PHONE",
$doc->getValue(
"SI_PHONE",
" "));
74 if ($this->
getValue(
"US_PFAX") !=
"") $this->setValue(
"US_FAX", $this->
getValue(
"US_PFAX") .
" (" . _(
"direct") .
")");
75 else $this->setValue(
"US_FAX",
$doc->getValue(
"SI_FAX",
" "));
77 $this->setValue(
"US_PHONE", $this->
getValue(
"US_PPHONE",
" "));
78 $this->setValue(
"US_FAX", $this->
getValue(
"US_PFAX",
" "));
95 if ($priv ==
"S")
return false;
103 $priv = $this->GetValue(
"US_PRIVCARD");
105 $u =
new User(
"", $this->owner);
106 if (
$u->isAffected()) {
107 $this->infoldap[$this->cindex][
"ou"] =
$u->login;
108 return sprintf(
"%s=%s,ou=%s,%s,%s", $rdn, $this->infoldap[$this->cindex][$rdn],
$u->login,
$path, $this->racine);
110 } elseif ($priv ==
"G") {
111 $tidg = $this->
getTValue(
"us_idprivgroup");
114 foreach ($tidg as $k => $idg) {
116 $login =
getv(
$t,
"us_login");
117 $this->infoldap[$this->cindex][
"ou"] = $login;
118 $tdn[] = sprintf(
"%s=%s,ou=%s,%s,%s", $rdn, $this->infoldap[$this->cindex][$rdn], $login,
$path, $this->
racine);
120 if (count($tdn) == 0)
return "";
121 elseif (count($tdn) == 1)
return $tdn[0];
138 $priv = $this->GetValue(
"US_PRIVCARD");
143 if ($this->profid ==
"0") {
146 $this->RemoveControl();
154 if ($this->profid !=
"0") {
161 if ($this->profid !=
"0") {
168 if ($this->profid ==
"0") {
170 } elseif ($this->profid == $this->
id) {
172 $this->RemoveControl();
175 if ($this->profid == $this->
id) {
177 $tidg = $this->
getTValue(
"us_idprivgroup");
178 foreach ($tidg as $k => $idg) {
180 $gid =
getv(
$t,
"us_whatid");
182 $this->AddControl($gid,
"view");