▣ include/header.jsp ( 수정 )
페이지 정보
작성자 관리자 작성일 23-03-16 14:49 조회 615 댓글 0본문
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!-- 개행 처리, sql 이스케이프 처리 -->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ include file="/include/dbconnection.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>JSP</title>
<link rel="stylesheet" href="/css/basic.css">
</head>
<body>
<%
String session_id = (String)session.getAttribute("id");
String session_name = (String)session.getAttribute("name");
String session_level = (String)session.getAttribute("level");
%>
<table width=100% height=50>
<tr>
<td><a href="/">[로고]</a></td>
<td align="right">
<%if(session_id == null){ %>
<a href="/member/login.jsp">[로그인]</a>
<a href="/member/join.jsp">[회원가입]</a>
<%}else{ %>
<a href="/member/logout.jsp">[로그아웃]</a>
<a href="/member/modify.jsp">[회원수정]</a>
<%} %>
</td>
</tr>
<tr>
<td colspan=2 align=center>
<a href="/bbs/list.jsp?code=notice">[공지게시판]</a>
<a href="/bbs/list.jsp?code=free">[자유게시판]</a>
<a href="/bbs2/list.jsp?code=gallery">[갤러리게시판]</a>
<a href="/bbs/list.jsp?code=qna">[QnA게시판]</a>
</td>
</tr>
</table>
<hr>
댓글목록 0
등록된 댓글이 없습니다.