uiux
This commit is contained in:
@@ -190,13 +190,22 @@ INSERT IGNORE INTO users (username, password_hash, display_name, role_code, acti
|
||||
INSERT IGNORE INTO readers (reader_identifier, user_id, full_name, phone, email, status, max_borrow_count) VALUES
|
||||
('RD-0001', (SELECT id FROM users WHERE username = 'reader'), 'Demo Reader', '13800000000',
|
||||
'reader@example.com', 'active', 5),
|
||||
('RD-0002', NULL, 'Suspended Reader', '13900000000', 'suspended.reader@example.com', 'suspended', 3);
|
||||
('RD-0002', NULL, 'Suspended Reader', '13900000000', 'suspended.reader@example.com', 'suspended', 3),
|
||||
('RD-0101', NULL, '张晓雨', '13600010001', 'zhang.xiaoyu@example.com', 'active', 6),
|
||||
('RD-0102', NULL, '李明远', '13600010002', 'li.mingyuan@example.com', 'active', 5),
|
||||
('RD-0103', NULL, '王思涵', '13600010003', 'wang.sihan@example.com', 'active', 4),
|
||||
('RD-0104', NULL, '赵晨', '13600010004', 'zhao.chen@example.com', 'suspended', 3);
|
||||
|
||||
INSERT INTO book_categories (name, description) VALUES
|
||||
('Computer Science', 'Programming, software engineering, and systems books'),
|
||||
('Literature', 'Classic and modern literature'),
|
||||
('History', 'World and regional history'),
|
||||
('Science', 'Natural science and popular science')
|
||||
('Science', 'Natural science and popular science'),
|
||||
('中国文学', '中国现当代文学、经典小说和散文作品'),
|
||||
('计算机技术', '程序设计、软件工程、数据库和信息技术图书'),
|
||||
('历史文化', '中国历史、世界历史和文化研究读物'),
|
||||
('自然科学', '数学、物理、生命科学和科普读物'),
|
||||
('社会科学', '社会学、管理学和公共事务读物')
|
||||
ON DUPLICATE KEY UPDATE
|
||||
description = VALUES(description);
|
||||
|
||||
@@ -208,4 +217,16 @@ INSERT IGNORE INTO books (book_identifier, title, author, category_id, total_cop
|
||||
('BK-0003', 'Pride and Prejudice', 'Jane Austen',
|
||||
(SELECT id FROM book_categories WHERE name = 'Literature'), 3, 3, 'available'),
|
||||
('BK-0004', 'A Brief History of Time', 'Stephen Hawking',
|
||||
(SELECT id FROM book_categories WHERE name = 'Science'), 2, 1, 'available');
|
||||
(SELECT id FROM book_categories WHERE name = 'Science'), 2, 1, 'available'),
|
||||
('BK-0101', '活着', '余华',
|
||||
(SELECT id FROM book_categories WHERE name = '中国文学'), 6, 5, 'available'),
|
||||
('BK-0102', '平凡的世界', '路遥',
|
||||
(SELECT id FROM book_categories WHERE name = '中国文学'), 5, 5, 'available'),
|
||||
('BK-0103', '深入理解Java虚拟机', '周志明',
|
||||
(SELECT id FROM book_categories WHERE name = '计算机技术'), 4, 3, 'available'),
|
||||
('BK-0104', '中国通史', '吕思勉',
|
||||
(SELECT id FROM book_categories WHERE name = '历史文化'), 3, 3, 'available'),
|
||||
('BK-0105', '乡土中国', '费孝通',
|
||||
(SELECT id FROM book_categories WHERE name = '社会科学'), 4, 4, 'available'),
|
||||
('BK-0106', '科学史十五讲', '江晓原',
|
||||
(SELECT id FROM book_categories WHERE name = '自然科学'), 3, 2, 'available');
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
</div>
|
||||
<div class="hero-actions">
|
||||
<a class="button button-primary" href="${pageContext.request.contextPath}/admin/users/new">新增用户账户</a>
|
||||
<a class="button button-secondary" href="${pageContext.request.contextPath}/readers">读者档案</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -60,9 +60,6 @@
|
||||
|
||||
<button class="button button-primary" type="submit">检索</button>
|
||||
<a class="button button-secondary" href="${pageContext.request.contextPath}/catalog">清空</a>
|
||||
<c:if test="${canManageBooks}">
|
||||
<a class="button button-secondary" href="${pageContext.request.contextPath}/books">管理图书</a>
|
||||
</c:if>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
</div>
|
||||
<div class="hero-actions">
|
||||
<a class="button button-primary" href="${pageContext.request.contextPath}/book-categories/new">新增分类</a>
|
||||
<a class="button button-secondary" href="${pageContext.request.contextPath}/books">管理图书</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
</div>
|
||||
<div class="hero-actions">
|
||||
<a class="button button-primary" href="${pageContext.request.contextPath}/books/new">新增图书</a>
|
||||
<a class="button button-secondary" href="${pageContext.request.contextPath}/book-categories">分类</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -69,8 +68,6 @@
|
||||
|
||||
<button class="button button-primary" type="submit">检索</button>
|
||||
<a class="button button-secondary" href="${pageContext.request.contextPath}/books">清空</a>
|
||||
<a class="button button-secondary" href="${pageContext.request.contextPath}/catalog">查看馆藏</a>
|
||||
<a class="button button-secondary" href="${pageContext.request.contextPath}/book-categories">分类</a>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
</div>
|
||||
<div class="hero-actions">
|
||||
<a class="button button-primary" href="${pageContext.request.contextPath}/readers/new">新增读者档案</a>
|
||||
<c:if test="${sessionScope.userRole == 'administrator'}">
|
||||
<a class="button button-secondary" href="${pageContext.request.contextPath}/admin/users">管理登录账户</a>
|
||||
</c:if>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
<h1 id="reports-title">报表中心</h1>
|
||||
<p>查看馆藏库存、借阅状况、逾期借阅和热门图书。</p>
|
||||
</div>
|
||||
<a class="button button-secondary" href="${pageContext.request.contextPath}/borrowing">借阅记录</a>
|
||||
</section>
|
||||
|
||||
<c:if test="${not empty errorMessage}">
|
||||
|
||||
Reference in New Issue
Block a user