2
0
forked from Wavyzz/dolibarr

Duplicate link in transaction account view

This commit is contained in:
Laurent Destailleur
2008-10-02 23:08:14 +00:00
parent ddcd75e1f5
commit cacb4f094a
8 changed files with 59 additions and 26 deletions

View File

@@ -987,6 +987,23 @@ function img_edit($alt = "default", $float=0, $other='')
return $img;
}
/**
\brief Affiche logo voir fiche
\param alt Texte sur le alt de l'image
\param float Si il faut y mettre le style "float: right"
\return string Retourne tag img
*/
function img_view($alt = "default", $float=0, $other='')
{
global $conf,$langs;
if ($alt=="default") $alt=$langs->trans("View");
$img='<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/view.png" border="0" alt="'.$alt.'" title="'.$alt.'"';
if ($float) $img.=' style="float: right"';
if ($other) $img.=' '.$other;
$img.='>';
return $img;
}
/**
\brief Affiche logo effacer
\param alt Texte sur le alt de l'image