├── CSS ├── admin ├── wrong.css ├── studWrongStyle.css ├── searchResultStyle.css ├── styleHome.css ├── studHomeStyle.css ├── updateResultStyle.css ├── adminRegisterStyle.css ├── studRegisterStyle.css ├── addBookStyle.css ├── adminLoginStyle.css ├── mainStyle.css ├── studLoginStyle.css ├── borrowerStyle.css ├── bookSubmissionStyle.css ├── updateBookStyle.css ├── bookListStyle.css ├── searchBookStyle.css ├── studBookList.Style.css ├── studFineDetailStyle.css ├── studIssuedStyle.css ├── studRecordStyle.css └── studSearchBookStyle.css ├── .gitattributes ├── Images ├── ad.png ├── admin.png ├── book1.jpeg ├── book2.png ├── hom2.jpg ├── home.jpg ├── home1.jpg ├── home3.png ├── home4.jpg ├── home5.jpg ├── home6.jpg ├── home7.jpg ├── wrong.jpg ├── studMain.png ├── students.png ├── adminLogin.png ├── adminMain.png └── studRegistration.png ├── Logout.php ├── Screenshots ├── home.JPG ├── search.JPG ├── stud.JPG ├── register.JPG ├── add books.JPG └── submission.JPG ├── wrongId.php ├── studWrong.php ├── home.php ├── main.php ├── studentHome.php ├── LICENSE ├── searchBookResult.php ├── README.md ├── studIssued.php ├── studBookList.php ├── adminLogin.php ├── studRecord.php ├── bookList.php ├── studFineDetail.php ├── updateBook.php ├── searchBook.php ├── studBookSearch.php ├── addBook.php ├── updateBookResult.php ├── studLogin.php ├── bookSubmission.php ├── studRegistration.php ├── borrower.php └── adminRegister.php /CSS/admin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /Images/ad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/ad.png -------------------------------------------------------------------------------- /Logout.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Images/admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/admin.png -------------------------------------------------------------------------------- /Images/book1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/book1.jpeg -------------------------------------------------------------------------------- /Images/book2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/book2.png -------------------------------------------------------------------------------- /Images/hom2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/hom2.jpg -------------------------------------------------------------------------------- /Images/home.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/home.jpg -------------------------------------------------------------------------------- /Images/home1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/home1.jpg -------------------------------------------------------------------------------- /Images/home3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/home3.png -------------------------------------------------------------------------------- /Images/home4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/home4.jpg -------------------------------------------------------------------------------- /Images/home5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/home5.jpg -------------------------------------------------------------------------------- /Images/home6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/home6.jpg -------------------------------------------------------------------------------- /Images/home7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/home7.jpg -------------------------------------------------------------------------------- /Images/wrong.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/wrong.jpg -------------------------------------------------------------------------------- /Images/studMain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/studMain.png -------------------------------------------------------------------------------- /Images/students.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/students.png -------------------------------------------------------------------------------- /Images/adminLogin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/adminLogin.png -------------------------------------------------------------------------------- /Images/adminMain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/adminMain.png -------------------------------------------------------------------------------- /Screenshots/home.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Screenshots/home.JPG -------------------------------------------------------------------------------- /Screenshots/search.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Screenshots/search.JPG -------------------------------------------------------------------------------- /Screenshots/stud.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Screenshots/stud.JPG -------------------------------------------------------------------------------- /Screenshots/register.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Screenshots/register.JPG -------------------------------------------------------------------------------- /Images/studRegistration.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Images/studRegistration.png -------------------------------------------------------------------------------- /Screenshots/add books.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Screenshots/add books.JPG -------------------------------------------------------------------------------- /Screenshots/submission.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SatyamSoni23/Library-Management-System/HEAD/Screenshots/submission.JPG -------------------------------------------------------------------------------- /wrongId.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | Library Managemenr System 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |
17 |
18 |
19 | 20 |

Wrong username or password

21 |
22 |
23 | 24 | -------------------------------------------------------------------------------- /studWrong.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | Library Managemenr System 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |
17 |
18 |
19 | 20 |

Wrong username or password

21 |
22 |
23 | 24 | -------------------------------------------------------------------------------- /home.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | Library Managemenr System 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |
17 |
18 |
19 |

ADMIN

20 | 21 |

22 |
23 |
24 | 25 | -------------------------------------------------------------------------------- /main.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | Library Managemenr System 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |
17 |
18 |
19 |

Library Management System

20 | 21 |

22 |
23 |
24 | 25 | -------------------------------------------------------------------------------- /studentHome.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | Library Managemenr System 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |
17 |
18 |
19 |

STUDENT

20 | 21 |

22 |
23 |
24 | 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Satyam Soni 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /searchBookResult.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | Library Managemenr System 9 | 10 | 11 | 12 | 13 |
14 |
15 | 16 |
17 |
18 | Add Books 19 | Books Search 20 | Book Update 21 | Issue Book 22 | Book Submission 23 | Book List 24 | Student Record 25 | Logout 26 |
27 |
28 |

Search Books

29 | 30 |
31 |
32 |
33 | 34 | -------------------------------------------------------------------------------- /CSS/wrong.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 5px 20px 20px 20px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 20px 20px 20px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | #bottomLayout{ 29 | height: 320px; 30 | width: 1300px; 31 | border-radius: 10px; 32 | opacity: 0.9; 33 | background-color: #ffffff; 34 | margin-bottom: 20px; 35 | border-style: dashed; 36 | border-radius: 10px; 37 | border-color: #b61827; 38 | } 39 | #bottom-left{ 40 | float: left; 41 | margin-left: 280px; 42 | margin-top:35px; 43 | text-decoration: none; 44 | } 45 | #bottom-right{ 46 | float: right; 47 | margin-right: 280px; 48 | margin-top:20px; 49 | } 50 | #linkAdmin{ 51 | text-decoration: none; 52 | color: #485460; 53 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 54 | } 55 | #wrongUserPass{ 56 | font-size: 1.2em; 57 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 58 | color: #c0392b; 59 | font-weight: bold; 60 | 61 | } 62 | #wrongImage{ 63 | height: 150px; 64 | width: 150px; 65 | padding-top: 35px; 66 | } 67 | 68 | #bottomContentLeft{ 69 | font-size:1.3em; 70 | color: #002171; 71 | font-weight:bold; 72 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 73 | } 74 | -------------------------------------------------------------------------------- /CSS/studWrongStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 5px 20px 20px 20px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 20px 20px 20px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | #bottomLayout{ 29 | height: 320px; 30 | width: 1300px; 31 | border-radius: 10px; 32 | opacity: 0.9; 33 | background-color: #ffffff; 34 | margin-bottom: 20px; 35 | border-style: dashed; 36 | border-radius: 10px; 37 | border-color: #b61827; 38 | } 39 | #bottom-left{ 40 | float: left; 41 | margin-left: 280px; 42 | margin-top:35px; 43 | text-decoration: none; 44 | } 45 | #bottom-right{ 46 | float: right; 47 | margin-right: 280px; 48 | margin-top:20px; 49 | } 50 | #linkAdmin{ 51 | text-decoration: none; 52 | color: #485460; 53 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 54 | } 55 | #wrongUserPass{ 56 | font-size: 1.2em; 57 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 58 | color: #c0392b; 59 | font-weight: bold; 60 | 61 | } 62 | #wrongImage{ 63 | height: 150px; 64 | width: 150px; 65 | padding-top: 35px; 66 | } 67 | 68 | #bottomContentLeft{ 69 | font-size:1.3em; 70 | color: #002171; 71 | font-weight:bold; 72 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 73 | } 74 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Library-Management-System 2 | The project titled Library Management System is Library management software for monitoring and controlling the transactions in a library. The project "Library Management System" mainly focuses on basic operations in a library like adding new members, new books, and updating new information, searching books and members, and facility to borrow and return books. 3 | 4 | 5 | # Installation 6 | 7 | 1. Install XAMPP or WAMPP. 8 | 9 | 2. Open XAMPP Control panal and start [apache] and [mysql] . 10 | 11 | 3. Download project from github(https://github.com/SatyamSoni23/Library-Management-System) 12 | 13 | 4. Extract files in C:\\xampp\htdocs\. 14 | 15 | 5. Open link localhost/phpmyadmin 16 | 17 | 6. Click on new at side navbar. 18 | 19 | 7. Give your a database name example "abc" as hit on create button. 20 | 21 | 8. After creating database name. 22 | 23 | 9. Edit database name, host name, database username, database password in studLogin.php and studRegistration.php 24 | 25 | 10. If you like to edit table names, id format as your wise, you can edit at studRegistration.php 26 | 27 | 11. Open any browser and type http://localhost/ Library-Management-System. 28 | 29 | # Screenshots 30 | 31 | ![Image of adduser](https://github.com/SatyamSoni23/Library-Management-System/blob/master/Screenshots/home.JPG) 32 | ![Image of adduser](https://github.com/SatyamSoni23/Library-Management-System/blob/master/Screenshots/register.JPG) 33 | ![Image of adduser](https://github.com/SatyamSoni23/Library-Management-System/blob/master/Screenshots/stud.JPG) 34 | ![Image of adduser](https://github.com/SatyamSoni23/Library-Management-System/blob/master/Screenshots/add%20books.JPG) 35 | ![Image of adduser](https://github.com/SatyamSoni23/Library-Management-System/blob/master/Screenshots/search.JPG) 36 | ![Image of adduser](https://github.com/SatyamSoni23/Library-Management-System/blob/master/Screenshots/submission.JPG) 37 | 38 | ## If you like my project hit a star button 39 | -------------------------------------------------------------------------------- /CSS/searchResultStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 0px 0px 0px 0px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 5px 5px 5px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | /* Add a black background color to the top navigation */ 29 | .topnav { 30 | width: 1300px; 31 | background-color: #333; 32 | overflow: hidden; 33 | border-radius: 10px; 34 | margin-top:5px; 35 | } 36 | 37 | /* Style the links inside the navigation bar */ 38 | .topnav a { 39 | float: left; 40 | color: #f2f2f2; 41 | text-align: center; 42 | padding: 14px 16px; 43 | text-decoration: none; 44 | font-size: 17px; 45 | } 46 | 47 | /* Change the color of links on hover */ 48 | .topnav a:hover { 49 | background-color: #ddd; 50 | color: black; 51 | } 52 | 53 | /* Add a color to the active/current link */ 54 | .topnav a.active { 55 | background-color: #c0392b; 56 | color: white; 57 | border-radius:5px; 58 | margin:5px; 59 | } 60 | .topnav a.active:hover{ 61 | background-color: #ddd; 62 | color: black; 63 | } 64 | #inActive{ 65 | border-radius:5px; 66 | margin:5px; 67 | background: 68 | } 69 | #bottomLayout{ 70 | height: auto; 71 | width: 1300px; 72 | border-radius: 10px; 73 | opacity: 2; 74 | background-color: #ffffff; 75 | margin-top: 5px; 76 | border-style: dashed; 77 | border-radius: 10px; 78 | border-color: #b61827; 79 | } 80 | #logout{ 81 | float: right; 82 | background: #c0392b; 83 | color: white; 84 | border-radius:5px; 85 | margin:5px; 86 | } 87 | #logout:hover{ 88 | background-color: #ddd; 89 | color: black; 90 | } 91 | -------------------------------------------------------------------------------- /studIssued.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Library Managemenr System 7 | 8 | 9 | 10 | 11 |
12 |
13 | 14 |
15 |
16 | Books Search 17 | Book List 18 | Issued 19 | Fine Details 20 | Logout 21 |
22 |
23 |

Book Issued

24 | 46 | 47 | Book Id 48 | Issue Date 49 | Return Date 50 | "; 51 | while($row = mysqli_fetch_array($result)) 52 | { 53 | echo ""; 54 | echo "" . $row['bookId'] . ""; 55 | echo "" . $row['issueDate'] . ""; 56 | echo "" . $row['returnDate'] . ""; 57 | echo ""; 58 | } 59 | echo "

"; 60 | } 61 | ?> 62 |
63 |
64 | 65 | -------------------------------------------------------------------------------- /studBookList.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Library Managemenr System 7 | 8 | 9 | 10 | 11 |
12 |
13 | 14 |
15 |
16 | Books Search 17 | Book List 18 | Issued 19 | Fine Details 20 | Logout 21 |
22 |
23 |

Book List

24 | 45 | 46 | Book Id 47 | Title 48 | Author Name 49 | Cost 50 | Quantity 51 | "; 52 | while($row = mysqli_fetch_array($result)) 53 | { 54 | echo ""; 55 | echo "" . $row['bookId'] . ""; 56 | echo "" . $row['title'] . ""; 57 | echo "" . $row['authorName'] . ""; 58 | echo "" . $row['cost'] . ""; 59 | echo "" . $row['quantity'] . ""; 60 | echo ""; 61 | } 62 | echo "

"; 63 | } 64 | ?> 65 |
66 |
67 | 68 | -------------------------------------------------------------------------------- /adminLogin.php: -------------------------------------------------------------------------------- 1 | connect_error) { 16 | die("Connection failed: " . $conn->connect_error); 17 | } 18 | $sql = "SELECT * FROM adminregistration WHERE username = '$username' AND password = '$password'"; 19 | $result = $conn->query($sql); 20 | 21 | if ($result->num_rows > 0) { 22 | header('Location: addBook.php'); 23 | } 24 | else 25 | { 26 | header('Location: wrongId.php'); 27 | } 28 | $conn->close(); 29 | } 30 | } 31 | ?> 32 | 33 | 34 | 35 | 36 | 37 | 38 | Library Managemenr System 39 | 40 | 41 | 42 | 43 |
44 |
45 | 46 |
47 |
48 |
49 |

Admin Login

50 |
51 |
52 | 53 | 54 | 55 |
Username:
Password:
56 |

57 |
58 |
59 |
60 |
61 | 62 | -------------------------------------------------------------------------------- /studRecord.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Library Managemenr System 7 | 8 | 9 | 10 | 11 |
12 |
13 | 14 |
15 |
16 | Add Books 17 | Books Search 18 | Book Update 19 | Issue Book 20 | Book Submission 21 | Book List 22 | Student Record 23 | Logout 24 |
25 |
26 |

Book List

27 | 48 | 49 | Student Username 50 | Book Id 51 | Issue Date 52 | Return Date 53 | "; 54 | while($row = mysqli_fetch_array($result)) 55 | { 56 | echo ""; 57 | echo "" . $row['studUsername'] . ""; 58 | echo "" . $row['bookId'] . ""; 59 | echo "" . $row['issueDate'] . ""; 60 | echo "" . $row['returnDate'] . ""; 61 | echo ""; 62 | } 63 | echo "

"; 64 | } 65 | ?> 66 |
67 |
68 | 69 | -------------------------------------------------------------------------------- /bookList.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Library Managemenr System 7 | 8 | 9 | 10 | 11 |
12 |
13 | 14 |
15 |
16 | Add Books 17 | Books Search 18 | Book Update 19 | Issue Book 20 | Book Submission 21 | Book List 22 | Student Record 23 | Logout 24 |
25 |
26 |

Book List

27 | 44 | 45 | Book Id 46 | Title 47 | Author Name 48 | Cost 49 | Quantity 50 | "; 51 | while($row = mysqli_fetch_array($result)) 52 | { 53 | echo ""; 54 | echo "" . $row['bookId'] . ""; 55 | echo "" . $row['title'] . ""; 56 | echo "" . $row['authorName'] . ""; 57 | echo "" . $row['cost'] . ""; 58 | echo "" . $row['quantity'] . ""; 59 | echo ""; 60 | } 61 | echo "

"; 62 | } 63 | } 64 | else{ 65 | session_destroy(); 66 | $_SESSION = array(); 67 | header("location: main.php"); 68 | } 69 | ?> 70 |
71 |
72 | 73 | -------------------------------------------------------------------------------- /CSS/styleHome.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 5px 20px 20px 20px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 20px 20px 20px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | #bottomLayout{ 29 | height: 380px; 30 | width: 1300px; 31 | border-radius: 10px; 32 | opacity: 0.9; 33 | background-color: #ffffff; 34 | border-style: dashed; 35 | border-radius: 10px; 36 | border-color: #b61827; 37 | 38 | } 39 | #bottom-left{ 40 | float: left; 41 | margin-left: 280px; 42 | 43 | text-decoration: none; 44 | } 45 | #bottom-right{ 46 | float: right; 47 | margin-right: 280px; 48 | 49 | text-decoration: none; 50 | } 51 | #linkAdmin{ 52 | text-decoration: none; 53 | font-size:1.4em; 54 | color: #002171; 55 | font-weight:bold; 56 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 57 | } 58 | #linkStudent{ 59 | text-decoration: none; 60 | font-size:1.4em; 61 | color: #002171; 62 | font-weight:bold; 63 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 64 | } 65 | #imageL{ 66 | -webkit-transition: all 0.4s ease-out; 67 | -moz-transition: all 0.4s ease-out; 68 | -o-transition: all 0.4s ease-out; 69 | -ms-transition: all 0.4s ease-out; 70 | transition: all 0.4s ease-out; 71 | } 72 | #imageL:hover{ 73 | height : 205px; 74 | width: 205px; 75 | transition:0.3s; 76 | -webkit-transition: all 0.4s ease-in; 77 | -moz-transition: all 0.4s ease-in; 78 | -o-transition: all 0.4s ease-in; 79 | -ms-transition: all 0.4s ease-in; 80 | transition: all 0.4s ease-in; 81 | } 82 | #imageR{ 83 | -webkit-transition: all 0.4s ease-out; 84 | -moz-transition: all 0.4s ease-out; 85 | -o-transition: all 0.4s ease-out; 86 | -ms-transition: all 0.4s ease-out; 87 | transition: all 0.4s ease-out; 88 | } 89 | #imageR:hover{ 90 | height: 205px; 91 | width: 205px; 92 | transition:0.3s; 93 | -webkit-transition: all 0.4s ease-in; 94 | -moz-transition: all 0.4s ease-in; 95 | -o-transition: all 0.4s ease-in; 96 | -ms-transition: all 0.4s ease-in; 97 | transition: all 0.4s ease-in; 98 | } 99 | -------------------------------------------------------------------------------- /CSS/studHomeStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 5px 20px 20px 20px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 20px 20px 20px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | #bottomLayout{ 29 | height: 380px; 30 | width: 1300px; 31 | border-radius: 10px; 32 | opacity: 0.9; 33 | background-color: #ffffff; 34 | border-style: dashed; 35 | border-radius: 10px; 36 | border-color: #b61827; 37 | 38 | } 39 | #bottom-left{ 40 | float: left; 41 | margin-left: 280px; 42 | 43 | text-decoration: none; 44 | } 45 | #bottom-right{ 46 | float: right; 47 | margin-right: 280px; 48 | 49 | text-decoration: none; 50 | } 51 | #linkAdmin{ 52 | text-decoration: none; 53 | font-size:1.4em; 54 | color: #002171; 55 | font-weight:bold; 56 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 57 | } 58 | #linkStudent{ 59 | text-decoration: none; 60 | font-size:1.4em; 61 | color: #002171; 62 | font-weight:bold; 63 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 64 | } 65 | #imageL{ 66 | -webkit-transition: all 0.4s ease-out; 67 | -moz-transition: all 0.4s ease-out; 68 | -o-transition: all 0.4s ease-out; 69 | -ms-transition: all 0.4s ease-out; 70 | transition: all 0.4s ease-out; 71 | } 72 | #imageL:hover{ 73 | height : 205px; 74 | width: 205px; 75 | transition:0.3s; 76 | -webkit-transition: all 0.4s ease-in; 77 | -moz-transition: all 0.4s ease-in; 78 | -o-transition: all 0.4s ease-in; 79 | -ms-transition: all 0.4s ease-in; 80 | transition: all 0.4s ease-in; 81 | } 82 | #imageR{ 83 | -webkit-transition: all 0.4s ease-out; 84 | -moz-transition: all 0.4s ease-out; 85 | -o-transition: all 0.4s ease-out; 86 | -ms-transition: all 0.4s ease-out; 87 | transition: all 0.4s ease-out; 88 | } 89 | #imageR:hover{ 90 | height: 205px; 91 | width: 205px; 92 | transition:0.3s; 93 | -webkit-transition: all 0.4s ease-in; 94 | -moz-transition: all 0.4s ease-in; 95 | -o-transition: all 0.4s ease-in; 96 | -ms-transition: all 0.4s ease-in; 97 | transition: all 0.4s ease-in; 98 | } 99 | -------------------------------------------------------------------------------- /studFineDetail.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Library Managemenr System 7 | 8 | 9 | 10 | 11 |
12 |
13 | 14 |
15 |
16 | Books Search 17 | Book List 18 | Issued 19 | Fine Details 20 | Logout 21 |
22 |
23 |

Fine Details

24 | query($sql1); 48 | if($result->num_rows > 0) 49 | { 50 | echo " 51 | 52 | 53 | 54 | "; 55 | while($row = mysqli_fetch_array($result)) 56 | { 57 | echo ""; 58 | echo ""; 59 | $datetime1 = strtotime($row['returnDate']); 60 | $datetime2 = strtotime($currentDate); 61 | $secs = $datetime2 - $datetime1; 62 | $days = $secs / 86400; 63 | echo ""; 64 | echo ""; 65 | } 66 | echo "
Book IdExtra Days
" . $row['bookId'] . "" . $days . "


"; 67 | } 68 | else 69 | { 70 | echo "No Fine"; 71 | } 72 | $conn->close(); 73 | } 74 | 75 | ?> 76 |
77 |
78 | 79 | -------------------------------------------------------------------------------- /updateBook.php: -------------------------------------------------------------------------------- 1 | query($sql)) 21 | { 22 | $_SESSION['bookId'] = $bookId; 23 | header('Location: updateBookResult.php'); 24 | } 25 | else 26 | { 27 | echo "Error: ". $sql ."
". $conn->error; 28 | } 29 | $conn->close(); 30 | } 31 | } 32 | else{ 33 | echo "Enter bookId"; 34 | } 35 | } 36 | } 37 | else{ 38 | session_destroy(); 39 | $_SESSION = array(); 40 | header("location: main.php"); 41 | } 42 | ?> 43 | 44 | 45 | 46 | 47 | Library Managemenr System 48 | 49 | 50 | 51 | 52 |
53 |
54 | 55 |
56 |
57 | Add Books 58 | Books Search 59 | Book Update 60 | Issue Book 61 | Book Submission 62 | Book List 63 | Student Record 64 | Logout 65 |
66 |
67 |

Book Update

68 |
69 | 70 | 71 |
Book Id:
72 |

73 |
74 | 75 |
76 |
77 | 78 | -------------------------------------------------------------------------------- /CSS/updateResultStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 0px 0px 0px 0px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 5px 5px 5px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | /* Add a black background color to the top navigation */ 29 | .topnav { 30 | width: 1300px; 31 | background-color: #333; 32 | overflow: hidden; 33 | border-radius: 10px; 34 | margin-top:5px; 35 | } 36 | 37 | /* Style the links inside the navigation bar */ 38 | .topnav a { 39 | float: left; 40 | color: #f2f2f2; 41 | text-align: center; 42 | padding: 14px 16px; 43 | text-decoration: none; 44 | font-size: 17px; 45 | } 46 | 47 | /* Change the color of links on hover */ 48 | .topnav a:hover { 49 | background-color: #ddd; 50 | color: black; 51 | } 52 | 53 | /* Add a color to the active/current link */ 54 | .topnav a.active { 55 | background-color: #c0392b; 56 | color: white; 57 | border-radius:5px; 58 | margin:5px; 59 | } 60 | .topnav a.active:hover{ 61 | background-color: #ddd; 62 | color: black; 63 | } 64 | #inActive{ 65 | border-radius:5px; 66 | margin:5px; 67 | background: 68 | } 69 | #bottomLayout{ 70 | height: auto; 71 | width: 1300px; 72 | border-radius: 10px; 73 | opacity: 0.9; 74 | background-color: #ffffff; 75 | margin-top: 5px; 76 | border-style: dashed; 77 | border-radius: 10px; 78 | border-color: #b61827; 79 | } 80 | input[type=submit] { 81 | width: 10em; 82 | height: 2.5em; 83 | background-color: #c0392b; 84 | color: #ffffff; 85 | padding: 5px; 86 | border-radius: 10px; 87 | 88 | } 89 | #logout{ 90 | float: right; 91 | background: #c0392b; 92 | color: white; 93 | border-radius:5px; 94 | margin:5px; 95 | } 96 | #logout:hover{ 97 | background-color: #ddd; 98 | color: black; 99 | } 100 | #rowHeading{ 101 | font-size: 1.1em; 102 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 103 | color: #c0392b; 104 | font-weight: italic; 105 | } 106 | #input{ 107 | border-color: #c0392b; 108 | border-radius: 5px; 109 | width: 180px; 110 | height: 20px; 111 | } -------------------------------------------------------------------------------- /CSS/adminRegisterStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 5px 20px 20px 20px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 20px 20px 20px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | #bottomLayout{ 29 | height: 380px; 30 | width: 1300px; 31 | border-radius: 10px; 32 | opacity: 0.9; 33 | background-color: #ffffff; 34 | margin-bottom: 10px; 35 | border-style: dashed; 36 | border-radius: 10px; 37 | border-color: #b61827; 38 | } 39 | #bottom-left{ 40 | float: left; 41 | margin-left: 240px; 42 | margin-top:40px; 43 | text-decoration: none; 44 | } 45 | #bottom-right{ 46 | float: right; 47 | margin-right: 240px; 48 | margin-top:40px; 49 | text-decoration: none; 50 | } 51 | form{ 52 | border-style: dashed; 53 | border-radius: 10px; 54 | border-color: #b61827; 55 | 56 | } 57 | #formLayout{ 58 | margin-top: 60px; 59 | } 60 | input[type=submit] { 61 | width: 10em; 62 | height: 2.5em; 63 | background-color: #c0392b; 64 | color: #ffffff; 65 | border-radius: 10px; 66 | font-size: 14px; 67 | font-family: 'Times New Roman', Times, serif; 68 | } 69 | input[type=submit]:hover{ 70 | background-color: #b61827; 71 | } 72 | #input{ 73 | border-color: #c0392b; 74 | border-radius: 5px; 75 | width: 180px; 76 | height: 20px; 77 | } 78 | #rowHeading{ 79 | font-size: 1.2em; 80 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 81 | color: #c0392b; 82 | font-weight: bold; 83 | } 84 | #bottomContentLeft{ 85 | font-size:1.2em; 86 | color: #002171; 87 | font-weight:bold; 88 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 89 | } 90 | #imageL{ 91 | -webkit-transition: all 0.4s ease-out; 92 | -moz-transition: all 0.4s ease-out; 93 | -o-transition: all 0.4s ease-out; 94 | -ms-transition: all 0.4s ease-out; 95 | transition: all 0.4s ease-out; 96 | } 97 | #imageL:hover{ 98 | height : 205px; 99 | width: 205px; 100 | transition:0.3s; 101 | -webkit-transition: all 0.4s ease-in; 102 | -moz-transition: all 0.4s ease-in; 103 | -o-transition: all 0.4s ease-in; 104 | -ms-transition: all 0.4s ease-in; 105 | transition: all 0.4s ease-in; 106 | } -------------------------------------------------------------------------------- /CSS/studRegisterStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 5px 20px 20px 20px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 20px 20px 20px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | #bottomLayout{ 29 | height: 380px; 30 | width: 1300px; 31 | border-radius: 10px; 32 | opacity: 0.9; 33 | background-color: #ffffff; 34 | margin-bottom: 10px; 35 | border-style: dashed; 36 | border-radius: 10px; 37 | border-color: #b61827; 38 | } 39 | #bottom-left{ 40 | float: left; 41 | margin-left: 240px; 42 | margin-top:60px; 43 | text-decoration: none; 44 | } 45 | #bottom-right{ 46 | float: right; 47 | margin-right: 240px; 48 | margin-top:40px; 49 | text-decoration: none; 50 | } 51 | form{ 52 | border-style: dashed; 53 | border-radius: 10px; 54 | border-color: #b61827; 55 | 56 | } 57 | #formLayout{ 58 | margin-top: 60px; 59 | } 60 | input[type=submit] { 61 | width: 10em; 62 | height: 2.5em; 63 | background-color: #c0392b; 64 | color: #ffffff; 65 | border-radius: 10px; 66 | font-size: 14px; 67 | font-family: 'Times New Roman', Times, serif; 68 | } 69 | input[type=submit]:hover{ 70 | background-color: #b61827; 71 | } 72 | #input{ 73 | border-color: #c0392b; 74 | border-radius: 5px; 75 | width: 180px; 76 | height: 20px; 77 | } 78 | #rowHeading{ 79 | font-size: 1.2em; 80 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 81 | color: #c0392b; 82 | font-weight: bold; 83 | } 84 | #bottomContentLeft{ 85 | font-size:1.2em; 86 | color: #002171; 87 | font-weight:bold; 88 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 89 | } 90 | #imageL{ 91 | -webkit-transition: all 0.4s ease-out; 92 | -moz-transition: all 0.4s ease-out; 93 | -o-transition: all 0.4s ease-out; 94 | -ms-transition: all 0.4s ease-out; 95 | transition: all 0.4s ease-out; 96 | } 97 | #imageL:hover{ 98 | height : 205px; 99 | width: 205px; 100 | transition:0.3s; 101 | -webkit-transition: all 0.4s ease-in; 102 | -moz-transition: all 0.4s ease-in; 103 | -o-transition: all 0.4s ease-in; 104 | -ms-transition: all 0.4s ease-in; 105 | transition: all 0.4s ease-in; 106 | } -------------------------------------------------------------------------------- /CSS/addBookStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 0px 0px 0px 0px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 5px 5px 5px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | /* Add a black background color to the top navigation */ 29 | .topnav { 30 | width: 1300px; 31 | background-color: #333; 32 | overflow: hidden; 33 | border-radius: 10px; 34 | margin-top:5px; 35 | } 36 | 37 | /* Style the links inside the navigation bar */ 38 | .topnav a { 39 | float: left; 40 | color: #f2f2f2; 41 | text-align: center; 42 | padding: 14px 16px; 43 | text-decoration: none; 44 | font-size: 17px; 45 | } 46 | 47 | /* Change the color of links on hover */ 48 | .topnav a:hover { 49 | background-color: #ddd; 50 | color: black; 51 | } 52 | 53 | /* Add a color to the active/current link */ 54 | .topnav a.active { 55 | background-color: #c0392b; 56 | color: white; 57 | border-radius:5px; 58 | margin:5px; 59 | } 60 | .topnav a.active:hover{ 61 | background-color: #ddd; 62 | color: black; 63 | } 64 | #inActive{ 65 | border-radius:5px; 66 | margin:5px; 67 | background: 68 | } 69 | #bottomLayout{ 70 | height: auto; 71 | width: 1300px; 72 | border-radius: 10px; 73 | opacity: 0.9; 74 | background-color: #ffffff; 75 | margin-top: 5px; 76 | border-style: dashed; 77 | border-radius: 10px; 78 | border-color: #b61827; 79 | } 80 | #logout{ 81 | float: right; 82 | background: #c0392b; 83 | color: white; 84 | border-radius:5px; 85 | margin:5px; 86 | } 87 | #logout:hover{ 88 | background-color: #ddd; 89 | color: black; 90 | } 91 | input[type=submit] { 92 | width: 10em; 93 | height: 2.5em; 94 | background-color: #c0392b; 95 | color: #ffffff; 96 | padding: 5px; 97 | border-radius: 10px; 98 | } 99 | input[type=submit]:hover{ 100 | background-color: #b61827; 101 | } 102 | #rowHeading{ 103 | font-size: 1.1em; 104 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 105 | color: #c0392b; 106 | font-weight: italic; 107 | } 108 | #input{ 109 | border-color: #c0392b; 110 | border-radius: 5px; 111 | width: 180px; 112 | height: 20px; 113 | } -------------------------------------------------------------------------------- /CSS/adminLoginStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 5px 20px 20px 20px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 20px 20px 20px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | #bottomLayout{ 29 | height: 380px; 30 | width: 1300px; 31 | border-radius: 10px; 32 | opacity: 0.9; 33 | background-color: #ffffff; 34 | margin-bottom: 10px; 35 | border-style: dashed; 36 | border-radius: 10px; 37 | border-color: #b61827; 38 | } 39 | #bottom-left{ 40 | float: left; 41 | margin-left: 240px; 42 | margin-top:60px; 43 | text-decoration: none; 44 | } 45 | #bottom-right{ 46 | float: right; 47 | margin-right: 240px; 48 | margin-top:50px; 49 | text-decoration: none; 50 | } 51 | form{ 52 | border-style: dashed; 53 | border-radius: 10px; 54 | border-color: #b61827; 55 | padding: 25px; 56 | } 57 | #formLayout{ 58 | margin-top: 60px; 59 | } 60 | input[type=submit] { 61 | width: 10em; 62 | height: 2.5em; 63 | background-color: #c0392b; 64 | color: #ffffff; 65 | border-radius: 10px; 66 | font-size: 14px; 67 | font-family: 'Times New Roman', Times, serif; 68 | } 69 | input[type=submit]:hover{ 70 | background-color: #b61827; 71 | } 72 | #input{ 73 | border-color: #c0392b; 74 | border-radius: 5px; 75 | width: 180px; 76 | height: 20px; 77 | } 78 | #rowHeading{ 79 | font-size: 1.2em; 80 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 81 | color: #c0392b; 82 | font-weight: bold; 83 | } 84 | #bottomContentLeft{ 85 | font-size:1.2em; 86 | color: #002171; 87 | font-weight:bold; 88 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 89 | } 90 | #imageL{ 91 | -webkit-transition: all 0.4s ease-out; 92 | -moz-transition: all 0.4s ease-out; 93 | -o-transition: all 0.4s ease-out; 94 | -ms-transition: all 0.4s ease-out; 95 | transition: all 0.4s ease-out; 96 | } 97 | #imageL:hover{ 98 | height : 205px; 99 | width: 205px; 100 | transition:0.3s; 101 | -webkit-transition: all 0.4s ease-in; 102 | -moz-transition: all 0.4s ease-in; 103 | -o-transition: all 0.4s ease-in; 104 | -ms-transition: all 0.4s ease-in; 105 | transition: all 0.4s ease-in; 106 | } -------------------------------------------------------------------------------- /CSS/mainStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 5px 20px 20px 20px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 20px 20px 20px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | #bottomLayout{ 29 | height: 380px; 30 | width: 1300px; 31 | border-radius: 10px; 32 | opacity: 0.9; 33 | background-color: #ffffff; 34 | border-style: dashed; 35 | border-radius: 10px; 36 | border-color: #b61827; 37 | box-shadow: 5px 20px 20px 20px #3e2723; 38 | } 39 | #bottomLayout:hover{ 40 | 41 | box-shadow: 5px 20px 20px 20px #5d4037; 42 | } 43 | #bottom-left{ 44 | float: left; 45 | margin-left: 280px; 46 | 47 | text-decoration: none; 48 | } 49 | #imageL{ 50 | -webkit-transition: all 0.4s ease-out; 51 | -moz-transition: all 0.4s ease-out; 52 | -o-transition: all 0.4s ease-out; 53 | -ms-transition: all 0.4s ease-out; 54 | transition: all 0.4s ease-out; 55 | } 56 | #imageL:hover{ 57 | height : 205px; 58 | width: 185px; 59 | transition:0.3s; 60 | -webkit-transition: all 0.4s ease-in; 61 | -moz-transition: all 0.4s ease-in; 62 | -o-transition: all 0.4s ease-in; 63 | -ms-transition: all 0.4s ease-in; 64 | transition: all 0.4s ease-in; 65 | } 66 | #imageR{ 67 | -webkit-transition: all 0.4s ease-out; 68 | -moz-transition: all 0.4s ease-out; 69 | -o-transition: all 0.4s ease-out; 70 | -ms-transition: all 0.4s ease-out; 71 | transition: all 0.4s ease-out; 72 | } 73 | #imageR:hover{ 74 | height: 205px; 75 | width: 225px; 76 | transition:0.3s; 77 | -webkit-transition: all 0.4s ease-in; 78 | -moz-transition: all 0.4s ease-in; 79 | -o-transition: all 0.4s ease-in; 80 | -ms-transition: all 0.4s ease-in; 81 | transition: all 0.4s ease-in; 82 | } 83 | #bottom-right{ 84 | float: right; 85 | margin-right: 280px; 86 | 87 | text-decoration: none; 88 | } 89 | #linkAdmin{ 90 | text-decoration: none; 91 | font-size:1.4em; 92 | color: #002171; 93 | font-weight:bold; 94 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 95 | } 96 | #linkStudent{ 97 | text-decoration: none; 98 | font-size:1.4em; 99 | color: #002171; 100 | font-weight:bold; 101 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 102 | } 103 | 104 | -------------------------------------------------------------------------------- /CSS/studLoginStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 5px 20px 20px 20px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 20px 20px 20px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | #bottomLayout{ 29 | height: 380px; 30 | width: 1300px; 31 | border-radius: 10px; 32 | opacity: 0.9; 33 | background-color: #ffffff; 34 | margin-bottom: 10px; 35 | border-style: dashed; 36 | border-radius: 10px; 37 | border-color: #b61827; 38 | } 39 | #bottom-left{ 40 | float: left; 41 | margin-left: 240px; 42 | margin-top:60px; 43 | text-decoration: none; 44 | } 45 | #bottom-right{ 46 | float: right; 47 | margin-right: 240px; 48 | margin-top:40px; 49 | text-decoration: none; 50 | } 51 | form{ 52 | border-style: dashed; 53 | border-radius: 10px; 54 | border-color: #b61827; 55 | padding: 25px; 56 | } 57 | #formLayout{ 58 | margin-top: 60px; 59 | } 60 | input[type=submit] { 61 | width: 10em; 62 | height: 2.5em; 63 | background-color: #c0392b; 64 | color: #ffffff; 65 | border-radius: 10px; 66 | font-size: 14px; 67 | font-family: 'Times New Roman', Times, serif; 68 | } 69 | input[type=submit]:hover{ 70 | background-color: #b61827; 71 | } 72 | #input{ 73 | border-color: #c0392b; 74 | border-radius: 5px; 75 | width: 180px; 76 | height: 20px; 77 | } 78 | #rowHeading{ 79 | font-size: 1.2em; 80 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 81 | color: #c0392b; 82 | font-weight: bold; 83 | } 84 | #bottomContentLeft{ 85 | font-size:1.2em; 86 | color: #002171; 87 | font-weight:bold; 88 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 89 | } 90 | #imageL{ 91 | -webkit-transition: all 0.4s ease-out; 92 | -moz-transition: all 0.4s ease-out; 93 | -o-transition: all 0.4s ease-out; 94 | -ms-transition: all 0.4s ease-out; 95 | transition: all 0.4s ease-out; 96 | } 97 | #imageL:hover{ 98 | height : 205px; 99 | width: 205px; 100 | transition:0.3s; 101 | -webkit-transition: all 0.4s ease-in; 102 | -moz-transition: all 0.4s ease-in; 103 | -o-transition: all 0.4s ease-in; 104 | -ms-transition: all 0.4s ease-in; 105 | transition: all 0.4s ease-in; 106 | } -------------------------------------------------------------------------------- /CSS/borrowerStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 0px 0px 0px 0px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 5px 5px 5px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | /* Add a black background color to the top navigation */ 29 | .topnav { 30 | width: 1300px; 31 | background-color: #333; 32 | overflow: hidden; 33 | border-radius: 10px; 34 | margin-top:5px; 35 | } 36 | 37 | /* Style the links inside the navigation bar */ 38 | .topnav a { 39 | float: left; 40 | color: #f2f2f2; 41 | text-align: center; 42 | padding: 14px 16px; 43 | text-decoration: none; 44 | font-size: 17px; 45 | } 46 | 47 | /* Change the color of links on hover */ 48 | .topnav a:hover { 49 | background-color: #ddd; 50 | color: black; 51 | } 52 | 53 | /* Add a color to the active/current link */ 54 | .topnav a.active { 55 | background-color: #c0392b; 56 | color: white; 57 | border-radius:5px; 58 | margin:5px; 59 | } 60 | .topnav a.active:hover{ 61 | background-color: #ddd; 62 | color: black; 63 | } 64 | #inActive{ 65 | border-radius:5px; 66 | margin:5px; 67 | background: 68 | } 69 | 70 | input[type=submit] { 71 | width: 10em; 72 | height: 2.5em; 73 | background-color: #c0392b; 74 | color: #ffffff; 75 | padding: 5px; 76 | border-radius: 10px; 77 | 78 | } 79 | input[type=submit]:hover{ 80 | background-color: #b61827; 81 | } 82 | 83 | #bottomLayout{ 84 | height: auto; 85 | width: 1300px; 86 | border-radius: 10px; 87 | opacity: 0.9; 88 | background-color: #ffffff; 89 | margin-top: 5px; 90 | border-style: dashed; 91 | border-radius: 10px; 92 | border-color: #b61827; 93 | } 94 | #logout{ 95 | float: right; 96 | background: #c0392b; 97 | color: white; 98 | border-radius:5px; 99 | margin:5px; 100 | } 101 | #logout:hover{ 102 | background-color: #ddd; 103 | color: black; 104 | } 105 | #rowHeading{ 106 | font-size: 1.1em; 107 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 108 | color: #c0392b; 109 | font-weight: italic; 110 | } 111 | #input{ 112 | border-color: #c0392b; 113 | border-radius: 5px; 114 | width: 180px; 115 | height: 20px; 116 | } -------------------------------------------------------------------------------- /CSS/bookSubmissionStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 0px 0px 0px 0px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 5px 5px 5px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | /* Add a black background color to the top navigation */ 29 | .topnav { 30 | width: 1300px; 31 | background-color: #333; 32 | overflow: hidden; 33 | border-radius: 10px; 34 | margin-top:5px; 35 | } 36 | 37 | /* Style the links inside the navigation bar */ 38 | .topnav a { 39 | float: left; 40 | color: #f2f2f2; 41 | text-align: center; 42 | padding: 14px 16px; 43 | text-decoration: none; 44 | font-size: 17px; 45 | } 46 | 47 | /* Change the color of links on hover */ 48 | .topnav a:hover { 49 | background-color: #ddd; 50 | color: black; 51 | } 52 | 53 | /* Add a color to the active/current link */ 54 | .topnav a.active { 55 | background-color: #c0392b; 56 | color: white; 57 | border-radius:5px; 58 | margin:5px; 59 | } 60 | .topnav a.active:hover{ 61 | background-color: #ddd; 62 | color: black; 63 | } 64 | #inActive{ 65 | border-radius:5px; 66 | margin:5px; 67 | background: 68 | } 69 | 70 | input[type=submit] { 71 | width: 10em; 72 | height: 2.5em; 73 | background-color: #c0392b; 74 | color: #ffffff; 75 | padding: 5px; 76 | border-radius: 10px; 77 | 78 | } 79 | input[type=submit]:hover{ 80 | background-color: #b61827; 81 | } 82 | 83 | #bottomLayout{ 84 | height: auto; 85 | width: 1300px; 86 | border-radius: 10px; 87 | opacity: 0.9; 88 | background-color: #ffffff; 89 | margin-top: 5px; 90 | border-style: dashed; 91 | border-radius: 10px; 92 | border-color: #b61827; 93 | } 94 | #logout{ 95 | float: right; 96 | background: #c0392b; 97 | color: white; 98 | border-radius:5px; 99 | margin:5px; 100 | } 101 | #logout:hover{ 102 | background-color: #ddd; 103 | color: black; 104 | } 105 | #rowHeading{ 106 | font-size: 1.1em; 107 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 108 | color: #c0392b; 109 | font-weight: italic; 110 | } 111 | #input{ 112 | border-color: #c0392b; 113 | border-radius: 5px; 114 | width: 180px; 115 | height: 20px; 116 | } -------------------------------------------------------------------------------- /CSS/updateBookStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 0px 0px 0px 0px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 5px 5px 5px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | /* Add a black background color to the top navigation */ 29 | .topnav { 30 | width: 1300px; 31 | background-color: #333; 32 | overflow: hidden; 33 | border-radius: 10px; 34 | margin-top:5px; 35 | } 36 | 37 | /* Style the links inside the navigation bar */ 38 | .topnav a { 39 | float: left; 40 | color: #f2f2f2; 41 | text-align: center; 42 | padding: 14px 16px; 43 | text-decoration: none; 44 | font-size: 17px; 45 | } 46 | 47 | /* Change the color of links on hover */ 48 | .topnav a:hover { 49 | background-color: #ddd; 50 | color: black; 51 | } 52 | 53 | /* Add a color to the active/current link */ 54 | .topnav a.active { 55 | background-color: #c0392b; 56 | color: white; 57 | border-radius:5px; 58 | margin:5px; 59 | } 60 | .topnav a.active:hover{ 61 | background-color: #ddd; 62 | color: black; 63 | } 64 | #inActive{ 65 | border-radius:5px; 66 | margin:5px; 67 | background: 68 | } 69 | #bottomLayout{ 70 | height: auto; 71 | width: 1300px; 72 | border-radius: 10px; 73 | opacity: 2; 74 | background-color: #ffffff; 75 | margin-top: 5px; 76 | border-style: dashed; 77 | border-radius: 10px; 78 | border-color: #b61827; 79 | } 80 | #logout{ 81 | float: right; 82 | background: #c0392b; 83 | color: white; 84 | border-radius:5px; 85 | margin:5px; 86 | } 87 | #logout:hover{ 88 | background-color: #ddd; 89 | color: black; 90 | } 91 | input[type=submit] { 92 | width: 10em; 93 | height: 2.5em; 94 | background-color: #c0392b; 95 | color: #ffffff; 96 | padding: 5px; 97 | border-radius: 10px; 98 | } 99 | input[type=submit]:hover { 100 | width: 10em; 101 | height: 2.5em; 102 | background-color: #92190c; 103 | color: #ffffff; 104 | padding: 5px; 105 | border-radius: 10px; 106 | } 107 | #formHeading{ 108 | padding-top: 20px; 109 | } 110 | #searchForm{ 111 | padding-bottom: 50px; 112 | } 113 | #rowHeading{ 114 | font-size: 1.1em; 115 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 116 | color: #c0392b; 117 | font-weight: italic; 118 | } 119 | #input{ 120 | border-color: #c0392b; 121 | border-radius: 5px; 122 | width: 180px; 123 | height: 20px; 124 | } -------------------------------------------------------------------------------- /CSS/bookListStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 0px 0px 0px 0px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 5px 5px 5px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | /* Add a black background color to the top navigation */ 29 | .topnav { 30 | width: 1300px; 31 | background-color: #333; 32 | overflow: hidden; 33 | border-radius: 10px; 34 | margin-top:5px; 35 | } 36 | 37 | /* Style the links inside the navigation bar */ 38 | .topnav a { 39 | float: left; 40 | color: #f2f2f2; 41 | text-align: center; 42 | padding: 14px 16px; 43 | text-decoration: none; 44 | font-size: 17px; 45 | } 46 | 47 | /* Change the color of links on hover */ 48 | .topnav a:hover { 49 | background-color: #ddd; 50 | color: black; 51 | } 52 | 53 | /* Add a color to the active/current link */ 54 | .topnav a.active { 55 | background-color: #c0392b; 56 | color: white; 57 | border-radius:5px; 58 | margin:5px; 59 | } 60 | .topnav a.active:hover{ 61 | background-color: #ddd; 62 | color: black; 63 | } 64 | #inActive{ 65 | border-radius:5px; 66 | margin:5px; 67 | background: 68 | } 69 | #bottomLayout{ 70 | height: auto; 71 | width: 1260px; 72 | border-radius: 10px; 73 | opacity: 0.9; 74 | background-color: #ffffff; 75 | margin-top: 5px; 76 | padding: 20px; 77 | border-style: dashed; 78 | border-radius: 10px; 79 | border-color: #b61827; 80 | } 81 | #logout{ 82 | float: right; 83 | background: #c0392b; 84 | color: white; 85 | border-radius:5px; 86 | margin:5px; 87 | } 88 | #logout:hover{ 89 | background-color: #ddd; 90 | color: black; 91 | } 92 | input[type=submit] { 93 | width: 10em; 94 | height: 2.5em; 95 | background-color: #c0392b; 96 | color: #ffffff; 97 | padding: 5px; 98 | border-radius: 10px; 99 | } 100 | input[type=submit]:hover { 101 | width: 10em; 102 | height: 2.5em; 103 | background-color: #92190c; 104 | color: #ffffff; 105 | padding: 5px; 106 | border-radius: 10px; 107 | } 108 | #formHeading{ 109 | padding-top: 20px; 110 | } 111 | #searchForm{ 112 | padding-bottom: 50px; 113 | } 114 | #rowHeading{ 115 | font-size: 1.1em; 116 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 117 | color: #c0392b; 118 | font-weight: italic; 119 | } 120 | #input{ 121 | border-color: #c0392b; 122 | border-radius: 5px; 123 | width: 180px; 124 | height: 20px; 125 | } -------------------------------------------------------------------------------- /CSS/searchBookStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 0px 0px 0px 0px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 5px 5px 5px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | /* Add a black background color to the top navigation */ 29 | .topnav { 30 | width: 1300px; 31 | background-color: #333; 32 | overflow: hidden; 33 | border-radius: 10px; 34 | margin-top:5px; 35 | } 36 | 37 | /* Style the links inside the navigation bar */ 38 | .topnav a { 39 | float: left; 40 | color: #f2f2f2; 41 | text-align: center; 42 | padding: 14px 16px; 43 | text-decoration: none; 44 | font-size: 17px; 45 | } 46 | 47 | /* Change the color of links on hover */ 48 | .topnav a:hover { 49 | background-color: #ddd; 50 | color: black; 51 | } 52 | 53 | /* Add a color to the active/current link */ 54 | .topnav a.active { 55 | background-color: #c0392b; 56 | color: white; 57 | border-radius:5px; 58 | margin:5px; 59 | } 60 | .topnav a.active:hover{ 61 | background-color: #ddd; 62 | color: black; 63 | } 64 | #inActive{ 65 | border-radius:5px; 66 | margin:5px; 67 | background: 68 | } 69 | #bottomLayout{ 70 | height: auto; 71 | width: 1260px; 72 | border-radius: 10px; 73 | opacity: 0.9; 74 | background-color: #ffffff; 75 | margin-top: 5px; 76 | padding: 20px; 77 | border-style: dashed; 78 | border-radius: 10px; 79 | border-color: #b61827; 80 | } 81 | #logout{ 82 | float: right; 83 | background: #c0392b; 84 | color: white; 85 | border-radius:5px; 86 | margin:5px; 87 | } 88 | #logout:hover{ 89 | background-color: #ddd; 90 | color: black; 91 | } 92 | input[type=submit] { 93 | width: 10em; 94 | height: 2.5em; 95 | background-color: #c0392b; 96 | color: #ffffff; 97 | padding: 5px; 98 | border-radius: 10px; 99 | } 100 | input[type=submit]:hover { 101 | width: 10em; 102 | height: 2.5em; 103 | background-color: #92190c; 104 | color: #ffffff; 105 | padding: 5px; 106 | border-radius: 10px; 107 | } 108 | #formHeading{ 109 | padding-top: 20px; 110 | } 111 | #searchForm{ 112 | padding-bottom: 50px; 113 | } 114 | #rowHeading{ 115 | font-size: 1.1em; 116 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 117 | color: #c0392b; 118 | font-weight: italic; 119 | } 120 | #input{ 121 | border-color: #c0392b; 122 | border-radius: 5px; 123 | width: 180px; 124 | height: 20px; 125 | } -------------------------------------------------------------------------------- /CSS/studBookList.Style.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 0px 0px 0px 0px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 5px 5px 5px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | /* Add a black background color to the top navigation */ 29 | .topnav { 30 | width: 1300px; 31 | background-color: #333; 32 | overflow: hidden; 33 | border-radius: 10px; 34 | margin-top:5px; 35 | } 36 | 37 | /* Style the links inside the navigation bar */ 38 | .topnav a { 39 | float: left; 40 | color: #f2f2f2; 41 | text-align: center; 42 | padding: 14px 16px; 43 | text-decoration: none; 44 | font-size: 17px; 45 | } 46 | 47 | /* Change the color of links on hover */ 48 | .topnav a:hover { 49 | background-color: #ddd; 50 | color: black; 51 | } 52 | 53 | /* Add a color to the active/current link */ 54 | .topnav a.active { 55 | background-color: #c0392b; 56 | color: white; 57 | border-radius:5px; 58 | margin:5px; 59 | } 60 | .topnav a.active:hover{ 61 | background-color: #ddd; 62 | color: black; 63 | } 64 | #inActive{ 65 | border-radius:5px; 66 | margin:5px; 67 | background: 68 | } 69 | #bottomLayout{ 70 | height: auto; 71 | width: 1260px; 72 | border-radius: 10px; 73 | opacity: 0.9; 74 | background-color: #ffffff; 75 | margin-top: 5px; 76 | padding: 20px; 77 | border-style: dashed; 78 | border-radius: 10px; 79 | border-color: #b61827; 80 | } 81 | #logout{ 82 | float: right; 83 | background: #c0392b; 84 | color: white; 85 | border-radius:5px; 86 | margin:5px; 87 | } 88 | #logout:hover{ 89 | background-color: #ddd; 90 | color: black; 91 | } 92 | input[type=submit] { 93 | width: 10em; 94 | height: 2.5em; 95 | background-color: #c0392b; 96 | color: #ffffff; 97 | padding: 5px; 98 | border-radius: 10px; 99 | } 100 | input[type=submit]:hover { 101 | width: 10em; 102 | height: 2.5em; 103 | background-color: #92190c; 104 | color: #ffffff; 105 | padding: 5px; 106 | border-radius: 10px; 107 | } 108 | #formHeading{ 109 | padding-top: 20px; 110 | } 111 | #searchForm{ 112 | padding-bottom: 50px; 113 | } 114 | #rowHeading{ 115 | font-size: 1.1em; 116 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 117 | color: #c0392b; 118 | font-weight: italic; 119 | } 120 | #input{ 121 | border-color: #c0392b; 122 | border-radius: 5px; 123 | width: 180px; 124 | height: 20px; 125 | } -------------------------------------------------------------------------------- /CSS/studFineDetailStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 0px 0px 0px 0px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 5px 5px 5px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | /* Add a black background color to the top navigation */ 29 | .topnav { 30 | width: 1300px; 31 | background-color: #333; 32 | overflow: hidden; 33 | border-radius: 10px; 34 | margin-top:5px; 35 | } 36 | 37 | /* Style the links inside the navigation bar */ 38 | .topnav a { 39 | float: left; 40 | color: #f2f2f2; 41 | text-align: center; 42 | padding: 14px 16px; 43 | text-decoration: none; 44 | font-size: 17px; 45 | } 46 | 47 | /* Change the color of links on hover */ 48 | .topnav a:hover { 49 | background-color: #ddd; 50 | color: black; 51 | } 52 | 53 | /* Add a color to the active/current link */ 54 | .topnav a.active { 55 | background-color: #c0392b; 56 | color: white; 57 | border-radius:5px; 58 | margin:5px; 59 | } 60 | .topnav a.active:hover{ 61 | background-color: #ddd; 62 | color: black; 63 | } 64 | #inActive{ 65 | border-radius:5px; 66 | margin:5px; 67 | background: 68 | } 69 | #bottomLayout{ 70 | height: auto; 71 | width: 1260px; 72 | border-radius: 10px; 73 | opacity: 0.9; 74 | background-color: #ffffff; 75 | margin-top: 5px; 76 | padding: 20px; 77 | border-style: dashed; 78 | border-radius: 10px; 79 | border-color: #b61827; 80 | } 81 | #logout{ 82 | float: right; 83 | background: #c0392b; 84 | color: white; 85 | border-radius:5px; 86 | margin:5px; 87 | } 88 | #logout:hover{ 89 | background-color: #ddd; 90 | color: black; 91 | } 92 | input[type=submit] { 93 | width: 10em; 94 | height: 2.5em; 95 | background-color: #c0392b; 96 | color: #ffffff; 97 | padding: 5px; 98 | border-radius: 10px; 99 | } 100 | input[type=submit]:hover { 101 | width: 10em; 102 | height: 2.5em; 103 | background-color: #92190c; 104 | color: #ffffff; 105 | padding: 5px; 106 | border-radius: 10px; 107 | } 108 | #formHeading{ 109 | padding-top: 20px; 110 | } 111 | #searchForm{ 112 | padding-bottom: 50px; 113 | } 114 | #rowHeading{ 115 | font-size: 1.1em; 116 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 117 | color: #c0392b; 118 | font-weight: italic; 119 | } 120 | #input{ 121 | border-color: #c0392b; 122 | border-radius: 5px; 123 | width: 180px; 124 | height: 20px; 125 | } -------------------------------------------------------------------------------- /CSS/studIssuedStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 0px 0px 0px 0px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 5px 5px 5px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | /* Add a black background color to the top navigation */ 29 | .topnav { 30 | width: 1300px; 31 | background-color: #333; 32 | overflow: hidden; 33 | border-radius: 10px; 34 | margin-top:5px; 35 | } 36 | 37 | /* Style the links inside the navigation bar */ 38 | .topnav a { 39 | float: left; 40 | color: #f2f2f2; 41 | text-align: center; 42 | padding: 14px 16px; 43 | text-decoration: none; 44 | font-size: 17px; 45 | } 46 | 47 | /* Change the color of links on hover */ 48 | .topnav a:hover { 49 | background-color: #ddd; 50 | color: black; 51 | } 52 | 53 | /* Add a color to the active/current link */ 54 | .topnav a.active { 55 | background-color: #c0392b; 56 | color: white; 57 | border-radius:5px; 58 | margin:5px; 59 | } 60 | .topnav a.active:hover{ 61 | background-color: #ddd; 62 | color: black; 63 | } 64 | #inActive{ 65 | border-radius:5px; 66 | margin:5px; 67 | background: 68 | } 69 | #bottomLayout{ 70 | height: auto; 71 | width: 1260px; 72 | border-radius: 10px; 73 | opacity: 0.9; 74 | background-color: #ffffff; 75 | margin-top: 5px; 76 | padding: 20px; 77 | border-style: dashed; 78 | border-radius: 10px; 79 | border-color: #b61827; 80 | } 81 | #logout{ 82 | float: right; 83 | background: #c0392b; 84 | color: white; 85 | border-radius:5px; 86 | margin:5px; 87 | } 88 | #logout:hover{ 89 | background-color: #ddd; 90 | color: black; 91 | } 92 | input[type=submit] { 93 | width: 10em; 94 | height: 2.5em; 95 | background-color: #c0392b; 96 | color: #ffffff; 97 | padding: 5px; 98 | border-radius: 10px; 99 | } 100 | input[type=submit]:hover { 101 | width: 10em; 102 | height: 2.5em; 103 | background-color: #92190c; 104 | color: #ffffff; 105 | padding: 5px; 106 | border-radius: 10px; 107 | } 108 | #formHeading{ 109 | padding-top: 20px; 110 | } 111 | #searchForm{ 112 | padding-bottom: 50px; 113 | } 114 | #rowHeading{ 115 | font-size: 1.1em; 116 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 117 | color: #c0392b; 118 | font-weight: italic; 119 | } 120 | #input{ 121 | border-color: #c0392b; 122 | border-radius: 5px; 123 | width: 180px; 124 | height: 20px; 125 | } -------------------------------------------------------------------------------- /CSS/studRecordStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 0px 0px 0px 0px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 5px 5px 5px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | /* Add a black background color to the top navigation */ 29 | .topnav { 30 | width: 1300px; 31 | background-color: #333; 32 | overflow: hidden; 33 | border-radius: 10px; 34 | margin-top:5px; 35 | } 36 | 37 | /* Style the links inside the navigation bar */ 38 | .topnav a { 39 | float: left; 40 | color: #f2f2f2; 41 | text-align: center; 42 | padding: 14px 16px; 43 | text-decoration: none; 44 | font-size: 17px; 45 | } 46 | 47 | /* Change the color of links on hover */ 48 | .topnav a:hover { 49 | background-color: #ddd; 50 | color: black; 51 | } 52 | 53 | /* Add a color to the active/current link */ 54 | .topnav a.active { 55 | background-color: #c0392b; 56 | color: white; 57 | border-radius:5px; 58 | margin:5px; 59 | } 60 | .topnav a.active:hover{ 61 | background-color: #ddd; 62 | color: black; 63 | } 64 | #inActive{ 65 | border-radius:5px; 66 | margin:5px; 67 | background: 68 | } 69 | #bottomLayout{ 70 | height: auto; 71 | width: 1260px; 72 | border-radius: 10px; 73 | opacity: 0.9; 74 | background-color: #ffffff; 75 | margin-top: 5px; 76 | padding: 20px; 77 | border-style: dashed; 78 | border-radius: 10px; 79 | border-color: #b61827; 80 | } 81 | #logout{ 82 | float: right; 83 | background: #c0392b; 84 | color: white; 85 | border-radius:5px; 86 | margin:5px; 87 | } 88 | #logout:hover{ 89 | background-color: #ddd; 90 | color: black; 91 | } 92 | input[type=submit] { 93 | width: 10em; 94 | height: 2.5em; 95 | background-color: #c0392b; 96 | color: #ffffff; 97 | padding: 5px; 98 | border-radius: 10px; 99 | } 100 | input[type=submit]:hover { 101 | width: 10em; 102 | height: 2.5em; 103 | background-color: #92190c; 104 | color: #ffffff; 105 | padding: 5px; 106 | border-radius: 10px; 107 | } 108 | #formHeading{ 109 | padding-top: 20px; 110 | } 111 | #searchForm{ 112 | padding-bottom: 50px; 113 | } 114 | #rowHeading{ 115 | font-size: 1.1em; 116 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 117 | color: #c0392b; 118 | font-weight: italic; 119 | } 120 | #input{ 121 | border-color: #c0392b; 122 | border-radius: 5px; 123 | width: 180px; 124 | height: 20px; 125 | } -------------------------------------------------------------------------------- /CSS/studSearchBookStyle.css: -------------------------------------------------------------------------------- 1 | body{ 2 | height: 100%; 3 | width: 100%; 4 | } 5 | .topImage{ 6 | height: 320px; 7 | width: 1300px; 8 | margin-top: 30px; 9 | border-radius: 20px; 10 | opacity: 0.9; 11 | box-shadow: 0px 0px 0px 0px #3e2723; 12 | -webkit-transition: all 0.4s ease-out; 13 | -moz-transition: all 0.4s ease-out; 14 | -o-transition: all 0.4s ease-out; 15 | -ms-transition: all 0.4s ease-out; 16 | transition: all 0.4s ease-out; 17 | } 18 | .topImage:hover{ 19 | height: 325px; 20 | width: 1305px; 21 | box-shadow: 5px 5px 5px 5px #5d4037; 22 | -webkit-transition: all 0.4s ease-in; 23 | -moz-transition: all 0.4s ease-in; 24 | -o-transition: all 0.4s ease-in; 25 | -ms-transition: all 0.4s ease-in; 26 | transition: all 0.4s ease-in; 27 | } 28 | /* Add a black background color to the top navigation */ 29 | .topnav { 30 | width: 1300px; 31 | background-color: #333; 32 | overflow: hidden; 33 | border-radius: 10px; 34 | margin-top:5px; 35 | } 36 | 37 | /* Style the links inside the navigation bar */ 38 | .topnav a { 39 | float: left; 40 | color: #f2f2f2; 41 | text-align: center; 42 | padding: 14px 16px; 43 | text-decoration: none; 44 | font-size: 17px; 45 | } 46 | 47 | /* Change the color of links on hover */ 48 | .topnav a:hover { 49 | background-color: #ddd; 50 | color: black; 51 | } 52 | 53 | /* Add a color to the active/current link */ 54 | .topnav a.active { 55 | background-color: #c0392b; 56 | color: white; 57 | border-radius:5px; 58 | margin:5px; 59 | } 60 | .topnav a.active:hover{ 61 | background-color: #ddd; 62 | color: black; 63 | } 64 | #inActive{ 65 | border-radius:5px; 66 | margin:5px; 67 | background: 68 | } 69 | #bottomLayout{ 70 | height: auto; 71 | width: 1260px; 72 | border-radius: 10px; 73 | opacity: 0.9; 74 | background-color: #ffffff; 75 | margin-top: 5px; 76 | padding: 20px; 77 | border-style: dashed; 78 | border-radius: 10px; 79 | border-color: #b61827; 80 | } 81 | #logout{ 82 | float: right; 83 | background: #c0392b; 84 | color: white; 85 | border-radius:5px; 86 | margin:5px; 87 | } 88 | #logout:hover{ 89 | background-color: #ddd; 90 | color: black; 91 | } 92 | input[type=submit] { 93 | width: 10em; 94 | height: 2.5em; 95 | background-color: #c0392b; 96 | color: #ffffff; 97 | padding: 5px; 98 | border-radius: 10px; 99 | } 100 | input[type=submit]:hover { 101 | width: 10em; 102 | height: 2.5em; 103 | background-color: #92190c; 104 | color: #ffffff; 105 | padding: 5px; 106 | border-radius: 10px; 107 | } 108 | #formHeading{ 109 | padding-top: 20px; 110 | } 111 | #searchForm{ 112 | padding-bottom: 50px; 113 | } 114 | #rowHeading{ 115 | font-size: 1.1em; 116 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 117 | color: #c0392b; 118 | font-weight: italic; 119 | } 120 | #input{ 121 | border-color: #c0392b; 122 | border-radius: 5px; 123 | width: 180px; 124 | height: 20px; 125 | } -------------------------------------------------------------------------------- /searchBook.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Library Managemenr System 7 | 8 | 9 | 10 | 11 |
12 |
13 | 14 |
15 |
16 | Add Books 17 | Books Search 18 | Book Update 19 | Issue Book 20 | Book Submission 21 | Book List 22 | Student Record 23 | Logout 24 |
25 |
26 |

Search Books

27 |
28 | 29 | 30 |
Book Id:
31 |

32 |
33 | 53 | 54 | Book Id 55 | Title 56 | Author Name 57 | Cost 58 | Quantity 59 | "; 60 | while($row = mysqli_fetch_array($result)) 61 | { 62 | echo ""; 63 | echo "" . $row['bookId'] . ""; 64 | echo "" . $row['title'] . ""; 65 | echo "" . $row['authorName'] . ""; 66 | echo "" . $row['cost'] . ""; 67 | echo "" . $row['quantity'] . ""; 68 | echo ""; 69 | } 70 | echo "

"; 71 | } 72 | } 73 | else{ 74 | echo "Enter bookId"; 75 | } 76 | } 77 | } 78 | else{ 79 | session_destroy(); 80 | $_SESSION = array(); 81 | header("location: main.php"); 82 | } 83 | ?> 84 |
85 |
86 | 87 | -------------------------------------------------------------------------------- /studBookSearch.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Library Managemenr System 7 | 8 | 9 | 10 | 11 |
12 |
13 | 14 |
15 |
16 | Books Search 17 | Book List 18 | Issued 19 | Fine Details 20 | Logout 21 |
22 |
23 |

Search Books

24 |
25 | 26 | 27 | 28 |
Book Name:
Author Name:
29 |

30 |
31 | 56 | 57 | Book Id 58 | Title 59 | Author Name 60 | Cost 61 | Quantity 62 | "; 63 | while($row = mysqli_fetch_array($result)) 64 | { 65 | echo ""; 66 | echo "" . $row['bookId'] . ""; 67 | echo "" . $row['title'] . ""; 68 | echo "" . $row['authorName'] . ""; 69 | echo "" . $row['cost'] . ""; 70 | echo "" . $row['quantity'] . ""; 71 | echo ""; 72 | } 73 | echo "

"; 74 | } 75 | } 76 | else{ 77 | echo "Enter Book Name or Author Name"; 78 | } 79 | } 80 | ?> 81 |
82 |
83 | 84 | -------------------------------------------------------------------------------- /addBook.php: -------------------------------------------------------------------------------- 1 | query($sql)) 25 | { 26 | echo "

New record is inserted successfully.

"; 27 | } 28 | else 29 | { 30 | echo "

This book is previously added.

"; 31 | } 32 | $conn->close(); 33 | } 34 | } 35 | else{ 36 | echo "Empty record"; 37 | } 38 | } 39 | if (isset($_POST['logout'])){ 40 | session_destroy(); 41 | $_SESSION = array(); 42 | header("location: home.php"); 43 | } 44 | } 45 | else{ 46 | session_destroy(); 47 | $_SESSION = array(); 48 | header("location: main.php"); 49 | } 50 | ?> 51 | 52 | 53 | 54 | 55 | Library Managemenr System 56 | 57 | 58 | 59 | 60 |
61 |
62 | 63 |
64 | 74 |
75 |

Add Books

76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 |
Book Id :
Title :
Author Name :
Cost :
Quantity :
84 |

85 |

86 |
87 |
88 | 89 | -------------------------------------------------------------------------------- /updateBookResult.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Library Managemenr System 6 | 7 | 8 | 9 | 10 |
11 |
12 | 13 |
14 | 24 |
25 |

Update Book

26 | "."Book Id : ".$bookId.""; 31 | } 32 | ?> 33 |
34 | 35 | 36 | 37 | 38 | 39 |
Title:
Author Name:
Cost:
Quantity:
40 |

41 |
42 | query($sql)) 66 | { 67 | echo "Update Successfull.
"; 68 | } 69 | else 70 | { 71 | echo "Error: ". $sql ."
". $conn->error; 72 | } 73 | $conn->close(); 74 | } 75 | } 76 | else{ 77 | echo "Empty record"; 78 | } 79 | } 80 | } 81 | else{ 82 | session_destroy(); 83 | $_SESSION = array(); 84 | header("location: main.php"); 85 | } 86 | ?> 87 |
88 |
89 |
90 | 91 | -------------------------------------------------------------------------------- /studLogin.php: -------------------------------------------------------------------------------- 1 | query($sql)) 24 | { 25 | $result = $conn->query($sql); 26 | $row = $result->fetch_assoc(); 27 | $adminname = $row["username"]; 28 | session_start(); 29 | $_SESSION['adminname'] = $adminname; 30 | $_SESSION['studUsername'] = $username; 31 | $entry = "success"; 32 | echo "New record is inserted successfully abc"; 33 | } 34 | else 35 | { 36 | echo "Error: ". $sql ."
". $conn->error; 37 | } 38 | $conn->close(); 39 | } 40 | } 41 | else 42 | { 43 | echo ''; 46 | } 47 | } 48 | else 49 | { 50 | echo ''; 53 | die(); 54 | } 55 | if($entry == "success") 56 | { 57 | $host = "localhost"; 58 | $dbusername = "root"; 59 | $dbpassword = ""; 60 | $dbname = $adminname; 61 | $conn1 = new mysqli($host, $dbusername, $dbpassword, $dbname); 62 | if(mysqli_connect_error()) 63 | { 64 | die('Connect Error ('.mysqli_connect_error().')'.mysqli_connect_error()); 65 | } 66 | else 67 | { 68 | $sql = "SELECT * FROM studentdetail WHERE username = '$username' AND password = '$password'"; 69 | $result = $conn1->query($sql); 70 | 71 | if ($result->num_rows > 0) { 72 | header('Location: studBookSearch.php'); 73 | } 74 | else 75 | { 76 | header('Location: studWrong.php'); 77 | } 78 | $conn1->close(); 79 | } 80 | } 81 | } 82 | 83 | ?> 84 | 85 | 86 | 87 | 88 | 89 | Library Managemenr System 90 | 91 | 92 | 93 | 94 |
95 |
96 | 97 |
98 |
99 |
100 |

Student Login

101 |
102 |
103 | 104 | 105 | 106 | 107 |
Username:
Password:
Institute:
108 |

109 |
110 |
111 |
112 |
113 | 114 | -------------------------------------------------------------------------------- /bookSubmission.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Library Managemenr System 6 | 7 | 8 | 9 | 10 |
11 |
12 | 13 |
14 | 24 |
25 |

Book Submission


26 |
27 | 28 | 29 | 30 |
Student Username :
BookId :
31 |

32 |
33 | query($sql1); 55 | $result1 = $conn->query($sql2); 56 | if($result->num_rows > 0 && $result1->num_rows > 0) 57 | { 58 | 59 | $row = mysqli_fetch_array($result); 60 | $returnDate = $row['returnDate']; 61 | date_default_timezone_set('Asia/Calcutta'); 62 | if(strtotime($returnDate) <= strtotime(date('Y/m/d'))){ 63 | echo "Late Submission
"; 64 | } 65 | else{ 66 | echo "Successfull Submission
"; 67 | } 68 | $sql = "DELETE FROM borrower WHERE studUsername = '$studUsername' && bookId = '$bookId'"; 69 | $conn->query($sql); 70 | $row1 = $result1->fetch_assoc(); 71 | $quantity = $row1["quantity"]; 72 | $quantity = $quantity + 1; 73 | $sql3 = "UPDATE bookrecord SET quantity = '$quantity' WHERE bookId = '$bookId'"; 74 | $conn->query($sql3); 75 | 76 | } 77 | else 78 | { 79 | echo "Book not issue
"; 80 | } 81 | $conn->close(); 82 | } 83 | } 84 | else 85 | { 86 | echo ''; 89 | die(); 90 | } 91 | } 92 | } 93 | else{ 94 | session_destroy(); 95 | $_SESSION = array(); 96 | header("location: main.php"); 97 | } 98 | ?> 99 |
100 |
101 | 102 | -------------------------------------------------------------------------------- /studRegistration.php: -------------------------------------------------------------------------------- 1 | '; 13 | echo 'alert("Password and confirm password must be same")'; 14 | echo ''; 15 | die(); 16 | } 17 | else 18 | { 19 | $host = "localhost"; 20 | $dbusername = "root"; 21 | $dbpassword = ""; 22 | $dbname = "lms"; 23 | $conn = new mysqli($host, $dbusername, $dbpassword, $dbname); 24 | if(mysqli_connect_error()) 25 | { 26 | die('Connect Error ('.mysqli_connect_error().')'.mysqli_connect_error()); 27 | } 28 | else 29 | { 30 | 31 | $sql = "SELECT * FROM adminregistration WHERE institute = '$institute'"; 32 | $result = $conn->query($sql); 33 | if($result->num_rows > 0) 34 | { 35 | $row = $result->fetch_assoc(); 36 | $adminname = $row["username"]; 37 | $entry = "success"; 38 | echo "

Registration successfully

"; 39 | } 40 | else 41 | { 42 | echo "Error: ". $sql ."
". $conn->error; 43 | } 44 | $conn->close(); 45 | } 46 | } 47 | } 48 | else 49 | { 50 | echo ''; 53 | } 54 | } 55 | else 56 | { 57 | echo ''; 60 | die(); 61 | } 62 | if($entry == "success") 63 | { 64 | $host = "localhost"; 65 | $dbusername = "root"; 66 | $dbpassword = ""; 67 | $dbname = $adminname; 68 | $conn1 = new mysqli($host, $dbusername, $dbpassword, $dbname); 69 | if(mysqli_connect_error()) 70 | { 71 | die('Connect Error ('.mysqli_connect_error().')'.mysqli_connect_error()); 72 | } 73 | else 74 | { 75 | $sql1 = "INSERT INTO studentdetail (username, password) values('$username', '$password');"; 76 | if($conn1->query($sql1)){ 77 | echo "Data Successfully Inserted"; 78 | } 79 | else 80 | { 81 | echo "Error: ". $sql1 ."
". $conn1->error; 82 | } 83 | } 84 | } 85 | } 86 | 87 | ?> 88 | 89 | 90 | 91 | 92 | Library Managemenr System 93 | 94 | 95 | 96 | 97 |
98 |
99 | 100 |
101 |
102 |
103 |

Student Registration

104 |
105 |
106 | 107 | 108 | 109 | 110 | 111 |
Username :
Password :
Confirm Password :
Institute :
112 |

113 |
114 |
115 |
116 |
117 | 118 | 119 | -------------------------------------------------------------------------------- /borrower.php: -------------------------------------------------------------------------------- 1 | query($sql) && $conn->query($sql2)) 27 | { 28 | $result = $conn->query($sql2); 29 | $row = $result->fetch_assoc(); 30 | $quantity = $row["quantity"]; 31 | if($quantity != 0){ 32 | $quantity = $quantity - 1; 33 | $sql3 = "UPDATE bookrecord SET quantity = '$quantity' WHERE bookId = '$bookId'"; 34 | $sql1 = "INSERT INTO borrower (studUsername, bookId, issueDate, returnDate) values('$studUsername', '$bookId', '$issueDate', '$returnDate');"; 35 | if($conn->query($sql1) && $conn->query($sql3)){ 36 | 37 | echo "

Data Successfully Inserted

"; 38 | } 39 | else 40 | { 41 | echo "Error: ". $sql1 ."
". $conn->error; 42 | } 43 | } 44 | else{ 45 | echo "

Book not available

"; 46 | } 47 | } 48 | else 49 | { 50 | echo "Error: ". $sql ."
". $conn->error; 51 | } 52 | $conn->close(); 53 | } 54 | } 55 | else 56 | { 57 | echo ''; 60 | die(); 61 | } 62 | } 63 | } 64 | else{ 65 | session_destroy(); 66 | $_SESSION = array(); 67 | header("location: main.php"); 68 | } 69 | 70 | ?> 71 | 72 | 73 | 74 | 75 | Library Managemenr System 76 | 77 | 78 | 79 | 80 |
81 |
82 | 83 |
84 | 94 |
95 |

Issue Book


96 |
97 | 98 | 99 | 100 | 101 | 102 |
Student Username :
BookId :
Issue Date :
Return Date :
103 |

104 |

105 |
106 |
107 | 108 | -------------------------------------------------------------------------------- /adminRegister.php: -------------------------------------------------------------------------------- 1 | '; 14 | echo 'alert("Password and confirm password must be same")'; 15 | echo ''; 16 | die(); 17 | } 18 | else 19 | { 20 | $host = "localhost"; 21 | $dbusername = "root"; 22 | $dbpassword = ""; 23 | $dbname = "LMS"; 24 | $conn = new mysqli($host, $dbusername, $dbpassword, $dbname); 25 | if(mysqli_connect_error()) 26 | { 27 | die('Connect Error ('.mysqli_connect_error().')'.mysqli_connect_error()); 28 | } 29 | else 30 | { 31 | $sql1 = "SELECT * FROM adminregistration WHERE institute = '$institute'"; 32 | $result = $conn->query($sql1); 33 | if($result->num_rows > 0){ 34 | echo "

Institute ". $institute. " already registered

"; 35 | $conn->close(); 36 | } 37 | else{ 38 | $sql = "INSERT INTO adminregistration (username, password, institute) 39 | values('$username', '$password', '$institute');"; 40 | if($conn->query($sql)) 41 | { 42 | $entry = "success"; 43 | echo "

Registered successfully

"; 44 | } 45 | else 46 | { 47 | echo "Error: ". $sql ."
". $conn->error; 48 | } 49 | $conn->close(); 50 | } 51 | } 52 | } 53 | } 54 | else 55 | { 56 | echo ''; 59 | } 60 | } 61 | else 62 | { 63 | echo ''; 66 | die(); 67 | } 68 | if($entry == "success") 69 | { 70 | $host = "localhost"; 71 | $dbusername = "root"; 72 | $dbpassword = ""; 73 | $conn1 = new mysqli($host, $dbusername, $dbpassword); 74 | if(mysqli_connect_error()) 75 | { 76 | die('Connect Error ('.mysqli_connect_error().')'.mysqli_connect_error()); 77 | } 78 | else 79 | { 80 | $sql = "CREATE Database $username"; 81 | if($conn1->query($sql)) 82 | { 83 | //echo "New Database Created Successfully"; 84 | $sql1 = "USE $username"; 85 | $sql2 = "CREATE TABLE bookRecord (bookId varchar(10) PRIMARY KEY, title varchar(50), authorName varchar(40), cost int(8), quantity int(5))"; 86 | $sql3 = "CREATE TABLE studentDetail (username varchar(30) PRIMARY KEY, password varchar(40))"; 87 | $sql4 = "CREATE TABLE borrower (studUsername varchar(30), bookId varchar(10), issueDate DATE, returnDate DATE)"; 88 | if($conn1->query($sql1) && $conn1->query($sql2) && $conn1->query($sql3) && $conn1->query($sql4)){ 89 | echo "

Table Successfully Created

"; 90 | } 91 | else 92 | { 93 | echo $conn1->error; 94 | } 95 | } 96 | else 97 | { 98 | echo $conn1->error; 99 | } 100 | $conn1->close(); 101 | } 102 | } 103 | } 104 | 105 | ?> 106 | 107 | 108 | 109 | 110 | Library Managemenr System 111 | 112 | 113 | 114 | 115 |
116 |
117 | 118 |
119 |
120 |
121 |

Admin Registration

122 |
123 |
124 | 125 | 126 | 127 | 128 | 129 |
Username:
Password:
Confirm Password:
Institute:
130 |

131 |
132 |
133 |
134 |
135 | 136 | 137 | --------------------------------------------------------------------------------