read.ejs
1.38 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
<!DOCTYPE html>
<html>
<head>
<title><%= title %></title>
<link rel='stylesheet' href='/stylesheets/style.css'/>
</head>
<body>
<h1><%= title %></h1>
<form action="/board/update" method="post">
<table border="1">
<input type="hidden" name="idx" value="<%=row.idx%>"/>
<tr>
<td>작성자</td>
<td><input type="text" name="name" id="name" value="<%=row.name%>" required/></td>
</tr>
<tr>
<td>제목</td>
<td><input type="text" name="title" id="title" value="<%=row.title%>" required/></td>
</tr>
<tr>
<td>내용</td>
<td><textarea name="content" id="content" cols="30" rows="10" required><%=row.content%></textarea></td>
</tr>
<tr>
<td>패스워드</td>
<td><input type="password" name="passwd" id="passwd" required/></td>
</tr>
<tr>
<td>변경일</td>
<td><%=row.modidate%></td>
</tr>
<tr>
<td>등록일</td>
<td><%=row.regdate%></td>
</tr>
<tr>
<td>조회수</td>
<td><%=row.hit%></td>
</tr>
<tr>
<td colspan="2">
<button type="submit">글 수정</button>
<a href="/board/list">목록</a>
</td>
</tr>
</table>
</form>
</body>
</html>