diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index 269f63c862b..27bc20adbba 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -1888,23 +1888,37 @@ 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'; - print "\n"; - print '
| '.img_picto('',$picto, '', $pictoisfullpath).' | '; - print '';
- print ' '.$titre.' ';
- print ' | ';
+ $title = "\n";
+ $title.= '
| '.img_picto('',$picto, '', $pictoisfullpath).' | '; + $title.= '';
+ $title.= ' '.$titre.' ';
+ $title.= ' | ';
if (strlen($mesg))
{
- print ''.$mesg.' | '; + $title.= ''.$mesg.' | '; } - print '
|
- Nouveau Livre
- |
-