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.
This commit is contained in:
Laurent Destailleur 2005-09-17 14:14:41 +00:00
parent 9a4e2061d9
commit 1962554c1b
3 changed files with 18 additions and 2 deletions

View File

@ -179,6 +179,17 @@ else
}
print "<div class=\"tabsAction\">\n";
if ($user->rights->bookmark->creer)
{
print '<a class="butAction" href="fiche.php?action=create">'.$langs->trans("NewBookmark").'</a>';
}
print '</div>';
$db->close();
llxFooter('$Date$ - $Revision$');

View File

@ -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"));

View File

@ -70,7 +70,12 @@ class ModeleBoxes
// Affiche titre de la boite
print '<tr class="box_titre"><td';
if ($nbcol > 0) { print ' colspan="'.$nbcol.'"'; }
print '>'.$head['text']."</td></tr>";
print '>'.$head['text'];
if ($head['sublink'])
{
print ' <a href="'.$head['sublink'].'">'.img_picto($head['subtext'],$head['subpicto']).'</a>';
}
print '</td></tr>';
// Affiche chaque ligne de la boite
for ($i=0, $n=$nblines; $i < $n; $i++)