no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@467 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 21 years ago
parent 808f6447b7
commit ce51444954

@ -60,6 +60,7 @@ public class doGetTrabalhador extends siprpServlet
hmFuncionario.put( "nome", rs.get( 0, "nome" ) );
hmFuncionario.put( "numero", rs.get( 0, "numero_mecanografico" ) );
hmFuncionario.put( "ultimo_exame", rs.get( 0, "ultimo_exame" ) );
hmFuncionario.put( "resultado", rs.get( 0, "resultado" ) );
tmp = ( String ) rs.get( 0, "realizado" );
if( tmp != null )
{

@ -125,13 +125,13 @@ a.copy:active
td.box5
{
border-style: solid;
border-width: 1px 1px 1px 1px;
border-width: 0px 1px 1px 1px;
}
td.box6
{
border-style: solid;
border-width: 1px 1px 1px 0px;
border-width: 0px 1px 1px 0px;
}
</style>
<script language="javascript" src="/siprpWeb/html/css/funcs.js"></script>
@ -163,7 +163,11 @@ td.box6
<td>&nbsp;</td-->
<!-- <td style="width: 120px; vertical-align: top;"><a href="html/frame_relatorio.html" target="_blank">relat&oacute;rio</a></td>-->
<td style="color: white; width: 120px; vertical-align: top; text-align: left">&nbsp;&nbsp;&nbsp;$userName&nbsp;</td>
<td style='color: white; vertical-align: top; text-align: right'>&nbsp;&nbsp;&nbsp;<a href="/siprpWeb/">logout »&nbsp;&nbsp;&nbsp;</a></td>
#if( $userRole != "manager" )
<td style='color: white; vertical-align: top; text-align: right'>&nbsp;&nbsp;&nbsp;</td>
<td style='color: white; vertical-align: top; text-align: right'><a href="/siprpWeb/?$empresa_id/pedir_relatorio">pedido de relat&oacute;rio anual...</a></td>
#end
<td style='color: white; vertical-align: top; text-align: right'><a href="/siprpWeb/">logout »&nbsp;&nbsp;&nbsp;</a></td>
</tr>
</tbody>
</table>
@ -207,7 +211,7 @@ td.box6
<tr>
<td>
#if( $query == "trabalhador" )
<a class='text' href='/siprpWeb/?$empresa_id/$estabelecimento_id'>Funcion&aacute;rio</a>: $!funcionario.nome &nbsp;Data de Nascimento: $!funcionario.data_nascimento
<a class='text' href='/siprpWeb/?$empresa_id/$estabelecimento_id'>Funcion&aacute;rio</a>: $!funcionario.nome &nbsp;-&nbsp;Data de Nascimento: $!funcionario.data_nascimento
#else
Funcion&aacute;rio:
#end
@ -236,15 +240,29 @@ td.box6
#set( $listaTitle = "empresas" )
#elseif( $query == "estabelecimentos" )
#set( $listaTitle = "estabelecimentos" )
#elseif( $query == "trabalhadores" )
#set( $listaTitle = "funcion&aacute;rios" )
#elseif( $query == "trabalhadores" || $query == "trabalhadores_tudo" || $query == "trabalhadores_pendentes" )
#set( $listaTitle = "funcion&aacute;rios:" )
#set( $lista_funcionarios = 1 )
#else ##( $query == "trabalhador" )
#set( $listaTitle = "funcion&aacute;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'>&nbsp;&nbsp;&nbsp;funcion&aacute;rios:</td>
<td style='color: white; vertical-align: top; text-align: left'>&nbsp;&nbsp;&nbsp;<a href="/siprpWeb/?$empresa_id/$estabelecimento_id">todos</a></td>
<td style='color: white; vertical-align: top; text-align: left'>&nbsp;&nbsp;&nbsp;<a href="/siprpWeb/?$empresa_id/$estabelecimento_id/trabalhadores_tudo">com tudo resolvido</a></td>
<td style='color: white; vertical-align: top; text-align: left'>&nbsp;&nbsp;&nbsp;<a href="/siprpWeb/?$empresa_id/$estabelecimento_id/trabalhadores_pendentes">com pend&ecirc;ncias</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;">&nbsp;&nbsp;&nbsp;$listaTitle</td>
#end
</tr>
<tr>
<td style="width: 2px; background-color: #789BB5;"></td>
@ -252,12 +270,24 @@ td.box6
<td>
#if ($query == "trabalhador")
<table width='100%' cellspacing='0' cellpadding='0'>
<tr align='center' style='background-color: #789BB5; color: #ffffff;'>
<td width='14%'>&Uacute;ltimo Exame</td><td width='14%'>Realizado</td><td width='14%'>Pr&oacute;ximo Exame</td><td width='14%'>&Uacute;ltima Consulta</td><td width='14%'>Realizada</td><td width='14%'>Pr&oacute;xima Consulta</td><td>Marca&ccedil;&atilde;o</td>
<tr align='center' style='background-color: #789BB5;'>
<td width='14%' style='color: #ffffff'>&Uacute;ltimo Exame</td>
<td width='14%' style='color: #ffffff'>Realizado</td>
<td width='14%' style='color: #ffffff'>&Uacute;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:marcacaoWindow();'>Pr&oacute;ximo Exame</a></td>
<td width='14%'><a href='javascript:marcacaoWindow();'>Pr&oacute;xima Consulta</a></td>
</tr>
<tr align='center'>
<td class='box5'>$!funcionario.ultimo_exame&nbsp;</td><td class='box6'>$!funcionario.realizado&nbsp;</td><td class='box6'>$!funcionario.proximo_exame&nbsp;</td><td class='box6'>$!funcionario.ultima_consulta&nbsp;</td><td class='box6'>$!funcionario.realizada&nbsp;</td><td class='box6'>$!funcionario.proxima_consulta&nbsp;</td>
<td class='box6'><a class='text' href='javascript:marcacaoWindow();'>Marcar</a></td>
<td class='box5'>$!funcionario.ultimo_exame&nbsp;</td>
<td class='box6'>$!funcionario.realizado&nbsp;</td>
<td class='box6'>$!funcionario.ultima_consulta&nbsp;</td>
<td class='box6'>$!funcionario.realizada&nbsp;</td>
<td class='box6'>$!funcionario.resultado&nbsp;</td>
<td class='box6'>$!funcionario.proximo_exame&nbsp;</td>
<td class='box6'>$!funcionario.proxima_consulta&nbsp;</td>
</tr>
</table>
#elseif( $query == "trabalhadores" )
@ -266,6 +296,38 @@ td.box6
#set ( $dados_trabalhador = $v2.get($counter) )
<a class='text' href="$v1.get($counter)">$dados_trabalhador.Nome</a><br>
#end
#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' >&nbsp;&nbsp;Nome</td>
<td width='25%' align='center' >Data da Ficha de Aptid&atilde;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)">&nbsp;&nbsp;$dados_trabalhador.Nome</a></td>
<td class='box6' align='center' >$dados_trabalhador.Data &nbsp;</td>
</tr>
#end
</table>
#elseif( $query == "trabalhadores_pendentes" )
<table width='100%' cellspacing='0' cellpadding='0' border="0">
<tr style='background-color: #789BB5; color: #ffffff;'>
<td width='75%' align='left' >&nbsp;&nbsp;Nome</td>
<td width='12%' align='center' >Exame</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)">&nbsp;&nbsp;$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 )

Loading…
Cancel
Save