OSDN Git Service

プロフィール用の管理モードを追加した
[webchat/WebChat.git] / public / profile / admin.ejs
1 <!DOCTYPE html>\r
2 <html>\r
3 <head>\r
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
5 <meta http-equiv="cache-control" content="no-cache">\r
6 <title>管理モード</title>\r
7 </head>\r
8 <body>\r
9 <h1>管理モード</h1>\r
10 <div id="content">\r
11 <form action="/profile/admin" method="GET">\r
12         <select name="field" size="1">\r
13                 <option value="name">名前</option>\r
14         </select>\r
15         <input type="text" value="<%= encodeURIComponent(search) %>" name="search"/>\r
16         <input type="submit" value="検索"/>\r
17 </form>\r
18 <form action="/profile/admin" method="POST">\r
19         <table>\r
20                 <tr>\r
21                         <th></th>\r
22                         <th>名前</th>\r
23                         <th>年齢</th>\r
24                         <th>更新日時</th>\r
25                 </tr>\r
26         <% for(var i=0; i<list.length; i++) {%>\r
27                 <tr>\r
28                         <td><input type="checkbox" name="names[]" value="<%= list[i].name %>"/></td>\r
29                         <td><a href="/profile/detail?name=<%= encodeURIComponent(list[i].name) %>"><%= list[i].name %></a></td>\r
30                         <td><%= list[i].age %></td>\r
31                         <td><%- list[i].lastmodified %></td>\r
32                 </tr>\r
33         <% } %>\r
34         </table>\r
35         <input type="hidden" name="token" value="<%= token %>"></input>\r
36         <input type="submit" value="全削除" name="removeall"/>\r
37         <input type="submit" value="削除" name="remove"/>\r
38 </form>\r
39 <a href="profile?start=<%= prev %>&limit=<%= limit %>&search=<%= encodeURIComponent(search) %>"><前</a>\r
40 <a href="profile?start=<%= next %>&limit=<%= limit %>&search=<%= encodeURIComponent(search) %>">次></a>\r
41 </div>\r
42 </body>\r
43 </html>\r