print '</td></tr>'; } print '</table>'; print '</div>'; print '<div class="fichehalfright"><div class="ficheaddleft">'; print '<div class="underbanner clearboth"></div>'; print '<table class="border tableforfield" width="100%">'; // Birthday print '<tr><td>' . $langs->trans("Birthday") . '</td><td class="valeur">' . dol_print_date($object->birth, 'day') . '</td></tr>'; // Public print '<tr><td>' . $langs->trans("Public") . '</td><td class="valeur">' . yn($object->public) . '</td></tr>'; // Categories if (!empty($conf->categorie->enabled) && !empty($user->rights->categorie->lire)) { print '<tr><td>' . $langs->trans("Categories") . '</td>'; print '<td colspan="2">'; print $form->showCategories($object->id, 'member', 1); print '</td></tr>'; } // Other attributes $parameters = array('colspan' => 2); $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook if (empty($reshook) && !empty($extrafields->attribute_label)) { print $object->showOptionals($extrafields, 'view', $parameters); } // Third party Dolibarr if (!empty($conf->societe->enabled)) { print '<tr><td>'; print '<table class="nobordernopadding" width="100%"><tr><td>'; print $langs->trans("LinkedToDolibarrThirdParty"); print '</td>';
if (empty($conf->global->PRODUCT_DISABLE_CUSTOM_INFO)) { print '<tr><td>' . $langs->trans("CustomCode") . '</td><td colspan="2">' . $object->customcode . '</td>'; // Origin country code print '<tr><td>' . $langs->trans("CountryOrigin") . '</td><td colspan="2">' . getCountry($object->country_id, 0, $db) . '</td>'; } // Other attributes $parameters = array('colspan' => ' colspan="' . (2 + ($showphoto || $showbarcode ? 1 : 0)) . '"'); $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook if (empty($reshook) && !empty($extrafields->attribute_label)) { print $object->showOptionals($extrafields); } // Categories if ($conf->categorie->enabled) { print '<tr><td valign="middle">' . $langs->trans("Categories") . '</td><td colspan="3">'; print $form->showCategories($object->id, 'product', 1); print "</td></tr>"; } // Note print '<!-- show Note --> ' . "\n"; print '<tr><td class="tdtop">' . $langs->trans("Note") . '</td><td colspan="' . (2 + ($showphoto || $showbarcode ? 1 : 0)) . '">' . (dol_textishtml($object->note) ? $object->note : dol_nl2br($object->note, 1, true)) . '</td></tr>' . "\n"; print '<!-- End show Note --> ' . "\n"; print "</table>\n"; print '</div>'; print '</div></div>'; print '<div style="clear:both"></div>'; dol_fiche_end(); } } else { if ($action != 'create') { exit;
print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editmode&socid=' . $object->id . '">' . img_edit($langs->trans('SetMode'), 1) . '</a></td>'; } print '</tr></table>'; print '</td><td colspan="3">'; if ($action == 'editmode') { $form->form_modes_reglement($_SERVER['PHP_SELF'] . '?socid=' . $object->id, $object->mode_reglement_supplier_id, 'mode_reglement_supplier_id'); } else { $form->form_modes_reglement($_SERVER['PHP_SELF'] . '?socid=' . $object->id, $object->mode_reglement_supplier_id, 'none'); } print "</td>"; print '</tr>'; // Categories if (!empty($conf->categorie->enabled)) { print '<tr><td>' . $langs->trans("Categories") . '</td>'; print '<td colspan="3">'; print $form->showCategories($object->id, 'supplier', 1); print "</td></tr>"; } // Other attributes $parameters = array('socid' => $object->id, 'colspan' => ' colspan="3"', 'colspanvalue' => '3'); $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook print $hookmanager->resPrint; if (empty($reshook) && !empty($extrafields->attribute_label)) { print $object->showOptionals($extrafields); } // Module Adherent if (!empty($conf->adherent->enabled)) { $langs->load("members"); $langs->load("users"); print '<tr><td width="25%" valign="top">' . $langs->trans("LinkedToDolibarrMember") . '</td>';
print nl2br($object->note_public); print '</td></tr>'; // Note Private print '<tr><td class="tdtop">' . $langs->trans("NotePrivate") . '</td><td colspan="3">'; print nl2br($object->note_private); // Statut print '<tr><td>' . $langs->trans("Status") . '</td>'; print '<td>'; print $object->getLibStatut(4); print '</td>'; print '</tr>' . "\n"; // Categories if (!empty($conf->categorie->enabled) && !empty($user->rights->categorie->lire)) { print '<tr><td>' . $langs->trans("Categories") . '</td>'; print '<td colspan="3">'; print $form->showCategories($object->id, 'contact', 1); print '</td></tr>'; } // Other attributes $parameters = array('socid' => $socid, 'colspan' => ' colspan="3"'); $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook print $hookmanager->resPrint; if (empty($reshook) && !empty($extrafields->attribute_label)) { print $object->showOptionals($extrafields); } $object->load_ref_elements(); if (!empty($conf->commande->enabled)) { print '<tr><td>' . $langs->trans("ContactForOrders") . '</td><td colspan="3">'; print $object->ref_commande ? $object->ref_commande : $langs->trans("NoContactForAnyOrder"); print '</td></tr>';
foreach ($object->cacheprospectstatus as $key => $val) { $titlealt = 'default'; if (!empty($val['code']) && !in_array($val['code'], array('ST_NO', 'ST_NEVER', 'ST_TODO', 'ST_PEND', 'ST_DONE'))) { $titlealt = $val['label']; } if ($object->stcomm_id != $val['id']) { print '<a class="pictosubstatus" href="' . $_SERVER["PHP_SELF"] . '?socid=' . $object->id . '&stcomm=' . $val['code'] . '&action=setstcomm">' . img_action($titlealt, $val['code']) . '</a>'; } } print '</div></td></tr>'; } // Categories if (!empty($conf->categorie->enabled) && !empty($user->rights->categorie->lire)) { print '<tr><td>' . $langs->trans("Categories") . '</td>'; print '<td colspan="3">'; print $form->showCategories($object->id, 'customer', 1); print "</td></tr>"; } // Other attributes $parameters = array('socid' => $object->id, 'colspan' => ' colspan="3"', 'colspanvalue' => '3'); $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook print $hookmanager->resPrint; if (empty($reshook) && !empty($extrafields->attribute_label)) { print $object->showOptionals($extrafields); } // Sales representative include DOL_DOCUMENT_ROOT . '/societe/tpl/linesalesrepresentative.tpl.php'; // Module Adherent if (!empty($conf->adherent->enabled)) { $langs->load("members");