list.ejs 1.34 KB
<!DOCTYPE html>
<html>
<head>
    <title>묵호 - 놀이터</title>
    <!-- Favicon-->
    <link rel="icon" type="image/x-icon" href="../assets/favicon.ico" />
    <link rel='stylesheet' href='/stylesheets/style.css'/>
</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> <%= ID %> 님 안녕하세요 </section></a>
                <a class="btn btn-primary" href="/logout">로그아웃</a>
            </div>
        </div>
    </nav>
    <h1><%= title %></h1>
    <a href="/board/write">글쓰기</a>
    <table border="1">
        <tr>
            <td>번호</td>
            <td>작성자</td>
            <td>제목</td>
            <td>조회수</td>
            <td>수정일</td>
            <td>등록일</td>
        </tr>
        <%
        for(var i=0; i<rows.length; i++)
        {
            var data = rows[i];
        %>
        <tr>
            <td><%=data.idx%></td>
            <td><%=data.name%></td>
            <td><a href="/board/read/<%=data.idx%>"><%=data.title%></a></td>
            <td><%=data.hit%></td>
            <td><%=data.modidate%></td>
            <td><%=data.regdate%></td>
        </tr>
        <%}%>
    </table>
</body>
</html>