1: package body OracleConfigure as
2: /* $Header: ICXCNFGB.pls 120.0 2005/10/07 12:13:26 gjimenez noship $ */
3:
4: -- ***********************************************
5: -- procedure createPage
452: icx_cabo.container(p_toolbar => l_toolbar,
453: p_helpmsg => wf_core.translate('MODIFY_HOME'),
454: p_helptitle => l_page_name ,
455: p_url => owa_util.get_cgi_env('SCRIPT_NAME')||
456: '/OracleConfigure.displayCustomize?p_page_id='||l_page_id,
457: p_action => TRUE);
458:
459: end if;
460:
497: icx_javascript.open_script;
498:
499: htp.p (' function customedit(pageid,regionid)
500: {
501: popupWin = window.open("'||l_agent||'OracleConfigure.addPlugDlg?p_page_id=" +
502: pageid + "'||'&'||'p_region_id=" + regionid
503: , "Add", "status=no,resizable,scrollbars=yes,width=650,height=300");
504: }
505: '); -- 1420084 mputman changed open window params to allow scrollbars
505: '); -- 1420084 mputman changed open window params to allow scrollbars
506:
507: htp.p (' function openWindow(regionid,pageid)
508: {
509: popupWin = window.open("'||l_agent||'OracleConfigure.draw_editregion?p_region_id=" +
510: regionid + "'||'&'||'p_page_id=" + pageid,
511: "EditRegion", "statusbar=Y,resizable,width=575,height=300");
512: }
513: ');
513: ');
514:
515: htp.p (' function rename(plugid)
516: {
517: popupWin = window.open("'||l_agent||'OracleConfigure.renamePlugDlg?p_plug_id=" +
518: plugid
519: , "Rename", "status=no,resizable,scrollbars=yes,width=650,height=175");
520: }
521: '); -- 1420084 mputman changed open window params to allow scrollbars and shorten box from 300 to 175
971:
972: l_str := l_str || '';
973:
974: -- Split Vertical Link
975: l_url := ''||l_agent||'OracleConfigure.split_region'||'?p_split_mode=0'||'&'||'p_region_id='||p_region_id||'&'||'p_page_id='||p_page_id;
976:
977: l_str := l_str || '';
978:
979: -- Delete Link
978:
979: -- Delete Link
980: -- Do not show the delete link for the main region - when p_show is 1
981: if ( p_show = 0 ) then
982: l_url := ''||l_agent||'OracleConfigure.delete_region'||'?p_region_id='||p_region_id||'&'||'p_page_id='||p_page_id;
983:
984: l_str := l_str || '';
985:
986: end if;
1060: htp.headClose;
1061:
1062: -- Construct the Button and the Button list
1063: l_button1 := icxui_api_button.create_button( p_button_name => wf_core.translate('APPLY'),
1064: p_button_url => 'javascript:applySubmit('''||l_agent||'OracleConfigure.save_editregion'||''')');
1065: l_button2 := icxui_api_button.create_button(p_button_name => wf_core.translate('CANCEL'),
1066: p_button_url => 'javascript:cancelsubmit()');
1067:
1068: l_button_list := icxui_api_button_list(l_button1, l_button2);
1078:
1079: htp.centerOpen;
1080:
1081: -- Form Open
1082: htp.formOpen(curl => l_agent||'OracleConfigure.draw_editregion',
1083: cmethod => 'POST',
1084: cenctype => 'multipart/form-data',
1085: cattributes => 'NAME="editregionform"');
1086:
1104: cattributes => 'VALIGN="MIDDLE"');
1105:
1106: htp.tableData(htf.fontOpen(cface => 'arial,helvetica')
1107: || htf.formText(cname => 'p_region_width', csize => '3', cmaxlength => '3',
1108: cattributes => 'VALUE="'||l_region.width||'" onChange="javascript:applySubmit('''||l_agent||'OracleConfigure.save_editregion'||''')"')
1109: || htf.fontClose,
1110: cattributes => 'VALIGN="MIDDLE"');
1111: htp.tableRowClose;
1112:
1194: -- Display error message
1195: htp.p(SQLERRM);
1196:
1197: -- Return to the screen
1198: OracleConfigure.displayCustomize(p_page_id);
1199:
1200: return;
1201: end;
1202:
1215: end;
1216:
1217: end if;
1218:
1219: OracleConfigure.displayCustomize(p_page_id);
1220:
1221: end save_editregion;
1222:
1223:
1243: when OTHERS then
1244: htp.p(SQLERRM);
1245: end;
1246:
1247: OracleConfigure.displayCustomize(p_page_id);
1248:
1249: end split_region;
1250:
1251:
1269: when OTHERS then
1270: htp.p(SQLERRM);
1271: end;
1272:
1273: OracleConfigure.displayCustomize(p_page_id);
1274:
1275: end delete_region;
1276:
1277:
1356: htp.headClose;
1357: htp.p('
1426: where plug_id = p_plug_id;
1427:
1428: if instr(owa_util.get_cgi_env('HTTP_USER_AGENT'),'MSIE') = 0
1429: then
1430: OracleConfigure.Customize;
1431: end if;
1432:
1433: exception
1434: when others then
1560: }
1561: }
1562: ');
1563:
1564: htp.p(' url = "'||l_agent||'OracleConfigure.savepage?p_region_id="+document.addPlugdlg.p_region_id.value+"'||'&'||'p_page_id="+document.addPlugdlg.p_page_id.value+"'||'&'||'p_selectedlist="+document.addPlugdlg.p_selectedlist.value;
1565:
1566: window.opener.location= url;
1567: ');
1568:
1575: htp.headClose;
1576: htp.p('