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:
parent
9a4e2061d9
commit
1962554c1b
@ -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$');
|
||||
|
||||
@ -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"));
|
||||
|
||||
|
||||
@ -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++)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user