projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
copyTable accepts 2 modifiers (no-innodb and/or no-content)
[platal.git]
/
plugins
/
function.display_phones.php
diff --git
a/plugins/function.display_phones.php
b/plugins/function.display_phones.php
index
b9589b2
..
4d80f95
100644
(file)
--- a/
plugins/function.display_phones.php
+++ b/
plugins/function.display_phones.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-20
09
Polytechnique.org *
+ * Copyright (C) 2003-20
10
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-24,18
+24,19
@@
function smarty_function_display_phones($param, &$smarty)
$txthtml = "";
if (count($param['tels'])) {
foreach ($param['tels'] as $tel) {
$txthtml = "";
if (count($param['tels'])) {
foreach ($param['tels'] as $tel) {
+ $tel_type = ($param['dcd'] ? 'Dernier ' : '');
switch ($tel['tel_type']) {
switch ($tel['tel_type']) {
- case 'fixed':
- $tel_type = 'Tél';
+
case 'fixed':
+ $tel_type
.
= 'Tél';
break;
break;
- case 'fax':
- $tel_type = 'Fax';
+
case 'fax':
+ $tel_type
.
= 'Fax';
break;
break;
- case 'mobile':
- $tel_type = 'Mob';
+
case 'mobile':
+ $tel_type
.
= 'Mob';
break;
break;
- default:
- $tel_type = $tel['tel_type'];
+
default:
+ $tel_type
.
= $tel['tel_type'];
}
$txthtml .= "<div>\n<em>" . $tel_type . " : </em>\n<strong>" . $tel['tel'] . "</strong>\n";
$comment = "";
}
$txthtml .= "<div>\n<em>" . $tel_type . " : </em>\n<strong>" . $tel['tel'] . "</strong>\n";
$comment = "";