From a5b9b715ba93478e836c51496b3ebc905deef0f4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 7 Apr 2006 21:40:25 +0000 Subject: [PATCH] New: Ajout picto statut prospect Fix: Ajout onglet info --- htdocs/comm/prospect/fiche.php | 45 +++++++++++++++------------------- 1 file changed, 20 insertions(+), 25 deletions(-) diff --git a/htdocs/comm/prospect/fiche.php b/htdocs/comm/prospect/fiche.php index b94f88aa4bc..3b62871ab73 100644 --- a/htdocs/comm/prospect/fiche.php +++ b/htdocs/comm/prospect/fiche.php @@ -28,6 +28,7 @@ */ require_once("./pre.inc.php"); +require_once(DOL_DOCUMENT_ROOT."/prospect.class.php"); require_once(DOL_DOCUMENT_ROOT."/contact.class.php"); require_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php"); @@ -81,14 +82,13 @@ if ($_GET["action"] == 'cstc') * * Mode fiche * - * *********************************************************************************/ llxHeader(); if ($socid > 0) { - $societe = new Societe($db, $socid); + $societe = new Prospect($db, $socid); $result = $societe->fetch($socid); if ($result < 0) { @@ -115,13 +115,6 @@ if ($socid > 0) $hselected=$h; $h++; - if (file_exists(DOL_DOCUMENT_ROOT.'/sl/')) - { - $head[$h][0] = DOL_URL_ROOT.'/sl/fiche.php?id='.$societe->id; - $head[$h][1] = 'Fiche catalogue'; - $h++; - } - if ($societe->fournisseur) { $head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$societe->id; @@ -149,13 +142,19 @@ if ($socid > 0) $head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$societe->id; $head[$h][1] = $langs->trans("Notifications"); + $h++; + + $head[$h][0] = DOL_URL_ROOT.'/societe/info.php?socid='.$societe->id; + $head[$h][1] = $langs->trans("Info"); + $h++; + dolibarr_fiche_head($head, $hselected, $societe->nom); /* - * - */ + * + */ print "\n"; print '"; + print ""; } print ''; - print ''; - print ''; + print ''; print '
'; @@ -171,23 +170,19 @@ if ($socid > 0) if ($societe->rubrique) { - print "
Rubrique$societe->rubrique
Rubrique".$societe->rubrique."
'.$langs->trans('JuridicalStatus').''.$societe->forme_juridique.'
'.$langs->trans("Status").''.$societe->statut_commercial.' '; - print ''; - print img_action(0,-1); - print ' '; - print img_action(0,0); - print ' '; - print img_action(0,1); - print ' '; - print img_action(0,2); - print ' '; - print img_action(0,3); - print ''; + + // Status + print '
'.$langs->trans("Status").''.$societe->getLibStatut(4).''; + if ($societe->stcomm_id != -1) print ''.img_action(0,-1).''; + if ($societe->stcomm_id != 0) print ''.img_action(0,0).''; + if ($societe->stcomm_id != 1) print ''.img_action(0,1).''; + if ($societe->stcomm_id != 2) print ''.img_action(0,2).''; + if ($societe->stcomm_id != 3) print ''.img_action(0,3).''; print '
';