X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.display_phones.php;h=b676d50375d23856d3260e6b4966b17a3186e79e;hb=96d80a35f4abef2b94d2f2b8f5442230141398d1;hp=b9589b2fc4ffb06e6fcdf6ee9ccd2272f54303a1;hpb=40214aa65f590952c7bb2a586d6d0a9446b3c0e7;p=platal.git diff --git a/plugins/function.display_phones.php b/plugins/function.display_phones.php index b9589b2..b676d50 100644 --- a/plugins/function.display_phones.php +++ b/plugins/function.display_phones.php @@ -24,18 +24,19 @@ function smarty_function_display_phones($param, &$smarty) $txthtml = ""; if (count($param['tels'])) { foreach ($param['tels'] as $tel) { + $tel_type = ($param['dcd'] ? 'Dernier ' : ''); switch ($tel['tel_type']) { - case 'fixed': - $tel_type = 'Tél'; + case 'fixed': + $tel_type .= 'Tél'; break; - case 'fax': - $tel_type = 'Fax'; + case 'fax': + $tel_type .= 'Fax'; break; - case 'mobile': - $tel_type = 'Mob'; + case 'mobile': + $tel_type .= 'Mob'; break; - default: - $tel_type = $tel['tel_type']; + default: + $tel_type .= $tel['tel_type']; } $txthtml .= "
\n" . $tel_type . " : \n" . $tel['tel'] . "\n"; $comment = "";