/[dolibarr]/dolibarr/htdocs/lib/functions.inc.php
ViewVC logotype

Diff of /dolibarr/htdocs/lib/functions.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.146 by eldy, Sat Oct 8 14:57:21 2005 UTC revision 1.147 by eldy, Tue Oct 11 21:14:34 2005 UTC
# Line 620  function img_edit_remove($alt = "default Line 620  function img_edit_remove($alt = "default
620  /**  /**
621          \brief      Affiche logo editer/modifier fiche          \brief      Affiche logo editer/modifier fiche
622          \param      alt         Texte sur le alt de l'image          \param      alt         Texte sur le alt de l'image
623            \param      float       Si il faut y mettre le style "float: right"
624          \return     string      Retourne tag img          \return     string      Retourne tag img
625  */  */
626  function img_edit($alt = "default")  function img_edit($alt = "default",$float=0)
627  {  {
628    global $conf,$langs;      global $conf,$langs;
629    if ($alt=="default") $alt=$langs->trans("Modify");      if ($alt=="default") $alt=$langs->trans("Modify");
630  //  return '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/edit.png" border="0" alt="'.$alt.'" title="'.$alt.'">';      $img='<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/edit.png" border="0" alt="'.$alt.'" title="'.$alt.'"';
631    return '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/edit.png" border="0" style="float: right">';      if ($float) $img.=' style="float: right"';
632        $img.='>';
633        return $img;
634  }  }
635    
636  /**  /**
# Line 670  function img_info($alt = "default") Line 673  function img_info($alt = "default")
673  /**  /**
674          \brief      Affiche logo warning          \brief      Affiche logo warning
675          \param      alt         Texte sur le alt de l'image          \param      alt         Texte sur le alt de l'image
676            \param      float       Si il faut afficher le style "float: right"
677          \return     string      Retourne tag img          \return     string      Retourne tag img
678  */  */
679  function img_warning($alt = "default")  function img_warning($alt = "default",$float=0)
680  {  {
681    global $conf,$langs;      global $conf,$langs;
682    if ($alt=="default") $alt=$langs->trans("Warning");      if ($alt=="default") $alt=$langs->trans("Warning");
683    return '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/warning.png" border="0" alt="'.$alt.'" title="'.$alt.'">';      $img='<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/warning.png" border="0" alt="'.$alt.'" title="'.$alt.'"';
684        if ($float) $img.=' style="float: right"';
685        $img.='>';
686        
687        return $img;
688  }  }
689    
690  /**  /**

Legend:
Removed from v.1.146  
changed lines
  Added in v.1.147

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26