$langs->load("compta"); $langs->load("bills"); $langs->load("loan"); $id = GETPOST('id', 'int'); $action = GETPOST("action"); // Security check $socid = GETPOST('socid', 'int'); if ($user->societe_id) { $socid = $user->societe_id; } $result = restrictedArea($user, 'loan', $id, '', ''); /* * View */ $help_url = 'EN:Module_Loan|FR:Module_Emprunt'; llxHeader("", $langs->trans("Loan"), $help_url); if ($id > 0) { $loan = new Loan($db); $loan->fetch($id); $loan->info($id); $head = loan_prepare_head($loan); dol_fiche_head($head, 'info', $langs->trans("Loan"), 0, 'bill'); print '<table width="100%"><tr><td>'; dol_print_object_info($loan); print '</td></tr></table>'; print '</div>'; } else { // $id ? } llxFooter(); $db->close();