19if (empty($conf) || !is_object($conf)) {
20 print
"Error, template page can't be called as URL";
25$soc = $GLOBALS[
'objcanvas']->control->object;
28print
"<!-- BEGIN PHP TEMPLATE CARD_VIEW.TPL.PHP COMPANY -->\n";
36<?php
if ($this->control->tpl[
'error']) {
37 echo $this->control->tpl[
'error'];
39<?php
if ($this->control->tpl[
'action_delete']) {
40 echo $this->control->tpl[
'action_delete'];
42<?php
if ($this->control->tpl[
'js_checkVatPopup']) {
43 echo $this->control->tpl[
'js_checkVatPopup'];
46<
table class=
"border allwidth">
49 <td width=
"20%"><?php echo $langs->trans(
'ThirdPartyName'); ?></td>
50 <td colspan=
"3"><?php echo $this->control->tpl[
'showrefnav']; ?></td>
55 <td><?php echo $langs->trans(
'Prefix'); ?></td>
56 <td colspan=
"3"><?php echo $this->control->tpl[
'prefix_comm']; ?></td>
60<?php
if ($this->control->tpl[
'client']) { ?>
62 <td><?php echo $langs->trans(
'CustomerCode'); ?></td>
63 <td colspan=
"3"><?php echo $this->control->tpl[
'code_client']; ?>
64 <?php
if ($this->control->tpl[
'checkcustomercode'] != 0) { ?>
65 <span
class=
"error">(<?php echo $langs->trans(
"WrongCustomerCode"); ?>)</span>
71<?php
if ($this->control->tpl[
'fournisseur']) { ?>
73 <td><?php echo $langs->trans(
'SupplierCode'); ?></td>
74 <td colspan=
"3"><?php echo $this->control->tpl[
'code_fournisseur']; ?>
75 <?php
if ($this->control->tpl[
'checksuppliercode'] != 0) { ?>
76 <span
class=
"error">(<?php echo $langs->trans(
"WrongSupplierCode"); ?>)</span>
82<?php
if (isModEnabled(
'barcode')) { ?>
84 <td><?php echo $langs->trans(
'Gencod'); ?></td>
85 <td colspan=
"3"><?php echo $this->control->tpl[
'barcode']; ?></td>
90 <td
class=
"tdtop"><?php echo $langs->trans(
'Address'); ?></td>
91 <td colspan=
"3"><?php echo $this->control->tpl[
'address']; ?></td>
95 <td width=
"25%"><?php echo $langs->trans(
'Zip'); ?></td>
96 <td width=
"25%"><?php echo $this->control->tpl[
'zip']; ?></td>
97 <td width=
"25%"><?php echo $langs->trans(
'Town'); ?></td>
98 <td width=
"25%"><?php echo $this->control->tpl[
'town']; ?></td>
102 <td><?php echo $langs->trans(
"Country"); ?></td>
103 <td colspan=
"3" class=
"nowrap"><?php echo $this->control->tpl[
'country']; ?></td>
107 <td><?php echo $langs->trans(
'State'); ?></td>
108 <td colspan=
"3"><?php echo $this->control->tpl[
'departement']; ?></td>
112 <td><?php echo $langs->trans(
'Phone'); ?></td>
113 <td><?php echo $this->control->tpl[
'phone']; ?></td>
114 <td><?php echo $langs->trans(
'PhoneMobile'); ?></td>
115 <td><?php echo $this->control->tpl[
'phone_mobile']; ?></td>
116 <td><?php echo $langs->trans(
'Fax'); ?></td>
117 <td><?php echo $this->control->tpl[
'fax']; ?></td>
121 <td><?php echo $langs->trans(
'EMail'); ?></td>
122 <td><?php echo $this->control->tpl[
'email']; ?></td>
123 <td><?php echo $langs->trans(
'Web'); ?></td>
124 <td><?php echo $this->control->tpl[
'url']; ?></td>
128for ($i = 1; $i <= 4; $i++) {
129 if ($this->control->tpl[
'langprofid'.$i] !=
'-') {
130 if ($i == 1 || $i == 3) {
133 echo
'<td>'.$this->control->tpl[
'langprofid'.$i].
'</td>';
134 echo
'<td>'.$this->control->tpl[
'profid'.$i];
135 if ($this->control->tpl[
'profid'.$i]) {
136 if ($this->control->tpl[
'checkprofid'.$i] > 0) {
137 echo
' '.$this->control->tpl[
'urlprofid'.$i];
139 echo
' <span class="error">('.$langs->trans(
"ErrorWrongValue").
')</span>';
143 if ($i == 2 || $i == 4) {
147 if ($i == 1 || $i == 3) {
150 echo
'<td> </td>';
151 echo
'<td> </td>';
152 if ($i == 2 || $i == 4) {
160 <td><?php echo $langs->trans(
'VATIsUsed'); ?></td>
161 <td><?php echo $this->control->tpl[
'tva_assuj']; ?></td>
162 <td
class=
"nowrap"><?php echo $langs->trans(
'VATIntra'); ?></td>
163 <td><?php echo $this->control->tpl[
'tva_intra']; ?></td>
166<?php
if (!empty($this->control->tpl[
'localtax'])) {
167 echo $this->control->tpl[
'localtax'];
171 <td><?php echo $langs->trans(
'Capital'); ?></td>
174 if ($this->control->tpl[
'capital']) {
175 echo $this->control->tpl[
'capital'].
' '.$langs->trans(
"Currency".$conf->currency);
184 <td><?php echo $langs->trans(
'JuridicalStatus'); ?></td>
185 <td colspan=
"3"><?php echo $this->control->tpl[
'forme_juridique']; ?></td>
189 <td><?php echo $langs->trans(
"ThirdPartyType"); ?></td>
190 <td><?php echo $this->control->tpl[
'typent']; ?></td>
191 <td><?php echo $langs->trans(
"Staff"); ?></td>
192 <td><?php echo $this->control->tpl[
'effectif']; ?></td>
197 <td><?php echo $langs->trans(
"DefaultLang"); ?></td>
198 <td colspan=
"3"><?php echo $this->control->tpl[
'default_lang']; ?></td>
204 <
table class=
"nobordernopadding allwidth">
206 <td><?php echo $langs->trans(
'RIB'); ?></td>
208 <?php
if ($user->hasRight(
'societe',
'creer')) { ?>
209 <a href=
"<?php echo DOL_URL_ROOT.'/societe/paymentmodes.php?socid='.$this->control->tpl['id']; ?>"><?php echo $this->control->tpl[
'image_edit']; ?></a>
217 <td colspan=
"3"><?php echo $this->control->tpl[
'display_rib']; ?></td>
222 <
table class=
"nobordernopadding allwidth">
224 <td><?php echo $langs->trans(
'ParentCompany'); ?></td>
231 <td colspan=
"3"><?php echo $this->control->tpl[
'parent_company']; ?></td>
236 <
table class=
"nobordernopadding allwidth">
238 <td><?php echo $langs->trans(
'SalesRepresentatives'); ?></td>
240 <?php
if ($user->hasRight(
'societe',
'creer')) { ?>
241 <a href=
"<?php echo DOL_URL_ROOT.'/societe/commerciaux.php?socid='.$this->control->tpl['id']; ?>"><?php echo $this->control->tpl[
'image_edit']; ?></a>
249 <td colspan=
"3"><?php echo $this->control->tpl[
'sales_representatives']; ?></td>
252<?php
if (isModEnabled(
'member')) { ?>
254 <td width=
"25%" valign=
"top"><?php echo $langs->trans(
"LinkedToDolibarrMember"); ?></td>
255 <td colspan=
"3"><?php echo $this->control->tpl[
'linked_member']; ?></td>
263<div
class=
"tabsAction">
264<?php
if ($user->hasRight(
'societe',
'creer')) { ?>
265<a
class=
"butAction" href=
"<?php echo $_SERVER["PHP_SELF
"].'?socid='.$this->control->tpl['id'].'&action=edit&token='.newToken().'&canvas='.urlencode($canvas); ?>"><?php echo $langs->trans(
"Modify"); ?></a>
268<?php
if ($user->hasRight(
'societe',
'supprimer')) { ?>
269 <?php
if ($conf->use_javascript_ajax) { ?>
270 <span
id=
"action-delete" class=
"butActionDelete"><?php echo $langs->trans(
'Delete'); ?></span>
272 <a
class=
"butActionDelete" href=
"<?php echo $_SERVER["PHP_SELF
"].'?socid='.$this->control->tpl['id'].'&action=delete&token='.newToken().'&canvas='.urlencode($canvas); ?>"><?php echo $langs->trans(
'Delete'); ?></a>
279<
table class=
"allwidth"><tr><td valign=
"top" width=
"50%">
280<div
id=
"builddoc"></div>
286$filedir = $conf->societe->multidir_output[$this->control->tpl[
'entity']].
'/'.$socid;
287$urlsource = $_SERVER[
"PHP_SELF"].
"?socid=".$socid;
288$genallowed = $user->hasRight(
'societe',
'lire');
289$delallowed = $user->hasRight(
'societe',
'creer');
291print $formfile->showdocuments(
'company', $socid, $filedir, $urlsource, $genallowed, $delallowed,
'', 0, 0, 0, 28, 0,
'', 0,
'', $objcanvas->control->object->default_lang);
312<!-- END PHP TEMPLATE -->
show_projects($conf, $langs, $db, $object, $backtopage='', $nocreatelink=0, $morehtmlright='')
Show html area for list of projects.
show_contacts($conf, $langs, $db, $object, $backtopage='', $showuserlogin=0)
Show html area for list of contacts.
show_subsidiaries($conf, $langs, $db, $object)
Show html area for list of subsidiaries.
societe_prepare_head(Societe $object)
Return array of tabs to used on pages for third parties cards.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
treeview li table
No Email.