create or replace package body odwa_mgt is /***************************************************************************************** Purpose Web interface for the creation of Static HTML files Usage procedure Static_Wizard is called from the browser directly procedure generate_Files is called from the Static_Wizard web page Remarks procedure generate_files calls package cdwp_static_files Revision history When Who Construct Revision What ------------------------------------------------------------------------------------------ $REVISION_HISTORY$ 10-Dec-2002 Kannan Parthasarathy - B2701948 : Fixed. 14-Nov-2002 Kannan Parthasarathy - Fixed OAC P1 violations. 15-oct-2002 Kannan Parthasarathy - Added New Preferences page - Preferences and session data page are available only to REPOS owner 02-feb-2001 Lucas Jellema 1.6 Remove Static HTML generation option 12-jan-2001 Peter Ebell 1.5 - Added self service header 22-sep-2000 Lucas Jellema 1.4 - Temporarily disable link to odwa_wsf 15-sep-2000 Lucas Jellema 1.3 - reduce dependencies on Echo objects 11-aug-2000 Lucas Jellema 1.2 - Add link to Graphics Manager 24-may-2000 Lucas Jellema procedure cleanse_process_data, package specification 1.1 - Added Cleanse_Process_data 23-may-2000 Lucas Jellema package body 1.0 - Creation *****************************************************************************************/ -- -- private constants -- REVISION_LABEL constant varchar2(30) := '$x.y1.6 $'; PACKAGE_NAME constant varchar2(30) := 'ODWA_MGT'; -- -- public procedures and functions -- function get_revision_label return varchar2 is begin return REVISION_LABEL; end; -- revision_label procedure js_goMgtFac is l_js_and varchar2(2):= chr(38)||chr(38); -- double ampsersand = AND in JavaScript; chr(38) because the ampsersand is interpreted by SQL*Plus begin htp.p(' '); end; -- js_goMgtFac -- this procedure will give a brief overview of how much redundant process data there is -- and will allow the user to get rid of this data procedure cleanse_process_data ( p_date_before in varchar2 default to_char(sysdate - (1/48),'DDMMYYYYHH24MI') -- half hour ago ) is procedure js_runRemove is l_js_and varchar2(2):= chr(38)||chr(38); -- double ampsersand = AND in JavaScript; chr(38) because the ampsersand is interpreted by SQL*Plus begin htp.p(' '); end; -- js_runRemove procedure js_loadCleanse is l_js_and varchar2(2):= chr(38)||chr(38); -- double ampsersand = AND in JavaScript; chr(38) because the ampsersand is interpreted by SQL*Plus begin htp.p(' '); end; -- js_loadCleanse procedure cleanse_statistics ( p_date_before in varchar2 ) is l_date_before date := to_date (p_date_before, 'DDMMYYYYHH24MI'); l_events number(10); l_num_rows number(20); l_sum_rows number(20); procedure add_date_option ( p_before_date in date , p_date_label in varchar2 ) is begin htp.p ( '