read.ejs 2.6 KB
<!DOCTYPE html>
<html>
<head>
    <title>묵호 - 놀이터</title>
    <!-- Favicon-->
    <link rel="icon" type="image/x-icon" href="../assets/favicon.ico" />
    <!-- Bootstrap icons-->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" rel="stylesheet" type="text/css" />
    <!-- Google fonts-->
    <link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css" />
    <!-- Core theme CSS (includes Bootstrap)-->
    <link href="/css/styles.css?after" rel="stylesheet" />

</head>
<body>
    <!-- Navigation-->
    <nav class="navbar navbar-light bg-light static-top">
        <div class="container">
            <a class="navbar-brand" href="/main">묵호의 놀이터</a>
            <div class="user">
                <a> <%= nickname %> 님 안녕하세요 </section></a>
                <a class="btn btn-primary" href="/logout">로그아웃</a>
            </div>
        </div>
    </nav>
    <div class="container px-5 my-5">
        <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>
    </div>
</body>
</html>