Platform
3.1
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
faddbook_resume.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5
* @package FDL
6
*/
7
/**
8
* Display thumb person card
9
*
10
* @author Anakeen 2005
11
* @version $Id: faddbook_resume.php,v 1.2 2005/11/24 13:48:17 eric Exp $
12
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13
* @package FDL
14
* @subpackage USERCARD
15
*/
16
/**
17
*/
18
include_once (
"FDL/freedom_util.php"
);
19
20
function
faddbook_resume
(&
$action
)
21
{
22
echo
"totoqsdqsmlkdjqsmldqsjdmlqsjmdl"
;
23
$id
=
GetHttpVars
(
"id"
,
""
);
24
if
(
$id
==
""
) {
25
echo
"pas did"
;
26
return
;
27
}
28
$db
=
$action
->getParam(
"FREEDOM_DB"
);
29
30
$ct =
new_Doc
(
$db
,
$id
);
31
if
(!$contact->isAffected()) {
32
echo
"pas de doc"
;
33
return
;
34
}
35
36
if
($ct->getValue(
"us_photo"
) ==
""
) $photo =
$action
->GetImageUrl(
"faddbook_nophoto.gif"
);
37
else
$photo = $ct->getIcon($ct->getValue(
"us_photo"
) ==
""
);
38
$action
->lay->set(
"photo"
, $photo);
39
40
$civ = $ct->getValue(
"us_civility"
);
41
$action
->lay->set(
"hasCiv"
, ($civ !=
""
?
true
:
false
));
42
$action
->lay->set(
"civilite"
, $civ);
43
44
$action
->lay->set(
"prenom"
, $ct->getValue(
"us_lname"
));
45
$action
->lay->set(
"nom"
, $ct->getValue(
"us_fname"
));
46
47
$mail = $ct->getValue(
"us_mail"
);
48
$action
->lay->set(
"hasMail"
, ($mail !=
""
?
true
:
false
));
49
$action
->lay->set(
"addmail"
, $mail);
50
51
$action
->lay->set(
"nomob"
, $ct->getValue(
"us_mobile"
));
52
$action
->lay->set(
"notel"
, $ct->getValue(
"us_phone"
));
53
54
$action
->lay->set(
"skypeid"
,
""
);
55
$action
->lay->set(
"msnid"
,
""
);
56
57
return
;
58
}
59
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase