diff --git a/htdocs/societe/notify/fiche.php b/htdocs/societe/notify/fiche.php
index 2379a8cfeb9..7bdd3f2d28c 100644
--- a/htdocs/societe/notify/fiche.php
+++ b/htdocs/societe/notify/fiche.php
@@ -69,38 +69,50 @@ if ($action == "delete")
*
*
*/
-print_titre("Notifications");
-
$soc = new Societe($db);
$soc->id = $socid;
if ( $soc->fetch($socid) )
{
+ $head[0][0] = DOL_URL_ROOT.'/soc.php?socid='.$_GET["socid"];
+ $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][1] = 'Fiche client';
+ $h++;
+ }
- print '
';
- print '| Nom | '.$soc->nom.' | ';
- print '';
- if ($soc->client)
+ if ($soc->client==2)
{
- print 'Fiche commercial';
+ $head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$socid;
+ $head[$h][1] = 'Fiche prospect';
+ $h++;
}
- else
+ if ($soc->fournisseur)
{
- print '-';
+ $head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$socid;
+ $head[$h][1] = 'Fiche fournisseur';
+ $h++;
}
- print ' | ';
- if ($soc->client)
- {
- print 'Fiche compta';
- }
- else
- {
- print '-';
- }
- print ' |
';
- print '| Adresse | '.nl2br($soc->adresse).' |
';
- print '| CP | '.$soc->cp.' '.$soc->ville.' |
';
- print '
';
+ $head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$soc->id;
+ $head[$h][1] = 'Notifications';
+
+ dolibarr_fiche_head($head, $h);
+
+ /*
+ *
+ *
+ */
+
+ print '';
+ print '| Nom | '.$soc->nom.' |
';
+
+ print '| Adresse | '.nl2br($soc->adresse).' |
';
+ print '| CP | '.$soc->cp.' '.$soc->ville.' |
';
+
+ print '
';
/*
*
@@ -114,7 +126,7 @@ if ( $soc->fetch($socid) )
$sortfield="c.name";
}
- print '
';
+ print '';
print '';
print_liste_field_titre_new ("Contact",$PHP_SELF,"c.name","","&socid=$socid",'',$sortfield);
print_liste_field_titre_new ("Action",$PHP_SELF,"a.titre","","&socid=$socid",'',$sortfield);
@@ -131,13 +143,13 @@ if ( $soc->fetch($socid) )
$var=True;
while ($i < $num)
{
- $var = !$var;
$obj = $db->fetch_object( $i);
print '
| '.$obj->firstname . " ".$obj->name.' | ';
print ''.$obj->titre.' | ';
- print 'Supprimer';
+ print ' | '.img_delete().'';
$i++;
+ $var = !$var;
}
$db->free();
}
@@ -171,21 +183,19 @@ if ( $soc->fetch($socid) )
$html = new Form($db);
print ' |
';
}
/*
*
*/
-
-
$db->close();
llxFooter("Dernière modification $Date$ révision $Revision$");