diff --git a/htdocs/bookmarks/bookmarks.lib.php b/htdocs/bookmarks/bookmarks.lib.php index 533f44663b2..7a037f353d9 100644 --- a/htdocs/bookmarks/bookmarks.lib.php +++ b/htdocs/bookmarks/bookmarks.lib.php @@ -43,12 +43,9 @@ function printBookmarksList ($aDb, $aLangs) $ret.= ''; + $i++; } - - } else { - + } + else + { dolibarr_print_error($db); } } diff --git a/htdocs/bookmarks/liste.php b/htdocs/bookmarks/liste.php index b0803fecc47..d0f8f83d36f 100644 --- a/htdocs/bookmarks/liste.php +++ b/htdocs/bookmarks/liste.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2005-2009 Laurent Destailleur * * 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 @@ -15,7 +15,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - + /** * \file htdocs/bookmarks/liste.php * \brief Page affichage des bookmarks @@ -43,7 +43,7 @@ $pagenext = $page + 1; /* * Actions */ - + if ($_GET["action"] == 'delete') { $bookmark=new Bookmark($db); @@ -67,7 +67,7 @@ if ($_GET["action"] == 'delete') llxHeader(); print_fiche_titre($langs->trans("Bookmarks")); - + if ($mesg) print $mesg; $sql = "SELECT b.fk_soc as rowid, ".$db->pdate("b.dateb")." as dateb, b.rowid as bid, b.fk_user, b.url, b.target, b.title, b.favicon,"; @@ -134,20 +134,20 @@ if ($resql) print $title; if ($lieninterne) print ""; print "\n"; - + // Url print ""; if (! $lieninterne) print 'target?' target="newlink"':'').'>'; print $lien; if (! $lieninterne) 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 ''.img_object($langs->trans("ShowUser"),"user").' '.$obj->login."\n"; @@ -163,7 +163,7 @@ if ($resql) else { print " "; - } + } print ""; print "\n"; $i++; diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index 9c3550db2c8..5178fa6e396 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -911,7 +911,7 @@ function img_object($alt, $object) } /** - * \brief Affiche picto (fonction generique) + * \brief Show picto (generic function) * \param alt Texte sur le alt de l'image * \param picto Nom de l'image a afficher (Si pas d'extension, on met '.png') * \param options Attribut supplementaire a la balise img @@ -927,12 +927,12 @@ function img_picto($alt, $picto, $options='', $pictoisfullpath=0) } /** - \brief Affiche picto (fonction g�n�rique) - \param alt Texte sur le alt de l'image - \param picto Nom de l'image a afficher (Si pas d'extension, on met '.png') - \param options Attribut supplementaire a la balise img - \param pictoisfullpath If 1, image path is a full path - \return string Retourne tag img + * \brief Show picto (generic function) + * \param alt Texte sur le alt de l'image + * \param picto Nom de l'image a afficher (Si pas d'extension, on met '.png') + * \param options Attribut supplementaire a la balise img + * \param pictoisfullpath If 1, image path is a full path + * \return string Retourne tag img */ function img_picto_common($alt, $picto, $options='', $pictoisfullpath=0) {