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 ''; - print ''; - print ''; - print ''; - print '
Nom'.$soc->nom.''; - 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 '
Adresse'.nl2br($soc->adresse).' 
CP'.$soc->cp.' '.$soc->ville.'
'; + $head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$soc->id; + $head[$h][1] = 'Notifications'; + + dolibarr_fiche_head($head, $h); + + /* + * + * + */ + + print ''; + print ''; + + print ''; + print ''; + + print '
Nom'.$soc->nom.'
Adresse'.nl2br($soc->adresse).' 
CP'.$soc->cp.' '.$soc->ville.'

'; /* * @@ -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 ''; print ''; - print ''; print ''; - print ''; + print ''; print '
'.$obj->firstname . " ".$obj->name.''.$obj->titre.'Supprimer'; + print ''.img_delete().''; $i++; + $var = !$var; } $db->free(); } @@ -171,21 +183,19 @@ if ( $soc->fetch($socid) ) $html = new Form($db); print '
'; print ''; - print '
'; + print '
'; $html->select_array("contactid",$soc->contact_email_array()); print ''; $html->select_array("actionid",$actions); print '
'; } /* * */ - - $db->close(); llxFooter("Dernière modification $Date$ révision $Revision$");