32 print
"Error, template page can't be called as URL";
37$object = $GLOBALS[
'objcanvas']->control->object;
40print
"<!-- BEGIN PHP TEMPLATE CARD_VIEW.TPL.PHP INDIVIDUAL -->\n";
46if ($this->control->tpl[
'error']) {
47 echo $this->control->tpl[
'error'];
49if ($this->control->tpl[
'action_delete']) {
50 echo $this->control->tpl[
'action_delete'];
53<
table class=
"border allwidth">
56 <td width=
"20%"><?php echo $langs->trans(
'Name'); ?></td>
57 <td colspan=
"3"><?php echo $this->control->tpl[
'showrefnav']; ?></td>
62 <td><?php echo $langs->trans(
'Prefix'); ?></td>
63 <td colspan=
"3"><?php echo $this->control->tpl[
'prefix_comm']; ?></td>
67<?php
if ($this->control->tpl[
'client']) { ?>
69 <td><?php echo $langs->trans(
'CustomerCode'); ?></td>
70 <td colspan=
"3"><?php echo $this->control->tpl[
'code_client']; ?>
71 <?php
if ($this->control->tpl[
'checkcustomercode'] != 0) { ?>
72 <span
class=
"error">(<?php echo $langs->trans(
"WrongCustomerCode"); ?>)</span>
78<?php
if ($this->control->tpl[
'fournisseur']) { ?>
80 <td><?php echo $langs->trans(
'SupplierCode'); ?></td>
81 <td colspan=
"3"><?php echo $this->control->tpl[
'code_fournisseur']; ?>
82 <?php
if ($this->control->tpl[
'checksuppliercode'] != 0) { ?>
83 <span
class=
"error">(<?php echo $langs->trans(
"WrongSupplierCode"); ?>)</span>
89<?php
if (isModEnabled(
'barcode')) { ?>
91 <td><?php echo $langs->trans(
'Gencod'); ?></td>
92 <td colspan=
"3"><?php echo $this->control->tpl[
'barcode']; ?></td>
97 <td
class=
"tdtop"><?php echo $langs->trans(
'Address'); ?></td>
98 <td colspan=
"3"><?php echo $this->control->tpl[
'address']; ?></td>
102 <td width=
"25%"><?php echo $langs->trans(
'Zip'); ?></td>
103 <td width=
"25%"><?php echo $this->control->tpl[
'zip']; ?></td>
104 <td width=
"25%"><?php echo $langs->trans(
'Town'); ?></td>
105 <td width=
"25%"><?php echo $this->control->tpl[
'town']; ?></td>
109 <td><?php echo $langs->trans(
"Country"); ?></td>
110 <td colspan=
"3" class=
"nowrap"><?php echo $this->control->tpl[
'country']; ?></td>
114 <td><?php echo $langs->trans(
'State'); ?></td>
115 <td colspan=
"3"><?php echo $this->control->tpl[
'departement']; ?></td>
119 <td><?php echo $langs->trans(
'Phone'); ?></td>
120 <td><?php echo $this->control->tpl[
'phone']; ?></td>
121 <td><?php echo $langs->trans(
'PhoneMobile'); ?></td>
122 <td><?php echo $this->control->tpl[
'phone_mobile']; ?></td>
123 <td><?php echo $langs->trans(
'Fax'); ?></td>
124 <td><?php echo $this->control->tpl[
'fax']; ?></td>
128 <td><?php echo $langs->trans(
'EMail'); ?></td>
129 <td><?php echo $this->control->tpl[
'email']; ?></td>
130 <td><?php echo $langs->trans(
'Web'); ?></td>
131 <td><?php echo $this->control->tpl[
'url']; ?></td>
135 <td><?php echo $langs->trans(
'VATIsUsed'); ?></td>
136 <td colspan=
"3"><?php echo $this->control->tpl[
'tva_assuj']; ?></td>
139<?php
if (!empty($this->control->tpl[
'localtax'])) {
140 echo $this->control->tpl[
'localtax'];
144 <td><?php echo $langs->trans(
"Type"); ?></td>
145 <td colspan=
"3"><?php echo $this->control->tpl[
'typent']; ?></td>
150 <td><?php echo $langs->trans(
"DefaultLang"); ?></td>
151 <td colspan=
"3"><?php echo $this->control->tpl[
'default_lang']; ?></td>
157 <
table class=
"nobordernopadding allwidth">
159 <td><?php echo $langs->trans(
'RIB'); ?></td>
161 <?php
if ($user->hasRight(
'societe',
'creer')) { ?>
162 <a href=
"<?php echo DOL_URL_ROOT.'/societe/paymentmodes.php?socid='.$this->control->tpl['id']; ?>"><?php echo $this->control->tpl[
'image_edit']; ?></a>
170 <td colspan=
"3"><?php echo $this->control->tpl[
'display_rib']; ?></td>
175 <
table class=
"nobordernopadding allwidth">
177 <td><?php echo $langs->trans(
'SalesRepresentatives'); ?></td>
179 <?php
if ($user->hasRight(
'societe',
'creer')) { ?>
180 <a href=
"<?php echo DOL_URL_ROOT.'/societe/commerciaux.php?socid='.$this->control->tpl['id']; ?>"><?php echo $this->control->tpl[
'image_edit']; ?></a>
188 <td colspan=
"3"><?php echo $this->control->tpl[
'sales_representatives']; ?></td>
191<?php
if (isModEnabled(
'member')) { ?>
193 <td width=
"25%" valign=
"top"><?php echo $langs->trans(
"LinkedToDolibarrMember"); ?></td>
194 <td colspan=
"3"><?php echo $this->control->tpl[
'linked_member']; ?></td>
202<div
class=
"tabsAction">
203<?php
if ($user->hasRight(
'societe',
'creer')) { ?>
204<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>
207<?php
if ($user->hasRight(
'societe',
'supprimer')) { ?>
208 <?php
if (
$conf->use_javascript_ajax) { ?>
209 <span
id=
"action-delete" class=
"butActionDelete"><?php echo $langs->trans(
'Delete'); ?></span>
211 <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>
218<
table class=
"allwidth"><tr><td valign=
"top" width=
"50%">
219<div
id=
"builddoc"></div>
224$filedir =
$conf->societe->multidir_output[$this->control->tpl[
'entity']].
'/'.$socid;
225$urlsource = $_SERVER[
"PHP_SELF"].
"?socid=".$socid;
226$genallowed = $user->hasRight(
'societe',
'lire');
227$delallowed = $user->hasRight(
'societe',
'creer');
229print $formfile->showdocuments(
'company', $socid, $filedir, $urlsource, $genallowed, $delallowed,
'', 0, 0, 0, 28, 0,
'', 0,
'', $objcanvas->control->object->default_lang);
249print
"<!-- END PHP TEMPLATE -->\n";
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
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 a Dolibarr global constant string value.
treeview li table
No Email.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...