29 print
"Error, template page can't be called as URL";
34$soc = $GLOBALS[
'objcanvas']->control->object;
37print
"<!-- BEGIN PHP TEMPLATE CARD_VIEW.TPL.PHP COMPANY -->\n";
43if ($this->control->tpl[
'error']) {
44 echo $this->control->tpl[
'error'];
46if ($this->control->tpl[
'action_delete']) {
47 echo $this->control->tpl[
'action_delete'];
49if ($this->control->tpl[
'js_checkVatPopup']) {
50 echo $this->control->tpl[
'js_checkVatPopup'];
54<
table class=
"border allwidth">
57 <td width=
"20%"><?php echo $langs->trans(
'ThirdPartyName'); ?></td>
58 <td colspan=
"3"><?php echo $this->control->tpl[
'showrefnav']; ?></td>
63 <td><?php echo $langs->trans(
'Prefix'); ?></td>
64 <td colspan=
"3"><?php echo $this->control->tpl[
'prefix_comm']; ?></td>
68<?php
if ($this->control->tpl[
'client']) { ?>
70 <td><?php echo $langs->trans(
'CustomerCode'); ?></td>
71 <td colspan=
"3"><?php echo $this->control->tpl[
'code_client']; ?>
72 <?php
if ($this->control->tpl[
'checkcustomercode'] != 0) { ?>
73 <span
class=
"error">(<?php echo $langs->trans(
"WrongCustomerCode"); ?>)</span>
79<?php
if ($this->control->tpl[
'fournisseur']) { ?>
81 <td><?php echo $langs->trans(
'SupplierCode'); ?></td>
82 <td colspan=
"3"><?php echo $this->control->tpl[
'code_fournisseur']; ?>
83 <?php
if ($this->control->tpl[
'checksuppliercode'] != 0) { ?>
84 <span
class=
"error">(<?php echo $langs->trans(
"WrongSupplierCode"); ?>)</span>
90<?php
if (isModEnabled(
'barcode')) { ?>
92 <td><?php echo $langs->trans(
'Gencod'); ?></td>
93 <td colspan=
"3"><?php echo $this->control->tpl[
'barcode']; ?></td>
98 <td
class=
"tdtop"><?php echo $langs->trans(
'Address'); ?></td>
99 <td colspan=
"3"><?php echo $this->control->tpl[
'address']; ?></td>
103 <td width=
"25%"><?php echo $langs->trans(
'Zip'); ?></td>
104 <td width=
"25%"><?php echo $this->control->tpl[
'zip']; ?></td>
105 <td width=
"25%"><?php echo $langs->trans(
'Town'); ?></td>
106 <td width=
"25%"><?php echo $this->control->tpl[
'town']; ?></td>
110 <td><?php echo $langs->trans(
"Country"); ?></td>
111 <td colspan=
"3" class=
"nowrap"><?php echo $this->control->tpl[
'country']; ?></td>
115 <td><?php echo $langs->trans(
'State'); ?></td>
116 <td colspan=
"3"><?php echo $this->control->tpl[
'departement']; ?></td>
120 <td><?php echo $langs->trans(
'Phone'); ?></td>
121 <td><?php echo $this->control->tpl[
'phone']; ?></td>
122 <td><?php echo $langs->trans(
'PhoneMobile'); ?></td>
123 <td><?php echo $this->control->tpl[
'phone_mobile']; ?></td>
124 <td><?php echo $langs->trans(
'Fax'); ?></td>
125 <td><?php echo $this->control->tpl[
'fax']; ?></td>
129 <td><?php echo $langs->trans(
'EMail'); ?></td>
130 <td><?php echo $this->control->tpl[
'email']; ?></td>
131 <td><?php echo $langs->trans(
'Web'); ?></td>
132 <td><?php echo $this->control->tpl[
'url']; ?></td>
136for ($i = 1; $i <= 4; $i++) {
137 if ($this->control->tpl[
'langprofid'.$i] !=
'-') {
138 if ($i == 1 || $i == 3) {
141 echo
'<td>'.$this->control->tpl[
'langprofid'.$i].
'</td>';
142 echo
'<td>'.$this->control->tpl[
'profid'.$i];
143 if ($this->control->tpl[
'profid'.$i]) {
144 if ($this->control->tpl[
'checkprofid'.$i] > 0) {
145 echo
' '.$this->control->tpl[
'urlprofid'.$i];
147 echo
' <span class="error">('.$langs->trans(
"ErrorWrongValue").
')</span>';
151 if ($i == 2 || $i == 4) {
155 if ($i == 1 || $i == 3) {
158 echo
'<td> </td>';
159 echo
'<td> </td>';
160 if ($i == 2 || $i == 4) {
168 <td><?php echo $langs->trans(
'VATIsUsed'); ?></td>
169 <td><?php echo $this->control->tpl[
'tva_assuj']; ?></td>
170 <td
class=
"nowrap"><?php echo $langs->trans(
'VATIntra'); ?></td>
171 <td><?php echo $this->control->tpl[
'tva_intra']; ?></td>
174<?php
if (!empty($this->control->tpl[
'localtax'])) {
175 echo $this->control->tpl[
'localtax'];
179 <td><?php echo $langs->trans(
'Capital'); ?></td>
182 if ($this->control->tpl[
'capital']) {
183 echo $this->control->tpl[
'capital'].
' '.$langs->trans(
"Currency".
$conf->currency);
192 <td><?php echo $langs->trans(
'JuridicalStatus'); ?></td>
193 <td colspan=
"3"><?php echo $this->control->tpl[
'forme_juridique']; ?></td>
197 <td><?php echo $langs->trans(
"ThirdPartyType"); ?></td>
198 <td><?php echo $this->control->tpl[
'typent']; ?></td>
199 <td><?php echo $langs->trans(
"Staff"); ?></td>
200 <td><?php echo $this->control->tpl[
'effectif']; ?></td>
205 <td><?php echo $langs->trans(
"DefaultLang"); ?></td>
206 <td colspan=
"3"><?php echo $this->control->tpl[
'default_lang']; ?></td>
212 <
table class=
"nobordernopadding allwidth">
214 <td><?php echo $langs->trans(
'RIB'); ?></td>
216 <?php
if ($user->hasRight(
'societe',
'creer')) { ?>
217 <a href=
"<?php echo DOL_URL_ROOT.'/societe/paymentmodes.php?socid='.$this->control->tpl['id']; ?>"><?php echo $this->control->tpl[
'image_edit']; ?></a>
225 <td colspan=
"3"><?php echo $this->control->tpl[
'display_rib']; ?></td>
230 <
table class=
"nobordernopadding allwidth">
232 <td><?php echo $langs->trans(
'ParentCompany'); ?></td>
239 <td colspan=
"3"><?php echo $this->control->tpl[
'parent_company']; ?></td>
244 <
table class=
"nobordernopadding allwidth">
246 <td><?php echo $langs->trans(
'SalesRepresentatives'); ?></td>
248 <?php
if ($user->hasRight(
'societe',
'creer')) { ?>
249 <a href=
"<?php echo DOL_URL_ROOT.'/societe/commerciaux.php?socid='.$this->control->tpl['id']; ?>"><?php echo $this->control->tpl[
'image_edit']; ?></a>
257 <td colspan=
"3"><?php echo $this->control->tpl[
'sales_representatives']; ?></td>
260<?php
if (isModEnabled(
'member')) { ?>
262 <td width=
"25%" valign=
"top"><?php echo $langs->trans(
"LinkedToDolibarrMember"); ?></td>
263 <td colspan=
"3"><?php echo $this->control->tpl[
'linked_member']; ?></td>
271<div
class=
"tabsAction">
272<?php
if ($user->hasRight(
'societe',
'creer')) { ?>
273<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>
276<?php
if ($user->hasRight(
'societe',
'supprimer')) { ?>
277 <?php
if (
$conf->use_javascript_ajax) { ?>
278 <span
id=
"action-delete" class=
"butActionDelete"><?php echo $langs->trans(
'Delete'); ?></span>
280 <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>
287<
table class=
"allwidth"><tr><td valign=
"top" width=
"50%">
288<div
id=
"builddoc"></div>
294$filedir =
$conf->societe->multidir_output[$this->control->tpl[
'entity']].
'/'.$socid;
295$urlsource = $_SERVER[
"PHP_SELF"].
"?socid=".$socid;
296$genallowed = $user->hasRight(
'societe',
'lire');
297$delallowed = $user->hasRight(
'societe',
'creer');
299print $formfile->showdocuments(
'company', $socid, $filedir, $urlsource, $genallowed, $delallowed,
'', 0, 0, 0, 28, 0,
'', 0,
'', $objcanvas->control->object->default_lang);
320<!-- 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 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...