38 lines
1.0 KiB
PHP
38 lines
1.0 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title></title>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript">
|
|
function logowanie(formularz)
|
|
{
|
|
login=formularz.login.value;
|
|
haslo=formularz.haslo.value;
|
|
if (login==""&&haslo=="")
|
|
alert("wprowadz dane");
|
|
else if (login=="a"){
|
|
window.location.replace("../rejestracja/pacjent.php");
|
|
}
|
|
else if (login=="b"){
|
|
window.location.replace("../rejestracja/recepcjonista.php");
|
|
}
|
|
else if (login=="c"){
|
|
window.location.replace("../rejestracja/lekarz.php");
|
|
}
|
|
}
|
|
</script>
|
|
<form action="" name="form">
|
|
Login: <input type="text" name="login"><br>
|
|
Hasło: <input type="text" name="haslo"><br>
|
|
<input type="button" value="wyślij" onClick="logowanie(this.form)">
|
|
<input type="button" value="home" onClick="window.location.replace(\"../rejestracja/index.php\")">
|
|
</form>
|
|
</body>
|
|
</html>
|
|
<?php
|
|
|
|
?>
|