Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PROCEDURE p_printButton
- IS
- l_control_bar2 VARCHAR2(32000);
- BEGIN
- l_control_bar2:=
- te_xhtml.f_anchor(te_xhtml.f_img(
- 'btnPrint',
- i_class=>'radius1 title-button',
- i_style=>'padding:2px;',
- i_src=>'/img/print.gif',
- i_alt=>'Print'),
- 'javascript:printWindow();',
- i_attribs=> ' title="print" ');
- htp.p('<script>
- var printTag = document.createElement("span");
- printTag.id = "printSpan";
- printTag.innerHTML = ''' || l_control_bar2 || ''';
- getObj("title-bar").appendChild(printTag);
- function printWindow()
- {
- var el = document.getElementById("mainDiv"):
- var html = "";
- if (el) {
- html = el.innerHTML;
- var xopen = window.open("about:blank");
- xopen.document.write(html);
- }
- }
- </script>
- ');
- END;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement