} // Creation KO $mesg = $object->error; } /*************************************************** * VIEW * * Put here all code to build page ****************************************************/ llxHeader('', 'gestimmo', ''); $form = new Form($db); $text = "Gestion immobiliere "; print_barre_liste($langs->trans("{$text}"), $page, $_SERVER["PHP_SELF"], '', $sortfield, $sortorder, "", $num); print '<div class="tabBar">'; print '<table width="auto">'; $head = gestimmo_prepare_head($user); $titre = $langs->trans("biens "); $picto = 'biens'; dol_fiche_head($head, 'Loyers', $titre, 0, $picto); // Put here content of your page // pour test liste $action = 'list'; // Example 1 : Adding jquery code print '<script type="text/javascript" language="javascript"> jQuery(document).ready(function() { function init_myfunc() { jQuery("#myid").removeAttr(\'disabled\'); jQuery("#myid").attr(\'disabled\',\'disabled\'); } init_myfunc();
$result = $object->fetch_lines(); } if ($result < 0) { dol_print_error($db, $object->error); exit; } dol_htmloutput_errors($mesg, ''); $object->fetch_thirdparty(); $nbofservices = count($object->lines); $author = new User($db); $author->fetch($object->user_author_id); // $commercial_signature = new User($db); //$commercial_signature->fetch($object->commercial_signature_id); //$commercial_suivi = new User($db); //$commercial_suivi->fetch($object->commercial_suivi_id); $head = gestimmo_prepare_head($object); $hselected = 0; dol_fiche_head($head, $hselected, $langs->trans("Mandat"), 0, 'mandat'); /* * Confirmation de la suppression du contrat */ if ($action == 'delete') { $ret = $form->form_confirm($_SERVER['PHP_SELF'] . "?id=" . $object->id, $langs->trans("DeleteAContract"), $langs->trans("ConfirmDeleteAContract"), "confirm_delete", '', 0, 1); if ($ret == 'html') { print '<br>'; } } /* * Confirmation de la validation */ if ($action == 'valid') {