mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-12 12:31:26 +01:00
Add: logo VCard
Add: ajout lien vcard sur la liste des contacts
This commit is contained in:
@@ -123,7 +123,7 @@ print '<br>';
|
||||
|
||||
print $langs->trans("ExportCardToFormat").': ';
|
||||
print '<a href="'.DOL_URL_ROOT.'/contact/vcard.php?id='.$_GET["id"].'">';
|
||||
print img_file($langs->trans("VCard")).' ';
|
||||
print img_vcard($langs->trans("VCard")).' ';
|
||||
print $langs->trans("VCard");
|
||||
print '</a>';
|
||||
|
||||
|
||||
@@ -254,11 +254,22 @@ if ($result)
|
||||
$var=!$var;
|
||||
|
||||
print "<tr $bc[$var]>";
|
||||
|
||||
print '<td valign="center">';
|
||||
|
||||
print '<table class="nobordernopadding"><tr class="nocellnopadd">';
|
||||
print '<td width="90" class="nobordernopadding" nowrap="nowrap">';
|
||||
|
||||
print '<a href="'.DOL_URL_ROOT.'/contact/fiche.php?id='.$obj->cidp.'">';
|
||||
print img_object($langs->trans("ShowContact"),"contact");
|
||||
print ' '.$obj->name.'</a></td>';
|
||||
print ' '.$obj->name.'</a>';
|
||||
print '</td>';
|
||||
|
||||
print '<td width="18" align="right" class="nobordernopadding">';
|
||||
print '<a href="'.DOL_URL_ROOT.'/contact/vcard.php?id='.$obj->cidp.'">';
|
||||
print img_vcard($langs->trans("VCard")).' ';
|
||||
print '</a></td></tr></table>';
|
||||
|
||||
print '</td>';
|
||||
print '<td>'.$obj->firstname.'</td>';
|
||||
print '<td>';
|
||||
if ($obj->socid)
|
||||
|
||||
@@ -797,6 +797,18 @@ function img_pdf($alt = "default",$size=3)
|
||||
return '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/pdf'.$size.'.png" border="0" alt="'.$alt.'" title="'.$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 '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/vcard.png" border="0" alt="'.$alt.'" title="'.$alt.'">';
|
||||
}
|
||||
|
||||
/**
|
||||
\brief Affiche logo +
|
||||
\param alt Texte sur le alt de l'image
|
||||
|
||||
BIN
htdocs/theme/auguria/img/vcard.png
Normal file
BIN
htdocs/theme/auguria/img/vcard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 847 B |
BIN
htdocs/theme/dev/img/vcard.png
Normal file
BIN
htdocs/theme/dev/img/vcard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 847 B |
BIN
htdocs/theme/dolibarr/img/vcard.png
Normal file
BIN
htdocs/theme/dolibarr/img/vcard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 847 B |
BIN
htdocs/theme/eldy/img/vcard.png
Normal file
BIN
htdocs/theme/eldy/img/vcard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 847 B |
BIN
htdocs/theme/freelug/img/vcard.png
Normal file
BIN
htdocs/theme/freelug/img/vcard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 847 B |
BIN
htdocs/theme/yellow/img/vcard.png
Normal file
BIN
htdocs/theme/yellow/img/vcard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 847 B |
Reference in New Issue
Block a user