54 |
|
|
55 |
if ( $societe->fetch($socid) ) |
if ( $societe->fetch($socid) ) |
56 |
{ |
{ |
57 |
$addons[0][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$socid; |
$addons[0][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$socid; |
58 |
$addons[0][1] = $societe->nom; |
$addons[0][1] = $societe->nom; |
59 |
|
|
60 |
llxHeader('',$langs->trans('SupplierCard').' : '.$societe->nom, $addons); |
llxHeader('',$langs->trans('SupplierCard').' : '.$societe->nom, $addons); |
61 |
|
|
62 |
/* |
/* |
63 |
* Affichage onglets |
* Affichage onglets |
64 |
*/ |
*/ |
65 |
$h = 0; |
$h = 0; |
66 |
|
|
67 |
$head[$h][0] = DOL_URL_ROOT.'/soc.php?socid='.$socid; |
$head[$h][0] = DOL_URL_ROOT.'/soc.php?socid='.$socid; |
68 |
$head[$h][1] = $langs->trans('Company'); |
$head[$h][1] = $langs->trans('Company'); |
69 |
$h++; |
$h++; |
70 |
|
|
71 |
if ($societe->client==1) |
if ($societe->client==1) |
72 |
{ |
{ |
73 |
$head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$socid; |
$head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$socid; |
74 |
$head[$h][1] = $langs->trans('Customer'); |
$head[$h][1] = $langs->trans('Customer'); |
75 |
$h++; |
$h++; |
76 |
} |
} |
77 |
if ($societe->client==2) |
if ($societe->client==2) |
78 |
{ |
{ |
79 |
$head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$socid; |
$head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$socid; |
80 |
$head[$h][1] = $langs->trans('Prospect'); |
$head[$h][1] = $langs->trans('Prospect'); |
81 |
$h++; |
$h++; |
82 |
} |
} |
83 |
if ($societe->fournisseur) |
if ($societe->fournisseur) |
84 |
{ |
{ |
85 |
$hselected=$h; |
$hselected=$h; |
86 |
$head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$socid; |
$head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$socid; |
87 |
$head[$h][1] = $langs->trans('Supplier'); |
$head[$h][1] = $langs->trans('Supplier'); |
88 |
$h++; |
$h++; |
89 |
} |
} |
90 |
|
|
91 |
if ($conf->compta->enabled) { |
if ($conf->compta->enabled) { |
92 |
$langs->load('compta'); |
$langs->load('compta'); |
93 |
$head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$socid; |
$head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$socid; |
94 |
$head[$h][1] = $langs->trans('Accountancy'); |
$head[$h][1] = $langs->trans('Accountancy'); |
95 |
|
$h++; |
96 |
|
} |
97 |
|
|
98 |
|
$head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$societe->id; |
99 |
|
$head[$h][1] = $langs->trans('Note'); |
100 |
$h++; |
$h++; |
101 |
} |
|
102 |
|
if ($user->societe_id == 0) |
|
$head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$societe->id; |
|
|
$head[$h][1] = $langs->trans('Note'); |
|
|
$h++; |
|
|
|
|
|
if ($user->societe_id == 0) |
|
103 |
{ |
{ |
104 |
$head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$societe->id; |
$head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$societe->id; |
105 |
$head[$h][1] = $langs->trans('Documents'); |
$head[$h][1] = $langs->trans('Documents'); |
106 |
$h++; |
$h++; |
107 |
} |
} |
108 |
|
|
109 |
$head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$societe->id; |
$head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$societe->id; |
110 |
$head[$h][1] = $langs->trans('Notifications'); |
$head[$h][1] = $langs->trans('Notifications'); |
111 |
$h++; |
$h++; |
112 |
|
|
113 |
dolibarr_fiche_head($head, $hselected, $societe->nom); |
$head[$h][0] = DOL_URL_ROOT.'/societe/info.php?socid='.$societe->id; |
114 |
|
$head[$h][1] = $langs->trans("Info"); |
115 |
|
$h++; |
116 |
|
|
117 |
|
dolibarr_fiche_head($head, $hselected, $societe->nom); |
118 |
|
|
119 |
/* |
/* |
120 |
* |
* |