diff --git a/htdocs/comm/prospect/fiche.php b/htdocs/comm/prospect/fiche.php index 41a6de62338..4b88fc37db8 100644 --- a/htdocs/comm/prospect/fiche.php +++ b/htdocs/comm/prospect/fiche.php @@ -113,9 +113,45 @@ if ($socid > 0) $societe = new Societe($db, $socid); $result = $societe->fetch($socid); + /* TODO Finir verification PagesJaunes + * print '
'; + * print ''; + * print ''; + * print ''; + * print '
'; + */ + if ($result) { + $head[0][0] = DOL_URL_ROOT.'/soc.php?socid='.$societe->id; + $head[0][1] = "Fiche société"; + $h = 1; + + $head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$societe->id; + $head[$h][1] = 'Fiche prospect'; + $h++; + + if ($soc->fournisseur) + { + $head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$societe->id; + $head[$h][1] = 'Fiche fournisseur'; + $h++; + } + $head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$societe->id; + $head[$h][1] = 'Note'; + $h++; + if ($user->societe_id == 0) + { + $head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$societe->id; + $head[$h][1] = 'Documents'; + $h++; + } + + $head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$soc->id; + $head[$h][1] = 'Notifications'; + + dolibarr_fiche_head($head, 1); /* * @@ -124,14 +160,8 @@ if ($socid > 0) print "
Fiche prospect : $societe->nom
"; - if ($user->societe_id == 0) - { - print "[id\">Documents]"; - print "[id&action=add_bookmark\">Bookmark]"; - - print "[id\">Notes]"; - print "[id&action=edit\">Editer]"; - } + print "[id&action=add_bookmark\">Bookmark]"; + print ""; /* * @@ -163,7 +193,7 @@ if ($socid > 0) print "Rubrique$societe->rubrique"; } - print ""; + print ""; /* * diff --git a/htdocs/societe/notify/fiche.php b/htdocs/societe/notify/fiche.php index 7bdd3f2d28c..68d09f9faf4 100644 --- a/htdocs/societe/notify/fiche.php +++ b/htdocs/societe/notify/fiche.php @@ -73,29 +73,39 @@ $soc = new Societe($db); $soc->id = $socid; if ( $soc->fetch($socid) ) { - $head[0][0] = DOL_URL_ROOT.'/soc.php?socid='.$_GET["socid"]; + $head[0][0] = DOL_URL_ROOT.'/soc.php?socid='.$soc->id; $head[0][1] = "Fiche société"; $h = 1; if ($soc->client==1) { - $head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$socid; + $head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$soc->id; $head[$h][1] = 'Fiche client'; $h++; } if ($soc->client==2) { - $head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$socid; + $head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$soc->id; $head[$h][1] = 'Fiche prospect'; $h++; } if ($soc->fournisseur) { - $head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$socid; + $head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$soc->id; $head[$h][1] = 'Fiche fournisseur'; $h++; } - + $head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$soc->id; + $head[$h][1] = 'Note'; + $h++; + + if ($user->societe_id == 0) + { + $head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$soc->id; + $head[$h][1] = 'Documents'; + $h++; + } + $head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$soc->id; $head[$h][1] = 'Notifications';