1746878 Correct Button format on Attachment Window

This commit is contained in:
rob_k 2007-07-05 04:11:08 +00:00
parent 92fb2dd27e
commit 47cb07865c
1 changed files with 20 additions and 2 deletions

View File

@ -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