forked from Coded/SIPRP
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.
273 lines
10 KiB
273 lines
10 KiB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html><head>
|
|
<title>SIPRP</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="html/css/template.css">
|
|
<link href="images/favicon.ico" rel="shortcut icon">
|
|
<script type="text/javascript" src="html/js/cufon.js"></script>
|
|
<script type="text/javascript" src="html/js/Antipasto_400.font.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
Cufon.replace('#menu', { fontFamily: 'Antipasto', hover:true } );
|
|
Cufon.replace('h1', { fontFamily: 'Antipasto', hover:true } );
|
|
Cufon.replace('#menu_s', { fontFamily: 'Antipasto', hover:true } );
|
|
Cufon.replace('.contentheading', { fontFamily: 'Antipasto', hover:true } );
|
|
Cufon.replace('.one', { fontFamily: 'Antipasto', hover:true } );
|
|
Cufon.replace('.resizer', { fontFamily: 'Antipasto', hover:true } );
|
|
Cufon.replace('.button_back', { fontFamily: 'Antipasto', hover:true } );
|
|
|
|
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>
|
|
|
|
</head>
|
|
<body>
|
|
<div id="bg_header"></div>
|
|
|
|
<div class="wrapper">
|
|
<div id="header">
|
|
<div id="logo"></div>
|
|
<div id="lang"></div>
|
|
<div id="resizer">
|
|
<ul class="resizer">
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="wrapper2">
|
|
<div id="menu"> </div>
|
|
<div id="cima"></div>
|
|
<div id="cont_banner">
|
|
<h1>$userName</h1>
|
|
<hr>
|
|
|
|
<a class="button_back" href="http://www.siprp.pt">logout »</a>
|
|
#if( $userRole != "manager" )
|
|
<a class="button_back" href="javascript:pedidoRelatorioWindow();">pedido de relatório anual...</a>
|
|
#end
|
|
</div>
|
|
|
|
<div id="baixo"></div>
|
|
</div>
|
|
<div id="cont">
|
|
|
|
<div class="contentheading">Acesso Restrito</div>
|
|
|
|
<div class="normal_text">
|
|
#if( $userRole == "manager" && $empresa_nome )
|
|
<span><a class='text' href="/siprpWeb/?empresas">Empresa:</a></span> $!empresa_nome
|
|
#else
|
|
<span>Empresa:</span> $!empresa_nome
|
|
#end
|
|
</div>
|
|
|
|
<!--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 »</a><br>
|
|
</td-->
|
|
|
|
<div class="normal_text">
|
|
#if( $estabelecimento_id )
|
|
<span><a class='text' href="/siprpWeb/?$empresa_id">Estabelecimento:</a></span> $!estabelecimento_nome
|
|
#else
|
|
<span>Estabelecimento: </span>
|
|
#end
|
|
</div>
|
|
|
|
<div class="normal_text">
|
|
#if( $query == "trabalhador" )
|
|
<span><a class='text' href='/siprpWeb/?$empresa_id/$estabelecimento_id/func'>Funcionário:</a></span> $!funcionario.nome -Data de Nascimento: $!funcionario.data_nascimento
|
|
#else
|
|
<span>Funcionário:</span>
|
|
#end
|
|
|
|
#if( $query == "trabalhador" )
|
|
|
|
#end
|
|
</div>
|
|
<div class="space"></div>
|
|
|
|
#if( $query == "empresas" )
|
|
#set( $listaTitle = "Empresas" )
|
|
#elseif( $query == "estabelecimentos" )
|
|
#set( $listaTitle = "Estabelecimentos" )
|
|
#elseif( $query == "opcoes" )
|
|
#set( $listaTitle = "Opções" )
|
|
#elseif ( $query == "ficheiros" )
|
|
#set( $listaTitle = "Ficheiros" )
|
|
#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 -->
|
|
#if( $lista_funcionarios )
|
|
<!-- titulo -->
|
|
<div class='title'>Funcionários:
|
|
<a href="/siprpWeb/?$empresa_id/$estabelecimento_id/func">todos</a></td>
|
|
<a href="/siprpWeb/?$empresa_id/$estabelecimento_id/func/trabalhadores_tudo">com ficha de aptidão</a>
|
|
<a href="/siprpWeb/?$empresa_id/$estabelecimento_id/func/trabalhadores_pendentes">com pendências</a>
|
|
<a href='/siprpWeb/?$empresa_id/$estabelecimento_id/func/${query}_print' target="_blank">imprimir</a>
|
|
</div>
|
|
#else
|
|
<div class='title'>$listaTitle</div>
|
|
#end
|
|
|
|
|
|
#if ($query == "ficheiros")
|
|
<table width='98%'>
|
|
<tr class='tableheader'>
|
|
<td width='20%'>Nome</td>
|
|
<td width='10%'>Data</td>
|
|
<td width='60%'>Comentários</td>
|
|
<td width='10%'>Tipo</td>
|
|
</tr>
|
|
#foreach( $ficheiro in $v2 )
|
|
<tr class='elements'>
|
|
<td class='box5'><a class='text' href='$ficheiro.Link'>$ficheiro.Nome</a></td>
|
|
<td class='box5'>$ficheiro.Data</td>
|
|
<td class='box5'>$ficheiro.Comentario</td>
|
|
#if( $ficheiro.Tipo == "pdf" )
|
|
<td class='box5'><img src="/siprpWeb/html/images/pdf.jpg" height="20" width="20"></td>
|
|
#elseif ( $ficheiro.Tipo == "word" )
|
|
<td class='box5'><img src="/siprpWeb/html/images/word.png" height="20" width="20"></td>
|
|
#elseif ( $ficheiro.Tipo == "excel" )
|
|
<td class='box5'><img src="/siprpWeb/html/images/excel.png" height="20" width="20"></td>
|
|
#end
|
|
</tr>
|
|
#end
|
|
</table>
|
|
<div class='info'>
|
|
<img src="/siprpWeb/html/images/pdf.jpg" height="20" width="20"> Documento pdf<br />
|
|
<img src="/siprpWeb/html/images/word.png" height="20" width="20"> Documento word<br />
|
|
<img src="/siprpWeb/html/images/excel.png" height="20" width="20"> Documento excel
|
|
</div>
|
|
#elseif ($query == "trabalhador")
|
|
<div class='info'>(*)ECD - Exames Complementares de Diagnóstico</div>
|
|
<table width='98%'>
|
|
<tr class="tableheader">
|
|
<td width='14%'>Último ECD(*)</td>
|
|
<td class='box6' width='14%'>Realizado</td>
|
|
<td class='box6' width='14%'>Última Consulta</td>
|
|
<td class='box6' width='14%'>Realizada</td>
|
|
<td class='box6' width='14%'>Resultado</td>
|
|
<td class='box6' width='14%'><a href='javascript:marcacaoExamesWindow();'>Próximo ECD(*)</a></td>
|
|
<td class='box6' width='16%'><a href='javascript:marcacaoConsultaWindow();'>Próxima Consulta</a></td>
|
|
</tr>
|
|
<tr class="elements">
|
|
<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" )
|
|
<div class='info'>(*)ECD - Exames Complementares de Diagnóstico</div>
|
|
<table width='98%'>
|
|
<tr class="tableheader">
|
|
<td width='55%'>Nome</td>
|
|
<td class='box6' width='15%'>Último ECD(*)</td>
|
|
<td class='box6' width='15%'>Última consulta</td>
|
|
<td class='box6' width='15%'>Próxima consulta</td>
|
|
</tr>
|
|
#foreach( $element in $v1 )
|
|
#set ( $counter = $velocityCount - 1 )
|
|
#set ( $dados_trabalhador = $v2.get($counter) )
|
|
<tr class='elements'>
|
|
<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 class='tableheader'>
|
|
<td width='75%'>Nome</td>
|
|
<td class='box6' width='25%'>Data da Ficha de Aptidão</td>
|
|
</tr>
|
|
#foreach ( $trabalhador in $v1 )
|
|
<tr class='elements'>
|
|
<td class='box5'><a class='text' href="$trabalhador.trabalhador_link">$trabalhador.trabalhador_nome</a></td>
|
|
<td class='box6'>$trabalhador.ficha_aptidao_data</td>
|
|
</tr>
|
|
#end
|
|
</table>
|
|
|
|
|
|
#elseif( $query == "trabalhadores_pendentes" )
|
|
<div class="icons_info">
|
|
<span><img SRC="/siprpWeb/html/images/red.png"> - Por Agendar</span>
|
|
<span><img SRC="/siprpWeb/html/images/yellow.png"> - Por Realizar</span>
|
|
</div>
|
|
<table width='98%' cellspacing='0' cellpadding='0' border="0">
|
|
<tr class="tableheader">
|
|
<td width='75%'>Nome</td>
|
|
<td class='box6' width='12%'>Consulta</td>
|
|
<td class='box6' width='12%'>Tipo de Consulta</td>
|
|
</tr>
|
|
#foreach ( $trabalhador in $v1 )
|
|
<tr class="elements">
|
|
<td class="box5"><a href="$trabalhador.link_trabalhador" class="text">$trabalhador.nome_trabalhador</a></td>
|
|
<td class="box6">
|
|
#if ( $trabalhador.estado_consulta )
|
|
<img src="/siprpWeb/html/images/${trabalhador.estado_consulta}.png">
|
|
#else
|
|
-
|
|
#end
|
|
</td>
|
|
<td class="box6">$trabalhador.motivo_consulta</td>
|
|
</tr>
|
|
#end
|
|
</table>
|
|
|
|
#elseif( $query == "estabelecimentos" )
|
|
#foreach( $element in $v1 )
|
|
#set ( $counter = $velocityCount - 1 )
|
|
<div class="ind"><a class='text' href="$v1.get($counter)">$v2.get($counter)</a></div>
|
|
#end
|
|
<div class='title'>Ficheiros</div>
|
|
<div class="ind"><a class='text' href="$ficheirosUrl">Ficheiros</a></div>
|
|
#else
|
|
#foreach( $element in $v1 )
|
|
#set ( $counter = $velocityCount - 1 )
|
|
<div class="ind"><a class='text' href="$v1.get($counter)">$v2.get($counter)</a></div>
|
|
#end
|
|
#end
|
|
</div>
|
|
</div>
|
|
<div id="footer">
|
|
|
|
<div class="wrapper"><div class="wrapperFooter"></div>
|
|
<div id="copy"></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|