setting.ejs
1.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>설정</title>
<style>
.registered{
background-color: #AAAAAA;
}
</style>
</head>
<h1>내툰</h1>
<p>추가하거나 제거할 웹툰을 선택해주세요.</p>
<table>
<%
var current = "";
for(webtoon in alltoons){
if(current!=alltoons[webtoon].week){
if(current!=""){
%>
</tr>
<% } %>
<tr>
<th><%= alltoons[webtoon].week %></th>
<% } %>
<td class="<%
for(i=0;i<mytoons.length;i++){
if(mytoons[i].name == alltoons[webtoon].name){
%>registered<%
break;
}
}
%>">
<form method="post" action="/setting/toggle_toon">
<input type="hidden" name="toon_index" value="<%= alltoons[webtoon].toon_index %>">
<input TYPE="IMAGE" src="<%= alltoons[webtoon].thum_link %>" name="Submit" value="Submit" align="absmiddle">
</form>
<%= alltoons[webtoon].name; %>
</td>
<%
if(current!=alltoons[webtoon].week) {
current = alltoons[webtoon].week;
%>
<%
}
}
%>
</tr>
</table>
</form>
</br>
<body>
</body>
</html>