DBA Data[Home] [Help]

APPS.ICX_JAVASCRIPT dependencies on HTP

Line 7: htp.p( '' );
20: end close_script;
21: --
22: procedure close_noscript is

Line 19: htp.p( '' );

15: --
16: procedure close_script is
17: begin
18: htp.p( '//-->' );
19: htp.p( '' );
20: end close_script;
21: --
22: procedure close_noscript is
23: begin

Line 24: htp.p( '' );

20: end close_script;
21: --
22: procedure close_noscript is
23: begin
24: htp.p( '' );
25: end close_noscript;
26:
27: procedure move_list_element is
28: begin

Line 29: htp.p( 'function moveListElement(fromList, toList, p_formname)' );

25: end close_noscript;
26:
27: procedure move_list_element is
28: begin
29: htp.p( 'function moveListElement(fromList, toList, p_formname)' );
30: htp.p( '{' );
31: htp.p( ' idx = fromList.selectedIndex;' );
32: htp.p( ' if ( idx == -1 )' );
33: htp.p( ' return;' );

Line 30: htp.p( '{' );

26:
27: procedure move_list_element is
28: begin
29: htp.p( 'function moveListElement(fromList, toList, p_formname)' );
30: htp.p( '{' );
31: htp.p( ' idx = fromList.selectedIndex;' );
32: htp.p( ' if ( idx == -1 )' );
33: htp.p( ' return;' );
34: htp.p( ' txt = fromList.options[idx].text;' );

Line 31: htp.p( ' idx = fromList.selectedIndex;' );

27: procedure move_list_element is
28: begin
29: htp.p( 'function moveListElement(fromList, toList, p_formname)' );
30: htp.p( '{' );
31: htp.p( ' idx = fromList.selectedIndex;' );
32: htp.p( ' if ( idx == -1 )' );
33: htp.p( ' return;' );
34: htp.p( ' txt = fromList.options[idx].text;' );
35: htp.p( ' val = fromList.options[idx].value;' );

Line 32: htp.p( ' if ( idx == -1 )' );

28: begin
29: htp.p( 'function moveListElement(fromList, toList, p_formname)' );
30: htp.p( '{' );
31: htp.p( ' idx = fromList.selectedIndex;' );
32: htp.p( ' if ( idx == -1 )' );
33: htp.p( ' return;' );
34: htp.p( ' txt = fromList.options[idx].text;' );
35: htp.p( ' val = fromList.options[idx].value;' );
36: htp.p( ' if ( val == "" )' );

Line 33: htp.p( ' return;' );

29: htp.p( 'function moveListElement(fromList, toList, p_formname)' );
30: htp.p( '{' );
31: htp.p( ' idx = fromList.selectedIndex;' );
32: htp.p( ' if ( idx == -1 )' );
33: htp.p( ' return;' );
34: htp.p( ' txt = fromList.options[idx].text;' );
35: htp.p( ' val = fromList.options[idx].value;' );
36: htp.p( ' if ( val == "" )' );
37: htp.p( ' return;' );

Line 34: htp.p( ' txt = fromList.options[idx].text;' );

30: htp.p( '{' );
31: htp.p( ' idx = fromList.selectedIndex;' );
32: htp.p( ' if ( idx == -1 )' );
33: htp.p( ' return;' );
34: htp.p( ' txt = fromList.options[idx].text;' );
35: htp.p( ' val = fromList.options[idx].value;' );
36: htp.p( ' if ( val == "" )' );
37: htp.p( ' return;' );
38: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );

Line 35: htp.p( ' val = fromList.options[idx].value;' );

31: htp.p( ' idx = fromList.selectedIndex;' );
32: htp.p( ' if ( idx == -1 )' );
33: htp.p( ' return;' );
34: htp.p( ' txt = fromList.options[idx].text;' );
35: htp.p( ' val = fromList.options[idx].value;' );
36: htp.p( ' if ( val == "" )' );
37: htp.p( ' return;' );
38: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );
39: htp.p( ' {' );

Line 36: htp.p( ' if ( val == "" )' );

32: htp.p( ' if ( idx == -1 )' );
33: htp.p( ' return;' );
34: htp.p( ' txt = fromList.options[idx].text;' );
35: htp.p( ' val = fromList.options[idx].value;' );
36: htp.p( ' if ( val == "" )' );
37: htp.p( ' return;' );
38: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );
39: htp.p( ' {' );
40: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );

Line 37: htp.p( ' return;' );

33: htp.p( ' return;' );
34: htp.p( ' txt = fromList.options[idx].text;' );
35: htp.p( ' val = fromList.options[idx].value;' );
36: htp.p( ' if ( val == "" )' );
37: htp.p( ' return;' );
38: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );
39: htp.p( ' {' );
40: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );
41: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );

Line 38: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );

34: htp.p( ' txt = fromList.options[idx].text;' );
35: htp.p( ' val = fromList.options[idx].value;' );
36: htp.p( ' if ( val == "" )' );
37: htp.p( ' return;' );
38: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );
39: htp.p( ' {' );
40: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );
41: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );
42: htp.p( ' }' );

Line 39: htp.p( ' {' );

35: htp.p( ' val = fromList.options[idx].value;' );
36: htp.p( ' if ( val == "" )' );
37: htp.p( ' return;' );
38: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );
39: htp.p( ' {' );
40: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );
41: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );
42: htp.p( ' }' );
43: htp.p( ' fromList.length = fromList.length - 1;' );

Line 40: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );

36: htp.p( ' if ( val == "" )' );
37: htp.p( ' return;' );
38: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );
39: htp.p( ' {' );
40: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );
41: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );
42: htp.p( ' }' );
43: htp.p( ' fromList.length = fromList.length - 1;' );
44: htp.p( ' toList.options[toList.length] = new Option( txt, val, false, true );' );

Line 41: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );

37: htp.p( ' return;' );
38: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );
39: htp.p( ' {' );
40: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );
41: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );
42: htp.p( ' }' );
43: htp.p( ' fromList.length = fromList.length - 1;' );
44: htp.p( ' toList.options[toList.length] = new Option( txt, val, false, true );' );
45: htp.p( '}' );

Line 42: htp.p( ' }' );

38: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );
39: htp.p( ' {' );
40: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );
41: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );
42: htp.p( ' }' );
43: htp.p( ' fromList.length = fromList.length - 1;' );
44: htp.p( ' toList.options[toList.length] = new Option( txt, val, false, true );' );
45: htp.p( '}' );
46: end move_list_element;

Line 43: htp.p( ' fromList.length = fromList.length - 1;' );

39: htp.p( ' {' );
40: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );
41: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );
42: htp.p( ' }' );
43: htp.p( ' fromList.length = fromList.length - 1;' );
44: htp.p( ' toList.options[toList.length] = new Option( txt, val, false, true );' );
45: htp.p( '}' );
46: end move_list_element;
47: --

Line 44: htp.p( ' toList.options[toList.length] = new Option( txt, val, false, true );' );

40: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );
41: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );
42: htp.p( ' }' );
43: htp.p( ' fromList.length = fromList.length - 1;' );
44: htp.p( ' toList.options[toList.length] = new Option( txt, val, false, true );' );
45: htp.p( '}' );
46: end move_list_element;
47: --
48:

Line 45: htp.p( '}' );

41: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );
42: htp.p( ' }' );
43: htp.p( ' fromList.length = fromList.length - 1;' );
44: htp.p( ' toList.options[toList.length] = new Option( txt, val, false, true );' );
45: htp.p( '}' );
46: end move_list_element;
47: --
48:
49:

Line 52: htp.p( 'function copyToList(fromList, toList, direction, p_formname)' );

48:
49:
50: procedure copy_to_list is
51: begin
52: htp.p( 'function copyToList(fromList, toList, direction, p_formname)' );
53: htp.p('{');
54: htp.p(' for ( i = 0; i <= fromList.length-1;) {');
55: htp.p(' if (fromList.options[i].selected) {');
56: htp.p(' txt = fromList.options[i].text;');

Line 53: htp.p('{');

49:
50: procedure copy_to_list is
51: begin
52: htp.p( 'function copyToList(fromList, toList, direction, p_formname)' );
53: htp.p('{');
54: htp.p(' for ( i = 0; i <= fromList.length-1;) {');
55: htp.p(' if (fromList.options[i].selected) {');
56: htp.p(' txt = fromList.options[i].text;');
57: htp.p(' val = fromList.options[i].value;');

Line 54: htp.p(' for ( i = 0; i <= fromList.length-1;) {');

50: procedure copy_to_list is
51: begin
52: htp.p( 'function copyToList(fromList, toList, direction, p_formname)' );
53: htp.p('{');
54: htp.p(' for ( i = 0; i <= fromList.length-1;) {');
55: htp.p(' if (fromList.options[i].selected) {');
56: htp.p(' txt = fromList.options[i].text;');
57: htp.p(' val = fromList.options[i].value;');
58: htp.p(' if ( val != "" ) {' );

Line 55: htp.p(' if (fromList.options[i].selected) {');

51: begin
52: htp.p( 'function copyToList(fromList, toList, direction, p_formname)' );
53: htp.p('{');
54: htp.p(' for ( i = 0; i <= fromList.length-1;) {');
55: htp.p(' if (fromList.options[i].selected) {');
56: htp.p(' txt = fromList.options[i].text;');
57: htp.p(' val = fromList.options[i].value;');
58: htp.p(' if ( val != "" ) {' );
59: htp.p(' // check if value is a spacer');

Line 56: htp.p(' txt = fromList.options[i].text;');

52: htp.p( 'function copyToList(fromList, toList, direction, p_formname)' );
53: htp.p('{');
54: htp.p(' for ( i = 0; i <= fromList.length-1;) {');
55: htp.p(' if (fromList.options[i].selected) {');
56: htp.p(' txt = fromList.options[i].text;');
57: htp.p(' val = fromList.options[i].value;');
58: htp.p(' if ( val != "" ) {' );
59: htp.p(' // check if value is a spacer');
60: htp.p(' if ( val != "spacer" ) {

Line 57: htp.p(' val = fromList.options[i].value;');

53: htp.p('{');
54: htp.p(' for ( i = 0; i <= fromList.length-1;) {');
55: htp.p(' if (fromList.options[i].selected) {');
56: htp.p(' txt = fromList.options[i].text;');
57: htp.p(' val = fromList.options[i].value;');
58: htp.p(' if ( val != "" ) {' );
59: htp.p(' // check if value is a spacer');
60: htp.p(' if ( val != "spacer" ) {
61: if ( direction == "left" ) {

Line 58: htp.p(' if ( val != "" ) {' );

54: htp.p(' for ( i = 0; i <= fromList.length-1;) {');
55: htp.p(' if (fromList.options[i].selected) {');
56: htp.p(' txt = fromList.options[i].text;');
57: htp.p(' val = fromList.options[i].value;');
58: htp.p(' if ( val != "" ) {' );
59: htp.p(' // check if value is a spacer');
60: htp.p(' if ( val != "spacer" ) {
61: if ( direction == "left" ) {
62: // remove from right and do not add on left

Line 59: htp.p(' // check if value is a spacer');

55: htp.p(' if (fromList.options[i].selected) {');
56: htp.p(' txt = fromList.options[i].text;');
57: htp.p(' val = fromList.options[i].value;');
58: htp.p(' if ( val != "" ) {' );
59: htp.p(' // check if value is a spacer');
60: htp.p(' if ( val != "spacer" ) {
61: if ( direction == "left" ) {
62: // remove from right and do not add on left
63: fromList.options[i]= null;

Line 60: htp.p(' if ( val != "spacer" ) {

56: htp.p(' txt = fromList.options[i].text;');
57: htp.p(' val = fromList.options[i].value;');
58: htp.p(' if ( val != "" ) {' );
59: htp.p(' // check if value is a spacer');
60: htp.p(' if ( val != "spacer" ) {
61: if ( direction == "left" ) {
62: // remove from right and do not add on left
63: fromList.options[i]= null;
64: }

Line 71: htp.p(' }');

67: fromList.options[i].selected = false;
68: toList.options[toList.length] = new Option( txt, val, false, true );
69: toList.options[toList.selectedIndex].selected = false;
70: }');
71: htp.p(' }');
72: htp.p(' else { //only increment when not moving and deleting');
73: htp.p(' // create a new row');
74: htp.p(' toList.options[toList.length] = new Option( txt, val, false, true );');
75: htp.p(' // added these lines');

Line 72: htp.p(' else { //only increment when not moving and deleting');

68: toList.options[toList.length] = new Option( txt, val, false, true );
69: toList.options[toList.selectedIndex].selected = false;
70: }');
71: htp.p(' }');
72: htp.p(' else { //only increment when not moving and deleting');
73: htp.p(' // create a new row');
74: htp.p(' toList.options[toList.length] = new Option( txt, val, false, true );');
75: htp.p(' // added these lines');
76: htp.p(' // removes from fromList and unselects item in toList');

Line 73: htp.p(' // create a new row');

69: toList.options[toList.selectedIndex].selected = false;
70: }');
71: htp.p(' }');
72: htp.p(' else { //only increment when not moving and deleting');
73: htp.p(' // create a new row');
74: htp.p(' toList.options[toList.length] = new Option( txt, val, false, true );');
75: htp.p(' // added these lines');
76: htp.p(' // removes from fromList and unselects item in toList');
77: htp.p(' fromList.options[i]= null;');

Line 74: htp.p(' toList.options[toList.length] = new Option( txt, val, false, true );');

70: }');
71: htp.p(' }');
72: htp.p(' else { //only increment when not moving and deleting');
73: htp.p(' // create a new row');
74: htp.p(' toList.options[toList.length] = new Option( txt, val, false, true );');
75: htp.p(' // added these lines');
76: htp.p(' // removes from fromList and unselects item in toList');
77: htp.p(' fromList.options[i]= null;');
78: htp.p(' toList.options[toList.selectedIndex].selected = false;');

Line 75: htp.p(' // added these lines');

71: htp.p(' }');
72: htp.p(' else { //only increment when not moving and deleting');
73: htp.p(' // create a new row');
74: htp.p(' toList.options[toList.length] = new Option( txt, val, false, true );');
75: htp.p(' // added these lines');
76: htp.p(' // removes from fromList and unselects item in toList');
77: htp.p(' fromList.options[i]= null;');
78: htp.p(' toList.options[toList.selectedIndex].selected = false;');
79: htp.p(' } //only increment when not moving and deleting');

Line 76: htp.p(' // removes from fromList and unselects item in toList');

72: htp.p(' else { //only increment when not moving and deleting');
73: htp.p(' // create a new row');
74: htp.p(' toList.options[toList.length] = new Option( txt, val, false, true );');
75: htp.p(' // added these lines');
76: htp.p(' // removes from fromList and unselects item in toList');
77: htp.p(' fromList.options[i]= null;');
78: htp.p(' toList.options[toList.selectedIndex].selected = false;');
79: htp.p(' } //only increment when not moving and deleting');
80:

Line 77: htp.p(' fromList.options[i]= null;');

73: htp.p(' // create a new row');
74: htp.p(' toList.options[toList.length] = new Option( txt, val, false, true );');
75: htp.p(' // added these lines');
76: htp.p(' // removes from fromList and unselects item in toList');
77: htp.p(' fromList.options[i]= null;');
78: htp.p(' toList.options[toList.selectedIndex].selected = false;');
79: htp.p(' } //only increment when not moving and deleting');
80:
81: htp.p(' }');

Line 78: htp.p(' toList.options[toList.selectedIndex].selected = false;');

74: htp.p(' toList.options[toList.length] = new Option( txt, val, false, true );');
75: htp.p(' // added these lines');
76: htp.p(' // removes from fromList and unselects item in toList');
77: htp.p(' fromList.options[i]= null;');
78: htp.p(' toList.options[toList.selectedIndex].selected = false;');
79: htp.p(' } //only increment when not moving and deleting');
80:
81: htp.p(' }');
82: htp.p(' } else i++; //only increment when not moving and deleting');

Line 79: htp.p(' } //only increment when not moving and deleting');

75: htp.p(' // added these lines');
76: htp.p(' // removes from fromList and unselects item in toList');
77: htp.p(' fromList.options[i]= null;');
78: htp.p(' toList.options[toList.selectedIndex].selected = false;');
79: htp.p(' } //only increment when not moving and deleting');
80:
81: htp.p(' }');
82: htp.p(' } else i++; //only increment when not moving and deleting');
83: htp.p(' }');

Line 81: htp.p(' }');

77: htp.p(' fromList.options[i]= null;');
78: htp.p(' toList.options[toList.selectedIndex].selected = false;');
79: htp.p(' } //only increment when not moving and deleting');
80:
81: htp.p(' }');
82: htp.p(' } else i++; //only increment when not moving and deleting');
83: htp.p(' }');
84: htp.p(' deleteBlankRowIfNotEmpty(fromList);');
85: htp.p(' deleteBlankRowIfNotEmpty(toList);');

Line 82: htp.p(' } else i++; //only increment when not moving and deleting');

78: htp.p(' toList.options[toList.selectedIndex].selected = false;');
79: htp.p(' } //only increment when not moving and deleting');
80:
81: htp.p(' }');
82: htp.p(' } else i++; //only increment when not moving and deleting');
83: htp.p(' }');
84: htp.p(' deleteBlankRowIfNotEmpty(fromList);');
85: htp.p(' deleteBlankRowIfNotEmpty(toList);');
86: -- Begin Bug 1853248

Line 83: htp.p(' }');

79: htp.p(' } //only increment when not moving and deleting');
80:
81: htp.p(' }');
82: htp.p(' } else i++; //only increment when not moving and deleting');
83: htp.p(' }');
84: htp.p(' deleteBlankRowIfNotEmpty(fromList);');
85: htp.p(' deleteBlankRowIfNotEmpty(toList);');
86: -- Begin Bug 1853248
87: -- Changed below line from refresh(true) to refresh(false)

Line 84: htp.p(' deleteBlankRowIfNotEmpty(fromList);');

80:
81: htp.p(' }');
82: htp.p(' } else i++; //only increment when not moving and deleting');
83: htp.p(' }');
84: htp.p(' deleteBlankRowIfNotEmpty(fromList);');
85: htp.p(' deleteBlankRowIfNotEmpty(toList);');
86: -- Begin Bug 1853248
87: -- Changed below line from refresh(true) to refresh(false)
88: htp.p(' navigator.plugins.refresh(false);');

Line 85: htp.p(' deleteBlankRowIfNotEmpty(toList);');

81: htp.p(' }');
82: htp.p(' } else i++; //only increment when not moving and deleting');
83: htp.p(' }');
84: htp.p(' deleteBlankRowIfNotEmpty(fromList);');
85: htp.p(' deleteBlankRowIfNotEmpty(toList);');
86: -- Begin Bug 1853248
87: -- Changed below line from refresh(true) to refresh(false)
88: htp.p(' navigator.plugins.refresh(false);');
89: -- End bug 1853248

Line 88: htp.p(' navigator.plugins.refresh(false);');

84: htp.p(' deleteBlankRowIfNotEmpty(fromList);');
85: htp.p(' deleteBlankRowIfNotEmpty(toList);');
86: -- Begin Bug 1853248
87: -- Changed below line from refresh(true) to refresh(false)
88: htp.p(' navigator.plugins.refresh(false);');
89: -- End bug 1853248
90: htp.p('}');
91: end copy_to_list;
92: --

Line 90: htp.p('}');

86: -- Begin Bug 1853248
87: -- Changed below line from refresh(true) to refresh(false)
88: htp.p(' navigator.plugins.refresh(false);');
89: -- End bug 1853248
90: htp.p('}');
91: end copy_to_list;
92: --
93: procedure copy_all is
94: c_browser varchar2(240);

Line 97: htp.p( 'function copyAll(fromList, toList, direction, p_formname) ');

93: procedure copy_all is
94: c_browser varchar2(240);
95: begin
96:
97: htp.p( 'function copyAll(fromList, toList, direction, p_formname) ');
98: htp.p( '{' );
99: htp.p(' indexofspacer = -1;');
100: htp.p(' spacerval = "";');
101: htp.p(' spacertxt = "";');

Line 98: htp.p( '{' );

94: c_browser varchar2(240);
95: begin
96:
97: htp.p( 'function copyAll(fromList, toList, direction, p_formname) ');
98: htp.p( '{' );
99: htp.p(' indexofspacer = -1;');
100: htp.p(' spacerval = "";');
101: htp.p(' spacertxt = "";');
102: htp.p(' indexofitem = toList.length;');

Line 99: htp.p(' indexofspacer = -1;');

95: begin
96:
97: htp.p( 'function copyAll(fromList, toList, direction, p_formname) ');
98: htp.p( '{' );
99: htp.p(' indexofspacer = -1;');
100: htp.p(' spacerval = "";');
101: htp.p(' spacertxt = "";');
102: htp.p(' indexofitem = toList.length;');
103: htp.p(' for ( i = 0; i <= fromList.length-1; i++ )');

Line 100: htp.p(' spacerval = "";');

96:
97: htp.p( 'function copyAll(fromList, toList, direction, p_formname) ');
98: htp.p( '{' );
99: htp.p(' indexofspacer = -1;');
100: htp.p(' spacerval = "";');
101: htp.p(' spacertxt = "";');
102: htp.p(' indexofitem = toList.length;');
103: htp.p(' for ( i = 0; i <= fromList.length-1; i++ )');
104: htp.p(' {');

Line 101: htp.p(' spacertxt = "";');

97: htp.p( 'function copyAll(fromList, toList, direction, p_formname) ');
98: htp.p( '{' );
99: htp.p(' indexofspacer = -1;');
100: htp.p(' spacerval = "";');
101: htp.p(' spacertxt = "";');
102: htp.p(' indexofitem = toList.length;');
103: htp.p(' for ( i = 0; i <= fromList.length-1; i++ )');
104: htp.p(' {');
105: htp.p(' txt = fromList.options[i].text; ');

Line 102: htp.p(' indexofitem = toList.length;');

98: htp.p( '{' );
99: htp.p(' indexofspacer = -1;');
100: htp.p(' spacerval = "";');
101: htp.p(' spacertxt = "";');
102: htp.p(' indexofitem = toList.length;');
103: htp.p(' for ( i = 0; i <= fromList.length-1; i++ )');
104: htp.p(' {');
105: htp.p(' txt = fromList.options[i].text; ');
106: htp.p(' val = fromList.options[i].value;' );

Line 103: htp.p(' for ( i = 0; i <= fromList.length-1; i++ )');

99: htp.p(' indexofspacer = -1;');
100: htp.p(' spacerval = "";');
101: htp.p(' spacertxt = "";');
102: htp.p(' indexofitem = toList.length;');
103: htp.p(' for ( i = 0; i <= fromList.length-1; i++ )');
104: htp.p(' {');
105: htp.p(' txt = fromList.options[i].text; ');
106: htp.p(' val = fromList.options[i].value;' );
107: htp.p(' if ( val != "" ) ');

Line 104: htp.p(' {');

100: htp.p(' spacerval = "";');
101: htp.p(' spacertxt = "";');
102: htp.p(' indexofitem = toList.length;');
103: htp.p(' for ( i = 0; i <= fromList.length-1; i++ )');
104: htp.p(' {');
105: htp.p(' txt = fromList.options[i].text; ');
106: htp.p(' val = fromList.options[i].value;' );
107: htp.p(' if ( val != "" ) ');
108: htp.p(' { ');

Line 105: htp.p(' txt = fromList.options[i].text; ');

101: htp.p(' spacertxt = "";');
102: htp.p(' indexofitem = toList.length;');
103: htp.p(' for ( i = 0; i <= fromList.length-1; i++ )');
104: htp.p(' {');
105: htp.p(' txt = fromList.options[i].text; ');
106: htp.p(' val = fromList.options[i].value;' );
107: htp.p(' if ( val != "" ) ');
108: htp.p(' { ');
109: htp.p(' if(direction != "left") ');

Line 106: htp.p(' val = fromList.options[i].value;' );

102: htp.p(' indexofitem = toList.length;');
103: htp.p(' for ( i = 0; i <= fromList.length-1; i++ )');
104: htp.p(' {');
105: htp.p(' txt = fromList.options[i].text; ');
106: htp.p(' val = fromList.options[i].value;' );
107: htp.p(' if ( val != "" ) ');
108: htp.p(' { ');
109: htp.p(' if(direction != "left") ');
110: htp.p(' {');

Line 107: htp.p(' if ( val != "" ) ');

103: htp.p(' for ( i = 0; i <= fromList.length-1; i++ )');
104: htp.p(' {');
105: htp.p(' txt = fromList.options[i].text; ');
106: htp.p(' val = fromList.options[i].value;' );
107: htp.p(' if ( val != "" ) ');
108: htp.p(' { ');
109: htp.p(' if(direction != "left") ');
110: htp.p(' {');
111: -- // check if we need to copy the spacer too

Line 108: htp.p(' { ');

104: htp.p(' {');
105: htp.p(' txt = fromList.options[i].text; ');
106: htp.p(' val = fromList.options[i].value;' );
107: htp.p(' if ( val != "" ) ');
108: htp.p(' { ');
109: htp.p(' if(direction != "left") ');
110: htp.p(' {');
111: -- // check if we need to copy the spacer too
112: htp.p(' if ( val != "spacer") ');

Line 109: htp.p(' if(direction != "left") ');

105: htp.p(' txt = fromList.options[i].text; ');
106: htp.p(' val = fromList.options[i].value;' );
107: htp.p(' if ( val != "" ) ');
108: htp.p(' { ');
109: htp.p(' if(direction != "left") ');
110: htp.p(' {');
111: -- // check if we need to copy the spacer too
112: htp.p(' if ( val != "spacer") ');
113: htp.p(' { ');

Line 110: htp.p(' {');

106: htp.p(' val = fromList.options[i].value;' );
107: htp.p(' if ( val != "" ) ');
108: htp.p(' { ');
109: htp.p(' if(direction != "left") ');
110: htp.p(' {');
111: -- // check if we need to copy the spacer too
112: htp.p(' if ( val != "spacer") ');
113: htp.p(' { ');
114: htp.p(' toList.options[indexofitem] = new Option( txt, val, false, true ); ');

Line 112: htp.p(' if ( val != "spacer") ');

108: htp.p(' { ');
109: htp.p(' if(direction != "left") ');
110: htp.p(' {');
111: -- // check if we need to copy the spacer too
112: htp.p(' if ( val != "spacer") ');
113: htp.p(' { ');
114: htp.p(' toList.options[indexofitem] = new Option( txt, val, false, true ); ');
115: htp.p(' toList.options[indexofitem].selected = false; ');
116: htp.p(' indexofitem++; ');

Line 113: htp.p(' { ');

109: htp.p(' if(direction != "left") ');
110: htp.p(' {');
111: -- // check if we need to copy the spacer too
112: htp.p(' if ( val != "spacer") ');
113: htp.p(' { ');
114: htp.p(' toList.options[indexofitem] = new Option( txt, val, false, true ); ');
115: htp.p(' toList.options[indexofitem].selected = false; ');
116: htp.p(' indexofitem++; ');
117: htp.p(' } ');

Line 114: htp.p(' toList.options[indexofitem] = new Option( txt, val, false, true ); ');

110: htp.p(' {');
111: -- // check if we need to copy the spacer too
112: htp.p(' if ( val != "spacer") ');
113: htp.p(' { ');
114: htp.p(' toList.options[indexofitem] = new Option( txt, val, false, true ); ');
115: htp.p(' toList.options[indexofitem].selected = false; ');
116: htp.p(' indexofitem++; ');
117: htp.p(' } ');
118: htp.p(' else '); --// found a spacer

Line 115: htp.p(' toList.options[indexofitem].selected = false; ');

111: -- // check if we need to copy the spacer too
112: htp.p(' if ( val != "spacer") ');
113: htp.p(' { ');
114: htp.p(' toList.options[indexofitem] = new Option( txt, val, false, true ); ');
115: htp.p(' toList.options[indexofitem].selected = false; ');
116: htp.p(' indexofitem++; ');
117: htp.p(' } ');
118: htp.p(' else '); --// found a spacer
119: htp.p(' { ');

Line 116: htp.p(' indexofitem++; ');

112: htp.p(' if ( val != "spacer") ');
113: htp.p(' { ');
114: htp.p(' toList.options[indexofitem] = new Option( txt, val, false, true ); ');
115: htp.p(' toList.options[indexofitem].selected = false; ');
116: htp.p(' indexofitem++; ');
117: htp.p(' } ');
118: htp.p(' else '); --// found a spacer
119: htp.p(' { ');
120: htp.p(' indexofspacer = i; ');

Line 117: htp.p(' } ');

113: htp.p(' { ');
114: htp.p(' toList.options[indexofitem] = new Option( txt, val, false, true ); ');
115: htp.p(' toList.options[indexofitem].selected = false; ');
116: htp.p(' indexofitem++; ');
117: htp.p(' } ');
118: htp.p(' else '); --// found a spacer
119: htp.p(' { ');
120: htp.p(' indexofspacer = i; ');
121: htp.p(' spacerval = val; ');

Line 118: htp.p(' else '); --// found a spacer

114: htp.p(' toList.options[indexofitem] = new Option( txt, val, false, true ); ');
115: htp.p(' toList.options[indexofitem].selected = false; ');
116: htp.p(' indexofitem++; ');
117: htp.p(' } ');
118: htp.p(' else '); --// found a spacer
119: htp.p(' { ');
120: htp.p(' indexofspacer = i; ');
121: htp.p(' spacerval = val; ');
122: htp.p(' spacertxt = txt; ');

Line 119: htp.p(' { ');

115: htp.p(' toList.options[indexofitem].selected = false; ');
116: htp.p(' indexofitem++; ');
117: htp.p(' } ');
118: htp.p(' else '); --// found a spacer
119: htp.p(' { ');
120: htp.p(' indexofspacer = i; ');
121: htp.p(' spacerval = val; ');
122: htp.p(' spacertxt = txt; ');
123: htp.p(' }');

Line 120: htp.p(' indexofspacer = i; ');

116: htp.p(' indexofitem++; ');
117: htp.p(' } ');
118: htp.p(' else '); --// found a spacer
119: htp.p(' { ');
120: htp.p(' indexofspacer = i; ');
121: htp.p(' spacerval = val; ');
122: htp.p(' spacertxt = txt; ');
123: htp.p(' }');
124: htp.p(' }');

Line 121: htp.p(' spacerval = val; ');

117: htp.p(' } ');
118: htp.p(' else '); --// found a spacer
119: htp.p(' { ');
120: htp.p(' indexofspacer = i; ');
121: htp.p(' spacerval = val; ');
122: htp.p(' spacertxt = txt; ');
123: htp.p(' }');
124: htp.p(' }');
125: htp.p(' }');

Line 122: htp.p(' spacertxt = txt; ');

118: htp.p(' else '); --// found a spacer
119: htp.p(' { ');
120: htp.p(' indexofspacer = i; ');
121: htp.p(' spacerval = val; ');
122: htp.p(' spacertxt = txt; ');
123: htp.p(' }');
124: htp.p(' }');
125: htp.p(' }');
126: htp.p(' } ');

Line 123: htp.p(' }');

119: htp.p(' { ');
120: htp.p(' indexofspacer = i; ');
121: htp.p(' spacerval = val; ');
122: htp.p(' spacertxt = txt; ');
123: htp.p(' }');
124: htp.p(' }');
125: htp.p(' }');
126: htp.p(' } ');
127: htp.p(' if (indexofspacer != -1 && direction == "right" ) ');

Line 124: htp.p(' }');

120: htp.p(' indexofspacer = i; ');
121: htp.p(' spacerval = val; ');
122: htp.p(' spacertxt = txt; ');
123: htp.p(' }');
124: htp.p(' }');
125: htp.p(' }');
126: htp.p(' } ');
127: htp.p(' if (indexofspacer != -1 && direction == "right" ) ');
128: --// let the spacer be on the from list

Line 125: htp.p(' }');

121: htp.p(' spacerval = val; ');
122: htp.p(' spacertxt = txt; ');
123: htp.p(' }');
124: htp.p(' }');
125: htp.p(' }');
126: htp.p(' } ');
127: htp.p(' if (indexofspacer != -1 && direction == "right" ) ');
128: --// let the spacer be on the from list
129: htp.p(' fromList.length = 1;');

Line 126: htp.p(' } ');

122: htp.p(' spacertxt = txt; ');
123: htp.p(' }');
124: htp.p(' }');
125: htp.p(' }');
126: htp.p(' } ');
127: htp.p(' if (indexofspacer != -1 && direction == "right" ) ');
128: --// let the spacer be on the from list
129: htp.p(' fromList.length = 1;');
130: htp.p(' else');

Line 127: htp.p(' if (indexofspacer != -1 && direction == "right" ) ');

123: htp.p(' }');
124: htp.p(' }');
125: htp.p(' }');
126: htp.p(' } ');
127: htp.p(' if (indexofspacer != -1 && direction == "right" ) ');
128: --// let the spacer be on the from list
129: htp.p(' fromList.length = 1;');
130: htp.p(' else');
131: htp.p(' if(direction == "left")');

Line 129: htp.p(' fromList.length = 1;');

125: htp.p(' }');
126: htp.p(' } ');
127: htp.p(' if (indexofspacer != -1 && direction == "right" ) ');
128: --// let the spacer be on the from list
129: htp.p(' fromList.length = 1;');
130: htp.p(' else');
131: htp.p(' if(direction == "left")');
132: htp.p(' clearList(fromList); ');
133:

Line 130: htp.p(' else');

126: htp.p(' } ');
127: htp.p(' if (indexofspacer != -1 && direction == "right" ) ');
128: --// let the spacer be on the from list
129: htp.p(' fromList.length = 1;');
130: htp.p(' else');
131: htp.p(' if(direction == "left")');
132: htp.p(' clearList(fromList); ');
133:
134: htp.p(' deleteBlankRowIfNotEmpty(toList);');

Line 131: htp.p(' if(direction == "left")');

127: htp.p(' if (indexofspacer != -1 && direction == "right" ) ');
128: --// let the spacer be on the from list
129: htp.p(' fromList.length = 1;');
130: htp.p(' else');
131: htp.p(' if(direction == "left")');
132: htp.p(' clearList(fromList); ');
133:
134: htp.p(' deleteBlankRowIfNotEmpty(toList);');
135: htp.p(' unSelectAll(toList);');

Line 132: htp.p(' clearList(fromList); ');

128: --// let the spacer be on the from list
129: htp.p(' fromList.length = 1;');
130: htp.p(' else');
131: htp.p(' if(direction == "left")');
132: htp.p(' clearList(fromList); ');
133:
134: htp.p(' deleteBlankRowIfNotEmpty(toList);');
135: htp.p(' unSelectAll(toList);');
136:

Line 134: htp.p(' deleteBlankRowIfNotEmpty(toList);');

130: htp.p(' else');
131: htp.p(' if(direction == "left")');
132: htp.p(' clearList(fromList); ');
133:
134: htp.p(' deleteBlankRowIfNotEmpty(toList);');
135: htp.p(' unSelectAll(toList);');
136:
137: htp.p(' navigator.plugins.refresh(false); ');
138:

Line 135: htp.p(' unSelectAll(toList);');

131: htp.p(' if(direction == "left")');
132: htp.p(' clearList(fromList); ');
133:
134: htp.p(' deleteBlankRowIfNotEmpty(toList);');
135: htp.p(' unSelectAll(toList);');
136:
137: htp.p(' navigator.plugins.refresh(false); ');
138:
139: htp.p('}');

Line 137: htp.p(' navigator.plugins.refresh(false); ');

133:
134: htp.p(' deleteBlankRowIfNotEmpty(toList);');
135: htp.p(' unSelectAll(toList);');
136:
137: htp.p(' navigator.plugins.refresh(false); ');
138:
139: htp.p('}');
140:
141: end copy_all;

Line 139: htp.p('}');

135: htp.p(' unSelectAll(toList);');
136:
137: htp.p(' navigator.plugins.refresh(false); ');
138:
139: htp.p('}');
140:
141: end copy_all;
142:
143: procedure delete_list_element is

Line 145: htp.p( 'function deleteListElement(fromList)' );

141: end copy_all;
142:
143: procedure delete_list_element is
144: begin
145: htp.p( 'function deleteListElement(fromList)' );
146: htp.p( '{' );
147: htp.p( ' idx = fromList.selectedIndex;' );
148: htp.p( ' if ( idx == -1 )' );
149: htp.p( ' return;' );

Line 146: htp.p( '{' );

142:
143: procedure delete_list_element is
144: begin
145: htp.p( 'function deleteListElement(fromList)' );
146: htp.p( '{' );
147: htp.p( ' idx = fromList.selectedIndex;' );
148: htp.p( ' if ( idx == -1 )' );
149: htp.p( ' return;' );
150: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );

Line 147: htp.p( ' idx = fromList.selectedIndex;' );

143: procedure delete_list_element is
144: begin
145: htp.p( 'function deleteListElement(fromList)' );
146: htp.p( '{' );
147: htp.p( ' idx = fromList.selectedIndex;' );
148: htp.p( ' if ( idx == -1 )' );
149: htp.p( ' return;' );
150: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );
151: htp.p( ' {' );

Line 148: htp.p( ' if ( idx == -1 )' );

144: begin
145: htp.p( 'function deleteListElement(fromList)' );
146: htp.p( '{' );
147: htp.p( ' idx = fromList.selectedIndex;' );
148: htp.p( ' if ( idx == -1 )' );
149: htp.p( ' return;' );
150: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );
151: htp.p( ' {' );
152: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );

Line 149: htp.p( ' return;' );

145: htp.p( 'function deleteListElement(fromList)' );
146: htp.p( '{' );
147: htp.p( ' idx = fromList.selectedIndex;' );
148: htp.p( ' if ( idx == -1 )' );
149: htp.p( ' return;' );
150: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );
151: htp.p( ' {' );
152: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );
153: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );

Line 150: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );

146: htp.p( '{' );
147: htp.p( ' idx = fromList.selectedIndex;' );
148: htp.p( ' if ( idx == -1 )' );
149: htp.p( ' return;' );
150: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );
151: htp.p( ' {' );
152: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );
153: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );
154: htp.p( ' }' );

Line 151: htp.p( ' {' );

147: htp.p( ' idx = fromList.selectedIndex;' );
148: htp.p( ' if ( idx == -1 )' );
149: htp.p( ' return;' );
150: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );
151: htp.p( ' {' );
152: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );
153: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );
154: htp.p( ' }' );
155: htp.p( ' fromList.length = fromList.length - 1;' );

Line 152: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );

148: htp.p( ' if ( idx == -1 )' );
149: htp.p( ' return;' );
150: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );
151: htp.p( ' {' );
152: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );
153: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );
154: htp.p( ' }' );
155: htp.p( ' fromList.length = fromList.length - 1;' );
156: htp.p( '}' );

Line 153: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );

149: htp.p( ' return;' );
150: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );
151: htp.p( ' {' );
152: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );
153: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );
154: htp.p( ' }' );
155: htp.p( ' fromList.length = fromList.length - 1;' );
156: htp.p( '}' );
157: end delete_list_element;

Line 154: htp.p( ' }' );

150: htp.p( ' for ( i = idx; i < fromList.length-1; i++ )' );
151: htp.p( ' {' );
152: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );
153: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );
154: htp.p( ' }' );
155: htp.p( ' fromList.length = fromList.length - 1;' );
156: htp.p( '}' );
157: end delete_list_element;
158: --

Line 155: htp.p( ' fromList.length = fromList.length - 1;' );

151: htp.p( ' {' );
152: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );
153: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );
154: htp.p( ' }' );
155: htp.p( ' fromList.length = fromList.length - 1;' );
156: htp.p( '}' );
157: end delete_list_element;
158: --
159: procedure select_all is

Line 156: htp.p( '}' );

152: htp.p( ' fromList.options[i].text = fromList.options[i+1].text;' );
153: htp.p( ' fromList.options[i].value = fromList.options[i+1].value;' );
154: htp.p( ' }' );
155: htp.p( ' fromList.length = fromList.length - 1;' );
156: htp.p( '}' );
157: end delete_list_element;
158: --
159: procedure select_all is
160: begin

Line 161: htp.p( 'function selectAll(fromList)' );

157: end delete_list_element;
158: --
159: procedure select_all is
160: begin
161: htp.p( 'function selectAll(fromList)' );
162: htp.p( '{' );
163: htp.p( ' for ( i = 0; i <= fromList.length-1; i++ )' );
164: htp.p( ' fromList.options[i].selected = true;' );
165: htp.p( ' return true;' );

Line 162: htp.p( '{' );

158: --
159: procedure select_all is
160: begin
161: htp.p( 'function selectAll(fromList)' );
162: htp.p( '{' );
163: htp.p( ' for ( i = 0; i <= fromList.length-1; i++ )' );
164: htp.p( ' fromList.options[i].selected = true;' );
165: htp.p( ' return true;' );
166: htp.p( '}' );

Line 163: htp.p( ' for ( i = 0; i <= fromList.length-1; i++ )' );

159: procedure select_all is
160: begin
161: htp.p( 'function selectAll(fromList)' );
162: htp.p( '{' );
163: htp.p( ' for ( i = 0; i <= fromList.length-1; i++ )' );
164: htp.p( ' fromList.options[i].selected = true;' );
165: htp.p( ' return true;' );
166: htp.p( '}' );
167: end select_all;

Line 164: htp.p( ' fromList.options[i].selected = true;' );

160: begin
161: htp.p( 'function selectAll(fromList)' );
162: htp.p( '{' );
163: htp.p( ' for ( i = 0; i <= fromList.length-1; i++ )' );
164: htp.p( ' fromList.options[i].selected = true;' );
165: htp.p( ' return true;' );
166: htp.p( '}' );
167: end select_all;
168: --

Line 165: htp.p( ' return true;' );

161: htp.p( 'function selectAll(fromList)' );
162: htp.p( '{' );
163: htp.p( ' for ( i = 0; i <= fromList.length-1; i++ )' );
164: htp.p( ' fromList.options[i].selected = true;' );
165: htp.p( ' return true;' );
166: htp.p( '}' );
167: end select_all;
168: --
169: procedure unselect_all is

Line 166: htp.p( '}' );

162: htp.p( '{' );
163: htp.p( ' for ( i = 0; i <= fromList.length-1; i++ )' );
164: htp.p( ' fromList.options[i].selected = true;' );
165: htp.p( ' return true;' );
166: htp.p( '}' );
167: end select_all;
168: --
169: procedure unselect_all is
170: begin

Line 171: htp.p( 'function unSelectAll(fromList)' );

167: end select_all;
168: --
169: procedure unselect_all is
170: begin
171: htp.p( 'function unSelectAll(fromList)' );
172: htp.p( '{' );
173: htp.p( ' for ( i = 0; i <= fromList.length-1; i++ )' );
174: htp.p( ' fromList.options[i].selected = false;' );
175: htp.p( ' return true;' );

Line 172: htp.p( '{' );

168: --
169: procedure unselect_all is
170: begin
171: htp.p( 'function unSelectAll(fromList)' );
172: htp.p( '{' );
173: htp.p( ' for ( i = 0; i <= fromList.length-1; i++ )' );
174: htp.p( ' fromList.options[i].selected = false;' );
175: htp.p( ' return true;' );
176: htp.p( '}' );

Line 173: htp.p( ' for ( i = 0; i <= fromList.length-1; i++ )' );

169: procedure unselect_all is
170: begin
171: htp.p( 'function unSelectAll(fromList)' );
172: htp.p( '{' );
173: htp.p( ' for ( i = 0; i <= fromList.length-1; i++ )' );
174: htp.p( ' fromList.options[i].selected = false;' );
175: htp.p( ' return true;' );
176: htp.p( '}' );
177: end unselect_all;

Line 174: htp.p( ' fromList.options[i].selected = false;' );

170: begin
171: htp.p( 'function unSelectAll(fromList)' );
172: htp.p( '{' );
173: htp.p( ' for ( i = 0; i <= fromList.length-1; i++ )' );
174: htp.p( ' fromList.options[i].selected = false;' );
175: htp.p( ' return true;' );
176: htp.p( '}' );
177: end unselect_all;
178: --

Line 175: htp.p( ' return true;' );

171: htp.p( 'function unSelectAll(fromList)' );
172: htp.p( '{' );
173: htp.p( ' for ( i = 0; i <= fromList.length-1; i++ )' );
174: htp.p( ' fromList.options[i].selected = false;' );
175: htp.p( ' return true;' );
176: htp.p( '}' );
177: end unselect_all;
178: --
179: procedure clear_list is

Line 176: htp.p( '}' );

172: htp.p( '{' );
173: htp.p( ' for ( i = 0; i <= fromList.length-1; i++ )' );
174: htp.p( ' fromList.options[i].selected = false;' );
175: htp.p( ' return true;' );
176: htp.p( '}' );
177: end unselect_all;
178: --
179: procedure clear_list is
180: begin

Line 181: htp.p( 'function clearList(fromList)' );

177: end unselect_all;
178: --
179: procedure clear_list is
180: begin
181: htp.p( 'function clearList(fromList)' );
182: htp.p( '{' );
183: htp.p( ' fromList.length = 0;' );
184: htp.p( '}' );
185: end clear_list;

Line 182: htp.p( '{' );

178: --
179: procedure clear_list is
180: begin
181: htp.p( 'function clearList(fromList)' );
182: htp.p( '{' );
183: htp.p( ' fromList.length = 0;' );
184: htp.p( '}' );
185: end clear_list;
186: --

Line 183: htp.p( ' fromList.length = 0;' );

179: procedure clear_list is
180: begin
181: htp.p( 'function clearList(fromList)' );
182: htp.p( '{' );
183: htp.p( ' fromList.length = 0;' );
184: htp.p( '}' );
185: end clear_list;
186: --
187: -- append a value to a list, maintaining unique values in the list

Line 184: htp.p( '}' );

180: begin
181: htp.p( 'function clearList(fromList)' );
182: htp.p( '{' );
183: htp.p( ' fromList.length = 0;' );
184: htp.p( '}' );
185: end clear_list;
186: --
187: -- append a value to a list, maintaining unique values in the list
188: procedure append_to_list is

Line 190: htp.p( 'function appendToList(theValue, toList)' );

186: --
187: -- append a value to a list, maintaining unique values in the list
188: procedure append_to_list is
189: begin
190: htp.p( 'function appendToList(theValue, toList)' );
191: htp.p( '{' );
192: htp.p( ' if (theValue == "") return;' );
193: htp.p( ' for (i=0;i 194: htp.p( ' {' );

Line 191: htp.p( '{' );

187: -- append a value to a list, maintaining unique values in the list
188: procedure append_to_list is
189: begin
190: htp.p( 'function appendToList(theValue, toList)' );
191: htp.p( '{' );
192: htp.p( ' if (theValue == "") return;' );
193: htp.p( ' for (i=0;i 194: htp.p( ' {' );
195: htp.p( ' if (toList.options[i].value == theValue)' );

Line 192: htp.p( ' if (theValue == "") return;' );

188: procedure append_to_list is
189: begin
190: htp.p( 'function appendToList(theValue, toList)' );
191: htp.p( '{' );
192: htp.p( ' if (theValue == "") return;' );
193: htp.p( ' for (i=0;i 194: htp.p( ' {' );
195: htp.p( ' if (toList.options[i].value == theValue)' );
196: htp.p( ' return;' );

Line 193: htp.p( ' for (i=0;i

189: begin
190: htp.p( 'function appendToList(theValue, toList)' );
191: htp.p( '{' );
192: htp.p( ' if (theValue == "") return;' );
193: htp.p( ' for (i=0;i 194: htp.p( ' {' );
195: htp.p( ' if (toList.options[i].value == theValue)' );
196: htp.p( ' return;' );
197: htp.p( ' }' );

Line 194: htp.p( ' {' );

190: htp.p( 'function appendToList(theValue, toList)' );
191: htp.p( '{' );
192: htp.p( ' if (theValue == "") return;' );
193: htp.p( ' for (i=0;i 194: htp.p( ' {' );
195: htp.p( ' if (toList.options[i].value == theValue)' );
196: htp.p( ' return;' );
197: htp.p( ' }' );
198: htp.p( ' toList.options[toList.length] = new Option(theValue,theValue);' );

Line 195: htp.p( ' if (toList.options[i].value == theValue)' );

191: htp.p( '{' );
192: htp.p( ' if (theValue == "") return;' );
193: htp.p( ' for (i=0;i 194: htp.p( ' {' );
195: htp.p( ' if (toList.options[i].value == theValue)' );
196: htp.p( ' return;' );
197: htp.p( ' }' );
198: htp.p( ' toList.options[toList.length] = new Option(theValue,theValue);' );
199: htp.p( '}' );

Line 196: htp.p( ' return;' );

192: htp.p( ' if (theValue == "") return;' );
193: htp.p( ' for (i=0;i 194: htp.p( ' {' );
195: htp.p( ' if (toList.options[i].value == theValue)' );
196: htp.p( ' return;' );
197: htp.p( ' }' );
198: htp.p( ' toList.options[toList.length] = new Option(theValue,theValue);' );
199: htp.p( '}' );
200: end append_to_list;

Line 197: htp.p( ' }' );

193: htp.p( ' for (i=0;i 194: htp.p( ' {' );
195: htp.p( ' if (toList.options[i].value == theValue)' );
196: htp.p( ' return;' );
197: htp.p( ' }' );
198: htp.p( ' toList.options[toList.length] = new Option(theValue,theValue);' );
199: htp.p( '}' );
200: end append_to_list;
201: -- delete a given value from a select list

Line 198: htp.p( ' toList.options[toList.length] = new Option(theValue,theValue);' );

194: htp.p( ' {' );
195: htp.p( ' if (toList.options[i].value == theValue)' );
196: htp.p( ' return;' );
197: htp.p( ' }' );
198: htp.p( ' toList.options[toList.length] = new Option(theValue,theValue);' );
199: htp.p( '}' );
200: end append_to_list;
201: -- delete a given value from a select list
202: procedure delete_from_list is

Line 199: htp.p( '}' );

195: htp.p( ' if (toList.options[i].value == theValue)' );
196: htp.p( ' return;' );
197: htp.p( ' }' );
198: htp.p( ' toList.options[toList.length] = new Option(theValue,theValue);' );
199: htp.p( '}' );
200: end append_to_list;
201: -- delete a given value from a select list
202: procedure delete_from_list is
203: begin

Line 204: htp.p( 'function deleteFromList(theValue, fromList)' );

200: end append_to_list;
201: -- delete a given value from a select list
202: procedure delete_from_list is
203: begin
204: htp.p( 'function deleteFromList(theValue, fromList)' );
205: htp.p( '{' );
206: htp.p( ' for (i=0;i 207: htp.p( ' {' );
208: htp.p( ' if (fromList.options[i].value == theValue)' );

Line 205: htp.p( '{' );

201: -- delete a given value from a select list
202: procedure delete_from_list is
203: begin
204: htp.p( 'function deleteFromList(theValue, fromList)' );
205: htp.p( '{' );
206: htp.p( ' for (i=0;i 207: htp.p( ' {' );
208: htp.p( ' if (fromList.options[i].value == theValue)' );
209: htp.p( ' fromList.options[i] = null;' );

Line 206: htp.p( ' for (i=0;i

202: procedure delete_from_list is
203: begin
204: htp.p( 'function deleteFromList(theValue, fromList)' );
205: htp.p( '{' );
206: htp.p( ' for (i=0;i 207: htp.p( ' {' );
208: htp.p( ' if (fromList.options[i].value == theValue)' );
209: htp.p( ' fromList.options[i] = null;' );
210: htp.p( ' }' );

Line 207: htp.p( ' {' );

203: begin
204: htp.p( 'function deleteFromList(theValue, fromList)' );
205: htp.p( '{' );
206: htp.p( ' for (i=0;i 207: htp.p( ' {' );
208: htp.p( ' if (fromList.options[i].value == theValue)' );
209: htp.p( ' fromList.options[i] = null;' );
210: htp.p( ' }' );
211: htp.p( ' history.go(0);' );

Line 208: htp.p( ' if (fromList.options[i].value == theValue)' );

204: htp.p( 'function deleteFromList(theValue, fromList)' );
205: htp.p( '{' );
206: htp.p( ' for (i=0;i 207: htp.p( ' {' );
208: htp.p( ' if (fromList.options[i].value == theValue)' );
209: htp.p( ' fromList.options[i] = null;' );
210: htp.p( ' }' );
211: htp.p( ' history.go(0);' );
212: htp.p( '}' );

Line 209: htp.p( ' fromList.options[i] = null;' );

205: htp.p( '{' );
206: htp.p( ' for (i=0;i 207: htp.p( ' {' );
208: htp.p( ' if (fromList.options[i].value == theValue)' );
209: htp.p( ' fromList.options[i] = null;' );
210: htp.p( ' }' );
211: htp.p( ' history.go(0);' );
212: htp.p( '}' );
213: end delete_from_list;

Line 210: htp.p( ' }' );

206: htp.p( ' for (i=0;i 207: htp.p( ' {' );
208: htp.p( ' if (fromList.options[i].value == theValue)' );
209: htp.p( ' fromList.options[i] = null;' );
210: htp.p( ' }' );
211: htp.p( ' history.go(0);' );
212: htp.p( '}' );
213: end delete_from_list;
214: --

Line 211: htp.p( ' history.go(0);' );

207: htp.p( ' {' );
208: htp.p( ' if (fromList.options[i].value == theValue)' );
209: htp.p( ' fromList.options[i] = null;' );
210: htp.p( ' }' );
211: htp.p( ' history.go(0);' );
212: htp.p( '}' );
213: end delete_from_list;
214: --
215: procedure swap is

Line 212: htp.p( '}' );

208: htp.p( ' if (fromList.options[i].value == theValue)' );
209: htp.p( ' fromList.options[i] = null;' );
210: htp.p( ' }' );
211: htp.p( ' history.go(0);' );
212: htp.p( '}' );
213: end delete_from_list;
214: --
215: procedure swap is
216: begin

Line 217: htp.p ('function swap(e1, e2)');

213: end delete_from_list;
214: --
215: procedure swap is
216: begin
217: htp.p ('function swap(e1, e2)');
218: htp.p ('{');
219: htp.p (' ttext = e1.text;');
220: htp.p (' tvalue = e1.value;');
221: htp.p (' e1.text = e2.text;');

Line 218: htp.p ('{');

214: --
215: procedure swap is
216: begin
217: htp.p ('function swap(e1, e2)');
218: htp.p ('{');
219: htp.p (' ttext = e1.text;');
220: htp.p (' tvalue = e1.value;');
221: htp.p (' e1.text = e2.text;');
222: htp.p (' e1.value = e2.value;');

Line 219: htp.p (' ttext = e1.text;');

215: procedure swap is
216: begin
217: htp.p ('function swap(e1, e2)');
218: htp.p ('{');
219: htp.p (' ttext = e1.text;');
220: htp.p (' tvalue = e1.value;');
221: htp.p (' e1.text = e2.text;');
222: htp.p (' e1.value = e2.value;');
223: htp.p (' e2.text = ttext;');

Line 220: htp.p (' tvalue = e1.value;');

216: begin
217: htp.p ('function swap(e1, e2)');
218: htp.p ('{');
219: htp.p (' ttext = e1.text;');
220: htp.p (' tvalue = e1.value;');
221: htp.p (' e1.text = e2.text;');
222: htp.p (' e1.value = e2.value;');
223: htp.p (' e2.text = ttext;');
224: htp.p (' e2.value = tvalue;');

Line 221: htp.p (' e1.text = e2.text;');

217: htp.p ('function swap(e1, e2)');
218: htp.p ('{');
219: htp.p (' ttext = e1.text;');
220: htp.p (' tvalue = e1.value;');
221: htp.p (' e1.text = e2.text;');
222: htp.p (' e1.value = e2.value;');
223: htp.p (' e2.text = ttext;');
224: htp.p (' e2.value = tvalue;');
225: htp.p ('} ');

Line 222: htp.p (' e1.value = e2.value;');

218: htp.p ('{');
219: htp.p (' ttext = e1.text;');
220: htp.p (' tvalue = e1.value;');
221: htp.p (' e1.text = e2.text;');
222: htp.p (' e1.value = e2.value;');
223: htp.p (' e2.text = ttext;');
224: htp.p (' e2.value = tvalue;');
225: htp.p ('} ');
226: end swap;

Line 223: htp.p (' e2.text = ttext;');

219: htp.p (' ttext = e1.text;');
220: htp.p (' tvalue = e1.value;');
221: htp.p (' e1.text = e2.text;');
222: htp.p (' e1.value = e2.value;');
223: htp.p (' e2.text = ttext;');
224: htp.p (' e2.value = tvalue;');
225: htp.p ('} ');
226: end swap;
227: --

Line 224: htp.p (' e2.value = tvalue;');

220: htp.p (' tvalue = e1.value;');
221: htp.p (' e1.text = e2.text;');
222: htp.p (' e1.value = e2.value;');
223: htp.p (' e2.text = ttext;');
224: htp.p (' e2.value = tvalue;');
225: htp.p ('} ');
226: end swap;
227: --
228: procedure move_element_up is

Line 225: htp.p ('} ');

221: htp.p (' e1.text = e2.text;');
222: htp.p (' e1.value = e2.value;');
223: htp.p (' e2.text = ttext;');
224: htp.p (' e2.value = tvalue;');
225: htp.p ('} ');
226: end swap;
227: --
228: procedure move_element_up is
229: begin

Line 230: htp.p(' function moveElementUp(toList, p_formname)

226: end swap;
227: --
228: procedure move_element_up is
229: begin
230: htp.p(' function moveElementUp(toList, p_formname)
231: { // go through the list and get all selected items
232: for ( i = 0; i <= toList.length-1; i++)
233: { // if the item is selected then swap it
234: if (toList.options[i].selected)

Line 250: htp.p(' function moveElementTop(toList, p_formname)

246:
247: --
248: procedure move_element_top is
249: begin
250: htp.p(' function moveElementTop(toList, p_formname)
251: { // get the first item selected which needs to move to top
252: iSelected = toList.selectedIndex;
253: if (iSelected == 0)
254: return;

Line 263: htp.p(' function moveElementDown(toList, p_formname)

259: end move_element_top;
260: --
261: procedure move_element_down is
262: begin
263: htp.p(' function moveElementDown(toList, p_formname)
264: { // go through the list and get all selected items
265: for ( i = toList.length-1; i >= 0; i--)
266: { // if the item is selected then swap it
267: if (toList.options[i].selected)

Line 283: htp.p(' function moveElementBottom(toList, p_formname)

279:
280: --
281: procedure move_element_bottom is
282: begin
283: htp.p(' function moveElementBottom(toList, p_formname)
284: { // get the last item selected which needs to move to bottom
285: for ( i = 0; i <= toList.length-1; i++)
286: { // if the item is selected then swap it
287: if (toList.options[i].selected)

Line 302: htp.p('function deleteBlankRowIfNotEmpty(toList)');

298:
299:
300: procedure delete_blank_row is
301: begin
302: htp.p('function deleteBlankRowIfNotEmpty(toList)');
303: htp.p('{');
304: htp.p(' var idx = -1;');
305: htp.p(' var val = "";');
306: htp.p('// find a blank row in table ');

Line 303: htp.p('{');

299:
300: procedure delete_blank_row is
301: begin
302: htp.p('function deleteBlankRowIfNotEmpty(toList)');
303: htp.p('{');
304: htp.p(' var idx = -1;');
305: htp.p(' var val = "";');
306: htp.p('// find a blank row in table ');
307: htp.p(' for (i = 0; i < toList.length; i++){ ');

Line 304: htp.p(' var idx = -1;');

300: procedure delete_blank_row is
301: begin
302: htp.p('function deleteBlankRowIfNotEmpty(toList)');
303: htp.p('{');
304: htp.p(' var idx = -1;');
305: htp.p(' var val = "";');
306: htp.p('// find a blank row in table ');
307: htp.p(' for (i = 0; i < toList.length; i++){ ');
308: htp.p(' val = toList.options[i].value;');

Line 305: htp.p(' var val = "";');

301: begin
302: htp.p('function deleteBlankRowIfNotEmpty(toList)');
303: htp.p('{');
304: htp.p(' var idx = -1;');
305: htp.p(' var val = "";');
306: htp.p('// find a blank row in table ');
307: htp.p(' for (i = 0; i < toList.length; i++){ ');
308: htp.p(' val = toList.options[i].value;');
309: htp.p(' if (val == "") {');

Line 306: htp.p('// find a blank row in table ');

302: htp.p('function deleteBlankRowIfNotEmpty(toList)');
303: htp.p('{');
304: htp.p(' var idx = -1;');
305: htp.p(' var val = "";');
306: htp.p('// find a blank row in table ');
307: htp.p(' for (i = 0; i < toList.length; i++){ ');
308: htp.p(' val = toList.options[i].value;');
309: htp.p(' if (val == "") {');
310: htp.p(' idx = i;');

Line 307: htp.p(' for (i = 0; i < toList.length; i++){ ');

303: htp.p('{');
304: htp.p(' var idx = -1;');
305: htp.p(' var val = "";');
306: htp.p('// find a blank row in table ');
307: htp.p(' for (i = 0; i < toList.length; i++){ ');
308: htp.p(' val = toList.options[i].value;');
309: htp.p(' if (val == "") {');
310: htp.p(' idx = i;');
311: htp.p(' break;');

Line 308: htp.p(' val = toList.options[i].value;');

304: htp.p(' var idx = -1;');
305: htp.p(' var val = "";');
306: htp.p('// find a blank row in table ');
307: htp.p(' for (i = 0; i < toList.length; i++){ ');
308: htp.p(' val = toList.options[i].value;');
309: htp.p(' if (val == "") {');
310: htp.p(' idx = i;');
311: htp.p(' break;');
312: htp.p(' }');

Line 309: htp.p(' if (val == "") {');

305: htp.p(' var val = "";');
306: htp.p('// find a blank row in table ');
307: htp.p(' for (i = 0; i < toList.length; i++){ ');
308: htp.p(' val = toList.options[i].value;');
309: htp.p(' if (val == "") {');
310: htp.p(' idx = i;');
311: htp.p(' break;');
312: htp.p(' }');
313: htp.p(' } ');

Line 310: htp.p(' idx = i;');

306: htp.p('// find a blank row in table ');
307: htp.p(' for (i = 0; i < toList.length; i++){ ');
308: htp.p(' val = toList.options[i].value;');
309: htp.p(' if (val == "") {');
310: htp.p(' idx = i;');
311: htp.p(' break;');
312: htp.p(' }');
313: htp.p(' } ');
314: htp.p(' if (idx >= 0 && (toList.length > 1))');

Line 311: htp.p(' break;');

307: htp.p(' for (i = 0; i < toList.length; i++){ ');
308: htp.p(' val = toList.options[i].value;');
309: htp.p(' if (val == "") {');
310: htp.p(' idx = i;');
311: htp.p(' break;');
312: htp.p(' }');
313: htp.p(' } ');
314: htp.p(' if (idx >= 0 && (toList.length > 1))');
315: htp.p(' toList.options[idx] = null;');

Line 312: htp.p(' }');

308: htp.p(' val = toList.options[i].value;');
309: htp.p(' if (val == "") {');
310: htp.p(' idx = i;');
311: htp.p(' break;');
312: htp.p(' }');
313: htp.p(' } ');
314: htp.p(' if (idx >= 0 && (toList.length > 1))');
315: htp.p(' toList.options[idx] = null;');
316: htp.p('}');

Line 313: htp.p(' } ');

309: htp.p(' if (val == "") {');
310: htp.p(' idx = i;');
311: htp.p(' break;');
312: htp.p(' }');
313: htp.p(' } ');
314: htp.p(' if (idx >= 0 && (toList.length > 1))');
315: htp.p(' toList.options[idx] = null;');
316: htp.p('}');
317: end delete_blank_row;

Line 314: htp.p(' if (idx >= 0 && (toList.length > 1))');

310: htp.p(' idx = i;');
311: htp.p(' break;');
312: htp.p(' }');
313: htp.p(' } ');
314: htp.p(' if (idx >= 0 && (toList.length > 1))');
315: htp.p(' toList.options[idx] = null;');
316: htp.p('}');
317: end delete_blank_row;
318:

Line 315: htp.p(' toList.options[idx] = null;');

311: htp.p(' break;');
312: htp.p(' }');
313: htp.p(' } ');
314: htp.p(' if (idx >= 0 && (toList.length > 1))');
315: htp.p(' toList.options[idx] = null;');
316: htp.p('}');
317: end delete_blank_row;
318:
319: procedure show_main_help

Line 316: htp.p('}');

312: htp.p(' }');
313: htp.p(' } ');
314: htp.p(' if (idx >= 0 && (toList.length > 1))');
315: htp.p(' toList.options[idx] = null;');
316: htp.p('}');
317: end delete_blank_row;
318:
319: procedure show_main_help
320: as

Line 324: htp.p('function show_main_help() {');

320: as
321: begin
322: open_script;
323:
324: htp.p('function show_main_help() {');
325: htp.p(' newWindow = window.open("' ||
326: 'pob_help_menu_tree.show_tree' ||
327: '", "HelpPage", "menubar=1,toolbar=yes,scrollbars=1,resizable=1,width=600,height=400");');
328: htp.p('}');

Line 325: htp.p(' newWindow = window.open("' ||

321: begin
322: open_script;
323:
324: htp.p('function show_main_help() {');
325: htp.p(' newWindow = window.open("' ||
326: 'pob_help_menu_tree.show_tree' ||
327: '", "HelpPage", "menubar=1,toolbar=yes,scrollbars=1,resizable=1,width=600,height=400");');
328: htp.p('}');
329:

Line 328: htp.p('}');

324: htp.p('function show_main_help() {');
325: htp.p(' newWindow = window.open("' ||
326: 'pob_help_menu_tree.show_tree' ||
327: '", "HelpPage", "menubar=1,toolbar=yes,scrollbars=1,resizable=1,width=600,height=400");');
328: htp.p('}');
329:
330: close_script;
331:
332: end show_main_help;

Line 339: htp.p('function show_context_sens_help(helpFileName) {');

335: as
336: begin
337: open_script;
338:
339: htp.p('function show_context_sens_help(helpFileName) {');
340: htp.p(' newWindow = window.open("' ||
341: 'pob_help_renderer.render_context_sensitive' ||
342: '?the_filename=" + helpFileName' ||
343: ', "HelpPage", "menubar=1,toolbar=yes,scrollbars=1,resizable=1,width=600,height=400");');

Line 340: htp.p(' newWindow = window.open("' ||

336: begin
337: open_script;
338:
339: htp.p('function show_context_sens_help(helpFileName) {');
340: htp.p(' newWindow = window.open("' ||
341: 'pob_help_renderer.render_context_sensitive' ||
342: '?the_filename=" + helpFileName' ||
343: ', "HelpPage", "menubar=1,toolbar=yes,scrollbars=1,resizable=1,width=600,height=400");');
344: htp.p('}');

Line 344: htp.p('}');

340: htp.p(' newWindow = window.open("' ||
341: 'pob_help_renderer.render_context_sensitive' ||
342: '?the_filename=" + helpFileName' ||
343: ', "HelpPage", "menubar=1,toolbar=yes,scrollbars=1,resizable=1,width=600,height=400");');
344: htp.p('}');
345:
346: close_script;
347:
348: end show_context_sens_help;