New: L'ajout de menus personnaliss est possible

This commit is contained in:
Laurent Destailleur
2008-01-08 18:35:13 +00:00
parent 495f5de6ac
commit f022d27c76
18 changed files with 244 additions and 170 deletions

View File

@@ -1029,12 +1029,13 @@ function img_edit_remove($alt = "default")
\param float Si il faut y mettre le style "float: right"
\return string Retourne tag img
*/
function img_edit($alt = "default",$float=0)
function img_edit($alt = "default", $float=0, $other='')
{
global $conf,$langs;
if ($alt=="default") $alt=$langs->trans("Modify");
$img='<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/edit.png" border="0" alt="'.$alt.'" title="'.$alt.'"';
if ($float) $img.=' style="float: right"';
if ($other) $img.=' '.$other;
$img.='>';
return $img;
}