print '</div>'; print '<table style=noborder align="right">'; print '<tr><td align="center" colspan=2>'; print '<input type="submit" name="importadress" class="butAction" value="' . $langs->trans("Save") . '"> '; print '<input type="submit" name="cancel" class="butActionDelete" value="' . $langs->trans("Cancel") . '">'; print '</td></tr>'; print '</table>'; print '</form>'; } else { // Affichage de la fiche des mandat gere if ($id) { print_barre_liste($langs->trans("Gestion des Bien Immobilier"), "", "", "", "", "", '', 0); $agf = new Mandat($db); $result = $agf->fetch($id); if ($result) { $head = mandat_prepare_head($agf); dol_fiche_head($head, 'fiche', $langs->trans("Gestion des Mandats"), 0, 'contrat'); // reference propio $soc = new Societe($db); $soc->fetch($agf->fk_soc); // Affichage en mode "édition" if ($action == 'edit') { $formcompany = new FormCompany($db); // TODO $formimmo = new FormImmobilier($db); print_barre_liste($langs->trans("Modification Mandat"), "", "", "", "", "", '', 0); // debut formulaire mis a jours mandat print '<form name="update" action="' . $_SERVER['PHP_SELF'] . '" method="post">' . "\n"; print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">' . "\n"; print '<input type="hidden" name="action" value="update">' . "\n"; print '<input type="hidden" name="id" value="' . $id . '">' . "\n";
$mesg = $object->error; } /*************************************************** * VIEW * * Put here all code to build page ****************************************************/ $texte = "Listes des mandats"; //llxHeader('','Liste mandats',''); llxHeader("", "", $texte); $form = new Form($db); $text = "Gestion des mandats "; //print_barre_liste($langs->trans("$text"), $page, $_SERVER["PHP_SELF"], '', $sortfield, $sortorder, "", $num); print '<div class="tabBar">'; print '<table width="auto">'; $head = mandat_prepare_head($user); $titre = $langs->trans("mandats"); $picto = 'biens'; //dol_fiche_head($head, 'Mandat', $titre, 0, $picto); // Put here content of your page // pour test liste //$action='list'; // Put here content of your page /* 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\'); }