print '<tr><td width="20%">' . $langs->trans("DatePaiement") . '</td>'; print '<td align="left">'; print $form->select_date(!empty($datepaie) ? $datepaie : '-1', 'paie', 0, 0, 0, 'fiche_paiement', 1); print '</td>'; print '<tr><td> </td><td><input type="submit" class="button" value="' . $langs->trans("Sauvegarder") . '"><input type="cancel" class="button" value="' . $langs->trans("Cancel") . '"></td></tr>'; print '</table>'; print '</form>'; } /* *************************************************************************** */ /* */ /* Mode fiche */ /* */ /* *************************************************************************** */ if (GETPOST("action") == 'update') { $paie = new Paie($db); $result = $paie->fetch($id); print '<form action="fiche_paiement.php" method="post">'; print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">'; print '<input type="hidden" name="action" value="maj">'; print '<input type="hidden" name="id" value="' . GETPOST("id") . '">' . "\n"; print '<table class="border" width="100%">'; print '<tr><td width="20%">' . $langs->trans("NomLoyer") . '</td><td>' . $paie->nomloyer . '</td></tr>'; print '<tr><td width="20%">' . $langs->trans("NomAppartement") . '</td><td>' . $paie->nomlocal . '</td></tr>'; print '<tr><td width="20%">' . $langs->trans("NomLocataire") . '</td><td>' . $paie->nomlocataire . '</td></tr>'; print '<tr><td width="20%">montant </td>'; print '<td><input name="montant" size="30" value="' . $paie->montant . '"</td></tr>'; print '<tr><td width="20%">Commentaire </td>'; print '<td><input name="commentaire" size="50" value="' . $paie->commentaire . '"</td></tr>'; print '<tr><td width="20%">date_paiement</td>'; print '<td align="left">'; print $form->select_date($paie->date_paiement, 'paie', 0, 0, 0, 'fiche_paiement', 1);