From 1962554c1be2edc875f236b1be6beda1547add7d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 17 Sep 2005 14:14:41 +0000 Subject: [PATCH] New: Les boites peuvent avoir un lien sur la ligne de titre. New: La boite bookmark ajoute un lien "Nouveau bookmark" sur sa ligne de titre. --- htdocs/bookmarks/liste.php | 11 +++++++++++ htdocs/includes/boxes/box_bookmarks.php | 2 +- htdocs/includes/boxes/modules_boxes.php | 7 ++++++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/htdocs/bookmarks/liste.php b/htdocs/bookmarks/liste.php index f9f11cacf03..c5e64bf2e67 100644 --- a/htdocs/bookmarks/liste.php +++ b/htdocs/bookmarks/liste.php @@ -179,6 +179,17 @@ else } + +print "
\n"; + +if ($user->rights->bookmark->creer) +{ + print ''.$langs->trans("NewBookmark").''; +} + +print '
'; + + $db->close(); llxFooter('$Date$ - $Revision$'); diff --git a/htdocs/includes/boxes/box_bookmarks.php b/htdocs/includes/boxes/box_bookmarks.php index 554a58d7096..76b8d27e25d 100644 --- a/htdocs/includes/boxes/box_bookmarks.php +++ b/htdocs/includes/boxes/box_bookmarks.php @@ -60,7 +60,7 @@ class box_bookmarks extends ModeleBoxes { $langs->load("boxes"); $this->info_box_head = array('text' => $langs->trans("BoxMyLastBookmarks",$max), - 'sublink' => DOL_URL_ROOT.'/bookmarks/fiche.php?action=create', + 'sublink' => DOL_URL_ROOT.'/bookmarks/liste.php', 'subpicto' => 'object_bookmark', 'subtext' => $langs->trans("NewBookmark")); diff --git a/htdocs/includes/boxes/modules_boxes.php b/htdocs/includes/boxes/modules_boxes.php index ac84ab4137c..02f224a66ca 100644 --- a/htdocs/includes/boxes/modules_boxes.php +++ b/htdocs/includes/boxes/modules_boxes.php @@ -70,7 +70,12 @@ class ModeleBoxes // Affiche titre de la boite print ' 0) { print ' colspan="'.$nbcol.'"'; } - print '>'.$head['text'].""; + print '>'.$head['text']; + if ($head['sublink']) + { + print ' '.img_picto($head['subtext'],$head['subpicto']).''; + } + print ''; // Affiche chaque ligne de la boite for ($i=0, $n=$nblines; $i < $n; $i++)