print '<td>' . $langs->trans("Docref") . '</td>'; print '<td><input type="text" size="20" name="doc_ref" value=""/></td>'; print '</tr>'; print '<tr>'; print '<td>' . $langs->trans("Doctype") . '</td>'; print '<td><input type="text" size="20" name="doc_type" value=""/></td>'; print '</tr>'; print '</table>'; dol_fiche_end(); print '<div align="center"><input type="submit" class="button" value="' . $langs->trans("Create") . '">'; print ' <input type="button" value="' . $langs->trans("Cancel") . '" class="button" onclick="history.go(-1)" />'; print '</div>'; print '</form>'; } else { $book = new BookKeeping($db); $result = $book->fetchPerMvt($piece_num); if ($result < 0) { setEventMessages($book->error, $book->errors, 'errors'); } if (!empty($book->piece_num)) { print load_fiche_titre($langs->trans("UpdateMvts"), '<a href="list.php">' . $langs->trans('BackToList') . '</a>'); print '<table class="border" width="100%">'; print '<tr class="pair">'; print '<td width="25%">' . $langs->trans("NumMvts") . '</td>'; print '<td>' . $book->piece_num . '</td>'; print '</tr>'; print '<tr class="impair">'; print '<td>' . $langs->trans("Docdate") . '</td>'; print '<td>' . dol_print_date($book->doc_date, 'daytextshort') . '</td>'; print '</tr>'; print '<tr class="pair">';