-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwireframe.html
More file actions
1583 lines (1540 loc) · 76.5 KB
/
wireframe.html
File metadata and controls
1583 lines (1540 loc) · 76.5 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
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Library System Wireframes and Use Cases</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
color: #333;
}
h1 {
text-align: center;
color: #2c3e50;
margin-bottom: 30px;
border-bottom: 2px solid #3498db;
padding-bottom: 10px;
}
h2 {
color: #2980b9;
margin-top: 40px;
border-left: 4px solid #3498db;
padding-left: 10px;
}
h3 {
color: #16a085;
margin-top: 25px;
}
.wireframe-container {
background-color: #f9f9f9;
border: 1px solid #ddd;
border-radius: 5px;
padding: 20px;
margin: 20px 0;
overflow-x: auto;
}
.wireframe {
font-family: monospace;
white-space: pre;
line-height: 1.2;
color: #333;
}
.use-case {
background-color: #f8f9fa;
border-left: 3px solid #16a085;
padding: 15px;
margin: 20px 0;
border-radius: 0 5px 5px 0;
}
table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
}
th, td {
border: 1px solid #ddd;
padding: 12px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
.flex-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin: 20px 0;
}
.wireframe-box {
flex: 1;
min-width: 300px;
border: 1px solid #ddd;
border-radius: 5px;
padding: 15px;
background-color: #f9f9f9;
}
.section-divider {
height: 2px;
background-color: #ecf0f1;
margin: 40px 0;
}
.tab-container {
margin: 20px 0;
}
.tab-buttons {
display: flex;
overflow-x: auto;
border-bottom: 1px solid #ddd;
}
.tab-button {
padding: 10px 20px;
background-color: #f1f1f1;
border: none;
cursor: pointer;
transition: 0.3s;
font-weight: bold;
}
.tab-button:hover {
background-color: #ddd;
}
.tab-button.active {
background-color: #3498db;
color: white;
}
.tab-content {
display: none;
padding: 20px;
border: 1px solid #ddd;
border-top: none;
}
.tab-content.active {
display: block;
}
.nested-tab-buttons {
display: flex;
overflow-x: auto;
margin-bottom: 20px;
}
.nested-tab-button {
padding: 8px 16px;
background-color: #e9ecef;
border: 1px solid #dee2e6;
cursor: pointer;
margin-right: 5px;
border-radius: 4px;
font-weight: bold;
}
.nested-tab-button:hover {
background-color: #dee2e6;
}
.nested-tab-button.active {
background-color: #4e73df;
color: white;
border-color: #4e73df;
}
.nested-tab-content {
display: none;
}
.nested-tab-content.active {
display: block;
}
@media (max-width: 768px) {
.flex-container {
flex-direction: column;
}
.nested-tab-buttons {
flex-direction: column;
}
.nested-tab-button {
margin-bottom: 5px;
}
}
</style>
</head>
<body>
<h1>Library System Wireframes and Use Cases</h1>
<div class="tab-container">
<div class="tab-buttons">
<button class="tab-button active" onclick="openTab(event, 'wireframes')">Wireframe Diagrams</button>
<button class="tab-button" onclick="openTab(event, 'usecases')">Use Cases</button>
<button class="tab-button" onclick="openTab(event, 'sitemap')">Site Map</button>
</div>
<div id="wireframes" class="tab-content active">
<h2>System Wireframe Diagrams</h2>
<p>The following wireframes show the layout and functional elements of each page in the system.</p>
<div class="nested-tab-buttons">
<button class="nested-tab-button active" onclick="openNestedTab(event, 'user-wireframes')">User Interface</button>
<button class="nested-tab-button" onclick="openNestedTab(event, 'admin-wireframes')">Admin Interface</button>
</div>
<div id="user-wireframes" class="nested-tab-content active">
<h3>Login Page (index.html)</h3>
<div class="wireframe-container">
<div class="wireframe">
+-------------------------------------------+
| Library Login Page |
+-------------------------------------------+
| |
| |
| +-------------------------------+ |
| | Library Login | |
| | | |
| | Username: [________________]| |
| | | |
| | Password: [________________]| |
| | | |
| | [ Login ] | |
| | | |
| | Error message display area | |
| +-------------------------------+ |
| |
| |
+-------------------------------------------+
</div>
</div>
<h3>Home Page (home.html)</h3>
<div class="wireframe-container">
<div class="wireframe">
+-------------------------------------------+
| Logo Home Borrow Contact Feedback Logout |
+-------------------------------------------+
| |
| Welcome to HKCC Library |
| Your gateway to knowledge and success |
| |
| [Browse Collection] [Need Help?] |
| |
+-------------------------------------------+
| |
| Our Services |
+-------------------------------------------+
| | | |
| Extensive | Digital | Study |
| Collection | Resources | Spaces |
| | | |
+-------------------------------------------+
| |
| Popular Categories |
+-------------------------------------------+
| Academic | Language | Personal Dev. |
| [Book img] | [Book img] | [Book img] |
| [Book img] | [Book img] | [Book img] |
+-------------------------------------------+
| |
| Library News & Events |
+-------------------------------------------+
| Research | New Book | Reading Club |
| Workshop | Arrivals | Meeting |
| | | |
+-------------------------------------------+
| |
| Opening Hours | Need Help? |
| Mon-Fri | Our librarians |
| 8:30-20:00 | can assist... |
| ... | [Contact Us] |
| |
+-------------------------------------------+
| |
| © 2025 HKCC Library |
| Contact: [email protected] |
| |
+-------------------------------------------+
</div>
</div>
<h3>Borrow and Return Page (BorrowReturn.html)</h3>
<div class="wireframe-container">
<div class="wireframe">
+-------------------------------------------+
| Logo Home Borrow Contact Feedback Logout |
+-------------------------------------------+
| |
| Borrow and Return |
| |
+-------------------------------------------+
| |
| Available Books [My Status] |
| |
+-------------------------------------------+
| |
| Search: [__] Category: [__] Status: [___] |
| |
+-------------------------------------------+
| | | | |
| [Book 1] | [Book 2] | [Book 3] | [Book 4] |
| Title | Title | Title | Title |
| Author | Author | Author | Author |
| Year | Year | Year | Year |
| [Tag] | [Tag] | [Tag] | [Tag] |
| [Borrow] | [Return] | [Borrow] | [Borrow] |
| | | | |
+-------------------------------------------+
| |
| © 2025 HKCC Library |
| Contact: [email protected] |
| |
+-------------------------------------------+
</div>
</div>
<h3>User Status Page (user-status.html)</h3>
<div class="wireframe-container">
<div class="wireframe">
+-------------------------------------------+
| Logo Home Borrow Contact Feedback Logout |
+-------------------------------------------+
| |
| My Borrowing Status |
| |
+-------------------------------------------+
| |
| My Borrowed Books [Browse Books] |
| |
+-------------------------------------------+
| |
| Book 1 | Book Title | Author | Due Date |
| Status: Due in X days | [Return Book] |
| |
| Book 2 | Book Title | Author | Due Date |
| Status: Overdue by X days | [Return Book] |
| |
+-------------------------------------------+
| |
| Borrowing History |
+-------------------------------------------+
| Title | Author | Returned Date | Status |
|-------|--------|---------------|----------|
| Book 3| Author | 2025/3/15 | Returned |
| Book 4| Author | 2025/2/20 | Returned |
+-------------------------------------------+
| |
| © 2025 HKCC Library |
| Contact: [email protected] |
| |
+-------------------------------------------+
</div>
</div>
<h3>Contact Us Page (Contact Us.html)</h3>
<div class="wireframe-container">
<div class="wireframe">
+-------------------------------------------+
| Logo Home Borrow Contact Feedback Logout |
+-------------------------------------------+
| |
| Contact Us |
| We're here to help with any questions |
| about our library services |
| |
+-------------------------------------------+
| | | |
| Phone | Email | Address |
| [icon] | [icon] | [icon] |
| | | |
| 3746 0860 |library@cpce-| 4-6/F, North |
| |polyu.edu.hk | Tower, PolyU |
| Monday- | | West Kowloon |
| Friday: | We typically| Campus |
| 9:00 AM- | respond | |
| 6:00 PM | within | 9 Hoi Ting Road,|
| | 24 hours | Yau Ma Tei, |
| | | Kowloon, |
| | | Hong Kong |
| | | |
| | |[How to get here]|
| | | |
+-------------------------------------------+
| |
| Library Hours | Our Location |
+-------------------------------------------+
| | |
| Monday - Friday | |
| 8:30 AM - 8:00 PM | [Google Map] |
| | |
| Saturday | |
| 9:00 AM - 5:00 PM | |
| | |
| Sunday & Public | |
| Holidays: Closed | |
| | |
+-------------------------------------------+
| |
| We look forward to assisting you |
| |
| Our friendly staff is always ready to |
| help with your library needs. |
| |
+-------------------------------------------+
| |
| © 2025 HKCC Library. All rights reserved. |
| |
| Contact: [email protected] |
| |
+-------------------------------------------+
</div>
</div>
<h3>Feedback Page (feedback.html)</h3>
<div class="wireframe-container">
<div class="wireframe">
+-------------------------------------------+
| Logo Home Borrow Contact Feedback Logout |
+-------------------------------------------+
| |
| Borrowing Feedback |
| |
+-------------------------------------------+
| |
| Please help us improve by completing |
| this feedback form |
| |
+-------------------------------------------+
| |
| Your Information: |
| First name: [_________________] |
| Student ID: [_________________] |
| Program: [Dropdown selection] |
| |
| Borrowing Experience: |
| 1. Did you find the book? ○Yes ○No |
| |
| 2. How easy was it to borrow? |
| ○1 ○2 ○3 ○4 ○5 |
| Very Difficult --- Very Easy |
| |
| 3. How satisfied are you? |
| ○1 ○2 ○3 ○4 ○5 |
| Very Dissatisfied --- Very Satisfied|
| |
| 4. Suggestions to improve: |
| [ ] |
| [ ] |
| |
| [ Submit Feedback ] |
| |
+-------------------------------------------+
| |
| © 2025 HKCC Library |
| Contact: [email protected] |
| |
+-------------------------------------------+
</div>
</div>
</div>
<div id="admin-wireframes" class="nested-tab-content">
<h3>Login Page (index.html)</h3>
<div class="wireframe-container">
<div class="wireframe">
+-------------------------------------------+
| Library Login Page |
+-------------------------------------------+
| |
| |
| +-------------------------------+ |
| | Library Login | |
| | | |
| | Username: [________________]| |
| | | |
| | Password: [________________]| |
| | | |
| | [ Login ] | |
| | | |
| | Error message display area | |
| +-------------------------------+ |
| |
| |
+-------------------------------------------+
</div>
</div>
<h3>Dashboard (Dashboard.html)</h3>
<div class="wireframe-container">
<div class="wireframe">
+--------------------------------------+-----------------------------+
| SIDEBAR | MAIN CONTENT |
+--------------------------------------+-----------------------------+
| | |
| Library System | Dashboard Export Print |
| +--------------------------+ | [This Month ▼] |
| | Dashboard | | |
| | Book Catalog | +-----------------------------+
| | Book Analytics | | SUMMARY CARDS |
| | Late Returns | +-----------------------------+
| +--------------------------+ | +---------+ +---------+ |
| | |Total | |Available| |
| | |Books | |Books | |
| | |1,248 | |876 | |
| | +---------+ +---------+ |
| | |
| | +---------+ +---------+ |
| | |Checked | |Overdue | |
| | |Out | |Books | |
| | |312 | |42 | |
| | +---------+ +---------+ |
| | |
| +-----------------------------+
| | CHARTS |
| +-----------------------------+
| | +---------------+ +-------+ |
| | |Monthly | |Book | |
| | |Activity Chart | |Categ. | |
| | | | |Chart | |
| | | | | | |
| | | | | | |
| | +---------------+ +-------+ |
| | |
| +-----------------------------+
| | RECENT ACTIVITY | POPULAR |
| +-----------------------------+
| | +--------------++---------+ |
| | |Book Checked ||Most | |
| | |Out: "Title" ||Popular | |
| | | ||Books | |
| | |New Book ||[List] | |
| | |Added: "Title"|| | |
| | | || | |
| | |Book Returned:|| | |
| | |"Title" || | |
| | +--------------++---------+ |
+--------------------------------------+-----------------------------+
</div>
</div>
<h3>Book Catalog (BookCatalog.html)</h3>
<div class="wireframe-container">
<div class="wireframe">
+--------------------------------------+-----------------------------+
| SIDEBAR | MAIN CONTENT |
+--------------------------------------+-----------------------------+
| | |
| Library System | Book Management [Add Book] |
| +--------------------------+ | |
| | Dashboard | +-----------------------------+
| | Book Catalog | | SEARCH AND FILTER |
| | Book Analytics | +-----------------------------+
| | Late Returns | | [Search...] [Status▼][Genre▼] |
| +--------------------------+ | |
| +-----------------------------+
| | BOOKS TABLE |
| +-----------------------------+
| | Title | Author | ISBN |... |
| |----------------------------+|
| | Book1 | Author1| ISBN1|... |
| | Book2 | Author2| ISBN2|... |
| | Book3 | Author3| ISBN3|... |
| | Book4 | Author4| ISBN4|... |
| | Book5 | Author5| ISBN5|... |
| | Book6 | Author6| ISBN6|... |
| | |
| +-----------------------------+
| | PAGINATION |
| +-----------------------------+
| | [Prev] [1] [2] [3] [Next] |
| | |
+--------------------------------------+-----------------------------+
</div>
</div>
<h3>Add Book Modal</h3>
<div class="wireframe-container">
<div class="wireframe">
+-----------------------------------------+
| Add New Book X|
+-----------------------------------------+
| |
| Title: [_________________________] |
| |
| Author: [_________________________] |
| |
| ISBN: [_________________________] |
| |
| Genre: [Fiction ▼] |
| |
| Status: [Available ▼] |
| |
+-----------------------------------------+
| |
| [Cancel] [Save Book] |
| |
+-----------------------------------------+
</div>
</div>
<h3>Edit Book Modal</h3>
<div class="wireframe-container">
<div class="wireframe">
+-----------------------------------------+
| Edit Book X|
+-----------------------------------------+
| |
| Title: [_________________________] |
| |
| Author: [_________________________] |
| |
| ISBN: [_________________________] |
| |
| Genre: [Fiction ▼] |
| |
| Status: [Available ▼] |
| |
+-----------------------------------------+
| |
| [Cancel] [Update Book] |
| |
+-----------------------------------------+
</div>
</div>
<h3>Delete Confirmation Modal</h3>
<div class="wireframe-container">
<div class="wireframe">
+-----------------------------------------+
| Confirm Delete X|
+-----------------------------------------+
| |
| Are you sure you want to delete this |
| book? This action cannot be undone. |
| |
| Book Title: "The Great Gatsby" |
| |
+-----------------------------------------+
| |
| [Cancel] [Delete] |
| |
+-----------------------------------------+
</div>
</div>
<h3>Book Analytics (BookAnalytic.html)</h3>
<div class="wireframe-container">
<div class="wireframe">
+--------------------------------------+-----------------------------+
| SIDEBAR | MAIN CONTENT |
+--------------------------------------+-----------------------------+
| | |
| Library System | Book Popularity & Borrowing |
| +--------------------------+ | [Export] [Print] [Filters] |
| | Dashboard | | |
| | Book Catalog | +-----------------------------+
| | Book Analytics | | SEARCH |
| | Late Returns | +-----------------------------+
| +--------------------------+ | [Search books...] |
| | |
| +-----------------------------+
| | ANALYTICS SECTION |
| +-----------------------------+
| | +---------------+ +-------+ |
| | |Most Popular | |Borrow | |
| | |Books | |Trends | |
| | |[This Month ▼] | |Chart | |
| | | | | | |
| | |[Book list] | | | |
| | | | | | |
| | +---------------+ +-------+ |
| | |
| +-----------------------------+
| | BORROWING RECORDS |
| +-----------------------------+
| | Title | Author | Patron |...|
| |----------------------------+|
| | Book1 | Author1| Patron1|...|
| | Book2 | Author2| Patron2|...|
| | Book3 | Author3| Patron3|...|
| | ... | ... | ... |...|
| | |
| +-----------------------------+
| | PAGINATION |
| +-----------------------------+
| | [Prev] [1] [2] [3] [Next] |
| | |
+--------------------------------------+-----------------------------+
</div>
</div>
<h3>Late Returns (LateReturns.html)</h3>
<div class="wireframe-container">
<div class="wireframe">
+--------------------------------------+-----------------------------+
| SIDEBAR | MAIN CONTENT |
+--------------------------------------+-----------------------------+
| | |
| Library System | Late Returns Management |
| +--------------------------+ | |
| | Dashboard | +-----------------------------+
| | Book Catalog | | OVERDUE ITEMS |
| | Book Analytics | +-----------------------------+
| | Late Returns | | Overdue Items [Notify All] |
| +--------------------------+ | |
| | Patron | Book | Due | Days |
| | ----------------------------+|
| | Patron1| Book1| 01/01| 5 |
| | Patron2| Book2| 01/02| 4 |
| | Patron3| Book3| 01/03| 3 |
| | Patron4| Book4| 01/04| 2 |
| | Patron5| Book5| 01/05| 1 |
| | |
| | Actions: [Notify] [Payment] |
| | |
+--------------------------------------+-----------------------------+
</div>
</div>
<h3>Notification Modal</h3>
<div class="wireframe-container">
<div class="wireframe">
+-----------------------------------------+
| Send Notification X|
+-----------------------------------------+
| |
| Notification Type: |
| [Email ▼] |
| |
| Custom Message: |
| +-------------------------------------+ |
| | Dear patron, | |
| | | |
| | This is a reminder that your book | |
| | is overdue. Please return it as | |
| | soon as possible. | |
| | | |
| | Thank you. | |
| +-------------------------------------+ |
| |
+-----------------------------------------+
| |
| [Cancel] [Send] |
| |
+-----------------------------------------+
</div>
</div>
<h3>Payment Modal</h3>
<div class="wireframe-container">
<div class="wireframe">
+-----------------------------------------+
| Update Payment Status X|
+-----------------------------------------+
| |
| Patron: John Doe |
| Book: The Great Gatsby |
| Due Date: 2025-01-01 |
| Current Fine: $5.50 |
| |
| Payment Amount ($): [_______] |
| |
| Update Status To: [Partially Paid ▼] |
| |
+-----------------------------------------+
| |
| [Cancel] [Update] |
| |
+-----------------------------------------+
</div>
</div>
</div>
</div>
<div id="usecases" class="tab-content">
<h2>Use Cases</h2>
<p>The following use cases describe how users interact with the library system:</p>
<div class="nested-tab-buttons">
<button class="nested-tab-button active" onclick="openNestedTab(event, 'user-cases')">User Use Cases</button>
<button class="nested-tab-button" onclick="openNestedTab(event, 'admin-cases')">Admin Use Cases</button>
</div>
<div id="user-cases" class="nested-tab-content active">
<div class="use-case">
<h3>Use Case 1: User Login</h3>
<table>
<tr>
<th width="20%">Use Case Name</th>
<td>User Login</td>
</tr>
<tr>
<th>Actors</th>
<td>Student</td>
</tr>
<tr>
<th>Preconditions</th>
<td>
<ul>
<li>User has a valid username and password</li>
<li>User accesses the system login page</li>
</ul>
</td>
</tr>
<tr>
<th>Main Flow</th>
<td>
<ol>
<li>User accesses the library system login page</li>
<li>System displays login form requesting username and password</li>
<li>User enters username and password</li>
<li>User clicks "Login" button</li>
<li>System verifies username and password</li>
<li>System redirects to the home page</li>
</ol>
</td>
</tr>
<tr>
<th>Alternative Flow</th>
<td>
<p><strong>4a. If username or password is incorrect:</strong></p>
<ol>
<li>System displays error message "Invalid username or password"</li>
<li>System allows user to retry</li>
</ol>
</td>
</tr>
<tr>
<th>Postconditions</th>
<td>
<ul>
<li>User successfully logs in and enters the student interface</li>
<li>System displays student functions</li>
</ul>
</td>
</tr>
</table>
</div>
<div class="use-case">
<h3>Use Case 2: Browse and Search Books</h3>
<table>
<tr>
<th width="20%">Use Case Name</th>
<td>Browse and Search Books</td>
</tr>
<tr>
<th>Actors</th>
<td>Student</td>
</tr>
<tr>
<th>Preconditions</th>
<td>
<ul>
<li>User has successfully logged into the system</li>
<li>User accesses the Borrow and Return page</li>
</ul>
</td>
</tr>
<tr>
<th>Main Flow</th>
<td>
<ol>
<li>User enters the Borrow and Return page</li>
<li>System displays book list with basic information (title, author, status)</li>
<li>User can browse the list or use search functionality</li>
<li>If using search:
<ol>
<li>User enters keywords in the search box</li>
<li>User optionally filters by category or availability</li>
<li>User clicks search button</li>
</ol>
</li>
<li>System displays books matching the search criteria</li>
</ol>
</td>
</tr>
<tr>
<th>Alternative Flow</th>
<td>
<p><strong>5a. If no books match the search criteria:</strong></p>
<ol>
<li>System displays "No books found" message</li>
<li>System provides option to clear search criteria</li>
</ol>
</td>
</tr>
<tr>
<th>Postconditions</th>
<td>
<ul>
<li>System displays books matching user's search criteria</li>
<li>User can view book details or perform borrowing actions</li>
</ul>
</td>
</tr>
</table>
</div>
<div class="use-case">
<h3>Use Case 3: Borrow a Book</h3>
<table>
<tr>
<th width="20%">Use Case Name</th>
<td>Borrow a Book</td>
</tr>
<tr>
<th>Actors</th>
<td>Student</td>
</tr>
<tr>
<th>Preconditions</th>
<td>
<ul>
<li>User has successfully logged into the system</li>
<li>User is browsing the Borrow and Return page</li>
<li>The book is available for borrowing</li>
</ul>
</td>
</tr>
<tr>
<th>Main Flow</th>
<td>
<ol>
<li>User browses or searches for available books</li>
<li>User finds the book they want to borrow</li>
<li>User clicks the "Borrow" button next to the book</li>
<li>System updates the book status to "Borrowed"</li>
<li>System sets the book's due date (default 7 days from now)</li>
<li>System displays confirmation message with due date</li>
<li>System adds the borrowing record to user's borrowing history</li>
</ol>
</td>
</tr>
<tr>
<th>Alternative Flow</th>
<td>
<p><strong>3a. If the book is already borrowed by another user:</strong></p>
<ol>
<li>System notifies user that the book is currently unavailable</li>
<li>System provides option to return to book browsing</li>
</ol>
<p><strong>3b. If user has reached maximum borrowing limit:</strong></p>
<ol>
<li>System notifies user they have reached borrowing limit</li>
<li>System provides option to view current borrowing status</li>
</ol>
</td>
</tr>
<tr>
<th>Postconditions</th>
<td>
<ul>
<li>Book status is updated to "Borrowed"</li>
<li>Book is added to user's borrowed list</li>
<li>System records the borrowing transaction</li>
</ul>
</td>
</tr>
</table>
</div>
<div class="use-case">
<h3>Use Case 4: Return a Book</h3>
<table>
<tr>
<th width="20%">Use Case Name</th>
<td>Return a Book</td>
</tr>
<tr>
<th>Actors</th>
<td>Student</td>
</tr>
<tr>
<th>Preconditions</th>
<td>
<ul>
<li>User has successfully logged into the system</li>
<li>User has books currently borrowed</li>
</ul>
</td>
</tr>
<tr>
<th>Main Flow</th>
<td>
<ol>
<li>User accesses "My Status" page to view borrowed books</li>
<li>System displays all currently borrowed books and their due dates</li>
<li>User clicks the "Return Book" button next to the book</li>
<li>System updates book status to "Available"</li>
<li>System updates user's borrowing history, recording return date</li>
<li>System displays confirmation message</li>
</ol>
</td>
</tr>
<tr>
<th>Alternative Flow</th>
<td>
<p><strong>4a. If book is returned after due date:</strong></p>
<ol>
<li>System calculates number of overdue days</li>
<li>System records the overdue status</li>
<li>System notifies user of potential late fees</li>
<li>Continues with return process</li>
</ol>
</td>
</tr>
<tr>
<th>Postconditions</th>
<td>
<ul>
<li>Book status is updated to "Available"</li>
<li>Book is removed from user's current borrowing list</li>
<li>System updates borrowing history record</li>
</ul>
</td>
</tr>
</table>
</div>
<div class="use-case">
<h3>Use Case 5: Submit Feedback</h3>
<table>
<tr>
<th width="20%">Use Case Name</th>
<td>Submit Feedback</td>
</tr>
<tr>