Ejemplo n.º 1
0
                   print '<td><input name="Honoraire" class="flat" size="10" value="'.$agf->Honoraire.'"></td>';  
                   print '<tr><td>'.$langs->trans("Assurance").'</td>';
                   print '<td><input name="Assurance" class="flat" size="10" value="'.$agf->Assurance.'"></td>'; 
                */
                print '</table>';
                print '</div>';
                print '<table style=noborder align="right">';
                print '<tr><td align="center" colspan=2>';
                print '<input type="submit" class="butAction" value="' . $langs->trans("Save") . '"> &nbsp; ';
                //  print '<input type="submit" name="importadress" class="butAction" value="'.$langs->trans("AgfImportCustomerAdress").'"> &nbsp; ';
                print '<input type="submit" name="cancel" class="butActionDelete" value="' . $langs->trans("Cancel") . '">';
                print '</td></tr>';
                print '</table>';
                print '</form>';
                print '</div>' . "\n";
            }
        } else {
            $formimmo = new FormImmobilier($db);
            print_barre_liste($langs->trans("Modification biens"), "", "", "", "", "", '', 0);
            print '<tr><td>' . $langs->trans("bail") . '</td>';
            print '<td><input name="ref" class="flat" size="50" value="' . $gestimmo->rowid . '"></td></tr>';
            // TO DO remplace select_compagy pae select_mandat, rajouter select locataire et select proprio
            print '<tr><td>' . $langs->trans("Mandat") . '</td>';
            print '<td>' . $formimmo->select_mandat($gestimmo->fk_mandat, 'fk_mandat', '', 0, 1) . '</td></tr>';
            print '<tr><td>' . $langs->trans("fk_loc") . '</td>';
            print '<td><input name="fk_loc" class="flat" size="50" value="' . $gestimmo->fk_loc . '"></td>';
            print '<tr><td>' . $langs->trans("fk_logement") . '</td>';
            print '<td><input name="fk_logement" class="flat" size="50" value="' . $gestimmo->fk_logement . '"></td>';
        }
    }
}