diff --git a/htdocs/commonobject.class.php b/htdocs/commonobject.class.php index 4d8f99447f2..62b874681c2 100644 --- a/htdocs/commonobject.class.php +++ b/htdocs/commonobject.class.php @@ -474,6 +474,16 @@ class CommonObject print "\n"; } + + /** + * \brief Charge les propriétés ref_previous et ref_next + * \param filter filtre + * \return int <0 si ko, >0 si ok + */ + function load_previous_next_ref($filter='') + { + return 1; + } } ?> diff --git a/htdocs/compta/propal.php b/htdocs/compta/propal.php index 7936f0c581e..dcdc095e89f 100644 --- a/htdocs/compta/propal.php +++ b/htdocs/compta/propal.php @@ -144,8 +144,12 @@ if ($_GET["propalid"] > 0) */ print '
| '.$langs->trans('Ref').' | '.$propal->ref.' | |||||||
| '.$langs->trans('Ref').' | '; + print $html->showrefnav($propal,'propalid',$linkback); + print ' | |||||||
| ';
@@ -449,7 +453,6 @@ if ($_GET["propalid"] > 0)
* Boutons Actions
*/
print ' ';
- print ''.'Retour Liste'."";
if ($propal->statut <> 4 && $user->societe_id == 0)
{
diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php
index 84f7f0c0e5f..c2fcfaa35f7 100644
--- a/htdocs/html.form.class.php
+++ b/htdocs/html.form.class.php
@@ -3327,9 +3327,10 @@ class Form
* \brief Affiche tableau avec ref et bouton navigation pour un objet metier
* \param object Objet a afficher
* \param paramid Nom du parametre a utiliser pour nommer id dans liens URL
+ * \param morehtml Code html supplementaire a afficher avant barre nav
* \return string Portion HTML avec ref + boutons nav
*/
- function showrefnav($object,$paramid='ref')
+ function showrefnav($object,$paramid,$morehtml='')
{
$ret='';
@@ -3337,11 +3338,21 @@ class Form
$previous_ref = $object->ref_previous?'ref_previous).'">'.img_previous().'':'';
$next_ref = $object->ref_next?'ref_next).'">'.img_next().'':'';
- if ($previous_ref || $next_ref) $ret.='
'.$langs->trans("Ref").' | ';
- print $html->showrefnav($product);
+ print $html->showrefnav($product,'ref');
print ' | ';
$nblignes=6;
| ||||||