*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see
"; print_liste_field_titre($langs->trans("Ref"),$_SERVER["PHP_SELF"],"bid","","",'align="left"',$sortfield,$sortorder); print_liste_field_titre($langs->trans("Title"),'',''); print ""; print_liste_field_titre($langs->trans("Link"),'',''); print ""; print_liste_field_titre($langs->trans("Target"),'','','','','align="center"'); print ""; print_liste_field_titre($langs->trans("Owner"),$_SERVER["PHP_SELF"],"u.lastname","","",'align="center"',$sortfield,$sortorder); print_liste_field_titre($langs->trans("Date"),$_SERVER["PHP_SELF"],"b.dateb","","",'align="center"',$sortfield,$sortorder); print_liste_field_titre($langs->trans("Position"),$_SERVER["PHP_SELF"],"b.position","","",'align="right"',$sortfield,$sortorder); print_liste_field_titre(''); print " | |||||||
'; print "bid."\">".img_object($langs->trans("ShowBookmark"),"bookmark").' '.$obj->bid.""; print ' | '; $linkintern=0; $title=dol_trunc($obj->title,24); $link=dol_trunc($obj->url,24); // Title print ""; if ($obj->rowid) { // Lien interne societe $linkintern=1; $link="Dolibarr"; if (! $obj->title) { // For compatibility with old Dolibarr bookmarks require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php'; $societe=new Societe($db); $societe->fetch($obj->rowid); $obj->title=$societe->name; } $title=img_object($langs->trans("ShowCompany"),"company").' '.$obj->title; } if ($linkintern) print "url."\">"; print $title; if ($linkintern) print ""; print " | \n"; // Url print ""; if (! $linkintern) print 'target?' target="newlink"':'').'>'; print $link; if (! $linkintern) print ''; print " | \n"; // Target print ''; if ($obj->target == 0) print $langs->trans("BookmarkTargetReplaceWindowShort"); if ($obj->target == 1) print $langs->trans("BookmarkTargetNewWindowShort"); print " | \n"; // Author print ''; if ($obj->fk_user) { $userstatic->id=$obj->fk_user; $userstatic->lastname=$obj->login; print $userstatic->getNomUrl(1); } else { print $langs->trans("Public"); } print " | \n"; // Date creation print ''.dol_print_date($db->jdate($obj->dateb),'day')." | "; // Position print ''.$obj->position." | "; // Actions print ''; if ($user->rights->bookmark->creer) { print "bid."&backtopage=".urlencode($_SERVER["PHP_SELF"])."\">".img_edit()." "; } if ($user->rights->bookmark->supprimer) { print "bid\">".img_delete().""; } else { print " "; } print " | "; print "