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.
		
		
		
		
		
			
		
			
				
					
					
						
							103 lines
						
					
					
						
							3.4 KiB
						
					
					
				
			
		
		
	
	
							103 lines
						
					
					
						
							3.4 KiB
						
					
					
				| <html>
 | |
|     <head>
 | |
|         <style>
 | |
|             body, a, td
 | |
|             {
 | |
|             font-family: verdana, sans-serif;
 | |
|             font-size: 10pt;
 | |
|             }
 | |
|         </style>
 | |
|     </head>
 | |
|     <title>SIPRP</title>
 | |
| <body bgcolor=white lang=EN-GB link="#000099" vlink="#000099">
 | |
| 
 | |
| 
 | |
| 
 | |
|         <!-- Header-->
 | |
|         
 | |
| <table width="600" border="1" align="center">
 | |
|   
 | |
|     <tr align="center">
 | |
|         <td colspan="2" >
 | |
|             <div align="center">
 | |
|                 <br>
 | |
|                 <b>SIPRP</b>
 | |
|                 <br>
 | |
|             </div>
 | |
|         </td>
 | |
|     </tr>
 | |
|             
 | |
|         <!-- Menu-->
 | |
|             
 | |
|     <tr align="center">
 | |
|         <td width="30%">
 | |
|         <br>
 | |
|             <form method="post">
 | |
|                         Utilizador<br>
 | |
|                         <input type="text" name="user" /><br><br>
 | |
|                         Password<br>
 | |
|                         <input type="password" name="password" /><br><br><br>
 | |
|                         <input type="submit" name="form" value="Entrar"/>
 | |
|             </form>
 | |
|             
 | |
|             #if ($userRole)
 | |
|                 #if ($userRole == "manager")
 | |
|                     <a href="/siprpServlet/?empresas">Lista de Empresas</a><br><br>
 | |
|                 #else
 | |
|                     <a href="/siprpServlet/?$userRole">Lista de Estabelecimentos</a><br><br>
 | |
|                 #end
 | |
|             #end
 | |
|             <a href="/siprpServlet/">Logout</a><br><br>
 | |
|         </td>
 | |
|             <td align="left">
 | |
|                     <br>
 | |
|                     #if ($msg)
 | |
|                         $msg<br><br>
 | |
|                     #end
 | |
|                     
 | |
|                     #if ($query)
 | |
|                     
 | |
|                         #if ($query == "empresas")
 | |
|                             #foreach( $element in $v1 )    
 | |
|                                 #set ( $counter = $velocityCount - 1 )
 | |
|                                 <a href="$v1.get($counter)">$v2.get($counter)</a><br>
 | |
|                             #end
 | |
|                         #end
 | |
|                     
 | |
|                         #if ($query == "estabelecimentos")
 | |
|                             #foreach( $element in $v1 )    
 | |
|                                 #set ( $counter = $velocityCount - 1 )
 | |
|                                 <a href="$v1.get($counter)">$v2.get($counter)</a><br>
 | |
|                             #end
 | |
|                         #end
 | |
|                     
 | |
|                         #if ($query == "trabalhadores")
 | |
|                             #foreach( $element in $v1 )    
 | |
|                                 #set ( $counter = $velocityCount - 1 )
 | |
|                                 <a href="$v1.get($counter)">$v2.get($counter)</a><br>
 | |
|                             #end
 | |
|                         #end
 | |
|                     
 | |
|                         #if ($query == "trabalhador")
 | |
|                             #foreach( $element in $v1 )    
 | |
|                                 #set ( $counter = $velocityCount - 1 )
 | |
|                                 $element: $v2.get($counter)<br>
 | |
|                             #end
 | |
| 
 | |
|                                 <form method="post">
 | |
|                                     <br><br>
 | |
|                                     <input type="submit" name="form" value="Marcar Exame"/>
 | |
|                                     <input type="submit" name="form" value="Marcar Consulta"/>
 | |
|                                 </form>
 | |
|                         
 | |
|                         #end
 | |
|                         
 | |
|                     #end
 | |
|                         
 | |
|                     
 | |
|                     
 | |
|             </td>
 | |
|         </tr>
 | |
| </table>
 | |
| </body>
 | |
| </html> |