You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

583 lines
9.4 KiB

<!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>
</head>
<style>
body
{
color: #497895;
font-family: verdana;
margin-top: 0px;
}
.text
{
color: #497895;
font-family: verdana;
font-size: 10pt;
text-align: justify;
}
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;
}
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: 1px 1px 1px 1px;
}
td.box6
{
border-style: solid;
border-width: 1px 1px 1px 0px;
}
</style>
<body>
<table style="width: 760px; height: 623px; background-image: url( '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="">a SIPRP</a></td>
<td style="width: 120px; vertical-align: top;"><a href="">servi&ccedil;os</a></td>
<td style="width: 120px; vertical-align: top;"><a href="">clientes</a></td>
<td style="width: 120px; vertical-align: top;"><a href="">contactos</a></td>
<td style="width: 120px; vertical-align: top;"><a href="">links</a></td>
<td>&nbsp;</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( 'html/images/topo_740.gif' ); width: 740px; height: 29px; vertical-align: top;">&nbsp;&nbsp;&nbsp;acesso restrito</td>
</tr>
<tr>
<td style="width: 3px; background-color: #789BB5;"></td>
<td style="width: 4px;"></td>
<!-- escolher empresa -->
<td style='vertical-align: top;'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td>
#if( $userRole == "manager" )
<a class='text' href="/siprpServlet/?empresas">Empresa:</a> $!empresa_nome
#else
Empresa: $empresa_nome
#end
</td>
<td class='text' style='text-align: right; background: url( "html/images/logout.gif" ) no-repeat;' width='140' height='45' rowspan='3'>
$userName&nbsp;&nbsp;&nbsp;<br>
<a href="/siprpServlet/">Logout <20>&nbsp;&nbsp;&nbsp;</a><br>
</td>
</tr>
<tr>
<td>
#if( $estabelecimento_id )
<a class='text' href="/siprpServlet/?$empresa_id">Estabelecimento</a>: $!estabelecimento_nome
#else
Estabelecimento:
#end
</td>
</tr>
<tr>
<td>
#if( $query == "trabalhador" )
<a class='text' href='/siprpServlet/?$empresa_id/$estabelecimento_id'>Funcion&aacute;rio</a>: $funcionario.nome <!--$v2.get( 0 ) N&ordm;: $v2.get( 1 )-->
#else
Funcion&aacute;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( '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" )
#set( $listaTitle = "funcion&aacute;rios" )
#elseif( $query == "trabalhador" )
#set( $listaTitle = "dados do funcion&aacute;rio" )
#else ##( $query == "trabalhador" )
#set( $listaTitle = "" )
#end
<!-- LISTA -->
<tr>
<!-- titulo -->
<td colspan='5' class='title' style="background: url( 'html/images/topo_740.gif' ); width: 740px; height: 29px; vertical-align: top;">&nbsp;&nbsp;&nbsp;$listaTitle</td>
</tr>
<tr>
<td style="width: 3px; background-color: #789BB5;"></td>
<td style="width: 4px;"></td>
<td>
#if ($query == "trabalhador")
N&uacute;mero Mecanogr&aacute;fico: $funcionario.numero <br>
Data de Nascimento: $funcionario.data_nascimento <br>
Categoria: $funcionario.categoria <br>
Sexo: $funcionario.sexo <br><br>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr align='center' style='background-color: #789BB5; color: #ffffff;'>
<td width='14%'>&Uacute;ltimo<br>exame</td><td width='14%'>Realizado</td><td width='14%'>Pr&oacute;ximo<br>exame</td><td width='14%'>&Uacute;ltima<br>consulta</td><td width='14%'>Realizada</td><td width='14%'>Pr&oacute;xima<br>consulta</td><td>Marca&ccedil;&atilde;o</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'>&nbsp;</td>
</tr>
</table>
##<form method="post">
## <input type="submit" name="form" value="Marcar Exame"/>
## <input type="submit" name="form" value="Marcar Consulta"/>
##</form>
#else <!-- Lista de Funcionarios -->
#foreach( $element in $v1 )
#set ( $counter = $velocityCount - 1 )
<a class='text' href="$v1.get($counter)">$v2.get($counter)</a>
#if ($v3) <!-- v3 para o descAdicional-->
- N<>:
$v3.get($counter)
#end
<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( '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( '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&eacute;rica de Preven&ccedil;&atilde;o de Riscos Profissionais&nbsp;&nbsp;<br>Desenvolvido por <a class="copy" href="http://www.evolute.pt" target="_blank">Evolute - Consultoria Inform&aacute;tica</a> e <a class="copy" href="http://www.2-3design.com/" target="_blank">2/3 Design</a>&nbsp;&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</body>
</html>