mytoons.ejs 1.65 KB
<!DOCTYPE html>
<html>
<head>
    <title>내툰</title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
    <style>
        .toon_latest,.toon_next,.toon_last,.toon_name,.toon_thumbnail{
            width:10%;
        }

        td{
            vertical-align: middle;
            border-bottom: 1px solid #bcbcbc;
            border-left: 1px solid #bcbcbc;
            border-right: 1px solid #bcbcbc;
            margin:0;
            Text-align:center;
        }
        table{
            border-collapse:collapse;
            border: 2px solid #474747;
        }
        th{
            border-bottom:2px solid #474747;
        }
    </style>
</head>
<h1>내툰</h1>
<p>추가한 리스트</p>
<a href="/auth/logout/kakao">로그아웃</a>
<a href="/setting/">세팅</a>
<table>
    <tr>
        <th>썸네일</th>
        <th>웹툰명</th>
        <th>최근에 본 화</th>
        <th>다음화</th>
        <th>최신화</th>
    </tr><%
    for(i=0;i<mytoons.length; i++){
    %><tr>
        <td class="toon_thumbnail"><image src="<%= mytoons[i].thum_link%>"/></td>
        <td class="toon_name"><%= mytoons[i].name %></td>
        <td class="toon_last"><a href="/toonviewer/<%= mytoons[i].toon_index %>/<%= mytoons[i].last %>"><%= mytoons[i].last %>화</a></td>
        <td class="toon_next"><% if(mytoons[i].last+1 <= mytoons[i].latest){ %> <a href="/toonviewer/<%= mytoons[i].toon_index %>/<%= mytoons[i].last+1 %>"><%= mytoons[i].last +1 %>화</a><% } %></td>
        <td class="toon_latest"><a href="/toonviewer/<%= mytoons[i].toon_index %>/<%= mytoons[i].latest %>"><%= mytoons[i].latest %>화</a></td>
    </tr>
    <% } %>
</table>

</br>


</body>

</html>