boardDetail.ejs
2.54 KB
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
<!DOCTYPE html>
<html>
<head>
<title><%=title%></title>
<link rel='stylesheet' href='/stylesheets/style.css' />
<body>
<div class="main">
<a href="/boards"><h2>게시판</h2></a>
<div class="content_box">
<!-- content box-->
<div class="content_detail">
<div class="content-pic"><img src='../images/<%=content.name%>.jpg' width="340" height="340" onError="this.src='../images/noImage.jpg';"></div>
<div class="content-title"><%=content.name%></div>
<div class="content-info">
<%=content.company%> / <%=content.category%>
</div>
<div class="content-text">
<%=content.price%>
</div>
<div class="addBtngroup" style="margin-left:450px;">
<a href="/boards">확인</a>
</div>
</div>
<!-- content box end -->
<!-- 혁신의 끝을 달리는 옆에서 달아주는 댓글 창-->
<div class="reply">
<div class="reply_form">
<form id="replyAction" action="/boards/reply" method="post">
<div class="reply_grade">
<SELECT size=1 class="replyGrade" id="replyGrade" name="replyGrade">
<OPTION VALUE=1>1</OPTION>
<OPTION VALUE=2>2</OPTION>
<OPTION VALUE=3>3</OPTION>
<OPTION VALUE=4>4</OPTION>
<OPTION VALUE=5>5</OPTION>
</SELECT></div>
<div class="reply_comment">
<textarea class="replyComment" id="replyComment" name="replyComment" rows="3" cols="30"></textarea>
</div>
<input type="hidden" name="replyId" id="replyId" value="<%=content._id%>">
<button type="submit">댓글 작성</button>
</form>
</div>
<div class="reply_list">
<%if(content.comments.length>0){%>
<%var commentsList = content.comments;%>
<%for(var i=0; i<commentsList.length; i++){%>
%>
<div class="reply_content">
<div class="reply_info"><%=commentsList[i].grade%> / <%=commentsList[i].memo%></div>
</div>
<%}%>
<%} else {%>
<div class="reply_content">
<div class="reply_info">댓글이 없습니다</div>
</div>
<%}%>
</div>
</div>
<!-- end -->
</div>
</body>
</html>