1. 홈 화면 버튼 구성
2. 임직원 회원가입 페이지 연동
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<attribute name="owner.project.facets" value="jst.web;#system#"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
@@ -13,4 +13,4 @@ org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
|
||||
org.eclipse.jdt.core.compiler.release=disabled
|
||||
org.eclipse.jdt.core.compiler.source=1.8
|
||||
org.eclipse.jdt.core.compiler.source=1.7
|
||||
|
||||
@@ -12,6 +12,6 @@ public class LoginCommand implements Command {
|
||||
//TODO : DB작업 필요
|
||||
|
||||
|
||||
return "views/student/loginForm.jsp";
|
||||
return "Login.jsp";
|
||||
}
|
||||
}
|
||||
|
||||
14
hospital/src/main/java/command/UserJoinCommand.java
Normal file
14
hospital/src/main/java/command/UserJoinCommand.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package command;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
public class UserJoinCommand implements Command{
|
||||
@Override
|
||||
public String exec(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
|
||||
return "UserJoin.jsp";
|
||||
}
|
||||
}
|
||||
@@ -14,6 +14,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||
import command.Command;
|
||||
import command.HomeCommand;
|
||||
import command.LoginCommand;
|
||||
import command.UserJoinCommand;
|
||||
|
||||
@WebServlet("/Fcontroller")
|
||||
public class Fcontroller extends HttpServlet {
|
||||
@@ -30,6 +31,7 @@ public class Fcontroller extends HttpServlet {
|
||||
|
||||
list.put("/login.do", new LoginCommand()); //로그인 처리
|
||||
list.put("/home.do", new HomeCommand()); //처음 보여주는 페이지;
|
||||
list.put ("/UserJoin.do", new UserJoinCommand()); // 임직원 회원가입 페이지
|
||||
//이 부분에 계속적으로 매핑을 추가하면 됨
|
||||
|
||||
}
|
||||
|
||||
135
hospital/src/main/webapp/UserJoin.jsp
Normal file
135
hospital/src/main/webapp/UserJoin.jsp
Normal file
@@ -0,0 +1,135 @@
|
||||
<%@ 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.name.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(form.id.value==""){
|
||||
alert("사용자 아이디를 입력하세요.");
|
||||
form.id.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(form.pw.value==""){
|
||||
alert("사용자 비밀번호를 입력하세요.");
|
||||
form.pw.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(form.pwCheck.value==""){
|
||||
alert("사용자 비밀번호 확인값을 입력하세요.");
|
||||
form.pwCheck.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="memberInsert.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="name" name="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="id" name="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="pw" name="pw" type="password" size="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">패스워드확인</th><td colspan="3"><input class="form-control" style="width:30%" id="pwCheck" name="pwCheck" type="password" size="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주소</th><td colspan="3"><input class="form-control" id="addr" name="addr" type="text" maxlength="50"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">전화번호</th><td><input class="form-control" id="tel" name="tel" type="tel" style="width:30%" maxlength="15"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">차량번호</th><td><input class="form-control" id="u_car_num" name="u_car_num" type="text" style="width:30%" maxlength="15"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">생년월일</th><td><input class="form-control" id="u_birth" name="u_birth" type="number" style="width:30%" maxlength="6"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">병과</th><td><input class="form-control" id="u_car_num" name="u_car_num" type="text" style="width:30%" maxlength="15"></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="gender" value="male" 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="gender"value="female">
|
||||
<label class="custom-control-label" for="female">여성</label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row">직책</th>
|
||||
<td colspan="3">
|
||||
<div class="custom-control custom-checkbox custom-control-inline">
|
||||
<input type="checkbox" class="custom-control-input" id="u_post_0" name="u_post" value="사원">
|
||||
<label class="custom-control-label" for="u_post_0">사원</label>
|
||||
</div>
|
||||
<div class="custom-control custom-checkbox custom-control-inline">
|
||||
<input type="checkbox" class="custom-control-input" id="u_post_1" name="u_post" value="주임">
|
||||
<label class="custom-control-label" for="u_post_1">주임</label>
|
||||
</div>
|
||||
<div class="custom-control custom-checkbox custom-control-inline">
|
||||
<input type="checkbox" class="custom-control-input" id="u_post_2" name="u_post" value="대리">
|
||||
<label class="custom-control-label" for="u_post_2">대리</label>
|
||||
</div>
|
||||
<div class="custom-control custom-checkbox custom-control-inline">
|
||||
<input type="checkbox" class="custom-control-input" id="u_post_3" name="u_post" value="과장">
|
||||
<label class="custom-control-label" for="u_post_3">과장</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>
|
||||
@@ -4,18 +4,14 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Insert title here</title>
|
||||
<title>병원 관리 시스템</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>what the hell?</h1>
|
||||
</body>
|
||||
<BODY bgcolor=black>
|
||||
<h1 style="color:white;">병원 임직원 회원가입</h1>
|
||||
<font color=white>
|
||||
아이디 : <INPUT type="text" name="id" maxlength="8"><BR>
|
||||
암호 : <INPUT type="password" name="pwd" maxlength="8"><BR>
|
||||
이름 : <INPUT type="text" name="name" maxlength="12"><BR>
|
||||
e-mail : <INPUT type="text" name="email" maxlength="25"><P>
|
||||
<INPUT type="submit" value=" 저 장 "></font>
|
||||
<h1>A 병원</h1>
|
||||
<input class="btn btn-UserJoin" type="button" value="임직원가입하기" onclick="location.href='UserJoin.do'">
|
||||
<input class="btn btn-UserLogin" type="button" value="임직원로그인" onclick="location.href='UserLogin.do'" >
|
||||
<br>
|
||||
<br>
|
||||
<input class="btn btn-UserJoin" type="button" value="환자가입하기" onclick="location.href='UserJoin.do'">
|
||||
<input class="btn btn-UserLogin" type="button" value="환자로그인" onclick="location.href='UserLogin.do'" >
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user