From 47cb07865c31c3493cd40fdb1bea0fcb2004acf6 Mon Sep 17 00:00:00 2001 From: rob_k Date: Thu, 5 Jul 2007 04:11:08 +0000 Subject: [PATCH] 1746878 Correct Button format on Attachment Window --- base/src/org/compiere/util/FileUpload.java | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/util/FileUpload.java b/base/src/org/compiere/util/FileUpload.java index 6ee92e2745..7c7b37a174 100644 --- a/base/src/org/compiere/util/FileUpload.java +++ b/base/src/org/compiere/util/FileUpload.java @@ -48,8 +48,26 @@ public class FileUpload { form upload = new form(action, form.METHOD_POST, form.ENC_UPLOAD); upload.addElement(new label ("File").setFor("file")); - upload.addElement(new input (input.TYPE_FILE, "file", "").setSize(40)); - upload.addElement(new input (input.TYPE_SUBMIT, "upload", "Upload")); + + //Browse Button + //upload.addElement(new input (input.TYPE_FILE, "file", "").setSize(40)); + String textbtn = "file"; + String text = "Browse"; + input filebtn = new input(input.TYPE_FILE, textbtn, " "+text); + filebtn.setSize(40); + filebtn.setID(text); + filebtn.setClass("filebtn"); + upload.addElement(filebtn); + + //upload Button + //upload.addElement(new input (input.TYPE_SUBMIT, "upload", "Upload")); + textbtn = "upload"; + text = "Upload"; + input submitbtn = new input(input.TYPE_SUBMIT, textbtn, " "+text); + submitbtn.setID(text); + submitbtn.setClass("submitbtn"); + upload.addElement(submitbtn); + return upload; } // createForm