475
| <![CDATA[<script>
function printContent(id){
w = screen.width;
h = screen.height;
meio_w = w/2;
meio_h = h/2;
altura = '768';
largura = '1024';
altura2 = altura/2;
largura2 = largura/2;
meio1 = meio_h-altura2;
meio2 = meio_w-largura2;
str=document.getElementById(id).innerHTML
newwin=window.open('','printwin','left='+meio2+',top='+meio1+',width='+largura+',height='+altura+'')
newwin.document.write('<html>\n')
newwin.document.write('<head>\n')
newwin.document.write('<base href="https://www.ipirangadonorte.mt.gov.br/" />')
newwin.document.write('<style>')
newwin.document.write('.content-header-print{margin-bottom: 20px; }')
newwin.document.write('table{ font-family: arial, sans-serif; border-collapse: collapse; width: 100%; color: black; }')
newwin.document.write('thead{ background-color: black !important; }')
newwin.document.write('th{color: #FFF;}')
newwin.document.write('th{text-align: center; }')
newwin.document.write('td:nth-child(1), th:nth-child(1) {width: 30%;}')
newwin.document.write('td:nth-child(2), th:nth-child(1) {width: 40%;}')
newwin.document.write('td:nth-child(3), th:nth-child(1) {width: 30%;}')
newwin.document.write('td, th {border: 1px solid #DDDDDD; padding: 8px; }')
newwin.document.write('tr:nth-child(even) { background-color: #dddddd; }')
newwin.document.write('a{ color: #000000; text-decoration: none; }')
newwin.document.write('</style>')
newwin.document.write('<script>\n')
newwin.document.write('function chkstate(){\n')
newwin.document.write('if(document.readyState=="complete"){\n')
newwin.document.write('window.close()\n')
newwin.document.write('}\n')
newwin.document.write('else{\n')
newwin.document.write('setTimeout("chkstate()",2000)\n')
newwin.document.write('}\n')
newwin.document.write('}\n')
newwin.document.write('function print_win(){\n')
newwin.document.write('window.print();\n')
newwin.document.write('chkstate();\n')
newwin.document.write('}\n')
newwin.document.write('<\/script>\n')
newwin.document.write('<title> > Leis </title> ')
newwin.document.write('</head>\n')
newwin.document.write('<body style="background:none;" onload="print_win()">\n');
newwin.document.write('<div class="content-header-print"> - Leis 19/04/2022 ás 13:01:09</div>')
newwin.document.write(str)
newwin.document.write('</body>\n')
newwin.document.write('</html>\n')
newwin.document.close();
}
</script>]]>
|