2
0
forked from Wavyzz/dolibarr

Ajout fonction img_error

This commit is contained in:
Laurent Destailleur
2005-04-30 17:27:06 +00:00
parent dc66ad3ea0
commit 7cf7704ceb

View File

@@ -518,10 +518,21 @@ function img_info($alt = "default")
function img_warning($alt = "default")
{
global $conf,$langs;
if ($alt=="default") $alt=$langs->trans("Show");
if ($alt=="default") $alt=$langs->trans("Warning");
return '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/warning.png" border="0" alt="'.$alt.'" title="'.$alt.'">';
}
/**
\brief Affiche logo warning
\param alt Texte sur le alt de l'image
*/
function img_error($alt = "default")
{
global $conf,$langs;
if ($alt=="default") $alt=$langs->trans("Error");
return '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/error.png" border="0" alt="'.$alt.'" title="'.$alt.'">';
}
/**
\brief Affiche logo alerte
\param alt Texte sur le alt de l'image