본문 바로가기
JSP

JSP(골프연습장회원관리프로그램)_2024-09-11

by 앵보몬 2024. 9. 11.
728x90
반응형

golf.zip
4.64MB

 

DB

--drop table TBL_MEMBER_202201;
--drop table TBL_CLASS_202201;
--drop table TBL_TEACHER_202201;

--1.강사정보 테이블 생성
CREATE TABLE TBL_TEACHER_202201 (
    TEACHER_CODE CHAR(3) PRIMARY KEY,
    TEACHER_NAME VARCHAR2(15),
    CLASS_NAME VARCHAR2(20),
    CLASS_PRICE NUMBER(8),
    TEACHER_REGIST_DATE VARCHAR2(8)
    );

--2.회원정보 테이블 생성
CREATE TABLE TBL_MEMBER_202201 (
    C_NO CHAR(5) PRIMARY KEY,
    C_NAME VARCHAR2(15),
    PHONE VARCHAR2(11),
    ADDRESS VARCHAR2(50),
    GRADE VARCHAR2(6)
    );

--3.수강정보 테이블 생성
CREATE TABLE TBL_CLASS_202201 (
    REGIST_MONTH VARCHAR2(6),
    C_NO CHAR(5),
    CLASS_AREA VARCHAR2(15),
    TUITION NUMBER(8),
    TEACHER_CODE CHAR(3),
    CONSTRAINT TBL_CLASS_202201_PK PRIMARY KEY(REGIST_MONTH, C_NO)
    );

--1.강사정보 테이블(TBL_TEACHER_202201)
insert into TBL_TEACHER_202201 values(100, '이초급', '초급반', 100000, '20220101');
insert into TBL_TEACHER_202201 values(200, '김중급', '중급반', 200000, '20220102');
insert into TBL_TEACHER_202201 values(300, '박고급', '고급반', 300000, '20220103');
insert into TBL_TEACHER_202201 values(400, '정심화', '심화반', 400000, '20220104');
commit;        

--2.회원정보 테이블(TBL_MEMBER_202201)
insert into TBL_MEMBER_202201 values(10001, '홍길동', 01011112222, '서울시 강남구', '일반');
insert into TBL_MEMBER_202201 values(10002, '장발장', 01022223333, '성남시 분당구', '일반');
insert into TBL_MEMBER_202201 values(10003, '임꺽정', 01033334444, '대전시 유성구', '일반');
insert into TBL_MEMBER_202201 values(20001, '성춘향', 01044445555, '부산시 서구', 'VIP');
insert into TBL_MEMBER_202201 values(20002, '이몽룡', 01055556666, '대구시 북구', 'VIP');
commit;

--3.수강정보 테이블(TBL_CLASS_202201)
insert into TBL_CLASS_202201 values(202203, 10001, '서울본원', 100000, 100);
insert into TBL_CLASS_202201 values(202203, 10002, '성남분원', 100000, 100);
insert into TBL_CLASS_202201 values(202203, 10003, '대전분원', 200000, 200);
insert into TBL_CLASS_202201 values(202203, 20001, '부산분원', 150000, 300);
insert into TBL_CLASS_202201 values(202203, 20002, '대구본원', 200000, 400);
commit;

select * from TBL_TEACHER_202201;
select * from TBL_MEMBER_202201;
select * from TBL_CLASS_202201;

 

golf.html

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>골프연습장 회원관리 프로그램</title>
 <link rel="stylesheet" href="style.css" />
</head>
<body>

  <header>골프연습장 회원관리 프로그램 ver 1.0</header>

  <nav>
    <a href="index.jsp">Home</a>
    <a href="teacher.jsp">강사조회</a>
    <a href="join.jsp">수강신청</a>
    <a href="member.jsp">회원정보조회</a>
    <a href="list.jsp">강사매출현황</a>
  </nav>

  <section class="main-section">
    <h2>골프연습장 회원관리 프로그램</h2>
    <p>골프연습장 프로그램 데이터베이스를 구축하고 회원관리 프로그램을 작성하는 프로그램이다. <br>
    <br><br><b>프로그램 작성 순서</b><br><br>
    1. 회원정보 DB테이블을 작성한다. <br>
    2. 강사조회 프로그램을 작성한다. <br>
    3. 수강신청 프로그램을 작성한다. <br>
    4. 회원정보 조회 프로그램을 작성한다.<br>
    5. 강사매출정보 조회 프로그램을 작성한다.<br>
    </p>
  </section>

  <footer>HRDKOREAⓒopyright 2023 All rights reserved. Human Resources Development Service of Korea</footer>

</body>
</html>

 

styles.css

@charset "UTF-8";
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    }
   
    h2 {
    text-align: center;
    font-weight: bolder;
  }

    /* Header styling */
    header {
      position: fixed;
      top: 0;
      width: 100%;
      height: 80px;
      background-color: dimgray;
      color: white;
      line-height: 80px;
      text-align: center;
      font-size: 28px;
    }

    /* Navigation styling */
    nav {
      position: fixed;
      top: 80px;
      width: 100%;
      height: 40px;
      background-color: #333;
      color: white;
      line-height: 40px;
      padding: 0 20px;
      display: flex;
      align-items: stretch;
    }

    nav a {
      text-decoration: none;
      color: inherit;
      padding: 0 15px;
      transition: background-color 0.3s ease;
    }

    nav a:hover {
      background-color: darkgray;
    }

    .main-section {
      padding-top: 120px;
      padding: 20px;
      background-color: white;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
   
    .main-section {
    margin:0 auto;
    margin-top:150px;
      width: 50%;
  }

    /* Footer styling */
    footer {
      position: fixed;
      bottom: 0;
      width: 100%;
      height: 50px;
      background-color: #333;
      color: white;
      text-align: center;
      line-height: 50px;
      font-size: 15px;
    }
   
    table {
    width: 70%;
    text-align: center;
    margin: 0 auto;
  }
 
  table, th, td {
    border: 1px solid black;
  }
 
  footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50px;
  }

 

 

728x90
반응형