|  |  | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 | 
						
						
						
							|  |  | <html>
 | 
						
						
						
							|  |  | <head>
 | 
						
						
						
							|  |  | 	<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
 | 
						
						
						
							|  |  | 	<title>SIPRP</title>
 | 
						
						
						
							|  |  | 	<link rel='icon' href='/html/images/siprp_simple_logo.gif'>
 | 
						
						
						
							|  |  | </head>
 | 
						
						
						
							|  |  | <style>
 | 
						
						
						
							|  |  | body
 | 
						
						
						
							|  |  | {
 | 
						
						
						
							|  |  | 	color: #497895;
 | 
						
						
						
							|  |  | 	font-family: verdana;
 | 
						
						
						
							|  |  | 	margin-top: 0px;
 | 
						
						
						
							|  |  | }
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | .text
 | 
						
						
						
							|  |  | {
 | 
						
						
						
							|  |  | 	color: #497895;
 | 
						
						
						
							|  |  | 	font-family: verdana;
 | 
						
						
						
							|  |  | 	font-size: 10pt;
 | 
						
						
						
							|  |  | 	text-align: justify;
 | 
						
						
						
							|  |  | }
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | .bold
 | 
						
						
						
							|  |  | {
 | 
						
						
						
							|  |  | 	color: #497895;
 | 
						
						
						
							|  |  | 	font-family: verdana;
 | 
						
						
						
							|  |  | 	font-size: 10pt;
 | 
						
						
						
							|  |  | 	font-weight: bold;
 | 
						
						
						
							|  |  | 	text-decoration: none;
 | 
						
						
						
							|  |  | 	cursor: pointer;
 | 
						
						
						
							|  |  | }
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | td
 | 
						
						
						
							|  |  | {
 | 
						
						
						
							|  |  | 	font-size: 10pt;
 | 
						
						
						
							|  |  | }
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | td.asd
 | 
						
						
						
							|  |  | {
 | 
						
						
						
							|  |  | 	border-width: 1px 1px 1px 1px;
 | 
						
						
						
							|  |  | 	border-style: solid;
 | 
						
						
						
							|  |  | }
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | td.title
 | 
						
						
						
							|  |  | {
 | 
						
						
						
							|  |  | 	color: #ffffff;
 | 
						
						
						
							|  |  | 	font-family: verdana;
 | 
						
						
						
							|  |  | 	font-size: 10pt;
 | 
						
						
						
							|  |  | 	font-weight: bold;
 | 
						
						
						
							|  |  | }
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | td.text
 | 
						
						
						
							|  |  | {
 | 
						
						
						
							|  |  | 	color: #ffffff;
 | 
						
						
						
							|  |  | 	font-family: verdana;
 | 
						
						
						
							|  |  | 	font-size: 10pt;
 | 
						
						
						
							|  |  | 	font-weight: normal;
 | 
						
						
						
							|  |  | }
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | td.noticias
 | 
						
						
						
							|  |  | {
 | 
						
						
						
							|  |  | 	font-size: 9pt;
 | 
						
						
						
							|  |  | }
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | td.footer
 | 
						
						
						
							|  |  | {
 | 
						
						
						
							|  |  | 	color: #ffffff;
 | 
						
						
						
							|  |  | 	font-family: verdana;
 | 
						
						
						
							|  |  | 	font-size: 8pt;
 | 
						
						
						
							|  |  | 	text-align: right;
 | 
						
						
						
							|  |  | }
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | a:link,
 | 
						
						
						
							|  |  | a:visited,
 | 
						
						
						
							|  |  | a:active
 | 
						
						
						
							|  |  | {
 | 
						
						
						
							|  |  | 	color: #FFFFFF;
 | 
						
						
						
							|  |  | 	font-family: verdana;
 | 
						
						
						
							|  |  | 	font-size: 10pt;
 | 
						
						
						
							|  |  | 	font-weight: bold;
 | 
						
						
						
							|  |  | 	text-decoration: none;
 | 
						
						
						
							|  |  | }
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | a:hover
 | 
						
						
						
							|  |  | {
 | 
						
						
						
							|  |  | 	color: #C13F45;
 | 
						
						
						
							|  |  | 	font-family: verdana;
 | 
						
						
						
							|  |  | 	font-size: 10pt;
 | 
						
						
						
							|  |  | 	font-weight: bold;
 | 
						
						
						
							|  |  | 	text-decoration: none;
 | 
						
						
						
							|  |  | }
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | a.text:link,
 | 
						
						
						
							|  |  | a.text:visited,
 | 
						
						
						
							|  |  | a.text:active
 | 
						
						
						
							|  |  | {
 | 
						
						
						
							|  |  | 	color: #497895;
 | 
						
						
						
							|  |  | 	font-family: verdana;
 | 
						
						
						
							|  |  | 	font-size: 10pt;
 | 
						
						
						
							|  |  | 	font-weight: bold;
 | 
						
						
						
							|  |  | 	text-decoration: none;
 | 
						
						
						
							|  |  | 	cursor: pointer;
 | 
						
						
						
							|  |  | }
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | a.text:hover
 | 
						
						
						
							|  |  | {
 | 
						
						
						
							|  |  | 	color: #C13F45;
 | 
						
						
						
							|  |  | 	font-family: verdana;
 | 
						
						
						
							|  |  | 	font-size: 10pt;
 | 
						
						
						
							|  |  | 	font-weight: bold;
 | 
						
						
						
							|  |  | 	text-decoration: none;
 | 
						
						
						
							|  |  | }
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | a.copy:link,
 | 
						
						
						
							|  |  | a.copy:visited,
 | 
						
						
						
							|  |  | a.copy:active
 | 
						
						
						
							|  |  | {
 | 
						
						
						
							|  |  | 	color: #FFFFFF;
 | 
						
						
						
							|  |  | 	font-family: verdana;
 | 
						
						
						
							|  |  | 	font-size: 8pt;
 | 
						
						
						
							|  |  | 	font-weight: normal;
 | 
						
						
						
							|  |  | 	text-decoration: underline;
 | 
						
						
						
							|  |  | }
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | td.box5
 | 
						
						
						
							|  |  | {
 | 
						
						
						
							|  |  | 	border-style: solid;
 | 
						
						
						
							|  |  | 	border-width: 0px 1px 1px 1px;
 | 
						
						
						
							|  |  | }
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | td.box6
 | 
						
						
						
							|  |  | {
 | 
						
						
						
							|  |  | 	border-style: solid;
 | 
						
						
						
							|  |  | 	border-width: 0px 1px 1px 0px;
 | 
						
						
						
							|  |  | }
 | 
						
						
						
							|  |  | </style>
 | 
						
						
						
							|  |  | <script language="javascript" src="/siprpWeb/html/css/funcs.js"></script>
 | 
						
						
						
							|  |  | <script>
 | 
						
						
						
							|  |  | 	function marcacaoWindow()
 | 
						
						
						
							|  |  | 	{
 | 
						
						
						
							|  |  | 		m_wnd = window.open( "schedule?" + Math.random(), "marcacao_window", "menubar=0, resizeable=0, width=400, height=250, top=100, left=450" );
 | 
						
						
						
							|  |  | 		m_wnd.focus();
 | 
						
						
						
							|  |  | 	}
 | 
						
						
						
							|  |  | 	function marcacaoConsultaWindow()
 | 
						
						
						
							|  |  | 	{
 | 
						
						
						
							|  |  | 		m_wnd = window.open( "schedule?consulta", "marcacao_window", "menubar=0, resizeable=0, width=400, height=250, top=100, left=450" );
 | 
						
						
						
							|  |  | 		m_wnd.focus();
 | 
						
						
						
							|  |  | 	}
 | 
						
						
						
							|  |  | 	function marcacaoExamesWindow()
 | 
						
						
						
							|  |  | 	{
 | 
						
						
						
							|  |  | 		m_wnd = window.open( "schedule?exames", "marcacao_window", "menubar=0, resizeable=0, width=400, height=250, top=100, left=450" );
 | 
						
						
						
							|  |  | 		m_wnd.focus();
 | 
						
						
						
							|  |  | 	}
 | 
						
						
						
							|  |  | 	function pedidoRelatorioWindow()
 | 
						
						
						
							|  |  | 	{
 | 
						
						
						
							|  |  | 		m_wnd = window.open( "relatorio?" + Math.random(), "pedido_window", "menubar=0, resizeable=0, width=400, height=250, top=100, left=450" );
 | 
						
						
						
							|  |  | 		m_wnd.focus();
 | 
						
						
						
							|  |  | 	}
 | 
						
						
						
							|  |  | </script>
 | 
						
						
						
							|  |  | <body>
 | 
						
						
						
							|  |  | 	<table style="width: 760px; height: 623px; background-image: url(/siprpWeb/html/images/fundo.jpg); background-repeat: no-repeat;" align='center' >
 | 
						
						
						
							|  |  | 	<tbody>
 | 
						
						
						
							|  |  | 		<tr>
 | 
						
						
						
							|  |  | 			<td style="height: 623px; width: 20px;"><br></td>
 | 
						
						
						
							|  |  | 			<td style="vertical-align: top; width: 760px; height: 623px;">
 | 
						
						
						
							|  |  | 				<table style="text-align: center; width: 740px; height: 230px;" border="0" cellpadding="0" cellspacing="0">
 | 
						
						
						
							|  |  | 					<tbody>
 | 
						
						
						
							|  |  | 					<tr>
 | 
						
						
						
							|  |  | 						<td style="height: 200px; vertical-align: top;" colspan="7"></td>
 | 
						
						
						
							|  |  | 					</tr>
 | 
						
						
						
							|  |  | 					<tr>
 | 
						
						
						
							|  |  | 						<!--td style="width: 45px; vertical-align: top;"></td>
 | 
						
						
						
							|  |  | 						<td style="width: 120px; vertical-align: top;"><a href="index.html" target="_blank">a SIPRP</a></td>
 | 
						
						
						
							|  |  | 						<td style="width: 120px; vertical-align: top;"><a href="html/frame_servicos.html" target="_blank">serviços</a></td>
 | 
						
						
						
							|  |  | 						<td style="width: 120px; vertical-align: top;"><a href="html/frame_clientes.html" target="_blank">clientes</a></td>
 | 
						
						
						
							|  |  | 						<td style="width: 120px; vertical-align: top;"><a href="html/frame_contactos.html" target="_blank">contactos</a></td>
 | 
						
						
						
							|  |  | 						<td style="width: 120px; vertical-align: top;"><a href="html/frame_links.html" target="_blank">links</a></td>
 | 
						
						
						
							|  |  | 						<td> </td-->
 | 
						
						
						
							|  |  | 						<!-- <td style="width: 120px; vertical-align: top;"><a href="html/frame_relatorio.html" target="_blank">relatório</a></td>-->
 | 
						
						
						
							|  |  | 						<td style="color: white; width: 120px; vertical-align: top; text-align: left">   $userName </td>
 | 
						
						
						
							|  |  | 						#if( $userRole != "manager" )
 | 
						
						
						
							|  |  | 						    <td style='color: white; vertical-align: top; text-align: right'>   </td>
 | 
						
						
						
							|  |  | 						    <td style='color: white; vertical-align: top; text-align: right'><a href="javascript:pedidoRelatorioWindow();">pedido de relatório anual...</a></td>
 | 
						
						
						
							|  |  | 						#end
 | 
						
						
						
							|  |  | 						<td style='color: white; vertical-align: top; text-align: right'><a href="/siprpWeb/">logout <20>   </a></td>
 | 
						
						
						
							|  |  | 					</tr>
 | 
						
						
						
							|  |  | 					</tbody>
 | 
						
						
						
							|  |  | 				</table>
 | 
						
						
						
							|  |  | 				<table style="text-align: left; width: 740px; height: 367px;" border="0" cellpadding="0" cellspacing="0">
 | 
						
						
						
							|  |  | 					<tbody>
 | 
						
						
						
							|  |  | 					<tr style='vertical-align: top;'>
 | 
						
						
						
							|  |  | 						<td>
 | 
						
						
						
							|  |  | 							<table cellspacing='0' cellpadding='0'>
 | 
						
						
						
							|  |  | 								<tr>
 | 
						
						
						
							|  |  | 									<!-- titulo -->
 | 
						
						
						
							|  |  | 									<td colspan='5' class='title' style="background: url(/siprpWeb/html/images/topo_740.gif); width: 740px; height: 29px; vertical-align: top;">   acesso restrito</td>
 | 
						
						
						
							|  |  | 								</tr>
 | 
						
						
						
							|  |  | 								<tr>
 | 
						
						
						
							|  |  | 									<td style="width: 3px; background-color: #789BB5;"></td>
 | 
						
						
						
							|  |  | 									<td style="width: 4px;"></td>
 | 
						
						
						
							|  |  | 									<!-- escolher empresa -->
 | 
						
						
						
							|  |  | 									<td style='width: 728; vertical-align: top;'>
 | 
						
						
						
							|  |  | 										<table width='100%' cellspacing='0' cellpadding='0'>
 | 
						
						
						
							|  |  | 											<tr>
 | 
						
						
						
							|  |  | 												<td>
 | 
						
						
						
							|  |  | 												#if( $userRole == "manager" && $empresa_nome )
 | 
						
						
						
							|  |  | 												<a class='text' href="/siprpWeb/?empresas">Empresa:</a> $!empresa_nome
 | 
						
						
						
							|  |  | 												#else
 | 
						
						
						
							|  |  | 												Empresa: $!empresa_nome
 | 
						
						
						
							|  |  | 												#end
 | 
						
						
						
							|  |  | 												</td>
 | 
						
						
						
							|  |  | 												<!--td class='text' style='text-align: right; background: url(/siprpWeb/html/images/logout.gif) no-repeat;' width='140' height='45' rowspan='3'>
 | 
						
						
						
							|  |  | 													$userName   <br>
 | 
						
						
						
							|  |  | 													<a href="/siprpWeb/">Logout <20>   </a><br>
 | 
						
						
						
							|  |  | 												</td-->
 | 
						
						
						
							|  |  | 											</tr>
 | 
						
						
						
							|  |  | 											<tr>
 | 
						
						
						
							|  |  | 												<td>
 | 
						
						
						
							|  |  | 												#if( $estabelecimento_id )
 | 
						
						
						
							|  |  | 												<a class='text' href="/siprpWeb/?$empresa_id">Estabelecimento</a>: $!estabelecimento_nome
 | 
						
						
						
							|  |  | 												#else
 | 
						
						
						
							|  |  | 												Estabelecimento: 
 | 
						
						
						
							|  |  | 												#end
 | 
						
						
						
							|  |  | 												</td>
 | 
						
						
						
							|  |  | 											</tr>
 | 
						
						
						
							|  |  | 											<tr>
 | 
						
						
						
							|  |  | 												<td>
 | 
						
						
						
							|  |  | 												#if( $query == "trabalhador" )
 | 
						
						
						
							|  |  | 												<a class='text' href='/siprpWeb/?$empresa_id/$estabelecimento_id'>Funcionário</a>: $!funcionario.nome  - Data de Nascimento: $!funcionario.data_nascimento
 | 
						
						
						
							|  |  | 												#else
 | 
						
						
						
							|  |  | 												Funcionário:
 | 
						
						
						
							|  |  | 												#end
 | 
						
						
						
							|  |  | 												
 | 
						
						
						
							|  |  | 												#if( $query == "trabalhador" )
 | 
						
						
						
							|  |  | 												
 | 
						
						
						
							|  |  | 												#end
 | 
						
						
						
							|  |  | 												</td>
 | 
						
						
						
							|  |  | 											</tr>
 | 
						
						
						
							|  |  | 											<tr>
 | 
						
						
						
							|  |  | 												<td>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 												</td>
 | 
						
						
						
							|  |  | 											</tr>
 | 
						
						
						
							|  |  | 										</table>
 | 
						
						
						
							|  |  | 									</td>
 | 
						
						
						
							|  |  | 									<td style="width: 4px;"></td>
 | 
						
						
						
							|  |  | 									<td style="width: 3px; background-color: #789BB5;"></td>
 | 
						
						
						
							|  |  | 								</tr>
 | 
						
						
						
							|  |  | 								<tr>
 | 
						
						
						
							|  |  | 									<!-- base -->
 | 
						
						
						
							|  |  | 									<td colspan='5' class='title' style="background: url(/siprpWeb/html/images/base_740.gif) repeat; width: 740px; height: 13px; vertical-align: top;"></td>
 | 
						
						
						
							|  |  | 								</tr>
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 								#if( $query == "empresas" )
 | 
						
						
						
							|  |  | 								#set( $listaTitle = "empresas" )
 | 
						
						
						
							|  |  | 								#elseif( $query == "estabelecimentos" )
 | 
						
						
						
							|  |  | 								#set( $listaTitle = "estabelecimentos" )
 | 
						
						
						
							|  |  | 								#elseif( $query == "trabalhadores" || $query == "trabalhadores_tudo" || $query == "trabalhadores_pendentes" )
 | 
						
						
						
							|  |  | 								#set( $listaTitle = "funcionários:" )
 | 
						
						
						
							|  |  | 								#set( $lista_funcionarios = 1 )
 | 
						
						
						
							|  |  | 								#else ##( $query == "trabalhador" )
 | 
						
						
						
							|  |  | 								#set( $listaTitle = "funcionário" )
 | 
						
						
						
							|  |  | 								#end
 | 
						
						
						
							|  |  | 								<!-- LISTA -->
 | 
						
						
						
							|  |  | 								<tr >
 | 
						
						
						
							|  |  | 								    #if( $lista_funcionarios )
 | 
						
						
						
							|  |  | 								    
 | 
						
						
						
							|  |  | 									<!-- titulo -->
 | 
						
						
						
							|  |  | 									<td colspan='5' class='title' style="background: url(/siprpWeb/html/images/topo_740.gif); width: 740px; height: 29px; vertical-align: top;">
 | 
						
						
						
							|  |  | 									    <table cellpadding='0' cellspacing='0'>
 | 
						
						
						
							|  |  | 									    <tr style="vertical-align: top;">
 | 
						
						
						
							|  |  | 											<td colspan='1' class='title'>   funcionários:</td>
 | 
						
						
						
							|  |  | 											<td style='color: white; vertical-align: top; text-align: left'>   <a href="/siprpWeb/?$empresa_id/$estabelecimento_id">todos</a></td>
 | 
						
						
						
							|  |  | 											<td style='color: white; vertical-align: top; text-align: left'>   <a href="/siprpWeb/?$empresa_id/$estabelecimento_id/trabalhadores_tudo">com ficha de aptidão</a></td>
 | 
						
						
						
							|  |  | 											<td style='color: white; vertical-align: top; text-align: left'>   <a href="/siprpWeb/?$empresa_id/$estabelecimento_id/trabalhadores_pendentes">com pendências</a></td>
 | 
						
						
						
							|  |  | 											<td style='color: white; vertical-align: top; text-align: left' align='right'>         <a href='/siprpWeb/?$empresa_id/$estabelecimento_id/${query}_print' target="_blank">imprimir</a></td>
 | 
						
						
						
							|  |  | 									    </tr>
 | 
						
						
						
							|  |  | 									    </table>
 | 
						
						
						
							|  |  | 								    #else
 | 
						
						
						
							|  |  | 									    <td colspan='5' class='title' style="background: url(/siprpWeb/html/images/topo_740.gif); width: 740px; height: 29px; vertical-align: top;">   $listaTitle</td>
 | 
						
						
						
							|  |  | 								#end
 | 
						
						
						
							|  |  | 								</tr>
 | 
						
						
						
							|  |  | 								<tr>
 | 
						
						
						
							|  |  | 									<td style="width: 2px; background-color: #789BB5;"></td>
 | 
						
						
						
							|  |  | 									<td style="width: 4px;"></td>
 | 
						
						
						
							|  |  | 									<td>
 | 
						
						
						
							|  |  | 									#if ($query == "trabalhador")
 | 
						
						
						
							|  |  | 									(*)ECD - Exames Complementares de Diagnóstico<br><br>
 | 
						
						
						
							|  |  | 									<table width='100%' cellspacing='0' cellpadding='0'>
 | 
						
						
						
							|  |  | 										<tr align='center' style='background-color: #789BB5;'>
 | 
						
						
						
							|  |  | 											<td width='14%' style='color: #ffffff'>Último ECD(*)</td>
 | 
						
						
						
							|  |  | 											<td width='14%' style='color: #ffffff'>Realizado</td>
 | 
						
						
						
							|  |  | 											<td width='14%' style='color: #ffffff'>Última Consulta</td>
 | 
						
						
						
							|  |  | 											<td width='14%' style='color: #ffffff'>Realizada</td>
 | 
						
						
						
							|  |  | 											<td width='14%' style='color: #ffffff'>Resultado</td>
 | 
						
						
						
							|  |  | 											<td width='14%'><a href='javascript:marcacaoExamesWindow();'>Próximo ECD(*)</a></td>
 | 
						
						
						
							|  |  | 											<td width='14%'><a href='javascript:marcacaoConsultaWindow();'>Próxima Consulta</a></td>
 | 
						
						
						
							|  |  | 											
 | 
						
						
						
							|  |  | 										</tr>
 | 
						
						
						
							|  |  | 										<tr align='center'>
 | 
						
						
						
							|  |  | 											<td class='box5'>$!funcionario.ultimo_exame </td>
 | 
						
						
						
							|  |  | 											<td class='box6'>$!funcionario.realizado </td>
 | 
						
						
						
							|  |  | 											<td class='box6'>$!funcionario.ultima_consulta </td>
 | 
						
						
						
							|  |  | 											<td class='box6'>$!funcionario.realizada </td>
 | 
						
						
						
							|  |  | 											<td class='box6'>$!funcionario.resultado </td>
 | 
						
						
						
							|  |  | 											<td class='box6'>$!funcionario.proximo_exame </td>
 | 
						
						
						
							|  |  | 											<td class='box6'>$!funcionario.proxima_consulta </td>
 | 
						
						
						
							|  |  | 										</tr>
 | 
						
						
						
							|  |  | 									</table>
 | 
						
						
						
							|  |  | 									#elseif( $query == "trabalhadores" )
 | 
						
						
						
							|  |  | 									(*)ECD - Exames Complementares de Diagnóstico<br><br>
 | 
						
						
						
							|  |  | 									    <table width='100%' cellspacing='0' cellpadding='0' border="0">
 | 
						
						
						
							|  |  | 										    <tr style='background-color: #789BB5; color: #ffffff;'>
 | 
						
						
						
							|  |  | 											    <td width='55%' align='left' >  Nome</td>
 | 
						
						
						
							|  |  | 											    <td width='15%' align='center' >Último ECD(*)</td>
 | 
						
						
						
							|  |  | 											    <td width='15%' align='center' >Última consulta</td>
 | 
						
						
						
							|  |  | 											    <td width='15%' align='center' >Próxima consulta</td>
 | 
						
						
						
							|  |  | 										    </tr>
 | 
						
						
						
							|  |  | 										#foreach( $element in $v1 )
 | 
						
						
						
							|  |  | 											#set ( $counter = $velocityCount - 1 )
 | 
						
						
						
							|  |  | 											#set ( $dados_trabalhador = $v2.get($counter) )
 | 
						
						
						
							|  |  | 											<tr align='center'>
 | 
						
						
						
							|  |  | 												<td class='box5'><a class='text' href="$v1.get($counter)">$dados_trabalhador.Nome</a> </td>
 | 
						
						
						
							|  |  | 												<td class='box6'>$dados_trabalhador.ultimo_exame </td>
 | 
						
						
						
							|  |  | 												<td class='box6'>$dados_trabalhador.ultima_consulta </td>
 | 
						
						
						
							|  |  | 												<td class='box6'>$dados_trabalhador.proxima_consulta </td>
 | 
						
						
						
							|  |  | 											</tr>
 | 
						
						
						
							|  |  | 										#end
 | 
						
						
						
							|  |  | 									    </table>
 | 
						
						
						
							|  |  | 									#elseif( $query == "trabalhadores_tudo" )
 | 
						
						
						
							|  |  | 									    <table width='100%' cellspacing='0' cellpadding='0' border="0">
 | 
						
						
						
							|  |  | 										    <tr style='background-color: #789BB5; color: #ffffff;'>
 | 
						
						
						
							|  |  | 											    <td width='75%' align='left' >  Nome</td>
 | 
						
						
						
							|  |  | 											    <td width='25%' align='center' >Data da Ficha de Aptidão</td>
 | 
						
						
						
							|  |  | 										    </tr>
 | 
						
						
						
							|  |  | 										#foreach( $element in $v1 )
 | 
						
						
						
							|  |  | 											#set ( $counter = $velocityCount - 1 )
 | 
						
						
						
							|  |  | 											#set ( $dados_trabalhador = $v2.get($counter) )
 | 
						
						
						
							|  |  | 											<tr>
 | 
						
						
						
							|  |  | 											    <td class='box5' align='left' ><a class='text' href="$v1.get($counter)">  $dados_trabalhador.Nome</a></td>
 | 
						
						
						
							|  |  | 											    <td class='box6' align='center' >$dados_trabalhador.Data  </td>
 | 
						
						
						
							|  |  | 											</tr>
 | 
						
						
						
							|  |  | 										#end
 | 
						
						
						
							|  |  | 									    </table>
 | 
						
						
						
							|  |  | 									#elseif( $query == "trabalhadores_pendentes" )
 | 
						
						
						
							|  |  | 									    <IMG SRC="/siprpWeb/html/images/red.gif"> - pendente   
 | 
						
						
						
							|  |  | 									    <IMG SRC="/siprpWeb/html/images/yellow.gif"> - marcado   
 | 
						
						
						
							|  |  | 									    <IMG SRC="/siprpWeb/html/images/green.gif"> - tratado <br>
 | 
						
						
						
							|  |  |                                                                             (*)ECD - Exames Complementares de Diagnóstico<br><br>
 | 
						
						
						
							|  |  | 									    <table width='100%' cellspacing='0' cellpadding='0' border="0">
 | 
						
						
						
							|  |  | 										    <tr style='background-color: #789BB5; color: #ffffff;'>
 | 
						
						
						
							|  |  | 											    <td width='75%' align='left' >  Nome</td>
 | 
						
						
						
							|  |  | 											    <td width='12%' align='center' >ECD(*)</td>
 | 
						
						
						
							|  |  | 											    <td width='12%' align='center'>Consulta</td>
 | 
						
						
						
							|  |  | 										    </tr>
 | 
						
						
						
							|  |  | 										#foreach( $element in $v1 )
 | 
						
						
						
							|  |  | 											#set ( $counter = $velocityCount - 1 )
 | 
						
						
						
							|  |  | 											#set ( $dados_trabalhador = $v2.get($counter) )
 | 
						
						
						
							|  |  | 											<tr>
 | 
						
						
						
							|  |  | 											    <td class='box5' align='left' ><a class='text' href="$v1.get($counter)">  $dados_trabalhador.Nome</a></td>
 | 
						
						
						
							|  |  | 											    <td class='box6' align='center' ><IMG SRC="/siprpWeb/html/images/${dados_trabalhador.Exame}.gif"></td>
 | 
						
						
						
							|  |  | 											    <td class='box6' align='center' ><IMG SRC="/siprpWeb/html/images/${dados_trabalhador.Consulta}.gif"></td>
 | 
						
						
						
							|  |  | 											</tr>
 | 
						
						
						
							|  |  | 										#end
 | 
						
						
						
							|  |  | 									    </table>
 | 
						
						
						
							|  |  | 									#else
 | 
						
						
						
							|  |  | 										#foreach( $element in $v1 )
 | 
						
						
						
							|  |  | 											#set ( $counter = $velocityCount - 1 )
 | 
						
						
						
							|  |  | 											<a class='text' href="$v1.get($counter)">$v2.get($counter)</a><br>
 | 
						
						
						
							|  |  | 										#end
 | 
						
						
						
							|  |  | 									#end
 | 
						
						
						
							|  |  | 									</td>
 | 
						
						
						
							|  |  | 									<td style="width: 4px;"></td>
 | 
						
						
						
							|  |  | 									<td style="width: 3px; background-color: #789BB5;"></td>
 | 
						
						
						
							|  |  | 								</tr>
 | 
						
						
						
							|  |  | 								<!-- !LISTA -->
 | 
						
						
						
							|  |  | 
 | 
						
						
						
							|  |  | 								<tr>
 | 
						
						
						
							|  |  | 									<!-- base -->
 | 
						
						
						
							|  |  | 									<td colspan='5' class='title' style="background: url(/siprpWeb/html/images/base_740.gif) repeat; width: 740px; height: 13px; vertical-align: top;"></td>
 | 
						
						
						
							|  |  | 								</tr>
 | 
						
						
						
							|  |  | 							</table>
 | 
						
						
						
							|  |  | 						</td>
 | 
						
						
						
							|  |  | 					</tr>
 | 
						
						
						
							|  |  | 					<tr>
 | 
						
						
						
							|  |  | 						<td class='footer' style="width: 740px; height: 33px; background-image:url(/siprpWeb/html/images/rodape.jpg); background-position: right center; background-repeat: no-repeat;" rowspan="1" colspan="2">Site optimizado para 800x600 - Todos os direitos reservados Sociedade Ibérica de Prevenção de Riscos Profissionais  <br>Desenvolvido por <a class="copy" href="http://www.evolute.pt">Evolute - Consultoria Informática</a> e <a class="copy" href="http://www.2-3design.com/">2/3 Design</a>  </td>
 | 
						
						
						
							|  |  | 					</tr>
 | 
						
						
						
							|  |  | 					</tbody>
 | 
						
						
						
							|  |  | 					</table>
 | 
						
						
						
							|  |  | 			</td>
 | 
						
						
						
							|  |  | 		</tr>
 | 
						
						
						
							|  |  | 	</tbody>
 | 
						
						
						
							|  |  | 	</table>
 | 
						
						
						
							|  |  | </body>
 | 
						
						
						
							|  |  | </html>
 |