Repository navigation
Expand file tree
/
Copy pathadmin.html
More file actions
408 lines (387 loc) · 14.4 KB
/
Copy pathadmin.html
File metadata and controls
408 lines (387 loc) · 14.4 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
<!doctype html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MONOLOG Admin</title>
<link rel="stylesheet" href="css/font.css" />
<link rel="stylesheet" href="css/header.css" />
<link rel="stylesheet" href="css/admin.css" />
</head>
<body>
<div class="admin-layout">
<!-- 사이드바 -->
<aside class="admin-sidebar" id="adminSidebar">
<div class="admin-sidebar-header">
<a href="admin.html" class="admin-logo">MONOLOG</a>
<span class="admin-badge">ADMIN</span>
</div>
<nav class="admin-nav">
<button class="admin-nav-item active" data-section="dashboard">
<span class="admin-nav-icon">▦</span>
<span>대시보드</span>
</button>
<button class="admin-nav-item" data-section="users">
<span class="admin-nav-icon">👤</span>
<span>사용자 관리</span>
</button>
<button class="admin-nav-item" data-section="movies">
<span class="admin-nav-icon">🎬</span>
<span>영화 관리</span>
</button>
<button class="admin-nav-item" data-section="reviews">
<span class="admin-nav-icon">✍</span>
<span>리뷰 관리</span>
</button>
<button class="admin-nav-item" data-section="settings">
<span class="admin-nav-icon">⚙</span>
<span>시스템 설정</span>
</button>
</nav>
<div class="admin-sidebar-footer">
<a href="index.html" class="admin-back-link">← 사이트로 돌아가기</a>
<button class="admin-logout" id="adminLogout">로그아웃</button>
</div>
</aside>
<button class="admin-sidebar-toggle" id="sidebarToggle" aria-label="메뉴">
☰
</button>
<!-- 메인 콘텐츠 -->
<main class="admin-main">
<!-- 대시보드 -->
<section class="admin-section active" id="section-dashboard">
<div class="admin-section-header">
<h1>대시보드</h1>
<p class="admin-section-sub">MONOLOG 운영 현황</p>
</div>
<div class="stat-grid">
<div class="stat-card">
<div class="stat-icon stat-icon-blue">👤</div>
<div class="stat-body">
<span class="stat-label">총 사용자</span>
<span class="stat-value" id="statUsers">-</span>
</div>
</div>
<div class="stat-card">
<div class="stat-icon stat-icon-purple">🎬</div>
<div class="stat-body">
<span class="stat-label">총 영화</span>
<span class="stat-value" id="statMovies">-</span>
</div>
</div>
<div class="stat-card">
<div class="stat-icon stat-icon-gold">✍</div>
<div class="stat-body">
<span class="stat-label">총 리뷰</span>
<span class="stat-value" id="statReviews">-</span>
</div>
</div>
</div>
<div class="dashboard-grid">
<div class="admin-panel">
<div class="admin-panel-header">
<h2>최근 가입 사용자</h2>
<button class="admin-link-btn" data-goto="users">
전체 보기
</button>
</div>
<div class="admin-table-wrap">
<table class="admin-table">
<thead>
<tr>
<th>사용자</th>
<th>이메일</th>
<th>리뷰</th>
<th>가입일</th>
</tr>
</thead>
<tbody id="recentUsersBody">
<tr class="admin-loading-row">
<td colspan="4">불러오는 중…</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="admin-panel">
<div class="admin-panel-header">
<h2>최근 리뷰</h2>
<button class="admin-link-btn" data-goto="reviews">
전체 보기
</button>
</div>
<div class="admin-table-wrap">
<table class="admin-table">
<thead>
<tr>
<th>작성자</th>
<th>영화</th>
<th>평점</th>
<th>작성일</th>
</tr>
</thead>
<tbody id="recentReviewsBody">
<tr class="admin-loading-row">
<td colspan="4">불러오는 중…</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</section>
<!-- 사용자 관리 -->
<section class="admin-section" id="section-users">
<div class="admin-section-header">
<h1>사용자 관리</h1>
<p class="admin-section-sub">가입 사용자 조회 · 수정 · 삭제</p>
</div>
<div class="admin-panel">
<div class="admin-table-wrap">
<table class="admin-table">
<thead>
<tr>
<th class="col-id">UID</th>
<th>사용자</th>
<th>이메일</th>
<th>성별</th>
<th>리뷰</th>
<th>가입일</th>
<th class="col-actions">관리</th>
</tr>
</thead>
<tbody id="usersBody">
<tr class="admin-loading-row">
<td colspan="7">불러오는 중…</td>
</tr>
</tbody>
</table>
</div>
<div class="admin-pagination" id="usersPagination"></div>
</div>
</section>
<!-- 영화 관리 -->
<section class="admin-section" id="section-movies">
<div class="admin-section-header">
<div>
<h1>영화 관리</h1>
<p class="admin-section-sub">영화 조회 · 추가 · 수정 · 삭제</p>
</div>
<div class="admin-section-actions">
<button class="btn btn-secondary" id="openTmdbModal">
TMDB 가져오기
</button>
<button class="btn btn-primary" id="openMovieModal">
+ 영화 추가
</button>
</div>
</div>
<div class="admin-panel">
<div class="admin-table-wrap">
<table class="admin-table">
<thead>
<tr>
<th class="col-poster">포스터</th>
<th>제목</th>
<th>감독</th>
<th>개봉일</th>
<th>평점</th>
<th>리뷰</th>
<th class="col-actions">관리</th>
</tr>
</thead>
<tbody id="moviesBody">
<tr class="admin-loading-row">
<td colspan="7">불러오는 중…</td>
</tr>
</tbody>
</table>
</div>
<div class="admin-pagination" id="moviesPagination"></div>
</div>
</section>
<!-- 리뷰 관리 -->
<section class="admin-section" id="section-reviews">
<div class="admin-section-header">
<h1>리뷰 관리</h1>
<p class="admin-section-sub">작성된 리뷰 조회 · 삭제</p>
</div>
<div class="admin-panel">
<div class="admin-table-wrap">
<table class="admin-table">
<thead>
<tr>
<th class="col-id">RID</th>
<th>작성자</th>
<th>영화</th>
<th>제목</th>
<th>평점</th>
<th>내용</th>
<th>작성일</th>
<th class="col-actions">관리</th>
</tr>
</thead>
<tbody id="reviewsBody">
<tr class="admin-loading-row">
<td colspan="8">불러오는 중…</td>
</tr>
</tbody>
</table>
</div>
<div class="admin-pagination" id="reviewsPagination"></div>
</div>
</section>
<!-- 시스템 설정 -->
<section class="admin-section" id="section-settings">
<div class="admin-section-header">
<h1>시스템 설정</h1>
<p class="admin-section-sub">서비스 운영 관련 설정을 관리합니다</p>
</div>
<div class="admin-panel">
<div class="admin-panel-header">
<h2>이메일 인증</h2>
</div>
<div class="settings-list">
<div class="settings-item">
<div class="settings-item-info">
<span class="settings-item-label">회원가입 이메일 인증</span>
<span class="settings-item-desc">
비활성화하면 이메일 인증 없이 바로 가입할 수 있습니다. 점검
후 반드시 다시 활성화하세요.
</span>
</div>
<label class="toggle-switch">
<input type="checkbox" id="emailVerificationToggle" />
<span class="toggle-slider"></span>
</label>
</div>
</div>
</div>
</section>
</main>
</div>
<!-- 사용자 수정 모달 -->
<div class="modal-overlay" id="userModal">
<div class="modal">
<div class="modal-header">
<h3>사용자 수정</h3>
<button class="modal-close" data-close>✕</button>
</div>
<form id="userForm" class="modal-form">
<label class="form-field">
<span>닉네임</span>
<input type="text" name="nickname" />
</label>
<label class="form-field">
<span>이메일</span>
<input type="email" name="email" />
</label>
<label class="form-field">
<span>성별</span>
<select name="gender">
<option value="">미선택</option>
<option value="male">남성</option>
<option value="female">여성</option>
</select>
</label>
<label class="form-field">
<span>소개</span>
<textarea name="bio" rows="3"></textarea>
</label>
<div class="modal-footer">
<button type="button" class="btn btn-ghost" data-close>취소</button>
<button type="submit" class="btn btn-primary">저장</button>
</div>
</form>
</div>
</div>
<!-- 영화 추가/수정 모달 -->
<div class="modal-overlay" id="movieModal">
<div class="modal">
<div class="modal-header">
<h3 id="movieModalTitle">영화 추가</h3>
<button class="modal-close" data-close>✕</button>
</div>
<form id="movieForm" class="modal-form">
<label class="form-field">
<span>제목 *</span>
<input type="text" name="title" required />
</label>
<label class="form-field">
<span>감독</span>
<input type="text" name="director" />
</label>
<label class="form-field">
<span>개봉일</span>
<input type="date" name="releaseDate" />
</label>
<label class="form-field">
<span>포스터 URL</span>
<input type="url" name="posterUrl" placeholder="https://…" />
</label>
<label class="form-field">
<span>장르 (쉼표로 구분)</span>
<input type="text" name="genres" placeholder="액션, 드라마, SF" />
</label>
<label class="form-field">
<span>설명</span>
<textarea name="description" rows="3"></textarea>
</label>
<div class="modal-footer">
<button type="button" class="btn btn-ghost" data-close>취소</button>
<button type="submit" class="btn btn-primary">저장</button>
</div>
</form>
</div>
</div>
<!-- TMDB 가져오기 모달 -->
<div class="modal-overlay" id="tmdbModal">
<div class="modal modal-sm">
<div class="modal-header">
<h3>TMDB에서 가져오기</h3>
<button class="modal-close" data-close>✕</button>
</div>
<form id="tmdbForm" class="modal-form">
<p class="modal-hint">
TMDB 영화/TV URL을 입력하세요.<br />
예: https://www.themoviedb.org/movie/27205
</p>
<label class="form-field">
<span>TMDB URL</span>
<input
type="url"
name="tmdbUrl"
placeholder="https://www.themoviedb.org/movie/27205"
required
/>
</label>
<div class="modal-footer">
<button type="button" class="btn btn-ghost" data-close>취소</button>
<button type="submit" class="btn btn-primary">가져오기</button>
</div>
</form>
</div>
</div>
<!-- 확인 다이얼로그 -->
<div class="modal-overlay" id="confirmModal">
<div class="modal modal-sm">
<div class="modal-header">
<h3 id="confirmTitle">확인</h3>
</div>
<div class="modal-body">
<p id="confirmMessage">이 작업을 진행하시겠습니까?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-ghost" data-close>취소</button>
<button type="button" class="btn btn-danger" id="confirmOk">
삭제
</button>
</div>
</div>
</div>
<!-- 토스트 -->
<div class="toast" id="toast"></div>
<script src="js/shared.js"></script>
<script src="js/admin.js"></script>
</body>
</html>