1. 병원장(id : boss)이 로그인할 경우 임직원 List 노출
2. 임직원이 로그인할 경우 근무기록 List 노출 3. 환자 외래 or 입원 예약 DB에 Input(pio_ok에 1값 입력) = 로그인 시 사용했던 ID, name값 해당 테이블에 저장 4. 환자 외래 or 입원 예약 기록 List 노출 5. 환자 건강검진 예약 DB에 Input (pt_state에 1값 입력) = 로그인 시 사용했던 ID, name값 해당 테이블에 저장 6. 환자 건강검진 예약 기록 List 노출
This commit is contained in:
@@ -1,106 +1,74 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<jsp:include page="patientMenu.jsp" />
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title> 환자 회원가입</title>
|
||||
<title> 외래 or 입원</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>
|
||||
<script type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<br/>
|
||||
<div><h1>환자 회원 가입</h1></div>
|
||||
<div><h1>외래 or 입원</h1></div>
|
||||
<br/>
|
||||
<div>
|
||||
<form id="frm" name="frm" action="patientJoin.do" method="post" onsubmit="return formDataCheck()">
|
||||
<form id="frm" name="frm" action="patientInoutCheck.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>
|
||||
<th scope="row">외래 or 입원</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>
|
||||
<input class="custom-control-input" type="radio" id="out" name="pio_state" value="외래" checked>
|
||||
<label class="custom-control-label" for="out">외래</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>
|
||||
<input class="custom-control-input" type="radio" id="in" name="pio_state"value="입원">
|
||||
<label class="custom-control-label" for="in">입원</label>
|
||||
</div>
|
||||
</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="divi-1" name="pio_divi" value="내과" checked>
|
||||
<label class="custom-control-label" for="divi-1">내과</label>
|
||||
</div>
|
||||
<div class="custom-control custom-radio custom-control-inline">
|
||||
<input class="custom-control-input" type="radio" id="divi-2" name="pio_divi"value="외과">
|
||||
<label class="custom-control-label" for="divi-2">외과</label>
|
||||
</div>
|
||||
<div class="custom-control custom-radio custom-control-inline">
|
||||
<input class="custom-control-input" type="radio" id="divi-3" name="pio_divi"value="안과">
|
||||
<label class="custom-control-label" for="divi-3">안과</label>
|
||||
</div>
|
||||
<div class="custom-control custom-radio custom-control-inline">
|
||||
<input class="custom-control-input" type="radio" id="divi-4" name="pio_divi"value="치과">
|
||||
<label class="custom-control-label" for="divi-4">치과</label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">예약일</th><td><input class="form-control" id="pio_date" name="pio_date" type="date" style="width:30%" maxlength="6"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">예약시간</th><td><input class="form-control" id="pio_time" name="pio_time" type="time" style="width:30%" maxlength="6"></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'">
|
||||
<input class="btn btn-success" type="submit" value="예약하기" > <input class="btn btn-danger" type="reset" value="취소" >
|
||||
<br/>
|
||||
<br/>
|
||||
</div>
|
||||
@@ -110,4 +78,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
<jsp:include page="tail.jsp" />
|
||||
Reference in New Issue
Block a user