} print "<tr><td>" . $langs->trans("Company") . "</td>"; print '<td colspan="3">' . $object->client->getNomUrl(1) . '</td></tr>'; // Delivery address if ($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) { print '<tr><td>'; print '<table class="nobordernopadding" width="100%"><tr><td>'; print $langs->trans('DeliveryAddress'); print '</td>'; if ($action != 'editdelivery_address' && $object->brouillon) { print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editdelivery_address&socid=' . $object->socid . '&id=' . $object->id . '">' . img_edit($langs->transnoentitiesnoconv('SetDeliveryAddress'), 1) . '</a></td>'; } print '</tr></table>'; print '</td><td colspan="3">'; if ($action == 'editdelivery_address') { $formother->form_address($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->fk_delivery_address, $object->socid, 'fk_address', 'propal', $object->id); } else { $formother->form_address($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->fk_delivery_address, $object->socid, 'none', 'propal', $object->id); } print '</td></tr>'; } print "</table>"; print '</div>'; print '<br>'; // Contacts lines (modules that overwrite templates must declare this into descriptor) $dirtpls = array_merge($conf->modules_parts['tpl'], array('/core/tpl')); foreach ($dirtpls as $reldir) { $res = @(include dol_buildpath($reldir . '/contacts.tpl.php')); if ($res) { break; }
} print "<tr><td>" . $langs->trans("Company") . "</td>"; print '<td colspan="3">' . $object->client->getNomUrl(1) . '</td></tr>'; // Delivery address if (!empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT)) { print '<tr><td>'; print '<table class="nobordernopadding" width="100%"><tr><td>'; print $langs->trans('DeliveryAddress'); print '</td>'; if ($action != 'editdelivery_address' && $object->brouillon) { print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editdelivery_address&socid=' . $object->socid . '&id=' . $object->id . '">' . img_edit($langs->transnoentitiesnoconv('SetDeliveryAddress'), 1) . '</a></td>'; } print '</tr></table>'; print '</td><td colspan="3">'; if ($action == 'editdelivery_address') { $formother->form_address($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->fk_delivery_address, GETPOST('socid', 'int'), 'fk_address', 'commande', $object->id); } else { $formother->form_address($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->fk_delivery_address, GETPOST('socid', 'int'), 'none', 'commande', $object->id); } print '</td></tr>'; } print "</table>"; print '</div>'; print '<br>'; // Contacts lines (modules that overwrite templates must declare this into descriptor) $dirtpls = array_merge($conf->modules_parts['tpl'], array('/core/tpl')); foreach ($dirtpls as $reldir) { $res = @(include dol_buildpath($reldir . '/contacts.tpl.php')); if ($res) { break; }