1. 환자 회원가입, 로그인 추가
2. 임직원 로그인 추가 3. 외래 or 입원, 건강검진 추가 예정
This commit is contained in:
113
hospital/src/main/webapp/patientInout.jsp
Normal file
113
hospital/src/main/webapp/patientInout.jsp
Normal file
@@ -0,0 +1,113 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title> 환자 회원가입</title>
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
function idValidCheck(){
|
||||
document.getElementById('exampleModal').modal();
|
||||
}
|
||||
function formDataCheck(){
|
||||
var form = document.frm;
|
||||
|
||||
if(form.name.value==""){
|
||||
alert("사용자 이름을 입력하세요.");
|
||||
form.p_name.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(form.id.value==""){
|
||||
alert("사용자 아이디를 입력하세요.");
|
||||
form.p_ID.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(form.pw.value==""){
|
||||
alert("사용자 비밀번호를 입력하세요.");
|
||||
form.p_psw.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(form.pwCheck.value==""){
|
||||
alert("사용자 비밀번호 확인값을 입력하세요.");
|
||||
form.p_pswCheck.focus();
|
||||
return false;
|
||||
}
|
||||
<!-- form.submit(); button type -->
|
||||
return true; <!-- submit type -->
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<br/>
|
||||
<div><h1>환자 회원 가입</h1></div>
|
||||
<br/>
|
||||
<div>
|
||||
<form id="frm" name="frm" action="patientJoin.do" method="post" onsubmit="return formDataCheck()">
|
||||
<div>
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">환자성명</th><td colspan="3"><input class="form-control" style="width:30%" type="text" id="p_name" name="p_name" maxlength="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">회원ID</th><td colspan="3"> <input class="form-control d-inline" style="width:30%" type="text" id="p_ID" name="p_ID" maxlength="10"> <input class="btn btn-info" type="button" value="중복확인" onclick="idValidCheck()"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">패스워드</th><td colspan="3"><input class="form-control" style="width:30%" id="p_psw" name="p_psw" type="password" size="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">패스워드확인</th><td colspan="3"><input class="form-control" style="width:30%" id="p_pswCheck" name="p_pswCheck" type="password" size="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주소</th><td colspan="3"><input class="form-control" id="p_addr" name="p_addr" type="text" maxlength="50"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">전화번호</th><td><input class="form-control" id="p_phone" name="p_phone" type="tel" style="width:30%" maxlength="15"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">차량번호</th><td><input class="form-control" id="p_car_num" name="p_car_num" type="text" style="width:30%" maxlength="15"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">생년월일</th><td><input class="form-control" id="p_birthYear" name="p_birthYear" type="date" style="width:30%" maxlength="6"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">나이</th><td><input class="form-control" id="p_age" name="p_age" type="number" style="width:30%" maxlength="3"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">성별</th>
|
||||
<td>
|
||||
<div class="custom-control custom-radio custom-control-inline">
|
||||
<input class="custom-control-input" type="radio" id="male" name="p_gender" value="남성" checked>
|
||||
<label class="custom-control-label" for="male">남성</label>
|
||||
</div>
|
||||
<div class="custom-control custom-radio custom-control-inline">
|
||||
<input class="custom-control-input" type="radio" id="female" name="p_gender"value="여성">
|
||||
<label class="custom-control-label" for="female">여성</label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<br/>
|
||||
<input class="btn btn-success" type="submit" value="가입하기" > <input class="btn btn-danger" type="reset" value="취소" > <input class="btn btn-primary" type="button" value="홈" onclick="location.href='home.do'">
|
||||
<br/>
|
||||
<br/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user