Add: logo VCard

Add: ajout lien vcard sur la liste des contacts
This commit is contained in:
Regis Houssin
2007-07-14 14:38:23 +00:00
parent 453e72f76a
commit ea692062f0
9 changed files with 26 additions and 3 deletions

View File

@@ -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>';

View File

@@ -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)

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 B