├── Abstract.pdf ├── PROJECT ├── about.html ├── admin │ ├── accept.php │ ├── acceptrenewal.php │ ├── acceptreturn.php │ ├── addbook.php │ ├── book.php │ ├── bookdetails.php │ ├── bootstrap │ │ ├── css │ │ │ ├── bootstrap-responsive.min.css │ │ │ └── bootstrap.min.css │ │ ├── img │ │ │ ├── glyphicons-halflings-white.png │ │ │ └── glyphicons-halflings.png │ │ └── js │ │ │ └── bootstrap.min.js │ ├── css │ │ └── theme.css │ ├── current.php │ ├── dbconn.php │ ├── edit_admin_details.php │ ├── edit_book_details.php │ ├── findbook.php │ ├── findbookissue.php │ ├── finduser.php │ ├── images │ │ ├── bg.png │ │ ├── book1.png │ │ ├── book2.png │ │ ├── book3.png │ │ ├── book4.png │ │ ├── icons │ │ │ ├── css │ │ │ │ └── font-awesome.css │ │ │ └── font │ │ │ │ ├── fontawesome-webfont3294.eot │ │ │ │ ├── fontawesome-webfont3294.ttf │ │ │ │ ├── fontawesome-webfont3294.woff │ │ │ │ └── fontawesome-webfontd41d.eot │ │ ├── img.jpg │ │ ├── jquery-ui │ │ │ └── picker.png │ │ ├── profile.png │ │ ├── profile2.png │ │ ├── profile3.png │ │ └── user.png │ ├── index.php │ ├── issue_requests.php │ ├── logout.php │ ├── message.php │ ├── profile.php │ ├── recommendations.php │ ├── reject.php │ ├── remove_student.php │ ├── renew_requests.php │ ├── requests.php │ ├── return_requests.php │ ├── scripts │ │ ├── common.js │ │ ├── datatables │ │ │ └── jquery.dataTables.js │ │ ├── flot │ │ │ ├── jquery.flot.js │ │ │ ├── jquery.flot.pie.js │ │ │ └── jquery.flot.resize.js │ │ ├── jquery-1.9.1.min.js │ │ └── jquery-ui-1.10.1.custom.min.js │ ├── student.php │ └── studentdetails.php ├── css │ └── style.css ├── database │ ├── LMS_author.sql │ ├── LMS_book.sql │ ├── LMS_message.sql │ ├── LMS_recommendations.sql │ ├── LMS_record.sql │ ├── LMS_renew.sql │ ├── LMS_return.sql │ └── LMS_user.sql ├── dbconn.php ├── images │ └── background.jpg ├── index.php ├── screenshots │ ├── add_book_admin.png │ ├── currently_issued_books_admin.png │ ├── currently_issued_books_student.png │ ├── home_admin.png │ ├── home_student.png │ ├── issue_requests_admin.png │ ├── login.png │ ├── manage_students_admin.png │ ├── previously_issued_books_student.png │ ├── recommend_book_student.png │ ├── renew_requests.png │ ├── return_requests.png │ ├── send_message_admin.png │ ├── view_and_issue_books_student.png │ ├── view_and_update_books_admin.png │ ├── view_messages_student.png │ ├── view_recommendations.png │ └── view_requests.png ├── see.php ├── student │ ├── book.php │ ├── bookdetails.php │ ├── bootstrap │ │ ├── css │ │ │ ├── bootstrap-responsive.min.css │ │ │ └── bootstrap.min.css │ │ ├── img │ │ │ ├── glyphicons-halflings-white.png │ │ │ └── glyphicons-halflings.png │ │ └── js │ │ │ └── bootstrap.min.js │ ├── css │ │ └── theme.css │ ├── current.php │ ├── dbconn.php │ ├── edit_student_details.php │ ├── findbook.php │ ├── history.php │ ├── images │ │ ├── bg.png │ │ ├── icons │ │ │ ├── css │ │ │ │ └── font-awesome.css │ │ │ └── font │ │ │ │ ├── fontawesome-webfont3294.eot │ │ │ │ ├── fontawesome-webfont3294.ttf │ │ │ │ ├── fontawesome-webfont3294.woff │ │ │ │ └── fontawesome-webfontd41d.eot │ │ ├── img.jpg │ │ ├── jquery-ui │ │ │ └── picker.png │ │ ├── profile.png │ │ ├── profile2.png │ │ ├── profile3.png │ │ └── user.png │ ├── index.php │ ├── issue_request.php │ ├── logout.php │ ├── message.php │ ├── profile.php │ ├── recommendations.php │ ├── renew_request.php │ ├── return_request.php │ └── scripts │ │ ├── common.js │ │ ├── datatables │ │ └── jquery.dataTables.js │ │ ├── flot │ │ ├── jquery.flot.js │ │ ├── jquery.flot.pie.js │ │ └── jquery.flot.resize.js │ │ ├── jquery-1.9.1.min.js │ │ └── jquery-ui-1.10.1.custom.min.js └── terms.html ├── README.md ├── SDD.pdf ├── SRS.pdf ├── presentation.pptx └── user manual.pdf /Abstract.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/Abstract.pdf -------------------------------------------------------------------------------- /PROJECT/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | About the project 6 | 7 | 8 | 9 |

About the Project

10 |

11 |

1. This project is made as part of Database Management Systems Course in NIT Calicut

12 |

2. The project is completed under the guindance of Dr. Abdul Nazeer K A and Dr. M Prabhu

13 |

3. The project is made by Kenil Shah, Manu Jose Philip, Malhar Shirswar, G. Bharat.

14 |

4. The project must only be user for educational purposes.

15 |

5. Complete project details along with abstract, SRS, user manual and Source code can be found here

16 |

6. Live demo of the project can be found here

17 |

18 | 19 | -------------------------------------------------------------------------------- /PROJECT/admin/accept.php: -------------------------------------------------------------------------------- 1 | query($sql); 9 | $row=$result->fetch_assoc(); 10 | 11 | $category=$row['Category']; 12 | 13 | 14 | 15 | if($category == 'GEN' || $category == 'OBC' ) 16 | {$sql1="update LMS.record set Date_of_Issue=curdate(),Due_Date=date_add(curdate(),interval 60 day),Renewals_left=1 where BookId='$bookid' and RollNo='$rollno'"; 17 | 18 | if($conn->query($sql1) === TRUE) 19 | {$sql3="update LMS.book set Availability=Availability-1 where BookId='$bookid'"; 20 | $result=$conn->query($sql3); 21 | $sql5="insert into LMS.message (RollNo,Msg,Date,Time) values ('$rollno','Your request for issue of BookId: $bookid has been accepted',curdate(),curtime())"; 22 | $result=$conn->query($sql5); 23 | echo ""; 24 | header( "Refresh:0.01; url=issue_requests.php", true, 303); 25 | } 26 | else 27 | { 28 | echo ""; 29 | header( "Refresh:1; url=issue_requests.php", true, 303); 30 | 31 | } 32 | } 33 | else 34 | {$sql2="update LMS.record set Date_of_Issue=curdate(),Due_Date=date_add(curdate(),interval 180 day),Renewals_left=1 where BookId='$bookid' and RollNo='$rollno'"; 35 | 36 | if($conn->query($sql2) === TRUE) 37 | {$sql4="update LMS.book set Availability=Availability-1 where BookId='$bookid'"; 38 | $result=$conn->query($sql4); 39 | $sql6="insert into LMS.message (RollNo,Msg,Date,Time) values ('$rollno','Your request for issue of BookId: $bookid has been accepted',curdate(),curtime())"; 40 | $result=$conn->query($sql6); 41 | echo ""; 42 | header( "Refresh:1; url=issue_requests.php", true, 303); 43 | } 44 | else 45 | { 46 | echo ""; 47 | header( "Refresh:1; url=issue_requests.php", true, 303); 48 | 49 | } 50 | } 51 | 52 | 53 | 54 | ?> -------------------------------------------------------------------------------- /PROJECT/admin/acceptrenewal.php: -------------------------------------------------------------------------------- 1 | query($sql); 9 | $row=$result->fetch_assoc(); 10 | 11 | $category=$row['Category']; 12 | 13 | 14 | 15 | if($category == 'GEN' || $category == 'OBC' ) 16 | {$sql1="update LMS.record set Due_Date=date_add(Due_Date,interval 60 day),Renewals_left=0 where BookId='$bookid' and RollNo='$rollno'"; 17 | 18 | if($conn->query($sql1) === TRUE) 19 | {$sql3="delete from LMS.renew where BookId='$bookid' and RollNo='$rollno'"; 20 | $result=$conn->query($sql3); 21 | 22 | $sql5="insert into LMS.message (RollNo,Msg,Date,Time) values ('$rollno','Your request for renewal of BookId: $bookid has been accepted',curdate(),curtime())"; 23 | $result=$conn->query($sql5); 24 | echo ""; 25 | header( "Refresh:0.01; url=renew_requests.php", true, 303); 26 | } 27 | else 28 | { 29 | echo ""; 30 | header( "Refresh:0.01; url=renew_requests.php", true, 303); 31 | 32 | } 33 | } 34 | else 35 | {$sql2="update LMS.record set Due_Date=date_add(Due_Date,interval 180 day),Renewals_left=0 where BookId='$bookid' and RollNo='$rollno'"; 36 | 37 | if($conn->query($sql2) === TRUE) 38 | {$sql4="delete from LMS.renew where BookId='$bookid' and RollNo='$rollno'"; 39 | $result=$conn->query($sql4); 40 | $sql6="insert into LMS.message (RollNo,Msg,Date,Time) values ('$rollno','Your request for renewal of BookId: $bookid has been accepted',curdate(),curtime())"; 41 | $result=$conn->query($sql6); 42 | echo ""; 43 | header( "Refresh:0.01; url=renew_requests.php", true, 303); 44 | } 45 | else 46 | { 47 | echo ""; 48 | header( "Refresh:0.01; url=renew_requests.php", true, 303); 49 | 50 | } 51 | } 52 | 53 | 54 | 55 | ?> -------------------------------------------------------------------------------- /PROJECT/admin/acceptreturn.php: -------------------------------------------------------------------------------- 1 | query($sql); 10 | $row=$result->fetch_assoc(); 11 | 12 | $category=$row['Category']; 13 | 14 | 15 | 16 | 17 | $sql1="update LMS.record set Date_of_Return=curdate(),Dues='$dues' where BookId='$bookid' and RollNo='$rollno'"; 18 | 19 | if($conn->query($sql1) === TRUE) 20 | {$sql3="update LMS.book set Availability=Availability+1 where BookId='$bookid'"; 21 | $result=$conn->query($sql3); 22 | $sql4="delete from LMS.return where BookId='$bookid' and RollNo='$rollno'"; 23 | $result=$conn->query($sql4); 24 | $sql6="delete from LMS.renew where BookId='$bookid' and RollNo='$rollno'"; 25 | $result=$conn->query($sql6); 26 | $sql5="insert into LMS.message (RollNo,Msg,Date,Time) values ('$rollno','Your request for return of BookId: $bookid has been accepted',curdate(),curtime())"; 27 | $result=$conn->query($sql5); 28 | echo ""; 29 | header( "Refresh:0.01; url=return_requests.php", true, 303); 30 | } 31 | else 32 | { 33 | echo ""; 34 | header( "Refresh:1; url=return_requests.php", true, 303); 35 | 36 | } 37 | 38 | 39 | 40 | 41 | 42 | ?> -------------------------------------------------------------------------------- /PROJECT/admin/book.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 72 | 73 |
74 | 75 |
76 |
77 |
78 | 79 |
80 | 81 | 82 |
83 |
84 |
85 |
86 | query($sql); 95 | $rowcount=mysqli_num_rows($result); 96 | 97 | if(!($rowcount)) 98 | echo "

No Results

"; 99 | else 100 | { 101 | 102 | 103 | ?> 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | query($sql); 117 | while($row=$result->fetch_assoc()) 118 | { 119 | $bookid=$row['BookId']; 120 | $name=$row['Title']; 121 | $avail=$row['Availability']; 122 | 123 | 124 | ?> 125 | 126 | 127 | 128 | 129 | 133 | 134 | 135 | 136 |
Book idBook nameAvailability
130 | Details 131 | Edit 132 |
137 |
138 | 139 |
140 |
141 | 142 |
143 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | alert('Access Denied!!!')"; 166 | } ?> -------------------------------------------------------------------------------- /PROJECT/admin/bookdetails.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 72 | 73 |
74 | 75 |
76 |
77 | 78 |
79 |
80 |

Book Details

81 |
82 |
83 | query($sql); 87 | $row=$result->fetch_assoc(); 88 | 89 | $bookid=$row['BookId']; 90 | $name=$row['Title']; 91 | $publisher=$row['Publisher']; 92 | $year=$row['Year']; 93 | $avail=$row['Availability']; 94 | 95 | echo "Book ID: ".$bookid."

"; 96 | echo "Title: ".$name."

"; 97 | $sql1="select * from LMS.author where BookId='$bookid'"; 98 | $result=$conn->query($sql1); 99 | 100 | echo "Author: "; 101 | while($row1=$result->fetch_assoc()) 102 | { 103 | echo $row1['Author']." "; 104 | } 105 | echo "

"; 106 | echo "Publisher: ".$publisher."

"; 107 | echo "Year: ".$year."

"; 108 | echo "Availability: ".$avail."

"; 109 | 110 | 111 | 112 | 113 | ?> 114 | 115 | Go Back 116 |
117 |
118 |
119 | 120 | 121 | 122 | 123 | 124 |
125 |
126 | 127 |
128 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | alert('Access Denied!!!')"; 151 | } ?> -------------------------------------------------------------------------------- /PROJECT/admin/bootstrap/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/bootstrap/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /PROJECT/admin/bootstrap/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/bootstrap/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /PROJECT/admin/dbconn.php: -------------------------------------------------------------------------------- 1 | 14 | -------------------------------------------------------------------------------- /PROJECT/admin/findbook.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 72 | 73 |
74 | 75 |
76 |
77 | 85 | 86 |
87 | 88 |
89 | 90 |
91 |
92 | 93 |
94 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | alert('Access Denied!!!')"; 117 | } ?> -------------------------------------------------------------------------------- /PROJECT/admin/findbookissue.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 72 | 73 |
74 | 75 |
76 |
77 | 85 | 86 |
87 | 88 |
89 | 90 |
91 |
92 | 93 |
94 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | alert('Access Denied!!!')"; 117 | } ?> -------------------------------------------------------------------------------- /PROJECT/admin/finduser.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 72 | 73 |
74 | 75 |
76 |
77 | 85 | 86 |
87 | 88 |
89 | 90 |
91 |
92 | 93 |
94 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | alert('Access Denied!!!')"; 117 | } ?> -------------------------------------------------------------------------------- /PROJECT/admin/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/images/bg.png -------------------------------------------------------------------------------- /PROJECT/admin/images/book1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/images/book1.png -------------------------------------------------------------------------------- /PROJECT/admin/images/book2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/images/book2.png -------------------------------------------------------------------------------- /PROJECT/admin/images/book3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/images/book3.png -------------------------------------------------------------------------------- /PROJECT/admin/images/book4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/images/book4.png -------------------------------------------------------------------------------- /PROJECT/admin/images/icons/font/fontawesome-webfont3294.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/images/icons/font/fontawesome-webfont3294.eot -------------------------------------------------------------------------------- /PROJECT/admin/images/icons/font/fontawesome-webfont3294.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/images/icons/font/fontawesome-webfont3294.ttf -------------------------------------------------------------------------------- /PROJECT/admin/images/icons/font/fontawesome-webfont3294.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/images/icons/font/fontawesome-webfont3294.woff -------------------------------------------------------------------------------- /PROJECT/admin/images/icons/font/fontawesome-webfontd41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/images/icons/font/fontawesome-webfontd41d.eot -------------------------------------------------------------------------------- /PROJECT/admin/images/img.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/images/img.jpg -------------------------------------------------------------------------------- /PROJECT/admin/images/jquery-ui/picker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/images/jquery-ui/picker.png -------------------------------------------------------------------------------- /PROJECT/admin/images/profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/images/profile.png -------------------------------------------------------------------------------- /PROJECT/admin/images/profile2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/images/profile2.png -------------------------------------------------------------------------------- /PROJECT/admin/images/profile3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/images/profile3.png -------------------------------------------------------------------------------- /PROJECT/admin/images/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/images/user.png -------------------------------------------------------------------------------- /PROJECT/admin/index.php: -------------------------------------------------------------------------------- 1 |  4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 72 | 73 |
74 | 75 | 76 |
77 |
78 |
79 | Card image cap 80 |
81 | 82 | query($sql); 86 | $row=$result->fetch_assoc(); 87 | 88 | $name=$row['Name']; 89 | $category=$row['Category']; 90 | $email=$row['EmailId']; 91 | $mobno=$row['MobNo']; 92 | ?> 93 | 94 |

95 |
96 |

Email ID:

97 |
98 |

Mobile number:

99 | 100 |
101 | 102 |
103 |
104 |
105 | Edit Details 106 |
107 |
108 | 109 | 110 |
111 |
112 | 113 |
114 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | alert('Access Denied!!!')"; 137 | } ?> -------------------------------------------------------------------------------- /PROJECT/admin/issue_requests.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 72 | 73 |
74 |
75 |
76 | Issue Requests 77 | Renew Request 78 | Return Requests 79 |
80 |

Issue Requests

81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | query($sql); 95 | while($row=$result->fetch_assoc()) 96 | { 97 | $bookid=$row['BookId']; 98 | $rollno=$row['RollNo']; 99 | $name=$row['Title']; 100 | $avail=$row['Availability']; 101 | 102 | 103 | ?> 104 | 105 | 106 | 107 | 108 | 109 | 116 | 117 | 118 | 119 |
Roll NumberBook IdBook NameAvailabilty
110 | 0) 112 | {echo "Accept";} 113 | ?> 114 | Reject 115 |
120 |
121 | 122 | 123 |
124 |
125 | 126 |
127 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | alert('Access Denied!!!')"; 150 | } ?> -------------------------------------------------------------------------------- /PROJECT/admin/logout.php: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /PROJECT/admin/message.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 72 | 73 |
74 | 75 | 76 |
77 |
78 | 79 |
80 |
81 |

Send a message

82 |
83 |
84 | 85 |
86 | 87 |
88 |
89 | 90 |
91 | 92 |
93 |
94 |
95 | 96 |
97 | 98 |
99 |
100 |
101 |
102 | 103 |
104 |
105 | 106 |
107 |
108 | 109 | 110 | 111 |
112 |
113 | 114 |
115 |
116 | 117 |
118 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | query($sql1) === TRUE){ 142 | echo ""; 143 | } 144 | else 145 | {//echo $conn->error; 146 | echo ""; 147 | } 148 | 149 | } 150 | ?> 151 | 152 | 153 | 154 | 155 | 156 | alert('Access Denied!!!')"; 159 | } ?> -------------------------------------------------------------------------------- /PROJECT/admin/recommendations.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 72 | 73 |
74 | 75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | query($sql); 89 | while($row=$result->fetch_assoc()) 90 | { 91 | $bookname=$row['Book_Name']; 92 | $description=$row['Description']; 93 | $rollno=$row['RollNo']; 94 | ?> 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 |
Book NameDescriptionRecommended By
104 | 105 |
106 | Add a Book
107 |
108 | 109 |
110 |
111 | 112 |
113 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | alert('Access Denied!!!')"; 136 | } ?> -------------------------------------------------------------------------------- /PROJECT/admin/reject.php: -------------------------------------------------------------------------------- 1 | query($sql) === TRUE) 11 | { 12 | $sql1="insert into LMS.message (RollNo,Msg,Date,Time) values ('$rollno','Your request for issue of BookId: $bookid has been rejected',curdate(),curtime())"; 13 | $result=$conn->query($sql1); 14 | echo ""; 15 | header( "Refresh:0.01; url=issue_requests.php", true, 303); 16 | } 17 | else 18 | { 19 | echo ""; 20 | header( "Refresh:0.01; url=issue_requests.php", true, 303); 21 | 22 | } 23 | 24 | 25 | 26 | 27 | ?> -------------------------------------------------------------------------------- /PROJECT/admin/remove_student.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/admin/remove_student.php -------------------------------------------------------------------------------- /PROJECT/admin/renew_requests.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 72 | 73 |
74 |
75 |
76 | Issue Requests 77 | Renew Request 78 | Return Requests 79 |
80 |

Renew Requests

81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | query($sql); 95 | while($row=$result->fetch_assoc()) 96 | { 97 | $bookid=$row['BookId']; 98 | $rollno=$row['RollNo']; 99 | $name=$row['Title']; 100 | $renewals=$row['Renewals_left']; 101 | 102 | 103 | ?> 104 | 105 | 106 | 107 | 108 | 109 | 116 | 117 | 118 | 119 |
Roll NumberBook IdBook NameRenewals Left
110 | 0) 112 | {echo "Accept";} 113 | ?> 114 | 115 |
120 |
121 | 122 | 123 |
124 |
125 | 126 |
127 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | alert('Access Denied!!!')"; 150 | } ?> -------------------------------------------------------------------------------- /PROJECT/admin/requests.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |
79 |

Issue Requests

80 |
81 |
82 |
83 |
84 |

Renew Request

85 |
86 |
87 |
88 |
89 |

Return Requests

90 |
91 |
92 | 93 | 94 |
95 |
96 | 97 |
98 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | alert('Access Denied!!!')"; 121 | } ?> -------------------------------------------------------------------------------- /PROJECT/admin/return_requests.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 72 | 73 |
74 |
75 |
76 | Issue Requests 77 | Renew Request 78 | Return Requests 79 |
80 |

Return Requests

81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | query($sql); 95 | while($row=$result->fetch_assoc()) 96 | { 97 | $bookid=$row['BookId']; 98 | $rollno=$row['RollNo']; 99 | $name=$row['Title']; 100 | $dues=$row['x']; 101 | 102 | 103 | 104 | ?> 105 | 106 | 107 | 108 | 109 | 114 | 120 | 121 | 122 | 123 |
Roll NumberBook IdBook NameDues
0) 111 | echo $dues; 112 | else 113 | echo 0; ?>
115 | 116 | Accept 117 | 118 | 119 |
124 |
125 | 126 | 127 |
128 |
129 | 130 |
131 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | alert('Access Denied!!!')"; 154 | } ?> -------------------------------------------------------------------------------- /PROJECT/admin/scripts/common.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function () { 2 | if($('.datatable-1').length>0){ 3 | $('.datatable-1').dataTable(); 4 | $('.dataTables_paginate').addClass('btn-group datatable-pagination'); 5 | $('.dataTables_paginate > a').wrapInner(''); 6 | $('.dataTables_paginate > a:first-child').append(''); 7 | $('.dataTables_paginate > a:last-child').append(''); 8 | 9 | $( '.slider-range').slider({ 10 | range: true, 11 | min: 0, 12 | max: 20000, 13 | values: [ 3000, 12000 ], 14 | slide: function(event, ui) { 15 | $(this).find('.ui-slider-handle').attr('title', ui.value); 16 | }, 17 | }); 18 | 19 | $( '#amount' ).val( '$' + $( '.slider-range' ).slider( 'values', 0 ) + ' - $' + $( '.slider-range' ).slider( 'values', 1 ) ); 20 | 21 | 22 | //Graph/Chart index.html 23 | 24 | var d1 = [ [0, 1], [1, 14], [2, 5], [3, 4], [4, 5], [5, 1], [6, 14], [7, 5], [8, 5] ]; 25 | var d2 = [ [0, 5], [1, 2], [2, 10], [3, 1], [4, 9], [5, 5], [6, 2], [7, 10], [8, 8] ]; 26 | 27 | var plot = $.plot($('#placeholder2'), 28 | [ { data: d1, label: 'Profits'}, { data: d2, label: 'Expenses' } ], { 29 | lines: { 30 | show: true, 31 | fill: true, /*SWITCHED*/ 32 | lineWidth: 2 33 | }, 34 | points: { 35 | show: true, 36 | lineWidth: 5 37 | }, 38 | grid: { 39 | clickable: true, 40 | hoverable: true, 41 | autoHighlight: true, 42 | mouseActiveRadius: 10, 43 | aboveData: true, 44 | backgroundColor: '#fff', 45 | borderWidth: 0, 46 | minBorderMargin: 25, 47 | }, 48 | colors: [ '#55f3c0', '#0db37e', '#b4fae3', '#e0d1cb'], 49 | shadowSize: 0 50 | }); 51 | 52 | function showTooltip(x, y, contents) { 53 | $('
' + contents + '
').css( { 54 | position: 'absolute', 55 | display: 'none', 56 | top: y + 5, 57 | left: x + 5 58 | }).appendTo('body').fadeIn(300); 59 | } 60 | 61 | var previousPoint = null; 62 | $('#placeholder2').bind('plothover', function (event, pos, item) { 63 | $('#x').text(pos.x.toFixed(2)); 64 | $('#y').text(pos.y.toFixed(2)); 65 | 66 | if (item) { 67 | if (previousPoint != item.dataIndex) { 68 | previousPoint = item.dataIndex; 69 | 70 | $('#gridtip').remove(); 71 | var x = item.datapoint[0].toFixed(0), 72 | y = item.datapoint[1].toFixed(0); 73 | 74 | showTooltip(item.pageX, item.pageY, 75 | 'x : ' + x + '    y : ' + y); 76 | } 77 | } 78 | else { 79 | $('#gridtip').remove(); 80 | previousPoint = null; 81 | } 82 | }); 83 | } 84 | 85 | else 86 | { 87 | var d1 = [ [0, 1], [1, 14], [2, 5], [3, 4], [4, 5], [5, 1], [6, 14], [7, 5], [8, 5] ]; 88 | var d2 = [ [0, 5], [1, 2], [2, 10], [3, 1], [4, 9], [5, 5], [6, 2], [7, 10], [8, 8] ]; 89 | 90 | var plot = $.plot($("#placeholder"), 91 | [ { data: d1, label: "Data A" }, { data: d2, label: "Data B" } ], { 92 | lines: { 93 | show: true, 94 | fill: false, 95 | lineWidth: 2 96 | }, 97 | points: { 98 | show: true, 99 | lineWidth: 5 100 | }, 101 | grid: { 102 | clickable: true, 103 | hoverable: true, 104 | autoHighlight: true, 105 | mouseActiveRadius: 10, 106 | aboveData: true, 107 | backgroundColor: "#fafafa", 108 | borderWidth: 0, 109 | minBorderMargin: 25, 110 | }, 111 | colors: [ "#090", "#099", "#609", "#900"], 112 | shadowSize: 0 113 | }); 114 | 115 | var d1 = [ [0, 1], [1, 14], [2, 5], [3, 4], [4, 5], [5, 1], [6, 14], [7, 5], [8, 5] ]; 116 | var d2 = [ [0, 5], [1, 2], [2, 10], [3, 1], [4, 9], [5, 5], [6, 2], [7, 10], [8, 8] ]; 117 | 118 | var plot = $.plot($("#placeholder2"), 119 | [ { data: d1, label: "Data Y"}, { data: d2, label: "Data X" } ], { 120 | lines: { 121 | show: true, 122 | fill: true, /*SWITCHED*/ 123 | lineWidth: 2 124 | }, 125 | points: { 126 | show: true, 127 | lineWidth: 5 128 | }, 129 | grid: { 130 | clickable: true, 131 | hoverable: true, 132 | autoHighlight: true, 133 | mouseActiveRadius: 10, 134 | aboveData: true, 135 | backgroundColor: "#fafafa", 136 | borderWidth: 0, 137 | minBorderMargin: 25, 138 | }, 139 | colors: [ "#090", "#099", "#609", "#900"], 140 | shadowSize: 0 141 | }); 142 | 143 | function showTooltip(x, y, contents) { 144 | $('
' + contents + '
').css( { 145 | position: 'absolute', 146 | display: 'none', 147 | top: y + 5, 148 | left: x + 5 149 | }).appendTo("body").fadeIn(300); 150 | } 151 | 152 | var previousPoint = null; 153 | $("#placeholder2").bind("plothover", function (event, pos, item) { 154 | $("#x").text(pos.x.toFixed(2)); 155 | $("#y").text(pos.y.toFixed(2)); 156 | 157 | if (item) { 158 | if (previousPoint != item.dataIndex) { 159 | previousPoint = item.dataIndex; 160 | 161 | $("#gridtip").remove(); 162 | var x = item.datapoint[0].toFixed(0), 163 | y = item.datapoint[1].toFixed(0); 164 | 165 | showTooltip(item.pageX, item.pageY, 166 | "x : " + x + "    y : " + y); 167 | } 168 | } 169 | else { 170 | $("#gridtip").remove(); 171 | previousPoint = null; 172 | } 173 | }); 174 | 175 | // PREDEFINED DATA 176 | var data = [ 177 | { label: "Series1", data: [[1, 10]] }, 178 | { label: "Series2", data: [[1, 30]] }, 179 | { label: "Series3", data: [[1, 90]] } 180 | ]; 181 | 182 | // DEFAULT 183 | $.plot($("#pie-default"), data, 184 | { 185 | series: { 186 | pie: { 187 | show: true 188 | } 189 | } 190 | }); 191 | 192 | // DEFINE ACTIONS FOR pieHover & pieClick 193 | function pieHover(event, pos, obj) { 194 | if (!obj) 195 | return; 196 | percent = parseFloat(obj.series.percent).toFixed(2); 197 | $("#hover").html('' + obj.series.label + ' - ' + percent + '%'); 198 | } 199 | 200 | function pieClick(event, pos, obj) { 201 | if (!obj) 202 | return; 203 | percent = parseFloat(obj.series.percent).toFixed(2); 204 | alert('' + obj.series.label + ': ' + percent + '%'); 205 | } 206 | 207 | // DONUT 208 | $.plot($("#pie-donut"), data, 209 | { 210 | series: { 211 | pie: { 212 | innerRadius: 50, 213 | show: true 214 | } 215 | } 216 | }); 217 | 218 | // DONUT + INTERACTIVE 219 | $.plot($("#pie-interactive"), data, 220 | { 221 | series: { 222 | pie: { 223 | innerRadius: 50, 224 | show: true 225 | } 226 | }, 227 | grid: { 228 | hoverable: true, 229 | clickable: true 230 | } 231 | }); 232 | 233 | $("#pie-interactive").bind("plothover", pieHover); 234 | $("#pie-interactive").bind("plotclick", pieClick); 235 | } 236 | }); 237 | -------------------------------------------------------------------------------- /PROJECT/admin/scripts/flot/jquery.flot.resize.js: -------------------------------------------------------------------------------- 1 | /* 2 | Flot plugin for automatically redrawing plots when the placeholder 3 | size changes, e.g. on window resizes. 4 | 5 | It works by listening for changes on the placeholder div (through the 6 | jQuery resize event plugin) - if the size changes, it will redraw the 7 | plot. 8 | 9 | There are no options. If you need to disable the plugin for some 10 | plots, you can just fix the size of their placeholders. 11 | */ 12 | 13 | 14 | /* Inline dependency: 15 | * jQuery resize event - v1.1 - 3/14/2010 16 | * http://benalman.com/projects/jquery-resize-plugin/ 17 | * 18 | * Copyright (c) 2010 "Cowboy" Ben Alman 19 | * Dual licensed under the MIT and GPL licenses. 20 | * http://benalman.com/about/license/ 21 | */ 22 | (function($,h,c){var a=$([]),e=$.resize=$.extend($.resize,{}),i,k="setTimeout",j="resize",d=j+"-special-event",b="delay",f="throttleWindow";e[b]=250;e[f]=true;$.event.special[j]={setup:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.add(l);$.data(this,d,{w:l.width(),h:l.height()});if(a.length===1){g()}},teardown:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.not(l);l.removeData(d);if(!a.length){clearTimeout(i)}},add:function(l){if(!e[f]&&this[k]){return false}var n;function m(s,o,p){var q=$(this),r=$.data(this,d);r.w=o!==c?o:q.width();r.h=p!==c?p:q.height();n.apply(this,arguments)}if($.isFunction(l)){n=l;return m}else{n=l.handler;l.handler=m}}};function g(){i=h[k](function(){a.each(function(){var n=$(this),m=n.width(),l=n.height(),o=$.data(this,d);if(m!==o.w||l!==o.h){n.trigger(j,[o.w=m,o.h=l])}});g()},e[b])}})(jQuery,this); 23 | 24 | 25 | (function ($) { 26 | var options = { }; // no options 27 | 28 | function init(plot) { 29 | function onResize() { 30 | var placeholder = plot.getPlaceholder(); 31 | 32 | // somebody might have hidden us and we can't plot 33 | // when we don't have the dimensions 34 | if (placeholder.width() == 0 || placeholder.height() == 0) 35 | return; 36 | 37 | plot.resize(); 38 | plot.setupGrid(); 39 | plot.draw(); 40 | } 41 | 42 | function bindEvents(plot, eventHolder) { 43 | plot.getPlaceholder().resize(onResize); 44 | } 45 | 46 | function shutdown(plot, eventHolder) { 47 | plot.getPlaceholder().unbind("resize", onResize); 48 | } 49 | 50 | plot.hooks.bindEvents.push(bindEvents); 51 | plot.hooks.shutdown.push(shutdown); 52 | } 53 | 54 | $.plot.plugins.push({ 55 | init: init, 56 | options: options, 57 | name: 'resize', 58 | version: '1.0' 59 | }); 60 | })(jQuery); 61 | -------------------------------------------------------------------------------- /PROJECT/admin/studentdetails.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 72 | 73 |
74 | 75 | 76 |
77 |
78 | 79 |
80 |
81 |

Student Details

82 |
83 |
84 | query($sql); 88 | $row=$result->fetch_assoc(); 89 | 90 | $name=$row['Name']; 91 | $category=$row['Category']; 92 | $email=$row['EmailId']; 93 | $mobno=$row['MobNo']; 94 | 95 | 96 | echo "Name: ".$name."

"; 97 | echo "Category: ".$category."

"; 98 | echo "Roll No: ".$rno."

"; 99 | echo "Email Id: ".$email."

"; 100 | echo "Mobile No: ".$mobno."

"; 101 | ?> 102 | 103 | Go Back 104 |
105 |
106 |
107 |
108 | 109 | 110 |
111 |
112 | 113 |
114 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | alert('Access Denied!!!')"; 137 | } ?> -------------------------------------------------------------------------------- /PROJECT/database/LMS_author.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) 2 | -- 3 | -- Host: localhost Database: LMS 4 | -- ------------------------------------------------------ 5 | -- Server version 5.7.24-0ubuntu0.18.04.1 6 | 7 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 8 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 9 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 10 | /*!40101 SET NAMES utf8 */; 11 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 12 | /*!40103 SET TIME_ZONE='+00:00' */; 13 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; 14 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; 15 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; 16 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 17 | 18 | -- 19 | -- Table structure for table `author` 20 | -- 21 | 22 | DROP TABLE IF EXISTS `author`; 23 | /*!40101 SET @saved_cs_client = @@character_set_client */; 24 | /*!40101 SET character_set_client = utf8 */; 25 | CREATE TABLE `author` ( 26 | `BookId` int(10) NOT NULL, 27 | `Author` varchar(50) NOT NULL, 28 | PRIMARY KEY (`BookId`,`Author`), 29 | CONSTRAINT `author_ibfk_1` FOREIGN KEY (`BookId`) REFERENCES `book` (`BookId`) 30 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 31 | /*!40101 SET character_set_client = @saved_cs_client */; 32 | 33 | -- 34 | -- Dumping data for table `author` 35 | -- 36 | 37 | LOCK TABLES `author` WRITE; 38 | /*!40000 ALTER TABLE `author` DISABLE KEYS */; 39 | INSERT INTO `author` VALUES (3,'Jay Prakash'),(4,'Jay Prakash'),(5,'x'),(6,'a1'),(7,'Bogart'),(7,'Kenneth'),(8,'Auer'),(8,'Davil J.'),(9,'Rob'),(9,'Williams'),(10,'Deiteil'),(11,'Sharma'),(12,'Barney Stinson'),(13,'Puri'),(14,'Manna'),(15,'Jindal U.C'),(16,'Prasad'),(17,'Aravind Alex'),(17,'Haldar Sibsankar'),(18,'Sandhu'),(18,'Singh'); 40 | /*!40000 ALTER TABLE `author` ENABLE KEYS */; 41 | UNLOCK TABLES; 42 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 43 | 44 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 45 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; 46 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; 47 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 48 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 49 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 50 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 51 | 52 | -- Dump completed on 2018-10-27 13:20:27 53 | -------------------------------------------------------------------------------- /PROJECT/database/LMS_book.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) 2 | -- 3 | -- Host: localhost Database: LMS 4 | -- ------------------------------------------------------ 5 | -- Server version 5.7.24-0ubuntu0.18.04.1 6 | 7 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 8 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 9 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 10 | /*!40101 SET NAMES utf8 */; 11 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 12 | /*!40103 SET TIME_ZONE='+00:00' */; 13 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; 14 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; 15 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; 16 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 17 | 18 | -- 19 | -- Table structure for table `book` 20 | -- 21 | 22 | DROP TABLE IF EXISTS `book`; 23 | /*!40101 SET @saved_cs_client = @@character_set_client */; 24 | /*!40101 SET character_set_client = utf8 */; 25 | CREATE TABLE `book` ( 26 | `BookId` int(10) NOT NULL AUTO_INCREMENT, 27 | `Title` varchar(50) DEFAULT NULL, 28 | `Publisher` varchar(50) DEFAULT NULL, 29 | `Year` varchar(50) DEFAULT NULL, 30 | `Availability` int(5) DEFAULT NULL, 31 | PRIMARY KEY (`BookId`) 32 | ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1; 33 | /*!40101 SET character_set_client = @saved_cs_client */; 34 | 35 | -- 36 | -- Dumping data for table `book` 37 | -- 38 | 39 | LOCK TABLES `book` WRITE; 40 | /*!40000 ALTER TABLE `book` DISABLE KEYS */; 41 | INSERT INTO `book` VALUES (1,'OS','PEARSON','2006',0),(2,'DBMS','TARGET67','2010',0),(3,'TOC','NITC','2018',4),(4,'TOC','NITC','2018',1),(5,'DAA','y','2014',0),(6,'DSA','X','2010',10),(7,'Discrete Structures','Pearson','2010',10),(8,'Database Processing','Prentice Hall','2013',12),(9,'Computer System Architecture','Prentice Hall','2015',4),(10,'C: How to program','Prentice Hall','2009',3),(11,'Atomic and Nuclear Systems','Pearson India ','2017',13),(12,'The PlayBook','Stinson','2010',12),(13,'General Theory of Relativity','Pearson India ','2012',5),(14,'Heat and Thermodynamics','Pearson','2013',9),(15,'Machine Design','Pearson India ','2012',5),(16,'Nuclear Physics','Pearson India ','1998',7),(17,'Operating System','Pearson India ','1990',7),(18,'Theory of Machines','Pearson','1992',12); 42 | /*!40000 ALTER TABLE `book` ENABLE KEYS */; 43 | UNLOCK TABLES; 44 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 45 | 46 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 47 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; 48 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; 49 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 50 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 51 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 52 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 53 | 54 | -- Dump completed on 2018-10-27 13:20:27 55 | -------------------------------------------------------------------------------- /PROJECT/database/LMS_message.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) 2 | -- 3 | -- Host: localhost Database: LMS 4 | -- ------------------------------------------------------ 5 | -- Server version 5.7.24-0ubuntu0.18.04.1 6 | 7 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 8 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 9 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 10 | /*!40101 SET NAMES utf8 */; 11 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 12 | /*!40103 SET TIME_ZONE='+00:00' */; 13 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; 14 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; 15 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; 16 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 17 | 18 | -- 19 | -- Table structure for table `message` 20 | -- 21 | 22 | DROP TABLE IF EXISTS `message`; 23 | /*!40101 SET @saved_cs_client = @@character_set_client */; 24 | /*!40101 SET character_set_client = utf8 */; 25 | CREATE TABLE `message` ( 26 | `M_Id` int(10) NOT NULL AUTO_INCREMENT, 27 | `RollNo` varchar(50) DEFAULT NULL, 28 | `Msg` varchar(255) DEFAULT NULL, 29 | `Date` date DEFAULT NULL, 30 | `Time` time DEFAULT NULL, 31 | PRIMARY KEY (`M_Id`), 32 | KEY `RollNo` (`RollNo`), 33 | CONSTRAINT `message_ibfk_1` FOREIGN KEY (`RollNo`) REFERENCES `user` (`RollNo`) 34 | ) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=latin1; 35 | /*!40101 SET character_set_client = @saved_cs_client */; 36 | 37 | -- 38 | -- Dumping data for table `message` 39 | -- 40 | 41 | LOCK TABLES `message` WRITE; 42 | /*!40000 ALTER TABLE `message` DISABLE KEYS */; 43 | INSERT INTO `message` VALUES (1,'b160111cs','Your request for BookId: 1 has been accepted','2018-10-15','23:47:40'),(2,'B160158CS','Your request for BookId: 1 has been accepted','2018-10-15','23:47:50'),(3,'B160158CS','Your request for BookId: 2 has been rejected','2018-10-15','23:47:58'),(4,'b160632cs','Your request for BookId: 3 has been accepted','2018-10-16','16:54:29'),(5,'b160511cs','Your request for BookId: 2 has been accepted','2018-10-16','16:54:58'),(6,'b160511cs','Your request for BookId: 6 has been accepted','2018-10-16','21:56:11'),(7,'b160854cs','Your request for BookId: 6 has been accepted','2018-10-16','22:11:12'),(8,'B160158CS','Your request for renewal of BookId: 1 has been accepted','2018-10-16','22:43:24'),(9,'b160511cs','Your request for return of BookId: 6 has been accepted','2018-10-16','22:44:24'),(10,'B160158CS','Your request for renewal of BookId: 1 has been accepted','2018-10-16','23:05:12'),(11,'B160158CS','Your request for renewal of BookId: 1 has been accepted','2018-10-16','23:09:51'),(12,'b160511cs','Your request for return of BookId: 6 has been accepted','2018-10-16','23:10:27'),(13,'b160511cs','Your request for return of BookId: 2 has been accepted','2018-10-16','23:36:10'),(14,'b160511cs','Your request for issue of BookId: 1 has been rejected','2018-10-16','23:36:20'),(15,'B160158CS','Your request for issue of BookId: 3 has been rejected','2018-10-16','23:43:37'),(16,'B160158CS','Your request for issue of BookId: 6 has been rejected','2018-10-16','23:43:42'),(17,'B160158CS','Your request for issue of BookId: 2 has been accepted','2018-10-16','23:47:31'),(18,'b160632cs','Your request for issue of BookId: 2 has been rejected','2018-10-16','23:47:34'),(19,'B160632CS','Your request for issue of BookId: 7 has been rejected','2018-10-25','23:25:25'),(20,'B160632CS','Your request for issue of BookId: 15 has been accepted','2018-10-25','23:25:27'),(21,'B160632CS','Your request for renewal of BookId: 3 has been accepted','2018-10-25','23:25:44'),(22,'b160632cs','Your request for return of BookId: 3 has been accepted','2018-10-25','23:25:48'),(23,'b160003ch','Your request for issue of BookId: 9 has been accepted','2018-10-25','23:27:46'),(24,'b160011ch','Your request for issue of BookId: 10 has been accepted','2018-10-25','23:27:49'),(25,'b160011ch','Your request for issue of BookId: 17 has been accepted','2018-10-25','23:27:53'),(26,'b160001cs','Your request for issue of BookId: 11 has been accepted','2018-10-25','23:27:57'),(27,'b160001cs','Your request for issue of BookId: 9 has been accepted','2018-10-25','23:30:41'),(28,'b160158cs','Your request for issue of BookId: 9 has been accepted','2018-10-25','23:30:43'),(29,'b160511cs','Your request for issue of BookId: 10 has been accepted','2018-10-25','23:30:46'),(30,'b160158cs','Your request for issue of BookId: 18 has been accepted','2018-10-25','23:30:49'),(31,'b160511cs','Your request for issue of BookId: 11 has been accepted','2018-10-25','23:30:58'),(32,'b160511cs','Your request for issue of BookId: 13 has been accepted','2018-10-25','23:31:01'),(33,'b160003ch','Your request for issue of BookId: 15 has been rejected','2018-10-26','03:04:51'); 44 | /*!40000 ALTER TABLE `message` ENABLE KEYS */; 45 | UNLOCK TABLES; 46 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 47 | 48 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 49 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; 50 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; 51 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 52 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 53 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 54 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 55 | 56 | -- Dump completed on 2018-10-27 13:20:28 57 | -------------------------------------------------------------------------------- /PROJECT/database/LMS_recommendations.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) 2 | -- 3 | -- Host: localhost Database: LMS 4 | -- ------------------------------------------------------ 5 | -- Server version 5.7.24-0ubuntu0.18.04.1 6 | 7 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 8 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 9 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 10 | /*!40101 SET NAMES utf8 */; 11 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 12 | /*!40103 SET TIME_ZONE='+00:00' */; 13 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; 14 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; 15 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; 16 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 17 | 18 | -- 19 | -- Table structure for table `recommendations` 20 | -- 21 | 22 | DROP TABLE IF EXISTS `recommendations`; 23 | /*!40101 SET @saved_cs_client = @@character_set_client */; 24 | /*!40101 SET character_set_client = utf8 */; 25 | CREATE TABLE `recommendations` ( 26 | `R_ID` int(10) NOT NULL AUTO_INCREMENT, 27 | `Book_Name` varchar(50) DEFAULT NULL, 28 | `Description` varchar(255) DEFAULT NULL, 29 | `RollNo` varchar(50) DEFAULT NULL, 30 | PRIMARY KEY (`R_ID`), 31 | KEY `RollNo` (`RollNo`), 32 | CONSTRAINT `recommendations_ibfk_1` FOREIGN KEY (`RollNo`) REFERENCES `user` (`RollNo`) 33 | ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1; 34 | /*!40101 SET character_set_client = @saved_cs_client */; 35 | 36 | -- 37 | -- Dumping data for table `recommendations` 38 | -- 39 | 40 | LOCK TABLES `recommendations` WRITE; 41 | /*!40000 ALTER TABLE `recommendations` DISABLE KEYS */; 42 | INSERT INTO `recommendations` VALUES (2,'Book1','Descp1','B160158CS'),(3,'Book2','Descp2','B160158CS'),(5,'Operating System','An operating system (OS) is system software that manages computer hardware and software resources and provides common services for computer programs.','b160001cs'),(7,'Networks ','A computer network, or data network, is a digital telecommunications network which allows nodes to share resources. In computer networks, computing devices exchange data with each other using connections (data links) between nodes.','b160999cs'),(8,'String Theory','In physics, string theory is a theoretical framework in which the point-like particles of particle physics are replaced by one-dimensional objects called strings. It describes how these strings propagate through space and interact with each other.','b160777cs'),(9,'The Theory of Everything','The Theory of Everything','b160777cs'); 43 | /*!40000 ALTER TABLE `recommendations` ENABLE KEYS */; 44 | UNLOCK TABLES; 45 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 46 | 47 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 48 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; 49 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; 50 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 51 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 52 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 53 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 54 | 55 | -- Dump completed on 2018-10-27 13:20:28 56 | -------------------------------------------------------------------------------- /PROJECT/database/LMS_record.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) 2 | -- 3 | -- Host: localhost Database: LMS 4 | -- ------------------------------------------------------ 5 | -- Server version 5.7.24-0ubuntu0.18.04.1 6 | 7 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 8 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 9 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 10 | /*!40101 SET NAMES utf8 */; 11 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 12 | /*!40103 SET TIME_ZONE='+00:00' */; 13 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; 14 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; 15 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; 16 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 17 | 18 | -- 19 | -- Table structure for table `record` 20 | -- 21 | 22 | DROP TABLE IF EXISTS `record`; 23 | /*!40101 SET @saved_cs_client = @@character_set_client */; 24 | /*!40101 SET character_set_client = utf8 */; 25 | CREATE TABLE `record` ( 26 | `RollNo` varchar(50) NOT NULL, 27 | `BookId` int(10) NOT NULL, 28 | `Date_of_Issue` date DEFAULT NULL, 29 | `Due_Date` date DEFAULT NULL, 30 | `Date_of_Return` date DEFAULT NULL, 31 | `Dues` int(10) DEFAULT NULL, 32 | `Renewals_left` int(10) DEFAULT NULL, 33 | `Time` time DEFAULT NULL, 34 | PRIMARY KEY (`RollNo`,`BookId`), 35 | KEY `BookId` (`BookId`), 36 | CONSTRAINT `record_ibfk_1` FOREIGN KEY (`RollNo`) REFERENCES `user` (`RollNo`), 37 | CONSTRAINT `record_ibfk_2` FOREIGN KEY (`BookId`) REFERENCES `book` (`BookId`) 38 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 39 | /*!40101 SET character_set_client = @saved_cs_client */; 40 | 41 | -- 42 | -- Dumping data for table `record` 43 | -- 44 | 45 | LOCK TABLES `record` WRITE; 46 | /*!40000 ALTER TABLE `record` DISABLE KEYS */; 47 | INSERT INTO `record` VALUES ('b160001cs',3,NULL,NULL,NULL,NULL,NULL,'13:18:12'),('b160001cs',9,'2018-10-25','2018-12-24',NULL,NULL,1,'13:14:20'),('b160001cs',11,'2018-10-25','2018-12-24',NULL,NULL,1,'13:14:20'),('b160001cs',12,NULL,NULL,NULL,NULL,NULL,'13:14:20'),('b160003ch',9,'2018-10-25','2018-12-24',NULL,NULL,1,'13:14:20'),('b160003ch',14,NULL,NULL,NULL,NULL,NULL,'13:14:20'),('b160011ch',10,'2018-10-25','2018-12-24',NULL,NULL,1,'13:14:20'),('b160011ch',17,'2018-10-25','2018-12-24',NULL,NULL,1,'13:14:20'),('b160111cs',1,'2018-10-15','2018-12-14',NULL,NULL,1,'13:14:20'),('B160158CS',1,'2018-10-15','2020-04-12',NULL,NULL,0,'13:14:20'),('B160158CS',2,'2018-10-16','2018-12-15',NULL,NULL,1,'13:14:20'),('b160158cs',3,NULL,NULL,NULL,NULL,NULL,'13:14:20'),('b160158cs',4,NULL,NULL,NULL,NULL,NULL,'13:14:20'),('b160158cs',7,NULL,NULL,NULL,NULL,NULL,'13:14:20'),('b160158cs',9,'2018-10-25','2018-12-24',NULL,NULL,1,'13:14:20'),('b160158cs',17,NULL,NULL,NULL,NULL,NULL,'13:14:20'),('b160158cs',18,'2018-10-25','2018-12-24',NULL,NULL,1,'13:14:20'),('b160511cs',2,'2018-10-16','2018-12-15','2018-10-16',-60,1,'13:14:20'),('b160511cs',6,'2018-10-16','2018-12-15','2018-10-16',-60,1,'13:14:20'),('b160511cs',7,NULL,NULL,NULL,NULL,NULL,'13:14:20'),('b160511cs',10,'2018-10-25','2018-12-24',NULL,NULL,1,'13:14:20'),('b160511cs',11,'2018-10-25','2018-12-24',NULL,NULL,1,'13:14:20'),('b160511cs',13,'2018-10-25','2018-12-24',NULL,NULL,1,'13:14:20'),('b160511cs',17,NULL,NULL,NULL,NULL,NULL,'13:14:20'),('b160511cs',18,NULL,NULL,NULL,NULL,NULL,'13:14:20'),('b160632cs',3,'2018-07-16','2018-11-14','2018-10-25',-20,0,'13:14:20'),('B160632CS',15,'2018-10-25','2018-12-24',NULL,NULL,1,'13:14:20'),('B160632CS',17,NULL,NULL,NULL,NULL,NULL,'13:17:31'),('b160854cs',6,'2018-10-16','2019-04-14',NULL,NULL,1,'13:14:20'); 48 | /*!40000 ALTER TABLE `record` ENABLE KEYS */; 49 | UNLOCK TABLES; 50 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 51 | 52 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 53 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; 54 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; 55 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 56 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 57 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 58 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 59 | 60 | -- Dump completed on 2018-10-27 13:20:27 61 | -------------------------------------------------------------------------------- /PROJECT/database/LMS_renew.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) 2 | -- 3 | -- Host: localhost Database: LMS 4 | -- ------------------------------------------------------ 5 | -- Server version 5.7.24-0ubuntu0.18.04.1 6 | 7 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 8 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 9 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 10 | /*!40101 SET NAMES utf8 */; 11 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 12 | /*!40103 SET TIME_ZONE='+00:00' */; 13 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; 14 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; 15 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; 16 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 17 | 18 | -- 19 | -- Table structure for table `renew` 20 | -- 21 | 22 | DROP TABLE IF EXISTS `renew`; 23 | /*!40101 SET @saved_cs_client = @@character_set_client */; 24 | /*!40101 SET character_set_client = utf8 */; 25 | CREATE TABLE `renew` ( 26 | `RollNo` varchar(50) NOT NULL, 27 | `BookId` int(10) NOT NULL, 28 | PRIMARY KEY (`RollNo`,`BookId`), 29 | KEY `BookId` (`BookId`), 30 | CONSTRAINT `renew_ibfk_1` FOREIGN KEY (`RollNo`) REFERENCES `user` (`RollNo`), 31 | CONSTRAINT `renew_ibfk_2` FOREIGN KEY (`BookId`) REFERENCES `book` (`BookId`) 32 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 33 | /*!40101 SET character_set_client = @saved_cs_client */; 34 | 35 | -- 36 | -- Dumping data for table `renew` 37 | -- 38 | 39 | LOCK TABLES `renew` WRITE; 40 | /*!40000 ALTER TABLE `renew` DISABLE KEYS */; 41 | INSERT INTO `renew` VALUES ('b160158cs',2),('b160158cs',9),('b160001cs',11),('b160511cs',11),('b160158cs',18); 42 | /*!40000 ALTER TABLE `renew` ENABLE KEYS */; 43 | UNLOCK TABLES; 44 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 45 | 46 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 47 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; 48 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; 49 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 50 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 51 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 52 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 53 | 54 | -- Dump completed on 2018-10-27 13:20:27 55 | -------------------------------------------------------------------------------- /PROJECT/database/LMS_return.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) 2 | -- 3 | -- Host: localhost Database: LMS 4 | -- ------------------------------------------------------ 5 | -- Server version 5.7.24-0ubuntu0.18.04.1 6 | 7 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 8 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 9 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 10 | /*!40101 SET NAMES utf8 */; 11 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 12 | /*!40103 SET TIME_ZONE='+00:00' */; 13 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; 14 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; 15 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; 16 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 17 | 18 | -- 19 | -- Table structure for table `return` 20 | -- 21 | 22 | DROP TABLE IF EXISTS `return`; 23 | /*!40101 SET @saved_cs_client = @@character_set_client */; 24 | /*!40101 SET character_set_client = utf8 */; 25 | CREATE TABLE `return` ( 26 | `RollNo` varchar(50) NOT NULL, 27 | `BookId` int(10) NOT NULL, 28 | PRIMARY KEY (`RollNo`,`BookId`), 29 | KEY `BookId` (`BookId`), 30 | CONSTRAINT `return_ibfk_1` FOREIGN KEY (`RollNo`) REFERENCES `user` (`RollNo`), 31 | CONSTRAINT `return_ibfk_2` FOREIGN KEY (`BookId`) REFERENCES `book` (`BookId`) 32 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 33 | /*!40101 SET character_set_client = @saved_cs_client */; 34 | 35 | -- 36 | -- Dumping data for table `return` 37 | -- 38 | 39 | LOCK TABLES `return` WRITE; 40 | /*!40000 ALTER TABLE `return` DISABLE KEYS */; 41 | INSERT INTO `return` VALUES ('b160158cs',1),('b160003ch',9),('b160511cs',10),('b160511cs',13),('b160158cs',18); 42 | /*!40000 ALTER TABLE `return` ENABLE KEYS */; 43 | UNLOCK TABLES; 44 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 45 | 46 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 47 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; 48 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; 49 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 50 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 51 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 52 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 53 | 54 | -- Dump completed on 2018-10-27 13:20:27 55 | -------------------------------------------------------------------------------- /PROJECT/database/LMS_user.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) 2 | -- 3 | -- Host: localhost Database: LMS 4 | -- ------------------------------------------------------ 5 | -- Server version 5.7.24-0ubuntu0.18.04.1 6 | 7 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 8 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 9 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 10 | /*!40101 SET NAMES utf8 */; 11 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 12 | /*!40103 SET TIME_ZONE='+00:00' */; 13 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; 14 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; 15 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; 16 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 17 | 18 | -- 19 | -- Table structure for table `user` 20 | -- 21 | 22 | DROP TABLE IF EXISTS `user`; 23 | /*!40101 SET @saved_cs_client = @@character_set_client */; 24 | /*!40101 SET character_set_client = utf8 */; 25 | CREATE TABLE `user` ( 26 | `RollNo` varchar(50) NOT NULL, 27 | `Name` varchar(50) DEFAULT NULL, 28 | `Type` varchar(50) DEFAULT NULL, 29 | `Category` varchar(50) DEFAULT NULL, 30 | `EmailId` varchar(50) DEFAULT NULL, 31 | `MobNo` bigint(11) DEFAULT NULL, 32 | `Password` varchar(50) DEFAULT NULL, 33 | PRIMARY KEY (`RollNo`), 34 | UNIQUE KEY `EmailId` (`EmailId`) 35 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 36 | /*!40101 SET character_set_client = @saved_cs_client */; 37 | 38 | -- 39 | -- Dumping data for table `user` 40 | -- 41 | 42 | LOCK TABLES `user` WRITE; 43 | /*!40000 ALTER TABLE `user` DISABLE KEYS */; 44 | INSERT INTO `user` VALUES ('ADMIN','admin','Admin',NULL,'admin@nitc.ac.in',123456789,'admin'),('b160001cs','John','Student','GEN','john@gmail.com',9876543210,'b160001cs'),('b160002cs','Adam','Student','ST','adam@yahoo.com',7845965212,'b160002cs'),('b160003ch','Alice','Student','OBC','alice@hotmail.com',4512451245,'b160003ch'),('b160004me','Abbot','Student','GEN','abbot@gmail.com',6352416352,'b160004me'),('b160005ce','bale','Student','SC','bale@gmail.com',96685747485,'b160005ce'),('b160006cs','Bob','Student','GEN','bob@gmail.com',4141415263,'b160006cs'),('b160007cs','Goku','Student','GEN','goku@yahoo.com',4545451212,'b160007cs'),('b160008cs','Ben','Student','GEN','ben10@hotmail.com',6352416345,'b160008cs'),('b160009cs','Ash','Student','GEN','ash@yahoo.com',7845124578,'b160009cs'),('b160010cs','Harry','Student','GEN','harry@hotmail.com',4578457845,'b160010cs'),('b160011ch','Gwen','Student','GEN','gwen@yahoo.com',9685747474,'b160011ch'),('b160012me','Kevin','Student','ST','kevin11@hotmail.com',1242425163,'b160012me'),('b160013ee','Max','Student','OBC','max@gmail.com',9685748574,'b160013ee'),('B160111Cs','Bharat','Student','GEN','bharat@gmail.com',123456,'abcd'),('B160158CS','MANU','Student','GEN','manu@gmail.com',8365917597,'manu'),('b160257me','Eve','Student','GEN','eve@gmail.com',5451525356,'b160257me'),('b160321ec','Joey','Student','SC','joey@yahoo.com',9898982020,'b160321ec'),('b160412cs','Barney','Student','ST','legendary@gmail.com',9695989192,'b160412cs'),('b160423cs','Rachel','Student','GEN','rachel@gmail.com',7475787671,'b160423cs'),('B160511CS','MALHAR','Student','OBC','malhar@gmail.com',9756153859,'abcd'),('B160632CS','KENIL','Student','GEN','kenilshah081198@gmail.com',9892506094,'1234'),('b160777cs','Sheldon','Student','GEN','smartestpersoninroom@gmail.com',9696969696,'b160777cs'),('b160854cs','Ram Prabhu','Student','SC','ram@nitc.ac.in',968599,'1234'),('b160951cs','Misty','Student','SC','watermaster@hotmail.com',4145424847,'b160951cs'),('b160999cs','Chandler','Student','OBC','sarcasticlord@hotmail.com',9494959694,'b160999cs'); 45 | /*!40000 ALTER TABLE `user` ENABLE KEYS */; 46 | UNLOCK TABLES; 47 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 48 | 49 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 50 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; 51 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; 52 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 53 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 54 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 55 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 56 | 57 | -- Dump completed on 2018-10-27 13:20:27 58 | -------------------------------------------------------------------------------- /PROJECT/dbconn.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PROJECT/images/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/images/background.jpg -------------------------------------------------------------------------------- /PROJECT/index.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Library Member Login Form 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |

LIBRARY MEMBER LOGIN

34 | 35 |
36 | 37 | 52 | 53 |
54 |

Sign Up

55 |
56 | 57 | 58 | 59 | 60 | 61 | 62 | 68 |
69 | 70 | 71 |
72 |
73 | 74 | 75 |
76 |

By creating an account, you agree to our Terms

77 |
78 |
79 | 80 |
81 | 82 |
83 | 84 | 88 | 89 | query($sql); 98 | $row = $result->fetch_assoc(); 99 | $x=$row['Password']; 100 | $y=$row['Type']; 101 | if(strcasecmp($x,$p)==0 && !empty($u) && !empty($p)) 102 | {//echo "Login Successful"; 103 | $_SESSION['RollNo']=$u; 104 | 105 | 106 | if($y=='Admin') 107 | header('location:admin/index.php'); 108 | else 109 | header('location:student/index.php'); 110 | 111 | } 112 | else 113 | { echo ""; 114 | } 115 | 116 | 117 | } 118 | 119 | if(isset($_POST['signup'])) 120 | { 121 | $name=$_POST['Name']; 122 | $email=$_POST['Email']; 123 | $password=$_POST['Password']; 124 | $mobno=$_POST['PhoneNumber']; 125 | $rollno=$_POST['RollNo']; 126 | $category=$_POST['Category']; 127 | $type='Student'; 128 | 129 | $sql="insert into LMS.user (Name,Type,Category,RollNo,EmailId,MobNo,Password) values ('$name','$type','$category','$rollno','$email','$mobno','$password')"; 130 | 131 | if ($conn->query($sql) === TRUE) { 132 | echo ""; 133 | } else { 134 | //echo "Error: " . $sql . "
" . $conn->error; 135 | echo ""; 136 | } 137 | } 138 | 139 | ?> 140 | 141 | 142 | 143 | 144 | 145 | -------------------------------------------------------------------------------- /PROJECT/screenshots/add_book_admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/add_book_admin.png -------------------------------------------------------------------------------- /PROJECT/screenshots/currently_issued_books_admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/currently_issued_books_admin.png -------------------------------------------------------------------------------- /PROJECT/screenshots/currently_issued_books_student.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/currently_issued_books_student.png -------------------------------------------------------------------------------- /PROJECT/screenshots/home_admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/home_admin.png -------------------------------------------------------------------------------- /PROJECT/screenshots/home_student.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/home_student.png -------------------------------------------------------------------------------- /PROJECT/screenshots/issue_requests_admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/issue_requests_admin.png -------------------------------------------------------------------------------- /PROJECT/screenshots/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/login.png -------------------------------------------------------------------------------- /PROJECT/screenshots/manage_students_admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/manage_students_admin.png -------------------------------------------------------------------------------- /PROJECT/screenshots/previously_issued_books_student.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/previously_issued_books_student.png -------------------------------------------------------------------------------- /PROJECT/screenshots/recommend_book_student.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/recommend_book_student.png -------------------------------------------------------------------------------- /PROJECT/screenshots/renew_requests.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/renew_requests.png -------------------------------------------------------------------------------- /PROJECT/screenshots/return_requests.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/return_requests.png -------------------------------------------------------------------------------- /PROJECT/screenshots/send_message_admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/send_message_admin.png -------------------------------------------------------------------------------- /PROJECT/screenshots/view_and_issue_books_student.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/view_and_issue_books_student.png -------------------------------------------------------------------------------- /PROJECT/screenshots/view_and_update_books_admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/view_and_update_books_admin.png -------------------------------------------------------------------------------- /PROJECT/screenshots/view_messages_student.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/view_messages_student.png -------------------------------------------------------------------------------- /PROJECT/screenshots/view_recommendations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/view_recommendations.png -------------------------------------------------------------------------------- /PROJECT/screenshots/view_requests.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/screenshots/view_requests.png -------------------------------------------------------------------------------- /PROJECT/see.php: -------------------------------------------------------------------------------- 1 | query($sql1) === TRUE){ 16 | 17 | 18 | echo ""; 19 | } 20 | else 21 | {//echo $conn->error; 22 | echo ""; 23 | }*/ 24 | 25 | } 26 | ?> 27 | -------------------------------------------------------------------------------- /PROJECT/student/bookdetails.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 69 | 70 |
71 | 72 | 73 |
74 |
75 | 76 |
77 |
78 |

Book Details

79 |
80 |
81 | query($sql); 85 | $row=$result->fetch_assoc(); 86 | 87 | $bookid=$row['BookId']; 88 | $name=$row['Title']; 89 | $publisher=$row['Publisher']; 90 | $year=$row['Year']; 91 | $avail=$row['Availability']; 92 | echo "Book ID: ".$bookid."

"; 93 | echo "Title: ".$name."

"; 94 | $sql1="select * from LMS.author where BookId='$bookid'"; 95 | $result=$conn->query($sql1); 96 | 97 | echo "Author: "; 98 | while($row1=$result->fetch_assoc()) 99 | { 100 | echo $row1['Author']." "; 101 | } 102 | echo "

"; 103 | echo "Publisher: ".$publisher."

"; 104 | echo "Year: ".$year."

"; 105 | echo "Availability: ".$avail."

"; 106 | 107 | 108 | 109 | 110 | ?> 111 | 112 | Go Back 113 |
114 |
115 |
116 | 117 | 118 | 119 | 120 | 121 |
122 | 123 | 124 |
125 | 126 |
127 |
128 | 129 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | alert('Access Denied!!!')"; 151 | } ?> -------------------------------------------------------------------------------- /PROJECT/student/bootstrap/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/student/bootstrap/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /PROJECT/student/bootstrap/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/student/bootstrap/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /PROJECT/student/dbconn.php: -------------------------------------------------------------------------------- 1 | 14 | -------------------------------------------------------------------------------- /PROJECT/student/findbook.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 69 | 70 |
71 | 72 | 73 |
74 | 75 |
76 |
77 |
78 | Find Book 79 | 80 |
81 |
82 | 83 |
84 | 85 | 86 |
87 | 88 | 89 |
90 |
91 | 92 |
93 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | alert('Access Denied!!!')"; 115 | } ?> -------------------------------------------------------------------------------- /PROJECT/student/history.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 69 | 70 |
71 | 72 | 73 |
74 |
75 |
76 | 77 |
78 | 79 | 80 |
81 |
82 |
83 |
84 | query($sql); 95 | $rowcount=mysqli_num_rows($result); 96 | 97 | if(!($rowcount)) 98 | echo "

No Results

"; 99 | else 100 | { 101 | 102 | ?> 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | fetch_assoc()) 118 | { 119 | $bookid=$row['BookId']; 120 | $name=$row['Title']; 121 | $issuedate=$row['Date_of_Issue']; 122 | $returndate=$row['Date_of_Return']; 123 | ?> 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 |
Book idBook nameIssue DateReturn Date
134 |
135 | 136 |
137 |
138 | 139 |
140 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | alert('Access Denied!!!')"; 162 | } ?> -------------------------------------------------------------------------------- /PROJECT/student/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/student/images/bg.png -------------------------------------------------------------------------------- /PROJECT/student/images/icons/font/fontawesome-webfont3294.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/student/images/icons/font/fontawesome-webfont3294.eot -------------------------------------------------------------------------------- /PROJECT/student/images/icons/font/fontawesome-webfont3294.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/student/images/icons/font/fontawesome-webfont3294.ttf -------------------------------------------------------------------------------- /PROJECT/student/images/icons/font/fontawesome-webfont3294.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/student/images/icons/font/fontawesome-webfont3294.woff -------------------------------------------------------------------------------- /PROJECT/student/images/icons/font/fontawesome-webfontd41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/student/images/icons/font/fontawesome-webfontd41d.eot -------------------------------------------------------------------------------- /PROJECT/student/images/img.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/student/images/img.jpg -------------------------------------------------------------------------------- /PROJECT/student/images/jquery-ui/picker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/student/images/jquery-ui/picker.png -------------------------------------------------------------------------------- /PROJECT/student/images/profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/student/images/profile.png -------------------------------------------------------------------------------- /PROJECT/student/images/profile2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/student/images/profile2.png -------------------------------------------------------------------------------- /PROJECT/student/images/profile3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/student/images/profile3.png -------------------------------------------------------------------------------- /PROJECT/student/images/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/PROJECT/student/images/user.png -------------------------------------------------------------------------------- /PROJECT/student/index.php: -------------------------------------------------------------------------------- 1 |  4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | LMS 13 | 14 | 15 | 16 | 17 | 19 | 20 | 21 | 46 | 47 |
48 |
49 |
50 |
51 | 66 | 67 |
68 | 69 |
70 |
71 |
72 | Card image cap 73 |
74 | 75 | query($sql); 79 | $row=$result->fetch_assoc(); 80 | 81 | $name=$row['Name']; 82 | $category=$row['Category']; 83 | $email=$row['EmailId']; 84 | $mobno=$row['MobNo']; 85 | ?> 86 | 87 |

88 |
89 |

Email ID:

90 |
91 |

Roll No:

92 |
93 |

Category:

94 |
95 |

Mobile number:

96 | 97 |
98 | 99 |
100 |
101 |
102 | Edit Details 103 |
104 |
105 | 106 | 107 |
108 |
109 | 110 |
111 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | -------------------------------------------------------------------------------- /PROJECT/student/issue_request.php: -------------------------------------------------------------------------------- 1 | query($sql) === TRUE) 11 | { 12 | echo ""; 13 | header( "Refresh:0.01; url=book.php", true, 303); 14 | } 15 | else 16 | { 17 | echo ""; 18 | header( "Refresh:0.01; url=book.php", true, 303); 19 | 20 | } 21 | 22 | 23 | 24 | 25 | ?> -------------------------------------------------------------------------------- /PROJECT/student/logout.php: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /PROJECT/student/message.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 69 | 70 |
71 |
72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | query($sql); 85 | while($row=$result->fetch_assoc()) 86 | { 87 | $msg=$row['Msg']; 88 | $date=$row['Date']; 89 | $time=$row['Time']; 90 | 91 | 92 | ?> 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 |
MessageDateTime
101 |
102 | 103 | 104 | 105 |
106 |
107 | 108 |
109 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | alert('Access Denied!!!')"; 131 | } ?> -------------------------------------------------------------------------------- /PROJECT/student/recommendations.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | LMS 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 49 | 50 |
51 |
52 |
53 |
54 | 69 | 70 |
71 | 72 | 73 |
74 |
75 | 76 |
77 |
78 |

Reccomend a Book

79 |
80 |
81 | 82 | 83 |
84 | 85 |
86 |
87 | 88 |
89 | 90 |
91 |
92 | 93 |
94 | 95 |
96 | 97 |
98 |
99 | 100 |
101 |
102 | 103 |
104 |
105 |
106 |
107 |
108 | 109 | 110 | 111 |
112 |
113 | 114 | 115 |
116 |
117 | 118 |
119 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | query($sql1) === TRUE){ 146 | 147 | 148 | echo ""; 149 | } 150 | else 151 | {//echo $conn->error; 152 | echo ""; 153 | } 154 | 155 | } 156 | ?> 157 | 158 | 159 | 160 | 161 | 162 | alert('Access Denied!!!')"; 165 | } ?> -------------------------------------------------------------------------------- /PROJECT/student/renew_request.php: -------------------------------------------------------------------------------- 1 | query($sql) === TRUE) 11 | { 12 | echo ""; 13 | header( "Refresh:0.01; url=current.php", true, 303); 14 | } 15 | else 16 | { 17 | echo ""; 18 | header( "Refresh:0.01; url=current.php", true, 303); 19 | 20 | } 21 | 22 | 23 | 24 | 25 | ?> -------------------------------------------------------------------------------- /PROJECT/student/return_request.php: -------------------------------------------------------------------------------- 1 | query($sql) === TRUE) 11 | { 12 | echo ""; 13 | header( "Refresh:0.01; url=current.php", true, 303); 14 | } 15 | else 16 | { 17 | echo ""; 18 | header( "Refresh:0.01; url=current.php", true, 303); 19 | 20 | } 21 | 22 | 23 | 24 | 25 | ?> -------------------------------------------------------------------------------- /PROJECT/student/scripts/common.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function () { 2 | if($('.datatable-1').length>0){ 3 | $('.datatable-1').dataTable(); 4 | $('.dataTables_paginate').addClass('btn-group datatable-pagination'); 5 | $('.dataTables_paginate > a').wrapInner(''); 6 | $('.dataTables_paginate > a:first-child').append(''); 7 | $('.dataTables_paginate > a:last-child').append(''); 8 | 9 | $( '.slider-range').slider({ 10 | range: true, 11 | min: 0, 12 | max: 20000, 13 | values: [ 3000, 12000 ], 14 | slide: function(event, ui) { 15 | $(this).find('.ui-slider-handle').attr('title', ui.value); 16 | }, 17 | }); 18 | 19 | $( '#amount' ).val( '$' + $( '.slider-range' ).slider( 'values', 0 ) + ' - $' + $( '.slider-range' ).slider( 'values', 1 ) ); 20 | 21 | 22 | //Graph/Chart index.html 23 | 24 | var d1 = [ [0, 1], [1, 14], [2, 5], [3, 4], [4, 5], [5, 1], [6, 14], [7, 5], [8, 5] ]; 25 | var d2 = [ [0, 5], [1, 2], [2, 10], [3, 1], [4, 9], [5, 5], [6, 2], [7, 10], [8, 8] ]; 26 | 27 | var plot = $.plot($('#placeholder2'), 28 | [ { data: d1, label: 'Profits'}, { data: d2, label: 'Expenses' } ], { 29 | lines: { 30 | show: true, 31 | fill: true, /*SWITCHED*/ 32 | lineWidth: 2 33 | }, 34 | points: { 35 | show: true, 36 | lineWidth: 5 37 | }, 38 | grid: { 39 | clickable: true, 40 | hoverable: true, 41 | autoHighlight: true, 42 | mouseActiveRadius: 10, 43 | aboveData: true, 44 | backgroundColor: '#fff', 45 | borderWidth: 0, 46 | minBorderMargin: 25, 47 | }, 48 | colors: [ '#55f3c0', '#0db37e', '#b4fae3', '#e0d1cb'], 49 | shadowSize: 0 50 | }); 51 | 52 | function showTooltip(x, y, contents) { 53 | $('
' + contents + '
').css( { 54 | position: 'absolute', 55 | display: 'none', 56 | top: y + 5, 57 | left: x + 5 58 | }).appendTo('body').fadeIn(300); 59 | } 60 | 61 | var previousPoint = null; 62 | $('#placeholder2').bind('plothover', function (event, pos, item) { 63 | $('#x').text(pos.x.toFixed(2)); 64 | $('#y').text(pos.y.toFixed(2)); 65 | 66 | if (item) { 67 | if (previousPoint != item.dataIndex) { 68 | previousPoint = item.dataIndex; 69 | 70 | $('#gridtip').remove(); 71 | var x = item.datapoint[0].toFixed(0), 72 | y = item.datapoint[1].toFixed(0); 73 | 74 | showTooltip(item.pageX, item.pageY, 75 | 'x : ' + x + '    y : ' + y); 76 | } 77 | } 78 | else { 79 | $('#gridtip').remove(); 80 | previousPoint = null; 81 | } 82 | }); 83 | } 84 | 85 | else 86 | { 87 | var d1 = [ [0, 1], [1, 14], [2, 5], [3, 4], [4, 5], [5, 1], [6, 14], [7, 5], [8, 5] ]; 88 | var d2 = [ [0, 5], [1, 2], [2, 10], [3, 1], [4, 9], [5, 5], [6, 2], [7, 10], [8, 8] ]; 89 | 90 | var plot = $.plot($("#placeholder"), 91 | [ { data: d1, label: "Data A" }, { data: d2, label: "Data B" } ], { 92 | lines: { 93 | show: true, 94 | fill: false, 95 | lineWidth: 2 96 | }, 97 | points: { 98 | show: true, 99 | lineWidth: 5 100 | }, 101 | grid: { 102 | clickable: true, 103 | hoverable: true, 104 | autoHighlight: true, 105 | mouseActiveRadius: 10, 106 | aboveData: true, 107 | backgroundColor: "#fafafa", 108 | borderWidth: 0, 109 | minBorderMargin: 25, 110 | }, 111 | colors: [ "#090", "#099", "#609", "#900"], 112 | shadowSize: 0 113 | }); 114 | 115 | var d1 = [ [0, 1], [1, 14], [2, 5], [3, 4], [4, 5], [5, 1], [6, 14], [7, 5], [8, 5] ]; 116 | var d2 = [ [0, 5], [1, 2], [2, 10], [3, 1], [4, 9], [5, 5], [6, 2], [7, 10], [8, 8] ]; 117 | 118 | var plot = $.plot($("#placeholder2"), 119 | [ { data: d1, label: "Data Y"}, { data: d2, label: "Data X" } ], { 120 | lines: { 121 | show: true, 122 | fill: true, /*SWITCHED*/ 123 | lineWidth: 2 124 | }, 125 | points: { 126 | show: true, 127 | lineWidth: 5 128 | }, 129 | grid: { 130 | clickable: true, 131 | hoverable: true, 132 | autoHighlight: true, 133 | mouseActiveRadius: 10, 134 | aboveData: true, 135 | backgroundColor: "#fafafa", 136 | borderWidth: 0, 137 | minBorderMargin: 25, 138 | }, 139 | colors: [ "#090", "#099", "#609", "#900"], 140 | shadowSize: 0 141 | }); 142 | 143 | function showTooltip(x, y, contents) { 144 | $('
' + contents + '
').css( { 145 | position: 'absolute', 146 | display: 'none', 147 | top: y + 5, 148 | left: x + 5 149 | }).appendTo("body").fadeIn(300); 150 | } 151 | 152 | var previousPoint = null; 153 | $("#placeholder2").bind("plothover", function (event, pos, item) { 154 | $("#x").text(pos.x.toFixed(2)); 155 | $("#y").text(pos.y.toFixed(2)); 156 | 157 | if (item) { 158 | if (previousPoint != item.dataIndex) { 159 | previousPoint = item.dataIndex; 160 | 161 | $("#gridtip").remove(); 162 | var x = item.datapoint[0].toFixed(0), 163 | y = item.datapoint[1].toFixed(0); 164 | 165 | showTooltip(item.pageX, item.pageY, 166 | "x : " + x + "    y : " + y); 167 | } 168 | } 169 | else { 170 | $("#gridtip").remove(); 171 | previousPoint = null; 172 | } 173 | }); 174 | 175 | // PREDEFINED DATA 176 | var data = [ 177 | { label: "Series1", data: [[1, 10]] }, 178 | { label: "Series2", data: [[1, 30]] }, 179 | { label: "Series3", data: [[1, 90]] } 180 | ]; 181 | 182 | // DEFAULT 183 | $.plot($("#pie-default"), data, 184 | { 185 | series: { 186 | pie: { 187 | show: true 188 | } 189 | } 190 | }); 191 | 192 | // DEFINE ACTIONS FOR pieHover & pieClick 193 | function pieHover(event, pos, obj) { 194 | if (!obj) 195 | return; 196 | percent = parseFloat(obj.series.percent).toFixed(2); 197 | $("#hover").html('' + obj.series.label + ' - ' + percent + '%'); 198 | } 199 | 200 | function pieClick(event, pos, obj) { 201 | if (!obj) 202 | return; 203 | percent = parseFloat(obj.series.percent).toFixed(2); 204 | alert('' + obj.series.label + ': ' + percent + '%'); 205 | } 206 | 207 | // DONUT 208 | $.plot($("#pie-donut"), data, 209 | { 210 | series: { 211 | pie: { 212 | innerRadius: 50, 213 | show: true 214 | } 215 | } 216 | }); 217 | 218 | // DONUT + INTERACTIVE 219 | $.plot($("#pie-interactive"), data, 220 | { 221 | series: { 222 | pie: { 223 | innerRadius: 50, 224 | show: true 225 | } 226 | }, 227 | grid: { 228 | hoverable: true, 229 | clickable: true 230 | } 231 | }); 232 | 233 | $("#pie-interactive").bind("plothover", pieHover); 234 | $("#pie-interactive").bind("plotclick", pieClick); 235 | } 236 | }); 237 | -------------------------------------------------------------------------------- /PROJECT/student/scripts/flot/jquery.flot.resize.js: -------------------------------------------------------------------------------- 1 | /* 2 | Flot plugin for automatically redrawing plots when the placeholder 3 | size changes, e.g. on window resizes. 4 | 5 | It works by listening for changes on the placeholder div (through the 6 | jQuery resize event plugin) - if the size changes, it will redraw the 7 | plot. 8 | 9 | There are no options. If you need to disable the plugin for some 10 | plots, you can just fix the size of their placeholders. 11 | */ 12 | 13 | 14 | /* Inline dependency: 15 | * jQuery resize event - v1.1 - 3/14/2010 16 | * http://benalman.com/projects/jquery-resize-plugin/ 17 | * 18 | * Copyright (c) 2010 "Cowboy" Ben Alman 19 | * Dual licensed under the MIT and GPL licenses. 20 | * http://benalman.com/about/license/ 21 | */ 22 | (function($,h,c){var a=$([]),e=$.resize=$.extend($.resize,{}),i,k="setTimeout",j="resize",d=j+"-special-event",b="delay",f="throttleWindow";e[b]=250;e[f]=true;$.event.special[j]={setup:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.add(l);$.data(this,d,{w:l.width(),h:l.height()});if(a.length===1){g()}},teardown:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.not(l);l.removeData(d);if(!a.length){clearTimeout(i)}},add:function(l){if(!e[f]&&this[k]){return false}var n;function m(s,o,p){var q=$(this),r=$.data(this,d);r.w=o!==c?o:q.width();r.h=p!==c?p:q.height();n.apply(this,arguments)}if($.isFunction(l)){n=l;return m}else{n=l.handler;l.handler=m}}};function g(){i=h[k](function(){a.each(function(){var n=$(this),m=n.width(),l=n.height(),o=$.data(this,d);if(m!==o.w||l!==o.h){n.trigger(j,[o.w=m,o.h=l])}});g()},e[b])}})(jQuery,this); 23 | 24 | 25 | (function ($) { 26 | var options = { }; // no options 27 | 28 | function init(plot) { 29 | function onResize() { 30 | var placeholder = plot.getPlaceholder(); 31 | 32 | // somebody might have hidden us and we can't plot 33 | // when we don't have the dimensions 34 | if (placeholder.width() == 0 || placeholder.height() == 0) 35 | return; 36 | 37 | plot.resize(); 38 | plot.setupGrid(); 39 | plot.draw(); 40 | } 41 | 42 | function bindEvents(plot, eventHolder) { 43 | plot.getPlaceholder().resize(onResize); 44 | } 45 | 46 | function shutdown(plot, eventHolder) { 47 | plot.getPlaceholder().unbind("resize", onResize); 48 | } 49 | 50 | plot.hooks.bindEvents.push(bindEvents); 51 | plot.hooks.shutdown.push(shutdown); 52 | } 53 | 54 | $.plot.plugins.push({ 55 | init: init, 56 | options: options, 57 | name: 'resize', 58 | version: '1.0' 59 | }); 60 | })(jQuery); 61 | -------------------------------------------------------------------------------- /PROJECT/terms.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Terms and Conditions 6 | 7 | 8 | 9 |

Please go through NITC website for terms and conditions.

10 | 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Library-management-system 2 | a simple website for library management system on php and mysql 3 | 4 | Live demo can be found [here](http://athena.nitc.ac.in/~shah_b160632cs) 5 | -------------------------------------------------------------------------------- /SDD.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/SDD.pdf -------------------------------------------------------------------------------- /SRS.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/SRS.pdf -------------------------------------------------------------------------------- /presentation.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/presentation.pptx -------------------------------------------------------------------------------- /user manual.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenil0811/Library-management-system/907667cd234d0cdbccd7ff83484336e0ea444316/user manual.pdf --------------------------------------------------------------------------------