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.
		
		
		
		
		
			
		
			
				
					
					
						
							63 lines
						
					
					
						
							1.7 KiB
						
					
					
				
			
		
		
	
	
							63 lines
						
					
					
						
							1.7 KiB
						
					
					
				<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 | 
						|
 | 
						|
<html>
 | 
						|
<head>
 | 
						|
	<title>Marcação de consulta / exame</title>
 | 
						|
	<link rel="stylesheet" href="/siprpWeb/html/css/style.css" type="text/css">
 | 
						|
</head>
 | 
						|
<script language="javascript" src="/siprpWeb/html/css/funcs.js"></script>
 | 
						|
<script>
 | 
						|
	function validateForm()
 | 
						|
	{
 | 
						|
		checked = -1;
 | 
						|
		for( i = 0; i < document.f.marcacao_tipo.length; i++ )
 | 
						|
		{
 | 
						|
			if( document.f.marcacao_tipo[ i ].checked )
 | 
						|
			{
 | 
						|
				checked = i;
 | 
						|
			}
 | 
						|
		}
 | 
						|
		if( checked == -1 )
 | 
						|
		{
 | 
						|
			alert( "Tem que escolher o tipo de marcação." );
 | 
						|
			return false;
 | 
						|
		}
 | 
						|
		return isValid( document.f.data, 0 ) && ( checked == 1 || isValid( document.f.hora, 1 ) );
 | 
						|
	}
 | 
						|
</script>
 | 
						|
<body>
 | 
						|
	<form method='post' action='/siprpWeb/schedule' name='f'>
 | 
						|
		<table class='text'>
 | 
						|
			<tr>
 | 
						|
				<td colspan='2'>
 | 
						|
					Marcação para:<br>
 | 
						|
					$funcionario
 | 
						|
				</td>
 | 
						|
			</tr>
 | 
						|
			<tr>
 | 
						|
				<td colspan='2'>
 | 
						|
					<input type='radio' id='marcacao_tipo' name='marcacao_tipo' value='Consulta' onclick='document.getElementById( "hora" ).disabled = false;'>Consulta
 | 
						|
					<input type='radio' id='marcacao_tipo' name='marcacao_tipo' value='Exame' onclick='document.getElementById( "hora" ).disabled = true;'>Exame
 | 
						|
				</td>
 | 
						|
			</tr>
 | 
						|
			<tr>
 | 
						|
				<td>Data:</td><td><input type='text' id='data' name='data'>dd/mm/aaaa</td>
 | 
						|
			</tr>
 | 
						|
			<tr>
 | 
						|
				<td>Hora:</td><td><input type='text' id='hora' name='hora'>hh:mm</td>
 | 
						|
			</tr>
 | 
						|
			<tr>
 | 
						|
				<td colspan='2'>
 | 
						|
					Nota: a marcação está sujeita a confirmação via email.
 | 
						|
				</td>
 | 
						|
			</tr>
 | 
						|
			<tr>
 | 
						|
				<td colspan='2'>
 | 
						|
					<input type='submit' value='Marcar' onclick='return validateForm()'>
 | 
						|
				</td>
 | 
						|
			</tr>
 | 
						|
		</table>
 | 
						|
	</form>
 | 
						|
</body>
 | 
						|
</html>
 |