From 61300569fd2b2908294d2863af31f6ad18fb2775 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 8 Feb 2004 11:53:42 +0000 Subject: [PATCH] Ajout onglets --- htdocs/soc.php | 54 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 36 insertions(+), 18 deletions(-) diff --git a/htdocs/soc.php b/htdocs/soc.php index e1155aea873..47fc97bc7a3 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2004 Rodolphe Quiedeville * Copyright (C) 2003 Brian Fraval * Copyright (C) 2004 Laurent Destailleur * @@ -24,7 +24,6 @@ require("pre.inc.php"); - /* * Sécurité accés client */ @@ -153,12 +152,12 @@ elseif ($action == 'edit') print ''; print ''; - print ''; - print ''; - print ''; print ''; @@ -207,7 +206,7 @@ elseif ($action == 'edit') print ''; - print ''; + print ''; print '
Nom
Adresse
CP '; + print '
CP '; print 'Ville 
Téléphone
'; print ''; } @@ -218,29 +217,48 @@ else $soc->id = $socid; $soc->fetch($socid); - - print '
'; - print 'Fiche société'; - + $head[0][0] = 'soc.php?socid='.$soc->id; + $head[0][1] = "Fiche société"; + $h = 1; if ($soc->client==1) { - print 'Fiche client'; + $head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$soc->id; + $head[$h][1] = 'Fiche client'; + $h++; } + if ($soc->client==2) { - print 'Fiche prospect'; + $head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$soc->id; + $head[$h][1] = 'Fiche prospect'; + $h++; } if ($soc->fournisseur) { - print 'Fiche fournisseur'; + $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'; - print 'Notifications'; - - print '
'; - print '

'; - + dolibarr_fiche_head($head, 0); + + /* + * + */ + print ''; print ''; print '';
Nom'.$soc->nom.'
Adresse'.nl2br($soc->adresse).'