diff --git a/htdocs/contact/exportimport.php b/htdocs/contact/exportimport.php index f53265a0483..49b73641583 100644 --- a/htdocs/contact/exportimport.php +++ b/htdocs/contact/exportimport.php @@ -123,7 +123,7 @@ print '
'; print $langs->trans("ExportCardToFormat").': '; print ''; -print img_file($langs->trans("VCard")).' '; +print img_vcard($langs->trans("VCard")).' '; print $langs->trans("VCard"); print ''; diff --git a/htdocs/contact/index.php b/htdocs/contact/index.php index 81b8939e5ed..ea145b31510 100644 --- a/htdocs/contact/index.php +++ b/htdocs/contact/index.php @@ -254,11 +254,22 @@ if ($result) $var=!$var; print ""; - print ''; + + print ''; + print ''; + print ' '.$obj->name.''; + print ''; + + print '
'; + print ''; print img_object($langs->trans("ShowContact"),"contact"); - print ' '.$obj->name.''; + print ''; + print img_vcard($langs->trans("VCard")).' '; + print '
'; + + print ''; print ''.$obj->firstname.''; print ''; if ($obj->socid) diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 27d7c73cc7a..972bc8d9d1d 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -797,6 +797,18 @@ function img_pdf($alt = "default",$size=3) return ''.$alt.''; } +/** + \brief Affiche logo vcard + \param alt Texte sur le alt de l'image + \return string Retourne tag img +*/ +function img_vcard($alt = "default") +{ + global $conf,$langs; + if ($alt=="default") $alt=$langs->trans("VCard"); + return ''.$alt.''; +} + /** \brief Affiche logo + \param alt Texte sur le alt de l'image diff --git a/htdocs/theme/auguria/img/vcard.png b/htdocs/theme/auguria/img/vcard.png new file mode 100644 index 00000000000..29eff55bc98 Binary files /dev/null and b/htdocs/theme/auguria/img/vcard.png differ diff --git a/htdocs/theme/dev/img/vcard.png b/htdocs/theme/dev/img/vcard.png new file mode 100644 index 00000000000..29eff55bc98 Binary files /dev/null and b/htdocs/theme/dev/img/vcard.png differ diff --git a/htdocs/theme/dolibarr/img/vcard.png b/htdocs/theme/dolibarr/img/vcard.png new file mode 100644 index 00000000000..29eff55bc98 Binary files /dev/null and b/htdocs/theme/dolibarr/img/vcard.png differ diff --git a/htdocs/theme/eldy/img/vcard.png b/htdocs/theme/eldy/img/vcard.png new file mode 100644 index 00000000000..29eff55bc98 Binary files /dev/null and b/htdocs/theme/eldy/img/vcard.png differ diff --git a/htdocs/theme/freelug/img/vcard.png b/htdocs/theme/freelug/img/vcard.png new file mode 100644 index 00000000000..29eff55bc98 Binary files /dev/null and b/htdocs/theme/freelug/img/vcard.png differ diff --git a/htdocs/theme/yellow/img/vcard.png b/htdocs/theme/yellow/img/vcard.png new file mode 100644 index 00000000000..29eff55bc98 Binary files /dev/null and b/htdocs/theme/yellow/img/vcard.png differ