Files
jaryo/index.html
vibsin9322 7a08bf9b4c Add comprehensive file management system with admin/user separation
Features added:
- Admin interface with full CRUD operations and multi-file upload
- User interface with read-only access and download functionality
- Board-style table layout with pagination (10 items per page)
- Category-specific file icons and attachment management
- Drag & drop file upload with preview and individual file removal
- Individual and bulk download with ZIP compression support
- Offline mode with localStorage fallback for both interfaces
- Responsive design with modern UI components

Technical improvements:
- Separated admin (/admin/) and user (/) interfaces
- Enhanced file data structure with consistent naming
- Improved error handling and user notifications
- Multi-file upload processing with base64 encoding
- File type detection and appropriate icon mapping
- Download functionality with single/multiple file handling

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-19 19:56:16 +09:00

75 lines
2.9 KiB
HTML

<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>자료실 - CRUD 시스템</title>
<link rel="stylesheet" href="styles.css">
<script src="https://unpkg.com/@supabase/supabase-js@2"></script>
</head>
<body>
<div class="container">
<header>
<h1>📚 자료실 관리 시스템</h1>
<p>파일과 문서를 효율적으로 관리하세요</p>
</header>
<div class="search-section">
<input type="text" id="searchInput" placeholder="제목, 설명, 카테고리로 검색...">
<select id="categoryFilter">
<option value="">전체 카테고리</option>
<option value="문서">문서</option>
<option value="이미지">이미지</option>
<option value="동영상">동영상</option>
<option value="프레젠테이션">프레젠테이션</option>
<option value="기타">기타</option>
</select>
<button id="searchBtn">🔍 검색</button>
</div>
<div class="list-section">
<div class="list-header">
<h2>📋 자료 목록</h2>
<div class="sort-options">
<select id="sortBy">
<option value="date">최신순</option>
<option value="title">제목순</option>
<option value="category">카테고리순</option>
</select>
</div>
</div>
<div class="board-container">
<table class="board-table" id="boardTable">
<thead>
<tr>
<th class="col-no">번호</th>
<th class="col-category">카테고리</th>
<th class="col-title">제목</th>
<th class="col-attachment">첨부</th>
<th class="col-date">등록일</th>
<th class="col-actions">다운로드</th>
</tr>
</thead>
<tbody id="fileList">
<tr class="empty-state">
<td colspan="6">📂 등록된 자료가 없습니다.</td>
</tr>
</tbody>
</table>
</div>
<div class="pagination" id="pagination" style="display: none;">
<button id="prevPage" class="page-btn" disabled>◀ 이전</button>
<span id="pageInfo">1 / 1</span>
<button id="nextPage" class="page-btn" disabled>다음 ▶</button>
</div>
</div>
</div>
<script src="supabase-config.js"></script>
<script src="script.js"></script>
</body>
</html>