38: */
39:
40: -- bug 3045375, changed <> to > so <0 l_file_id goes to else.
41: if (l_file_id > -1) then -- File upload completed
42: htp.htmlOpen;
43: htp.headOpen;
44: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
45: htp.headClose;
46: htp.bodyOpen;
39:
40: -- bug 3045375, changed <> to > so <0 l_file_id goes to else.
41: if (l_file_id > -1) then -- File upload completed
42: htp.htmlOpen;
43: htp.headOpen;
44: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
45: htp.headClose;
46: htp.bodyOpen;
47: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
40: -- bug 3045375, changed <> to > so <0 l_file_id goes to else.
41: if (l_file_id > -1) then -- File upload completed
42: htp.htmlOpen;
43: htp.headOpen;
44: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
45: htp.headClose;
46: htp.bodyOpen;
47: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
48: htp.br;
41: if (l_file_id > -1) then -- File upload completed
42: htp.htmlOpen;
43: htp.headOpen;
44: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
45: htp.headClose;
46: htp.bodyOpen;
47: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
48: htp.br;
49: htp.br;
42: htp.htmlOpen;
43: htp.headOpen;
44: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
45: htp.headClose;
46: htp.bodyOpen;
47: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
48: htp.br;
49: htp.br;
50: htp.p('
43: htp.headOpen;
44: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
45: htp.headClose;
46: htp.bodyOpen;
47: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
48: htp.br;
49: htp.br;
50: htp.p('
44: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
45: htp.headClose;
46: htp.bodyOpen;
47: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
48: htp.br;
49: htp.br;
50: htp.p('
45: htp.headClose;
46: htp.bodyOpen;
47: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
48: htp.br;
49: htp.br;
50: htp.p('
46: htp.bodyOpen;
47: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
48: htp.br;
49: htp.br;
50: htp.p(''||fnd_message.get_string('FND','FILE-UPLOAD PAGE HEADING')
51: ||'');
52: htp.hr;
53: htp.p (
54: htf.bold(fnd_message.get_string('FND','FILE-UPLOAD COMPLETED MESSAGE')));
48: htp.br;
49: htp.br;
50: htp.p('
49: htp.br;
50: htp.p('
51: ||'');
52: htp.hr;
53: htp.p (
54: htf.bold(fnd_message.get_string('FND','FILE-UPLOAD COMPLETED MESSAGE')));
55: htp.br;
56: htp.p ('
52: htp.hr;
53: htp.p (
54: htf.bold(fnd_message.get_string('FND','FILE-UPLOAD COMPLETED MESSAGE')));
55: htp.br;
56: htp.p (''||fnd_message.get_string('FND','FILE-UPLOAD CLOSE WEB BROWSER')
57: ||'');
58: htp.p ('
54: htf.bold(fnd_message.get_string('FND','FILE-UPLOAD COMPLETED MESSAGE')));
55: htp.br;
56: htp.p ('
56: htp.p ('
57: ||'');
58: htp.p ('
58: htp.p ('
60: htp.br;
61: htp.bodyClose;
62: htp.htmlClose;
63: else -- File upload failed.
64: htp.htmlOpen;
65: htp.headOpen;
66: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
67: htp.headClose;
68: htp.bodyOpen;
61: htp.bodyClose;
62: htp.htmlClose;
63: else -- File upload failed.
64: htp.htmlOpen;
65: htp.headOpen;
66: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
67: htp.headClose;
68: htp.bodyOpen;
69: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
62: htp.htmlClose;
63: else -- File upload failed.
64: htp.htmlOpen;
65: htp.headOpen;
66: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
67: htp.headClose;
68: htp.bodyOpen;
69: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
70: htp.br;
63: else -- File upload failed.
64: htp.htmlOpen;
65: htp.headOpen;
66: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
67: htp.headClose;
68: htp.bodyOpen;
69: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
70: htp.br;
71: htp.br;
64: htp.htmlOpen;
65: htp.headOpen;
66: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
67: htp.headClose;
68: htp.bodyOpen;
69: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
70: htp.br;
71: htp.br;
72: htp.p('
65: htp.headOpen;
66: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
67: htp.headClose;
68: htp.bodyOpen;
69: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
70: htp.br;
71: htp.br;
72: htp.p('
66: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
67: htp.headClose;
68: htp.bodyOpen;
69: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
70: htp.br;
71: htp.br;
72: htp.p('
67: htp.headClose;
68: htp.bodyOpen;
69: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
70: htp.br;
71: htp.br;
72: htp.p('
68: htp.bodyOpen;
69: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
70: htp.br;
71: htp.br;
72: htp.p(''||fnd_message.get_string('FND','FILE-UPLOAD PAGE HEADING')
73: ||'');
74: htp.hr;
75: -- bug 3045375, added if to throw invalid file message when l_file_id=-2
76: if l_file_id <> -2 then
70: htp.br;
71: htp.br;
72: htp.p('
73: ||'');
74: htp.hr;
75: -- bug 3045375, added if to throw invalid file message when l_file_id=-2
76: if l_file_id <> -2 then
77: htp.p (
78: htf.bold(fnd_message.get_string('FND','FILE-UPLOAD FAILED')));
79: else
80: htp.p (
81: htf.bold(fnd_message.get_string('FND','UPLOAD_FILESIZE_LIMIT')));
76: if l_file_id <> -2 then
77: htp.p (
78: htf.bold(fnd_message.get_string('FND','FILE-UPLOAD FAILED')));
79: else
80: htp.p (
81: htf.bold(fnd_message.get_string('FND','UPLOAD_FILESIZE_LIMIT')));
82: end if;
83: htp.br;
84: htp.bodyClose;
79: else
80: htp.p (
81: htf.bold(fnd_message.get_string('FND','UPLOAD_FILESIZE_LIMIT')));
82: end if;
83: htp.br;
84: htp.bodyClose;
85: htp.htmlClose;
86: end if;
87: end if;
80: htp.p (
81: htf.bold(fnd_message.get_string('FND','UPLOAD_FILESIZE_LIMIT')));
82: end if;
83: htp.br;
84: htp.bodyClose;
85: htp.htmlClose;
86: end if;
87: end if;
88:
81: htf.bold(fnd_message.get_string('FND','UPLOAD_FILESIZE_LIMIT')));
82: end if;
83: htp.br;
84: htp.bodyClose;
85: htp.htmlClose;
86: end if;
87: end if;
88:
89: end UploadCompleteMessage;
100:
101: if (icx_sec.ValidateSession) then
102:
103: -- Show a message page
104: htp.htmlOpen;
105: htp.headOpen;
106: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
107: htp.headClose;
108: htp.bodyOpen;
101: if (icx_sec.ValidateSession) then
102:
103: -- Show a message page
104: htp.htmlOpen;
105: htp.headOpen;
106: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
107: htp.headClose;
108: htp.bodyOpen;
109: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
102:
103: -- Show a message page
104: htp.htmlOpen;
105: htp.headOpen;
106: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
107: htp.headClose;
108: htp.bodyOpen;
109: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
110: htp.br;
103: -- Show a message page
104: htp.htmlOpen;
105: htp.headOpen;
106: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
107: htp.headClose;
108: htp.bodyOpen;
109: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
110: htp.br;
111: htp.br;
104: htp.htmlOpen;
105: htp.headOpen;
106: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
107: htp.headClose;
108: htp.bodyOpen;
109: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
110: htp.br;
111: htp.br;
112: htp.p('
105: htp.headOpen;
106: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
107: htp.headClose;
108: htp.bodyOpen;
109: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
110: htp.br;
111: htp.br;
112: htp.p('
106: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
107: htp.headClose;
108: htp.bodyOpen;
109: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
110: htp.br;
111: htp.br;
112: htp.p('
107: htp.headClose;
108: htp.bodyOpen;
109: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
110: htp.br;
111: htp.br;
112: htp.p('
108: htp.bodyOpen;
109: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
110: htp.br;
111: htp.br;
112: htp.p(''||fnd_message.get_string('FND','FILE-UPLOAD PAGE HEADING')
113: ||'');
114: htp.hr;
115: htp.p (htf.bold(fnd_message.get_string('FND','FILE-UPLOAD CANCEL MESSAGE')));
116: htp.br;
110: htp.br;
111: htp.br;
112: htp.p('
111: htp.br;
112: htp.p('
112: htp.p('
113: ||'');
114: htp.hr;
115: htp.p (htf.bold(fnd_message.get_string('FND','FILE-UPLOAD CANCEL MESSAGE')));
116: htp.br;
117: htp.p (''||fnd_message.get_string('FND','FILE-UPLOAD CLOSE WEB BROWSER')
118: ||'');
119: htp.p ('
115: htp.p (htf.bold(fnd_message.get_string('FND','FILE-UPLOAD CANCEL MESSAGE')));
116: htp.br;
117: htp.p ('
117: htp.p ('
118: ||'');
119: htp.p ('
119: htp.p ('
120: ||'');
121: htp.br;
122: htp.br;
123: htp.br;
124: htp.bodyClose;
125: htp.htmlClose;
126:
127: end if;
128:
121: htp.br;
122: htp.br;
123: htp.br;
124: htp.bodyClose;
125: htp.htmlClose;
126:
127: end if;
128:
129: end CancelProcess;
148: 'fnd_file_upload.uploadcompletemessage',
149: access_id);
150:
151: -- Set page title and toolbar.
152: htp.htmlOpen;
153: htp.headOpen;
154: htp.p( '' );
159: {
160: parent.location=cancel_url
161: }
162: }');
163: htp.print( '' );
164: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
165: htp.headClose;
166: htp.bodyOpen;
167: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
160: parent.location=cancel_url
161: }
162: }');
163: htp.print( '' );
164: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
165: htp.headClose;
166: htp.bodyOpen;
167: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
168: htp.br;
161: }
162: }');
163: htp.print( '' );
164: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
165: htp.headClose;
166: htp.bodyOpen;
167: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
168: htp.br;
169: htp.br;
162: }');
163: htp.print( '' );
164: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
165: htp.headClose;
166: htp.bodyOpen;
167: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
168: htp.br;
169: htp.br;
170: htp.p('
163: htp.print( '' );
164: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
165: htp.headClose;
166: htp.bodyOpen;
167: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
168: htp.br;
169: htp.br;
170: htp.p('
164: htp.title(fnd_message.get_string('FND','FILE-UPLOAD PAGE TITLE'));
165: htp.headClose;
166: htp.bodyOpen;
167: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
168: htp.br;
169: htp.br;
170: htp.p('
165: htp.headClose;
166: htp.bodyOpen;
167: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
168: htp.br;
169: htp.br;
170: htp.p('
166: htp.bodyOpen;
167: htp.img2('/OA_MEDIA/FNDLOGOS.gif',calign => 'Left',calt => 'Logo');
168: htp.br;
169: htp.br;
170: htp.p(''||fnd_message.get_string('FND','FILE-UPLOAD PAGE HEADING')
171: ||'');
172: htp.hr;
173: htp.br;
174: htp.print( '' );
168: htp.br;
169: htp.br;
170: htp.p('
169: htp.br;
170: htp.p('
170: htp.p('
172: htp.hr;
173: htp.br;
174: htp.print( '' );
175:
176: htp.formOpen( curl => upload_action, cmethod => 'POST',
177: cenctype=> 'multipart/form-data');
178: htp.tableOpen( cattributes => ' border=0 cellpadding=2 cellspacing=0' );
179: htp.tableRowOpen;
180: htp.tableRowClose;
174: htp.print( '' );
175:
176: htp.formOpen( curl => upload_action, cmethod => 'POST',
177: cenctype=> 'multipart/form-data');
178: htp.tableOpen( cattributes => ' border=0 cellpadding=2 cellspacing=0' );
179: htp.tableRowOpen;
180: htp.tableRowClose;
181:
182: htp.tableRowOpen( cvalign => 'TOP' );
175:
176: htp.formOpen( curl => upload_action, cmethod => 'POST',
177: cenctype=> 'multipart/form-data');
178: htp.tableOpen( cattributes => ' border=0 cellpadding=2 cellspacing=0' );
179: htp.tableRowOpen;
180: htp.tableRowClose;
181:
182: htp.tableRowOpen( cvalign => 'TOP' );
183: htp.p('
176: htp.formOpen( curl => upload_action, cmethod => 'POST',
177: cenctype=> 'multipart/form-data');
178: htp.tableOpen( cattributes => ' border=0 cellpadding=2 cellspacing=0' );
179: htp.tableRowOpen;
180: htp.tableRowClose;
181:
182: htp.tableRowOpen( cvalign => 'TOP' );
183: htp.p('
178: htp.tableOpen( cattributes => ' border=0 cellpadding=2 cellspacing=0' );
179: htp.tableRowOpen;
180: htp.tableRowClose;
181:
182: htp.tableRowOpen( cvalign => 'TOP' );
183: htp.p('
179: htp.tableRowOpen;
180: htp.tableRowClose;
181:
182: htp.tableRowOpen( cvalign => 'TOP' );
183: htp.p('
180: htp.tableRowClose;
181:
182: htp.tableRowOpen( cvalign => 'TOP' );
183: htp.p('
181:
182: htp.tableRowOpen( cvalign => 'TOP' );
183: htp.p('
182: htp.tableRowOpen( cvalign => 'TOP' );
183: htp.p('
184: htp.p('');
185: htp.p('');
186: htp.tableData( '',
187: calign => 'left');
188: htp.tableRowClose;
189: htp.tableClose;
190:
191: -- Send access is as a hidden value
192: htp.formHidden ( cname =>'access_id', cvalue=> to_char(access_id) );
185: htp.p('');
186: htp.tableData( '',
187: calign => 'left');
188: htp.tableRowClose;
189: htp.tableClose;
190:
191: -- Send access is as a hidden value
192: htp.formHidden ( cname =>'access_id', cvalue=> to_char(access_id) );
193: -- Submit and Reset Buttons.
188: htp.tableRowClose;
189: htp.tableClose;
190:
191: -- Send access is as a hidden value
192: htp.formHidden ( cname =>'access_id', cvalue=> to_char(access_id) );
193: -- Submit and Reset Buttons.
194: -- l_cancel_url := RTRIM(l_server_url, '/') ||
195: -- '/fnd_file_upload.cancelprocess';
196: l_cancel_url := rtrim(fnd_web_config.plsql_agent, '/') ||
195: -- '/fnd_file_upload.cancelprocess';
196: l_cancel_url := rtrim(fnd_web_config.plsql_agent, '/') ||
197: '/fnd_file_upload.cancelprocess';
198:
199: htp.br;
200: htp.tableOpen( cattributes => ' border=0 cellpadding=2 cellspacing=0' );
201: htp.tableRowOpen( cvalign => 'TOP' );
202: htp.tableData( '', calign => 'left');
197: '/fnd_file_upload.cancelprocess';
198:
199: htp.br;
200: htp.tableOpen( cattributes => ' border=0 cellpadding=2 cellspacing=0' );
201: htp.tableRowOpen( cvalign => 'TOP' );
202: htp.tableData( '', calign => 'left');
205: htp.tableData( '', calign => 'left');
205: htp.tableData( '', calign => 'left');
205: htp.tableData( '', calign => 'left');
209: htp.tableRowClose;
205: htp.tableData( '', calign => 'left');
209: htp.tableRowClose;
210: htp.tableClose;
211: htp.formClose;
212:
213: htp.bodyClose;
206: fnd_message.get_string('FND','FILE-UPLOAD CANCEL BUTTON TEXT')||
207: '"' || ' onClick="processclick('''||l_cancel_url||
208: ''') " SIZE="50">', calign => 'left');
209: htp.tableRowClose;
210: htp.tableClose;
211: htp.formClose;
212:
213: htp.bodyClose;
214: htp.htmlClose;
207: '"' || ' onClick="processclick('''||l_cancel_url||
208: ''') " SIZE="50">', calign => 'left');
209: htp.tableRowClose;
210: htp.tableClose;
211: htp.formClose;
212:
213: htp.bodyClose;
214: htp.htmlClose;
215: END IF;
209: htp.tableRowClose;
210: htp.tableClose;
211: htp.formClose;
212:
213: htp.bodyClose;
214: htp.htmlClose;
215: END IF;
216: END;
217:
210: htp.tableClose;
211: htp.formClose;
212:
213: htp.bodyClose;
214: htp.htmlClose;
215: END IF;
216: END;
217:
218: end FND_FILE_UPLOAD;