diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index 27bc20adbba..269f63c862b 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -1888,37 +1888,23 @@ function print_titre($titre) * \param pictoisfullpath 1=Icon name is a full absolute url of image */ function print_fiche_titre($titre, $mesg='', $picto='title.png', $pictoisfullpath=0) -{ - print fiche_titre($titre, $mesg, $picto, $pictoisfullpath); -} - -/** - * \brief Affichage d'un titre d'une fiche, aligne a gauche - * \param titre Le titre a afficher - * \param mesg Message suplementaire a afficher a droite - * \param picto Icon to use before title (should be a 32x32 transparent png file) - * \param pictoisfullpath 1=Icon name is a full absolute url of image - */ -function fiche_titre($titre, $mesg='', $picto='title.png', $pictoisfullpath=0) { global $conf; if ($picto == 'setup') $picto='title.png'; if (empty($conf->browser->firefox) && $picto=='title.png') $picto='title.gif'; - $title = "\n"; - $title.= '
| '.img_picto('',$picto, '', $pictoisfullpath).' | '; - $title.= '';
- $title.= ' '.$titre.' ';
- $title.= ' | ';
+ print "\n";
+ print '
| '.img_picto('',$picto, '', $pictoisfullpath).' | '; + print '';
+ print ' '.$titre.' ';
+ print ' | ';
if (strlen($mesg))
{
- $title.= ''.$mesg.' | '; + print ''.$mesg.' | '; } - $title.= '
| + {$title_picto} + | +
+ {$title_text}
+ |
+