619
| <![CDATA[<script type="text/javascript">
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.colider.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, 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>Comerciais e Serviços - Ano: 2015 > Categoria: Geral </title> ')
newwin.document.write('</head>\n')
newwin.document.write('<body style="background:none;" onload="print_win()">\n');
newwin.document.write(str)
newwin.document.write('</body>\n')
newwin.document.write('</html>\n')
newwin.document.close();
}
</script>]]>
|