본문 바로가기
매일코딩/Spring

16.스프링프로젝트 - 메인 화면 소스

by 인생여희 2016. 11. 1.
반응형

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 
<html>
<head>
<!-- 끼워넣기 모듈화 -->
 <%@ include file="../include/header.jsp"%
 
 
<!-- 구글 폰트 -->
<link href='http://fonts.googleapis.com/css?family=Droid+Sans'
    rel='stylesheet' type='text/css'>
 
<!-- css -->
<link href="../resources/css/reset.css" rel="stylesheet" type="text/css">
 
 
<!-- 슬라이드 기능 -->
<link href="../resources/css/themes/default/default.css" rel="stylesheet"
    type="text/css">
<link href="../resources/css/nivo-slider.css" rel="stylesheet"
    type="text/css">
 
 
 
<script type="text/javascript"
    src="../resources/script/jquery.nivo.slider.js"></script>
 
 
<script type="text/javascript">
    /* 이미지 슬라이더 */
    $(window).load(function() {
        $('#slider').nivoSlider();
        
    
        
    });
    
    
    /* 게시판 */
    $(document).ready(function(){
        
        
        
        $(".tab_content").hide();
        $("ul.tabs li:first").addClass("active").show();
        $(".tab_content:first").show();
        
        /* 클릭이벤트 */
    
        $("ul.tabs li").click(function(){
            
            $("ul.tabs li").removeClass("active");
            $(this).addClass("active");
            $(".tab_content").hide();
        
            var activeTab=$(this).find("a").attr("href");
            $(activeTab).fadeIn();
            return false;
        });
        
        
    });
    
    
    
    
</script>
 
</head>
<body>
 
    <!-- core tag 선언문 -->
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
 
    <!-- set var ="변수명" value="값"
pageContext.request.contextPath
컨텍스트 이름을 리턴(request.getContextPath()와 같음) -->
 
    <c:set var="path" value="${pageContext.request.contextPath}"></c:set>
 
 
 
    <div id="wrap">
        <header>
            <div id="logo">
                <a href="${pageContext.request.contextPath}/main/main.html">로고들어갈자리 </a>
            </div>
 
            <div id="hlink">
 
                <ul>
 
 
                    <c:choose>
                        <c:when test="${sessionScope.id==null }">
                            <!-- 세션변수 id 값이 없을때 -->
                            <li><a href="${path}/member/login">로그인·회원가입</a></li>
                        <!--     <li><a href="/web03/member/memberInsert">회원가입</a></li> -->
                        </c:when>
 
                        <c:otherwise>
                            <!-- 세션 변수 id 값이 있을때 -->
        
    [  ${sessionScope.name}님 로그인 중 ]
    <li><a href="${path}/member/logout">로그아웃</a></li>
                            <%-- <li><a href="${path}/member/member_info.do">회원정보 수정</a></li> --%>
                        </c:otherwise>
 
                    </c:choose>
 
 
                </ul>
 
            </div>
 
 
            <nav>
                <ul>                                        <!-- web3/ -->
                    <li class="n1"><a href="${pageContext.request.contextPath}/company/company.html">회사소개</a></li>
                        
                    <li class="n2"><a href="${pageContext.request.contextPath}/product/product.html">제품정보</a></li>
                    <li class="n3"><a href="${path}/board/board_list.do">게시판</a></li>
                    <li class="n4"><a href="${path}/mail/mail_form.do">이메일</a></li>
                </ul>
            </nav>
 
 
        </header>
 
 
        <!-- 슬라이드 -->
        <div class="slider-wrapper theme-default">
            <div id="slider" class="nivoSlider">
 
                <img src="../resources/images/slider1.jpg" width="943" height="401">
                <img src="../resources/images/slider2.jpg" width="943" height="401">
                <img src="../resources/images/slider3.jpg" width="943" height="401">
                <img src="../resources/images/slider4.jpg" width="943" height="401">
            </div>
        </div>
        <!--     새 상품-->
        <div class="clear"></div>
 
        <div id="justar">
            <h3>만나 11월호</h3>
 
            <figure id="slide">
 
                <img src="../resources/images/goods1.jpg" width="161" height="125" />
    
 
            </figure>
 
        </div>
        
        <!-- <div class="clear"></div> -->
 
 
        <div id="notinews">
            <div class="container">
                <ul class="tabs">
                    <!-- 탭부분 제목 -->
                    <li><a href="#tab1">Notice</a></li>
                    <li><a href="#tab2">News</a></li>
                </ul>
 
                <!-- 텝 1,2 테두리-->
                <div class="tab_container">
 
                    <!-- 공지사항 컨텐트-->
                    <div id="tab1" class="tab_content">
                        <ul>
                            <li><a href="#">여기는 공지사항이 들어가는 곳입니다</a></li>
                            <li><a href="#">여기는 공지사항이 들어가는 곳입니다</a></li>
                            <li><a href="#">여기는 공지사항이 들어가는 곳입니다</a></li>
                            <li><a href="#">여기는 공지사항이 들어가는 곳입니다</a></li>
 
                        </ul>
                    </div>
 
                    <div id="tab2" class="tab_content">
                        <ul>
                            <li><a href="#">여기는 뉴스가 들어가는 곳입니다.</a></li>
                            <li><a href="#">여기는 뉴스가 들어가는 곳입니다.</a></li>
                            <li><a href="#">여기는 뉴스가 들어가는 곳입니다.</a></li>
                            <li><a href="#">여기는 뉴스가 들어가는 곳입니다.</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
 
                    <div id="social">
        <h3>social network</h3>
            <ul>
                <li><a href="#"><img src="../resources/images/icon1.png" alt="facebook"></a></li>
                <li><a href="#"><img src="../resources/images/icon2.png" alt="twitter"></a></li>
                <li><a href="#"><img src="../resources/images/icon3.png" alt="linkedin"></a></li>
                <li><a href="#"><img src="../resources/images/icon4.png" alt="RSS"></a></li>
                <li><a href="#"><img src="../resources/images/icon5.png" alt="google +"></a></li>
                <li><a href="#"><img src="../resources/images/icon6.png" alt="pinterest"></a></li>
                <li><a href="#"><img src="../resources/images/icon7.png" alt="Dribbble"></a></li>
                <li><a href="#"><img src="../resources/images/icon8.png" alt="youtube"></a></li>
                <li><a href="#"><img src="../resources/images/icon9.png" alt="vimeo"></a></li>
            
            </ul>
            </div>
 
 
    <div class="clear"></div>
 
 
 
    <footer>
    <address> All contents copyright SNSmedia Corp, ltd. Contact: creativeshake@hanmail.net<br>
             서울시 종로구 인사동길 12, 대일빌딩 1006호 | Tel : 02-737-6590  Fax : 02-736-6591
    </address>
    </footer>
 
 
    </div>
</body>
</html>
cs

메인 화면 소스

반응형

댓글