ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • [MessageSystem] Main.jsp
    JSP Servlet 2022. 7. 15. 14:36
    <%@page import="com.smhrd.model.MemberVO"%>
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>  
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    	<head>
    		<title>Forty by HTML5 UP</title>
    		<meta charset="UTF-8" />
    		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    		<link rel="stylesheet" href="assets/css/main.css" />
    	</head>
    	<body>
    	<%
    		MemberVO result = (MemberVO)session.getAttribute("member");
    	%>
    
    		<!-- Wrapper -->
    			<div id="wrapper">
    
    				<!-- Header -->
    					<header id="header" class="alt">
    						<a href="index.html" class="logo"><strong>Forty</strong> <span>by HTML5 UP</span></a>
    						<nav>
    						<%
                         if(result==null) { %>
                            <a href = "#menu">로그인</a>
                         <%} else {%>
                            <% if(result.getEmail().equals("admin")){ %>
                            <a href="select.jsp">회원정보관리</a>
                            
                            <%} %>
                         <a href="update.jsp">개인정보수정</a>
                         <a href="LogoutService.do">로그아웃</a>
                    	  <% }%>
    							<!-- 로그인 후 Logout.jsp로 이동할 수 있는'로그아웃'링크와 '개인정보수정'링크를 출력하시오. -->
    						</nav>
    					</header>
    
    				<!-- Menu -->
    					<nav id="menu">	
    						<ul class="links">
    							<li><h5>로그인</h5></li>
    								<form action="LoginService.do" method="post">
    									<li><input type="text"  placeholder="Email을 입력하세요" name="email"></li>
    									<li><input type="password"  placeholder="PW를 입력하세요" name="pw"></li>
    									<li><input type="submit" value="LogIn" class="button fit"></li>
    								</form>
    						</ul>
    						<ul class="actions vertical">
    							<li><h5>회원가입</h5></li>
    								<form action="JoinService.do" method="post">
    									<li><input type="text"  placeholder="Email을 입력하세요" name="email"></li>
    									<li><input type="password"  placeholder="PW를 입력하세요" name="pw"></li>
    									<li><input type="text"  placeholder="전화번호를 입력하세요" name="phone"></li>
    									<li><input type="text"  placeholder="집주소를 입력하세요" name="address"></li>
    									<li><input type="submit" value="JoinUs" class="button fit"></li>
    								</form>
    						</ul>
    					</nav>			
    				<!-- Banner -->
    					<section id="banner" class="major">
    						<div class="inner">
    							<header class="major">
    							<% if(result !=null) {%>
    										<h1><%= result.getEmail() %>님 환영합니다.</h1>
    										<%}else{ %>
    										<h1>로그인을 해주세요.</h1>
    										<%} %>
    								<!-- 로그인 후 로그인 한 사용자의 세션아이디로 바꾸시오.
    									 ex)smart님 환영합니다 -->
    							</header>
    							<div class="content">
    								<p>게시판으로 이동<br></p>
    								<ul class="actions">
    									<li><a href="boardMain.jsp" class="button next scrolly">게시판</a></li>
    								</ul>
    							</div>
    						</div>
    					</section>
    
    				<!-- Main -->
    					<div id="main">
    
    						<!-- One -->
    							<section id="one" class="tiles">
    								<article>
    									<span class="image">
    										<img src="images/pic01.jpg" alt="" />
    									</span>
    									<header class="major">
    										<h3><a href="#" class="link">HTML</a></h3>
    										<p>홈페이지를 만드는 기초 언어</p>
    									</header>
    								</article>
    								<article>
    									<span class="image">
    										<img src="images/pic02.jpg" alt="" />
    									</span>
    									<header class="major">
    										<h3><a href="#" class="link">CSS</a></h3>
    										<p>HTML을 디자인해주는 언어</p>
    									</header>
    								</article>
    								<article>
    									<span class="image">
    										<img src="images/pic03.jpg" alt="" />
    									</span>
    									<header class="major">
    										<h3><a href="#" class="link">Servlet/JSP</a></h3>
    										<p>Java를 기본으로 한 웹 프로그래밍 언어/스크립트 언어</p>
    									</header>
    								</article>
    								<article>
    									<span class="image">
    										<img src="images/pic04.jpg" alt="" />
    									</span>
    									<header class="major">
    										<h3><a href="#" class="link">JavaScript</a></h3>
    										<p>HTML에 기본적인 로직을 정의할 수 있는 언어</p>
    									</header>
    								</article>
    								<article>
    									<span class="image">
    										<img src="images/pic05.jpg" alt="" />
    									</span>
    									<header class="major">
    										<h3><a href="#" class="link">MVC</a></h3>
    										<p>웹 프로젝트 중 가장 많이 사용하는 디자인패턴</p>
    									</header>
    								</article>
    								<article>
    									<span class="image">
    										<img src="images/pic06.jpg" alt="" />
    									</span>
    									<header class="major">
    										<h3><a href="#" class="link">Web Project</a></h3>
    										<p>여러분의 최종프로젝트에 웹 기술을 활용하세요!</p>
    									</header>
    								</article>
    							</section>
    					<!-- Two -->
    							<section id="two">
    								<div class="inner">
    									<header class="major">
    										<h2>나에게 온 메세지 확인하기</h2>
    									</header>
    									<p></p>
    									<ul class="actions">
    										<li>로그인을 하세요.</li>
    										<li><a href="#" class="button next scrolly">전체삭제하기</a></li>
    									</ul>
    								</div>
    							</section>
    
    					</div>
    
    				<!-- Contact -->
    					<section id="contact">
    						<div class="inner">
    							<section>
    								<form>
    								<div class="field half first">
    										<label for="name">Name</label>
    										<input type="text"  id="name" placeholder="보내는 사람 이름" />
    									</div>
    									<div class="field half">
    										<label for="email">Email</label>
    										<input type="text"  id="email" placeholder="보낼 사람 이메일"/>
    									</div>
    
    									<div class="field">
    										<label for="message">Message</label>
    										<textarea  id="message" rows="6"></textarea>
    									</div>
    									<ul class="actions">
    										<li><input type="submit" value="Send Message" class="special" /></li>
    										<li><input type="reset" value="Clear" /></li>
    									</ul>
    								</form>
    							</section>
    							
    							<section class="split">
    								<section>
    									<div class="contact-method">
    										<span class="icon alt fa-envelope"></span>
    										<h3>Email</h3>
    										<%if(result != null){ %>
    										<a href="#"><%=result.getEmail() %></a>
    										<%} else{%>
    										<a href="#">로그인 한 사람의 이메일을 출력</a>
    										<%} %>
    										<!-- 로그인 한 사용자의 이메일을 출력하시오 -->
    									</div>
    								</section>
    								<section>
    									<div class="contact-method">
    										<span class="icon alt fa-phone"></span>
    										<h3>Phone</h3>
    										<%if(result != null){ %>
    										<span><%=result.getPhone() %></span>
    										<%} else{%>
    										<span>로그인 한 사람의 전화번호를 출력</span>
    										<%} %>
    										<!-- 로그인 한 사용자의 전화번호를 출력하시오 -->
    									</div>
    								</section>
    								<section>
    									<div class="contact-method">
    										<span class="icon alt fa-home"></span>
    										<h3>Address</h3>
    										<%if(result != null){ %>
    										<span><%=result.getAddress() %></span>
    										<%} else{%>
    										<span>로그인 한 사람의 집주소를 출력</span>
    										<%} %>
    										<!-- 로그인 한 사용자의 집주소를 출력하시오 -->
    									</div>
    								</section>
    							</section>					
    						</div>
    					</section>
    
    				<!-- Footer -->
    					<footer id="footer">
    						<div class="inner">
    							<ul class="icons">
    								<li><a href="#" class="icon alt fa-twitter"><span class="label">Twitter</span></a></li>
    								<li><a href="#" class="icon alt fa-facebook"><span class="label">Facebook</span></a></li>
    								<li><a href="#" class="icon alt fa-instagram"><span class="label">Instagram</span></a></li>
    								<li><a href="#" class="icon alt fa-github"><span class="label">GitHub</span></a></li>
    								<li><a href="#" class="icon alt fa-linkedin"><span class="label">LinkedIn</span></a></li>
    							</ul>
    							<ul class="copyright">
    								<li>&copy; Untitled</li><li>Design: <a href="https://html5up.net">HTML5 UP</a></li>
    							</ul>
    						</div>
    					</footer>
    
    			</div>
    
    		<!-- Scripts -->
    			<script src="assets/js/jquery.min.js"></script>
    			<script src="assets/js/jquery.scrolly.min.js"></script>
    			<script src="assets/js/jquery.scrollex.min.js"></script>
    			<script src="assets/js/skel.min.js"></script>
    			<script src="assets/js/util.js"></script>
    			<!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
    			<script src="assets/js/main.js"></script>
    
    	</body>
    </html>

    'JSP Servlet' 카테고리의 다른 글

    [MessageSystem]Update.jsp  (0) 2022.07.15
    [MessageSystem] Join_Success.jsp  (0) 2022.07.15
    Eclipse MyBatis Setting  (0) 2022.07.13
    Eclipse Lombok Setting  (0) 2022.07.13
    Eclipse OJDBC Setting  (0) 2022.07.13

    댓글

Designed by Tistory.