├── studentid.txt ├── Screenshots ├── Login.png ├── profile.png ├── report.png ├── User_wise.png ├── add_book.png ├── issue_book.png ├── set_fine.png ├── add_category.png ├── manage_books.png ├── add_publication.png ├── admin_dashboard.png ├── change_password.png ├── overdue_report.png ├── request_a_book.png ├── manage_categories.png ├── manage_issued_books.png ├── manage_publications.png ├── registered_students.png ├── manage_issued_books 2.png └── manage_requested_books.png ├── assets ├── img │ └── logo.png ├── fonts │ ├── fontawesome-webfont862f.eot │ ├── fontawesome-webfont862f.ttf │ ├── fontawesome-webfont862f.woff │ ├── fontawesome-webfontd41d.eot │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regulard41d.eot ├── js │ ├── custom.js │ └── dataTables │ │ └── dataTables.bootstrap.css └── css │ └── style.css ├── admin ├── assets │ ├── img │ │ ├── 1.jpg │ │ ├── 2.jpg │ │ ├── 3.jpg │ │ └── logo.png │ ├── fonts │ │ ├── fontawesome-webfont862f.eot │ │ ├── fontawesome-webfont862f.ttf │ │ ├── fontawesome-webfontd41d.eot │ │ ├── fontawesome-webfont862f.woff │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regulard41d.eot │ ├── js │ │ ├── custom.js │ │ └── dataTables │ │ │ └── dataTables.bootstrap.css │ └── css │ │ └── style.css ├── 1.php ├── includes │ ├── config.php │ └── header.php ├── logout.php ├── get_book.php ├── get_student.php ├── overduereport.php ├── Clientreport.php ├── bgwork.php ├── report.php ├── index.php ├── add-publications.php ├── edit-publication.php ├── set-fine.php ├── add-category.php ├── edit-category.php ├── change-password.php ├── issue-book.php ├── b.php ├── a.php ├── issue-book2.php ├── add-book.php ├── manage-requested-books.php ├── manage-publications.php ├── reg-students.php ├── update-issue-bookdeails.php ├── edit-book.php ├── manage-categories.php ├── manage-books.php └── manage-issued-books.php ├── includes ├── config.php └── header.php ├── captcha.php ├── logout.php ├── check_availability.php ├── temp.php ├── adminlogin.php ├── README.md ├── dashboard.php ├── index.php ├── user-forgot-password.php ├── change-password.php ├── my-profile.php ├── signup.php ├── issued-books.php └── request-a-book.php /studentid.txt: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /Screenshots/Login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/Login.png -------------------------------------------------------------------------------- /assets/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/assets/img/logo.png -------------------------------------------------------------------------------- /Screenshots/profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/profile.png -------------------------------------------------------------------------------- /Screenshots/report.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/report.png -------------------------------------------------------------------------------- /admin/assets/img/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/admin/assets/img/1.jpg -------------------------------------------------------------------------------- /admin/assets/img/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/admin/assets/img/2.jpg -------------------------------------------------------------------------------- /admin/assets/img/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/admin/assets/img/3.jpg -------------------------------------------------------------------------------- /Screenshots/User_wise.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/User_wise.png -------------------------------------------------------------------------------- /Screenshots/add_book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/add_book.png -------------------------------------------------------------------------------- /Screenshots/issue_book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/issue_book.png -------------------------------------------------------------------------------- /Screenshots/set_fine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/set_fine.png -------------------------------------------------------------------------------- /admin/assets/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/admin/assets/img/logo.png -------------------------------------------------------------------------------- /Screenshots/add_category.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/add_category.png -------------------------------------------------------------------------------- /Screenshots/manage_books.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/manage_books.png -------------------------------------------------------------------------------- /Screenshots/add_publication.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/add_publication.png -------------------------------------------------------------------------------- /Screenshots/admin_dashboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/admin_dashboard.png -------------------------------------------------------------------------------- /Screenshots/change_password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/change_password.png -------------------------------------------------------------------------------- /Screenshots/overdue_report.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/overdue_report.png -------------------------------------------------------------------------------- /Screenshots/request_a_book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/request_a_book.png -------------------------------------------------------------------------------- /Screenshots/manage_categories.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/manage_categories.png -------------------------------------------------------------------------------- /Screenshots/manage_issued_books.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/manage_issued_books.png -------------------------------------------------------------------------------- /Screenshots/manage_publications.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/manage_publications.png -------------------------------------------------------------------------------- /Screenshots/registered_students.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/registered_students.png -------------------------------------------------------------------------------- /Screenshots/manage_issued_books 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/manage_issued_books 2.png -------------------------------------------------------------------------------- /Screenshots/manage_requested_books.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/Screenshots/manage_requested_books.png -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont862f.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/assets/fonts/fontawesome-webfont862f.eot -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont862f.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/assets/fonts/fontawesome-webfont862f.ttf -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfont862f.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/assets/fonts/fontawesome-webfont862f.woff -------------------------------------------------------------------------------- /assets/fonts/fontawesome-webfontd41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/assets/fonts/fontawesome-webfontd41d.eot -------------------------------------------------------------------------------- /admin/assets/fonts/fontawesome-webfont862f.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/admin/assets/fonts/fontawesome-webfont862f.eot -------------------------------------------------------------------------------- /admin/assets/fonts/fontawesome-webfont862f.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/admin/assets/fonts/fontawesome-webfont862f.ttf -------------------------------------------------------------------------------- /admin/assets/fonts/fontawesome-webfontd41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/admin/assets/fonts/fontawesome-webfontd41d.eot -------------------------------------------------------------------------------- /assets/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/assets/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /assets/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/assets/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /assets/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/assets/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /admin/assets/fonts/fontawesome-webfont862f.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/admin/assets/fonts/fontawesome-webfont862f.woff -------------------------------------------------------------------------------- /admin/assets/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/admin/assets/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /admin/assets/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/admin/assets/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /assets/fonts/glyphicons-halflings-regulard41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/assets/fonts/glyphicons-halflings-regulard41d.eot -------------------------------------------------------------------------------- /admin/assets/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/admin/assets/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /admin/assets/fonts/glyphicons-halflings-regulard41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhijadhav8308/Library-Management-System/HEAD/admin/assets/fonts/glyphicons-halflings-regulard41d.eot -------------------------------------------------------------------------------- /admin/1.php: -------------------------------------------------------------------------------- 1 | prepare($ret); 5 | $query-> execute(); 6 | $results=$query->fetchAll(PDO::FETCH_OBJ); 7 | if($query->rowCount() > 0) 8 | { 9 | foreach($results as $result) 10 | { 11 | $fine=$result->fine; 12 | echo""; 13 | } 14 | } 15 | ?> -------------------------------------------------------------------------------- /includes/config.php: -------------------------------------------------------------------------------- 1 | "SET NAMES 'utf8'")); 10 | } 11 | catch (PDOException $e) 12 | { 13 | exit("Error: " . $e->getMessage()); 14 | } 15 | ?> -------------------------------------------------------------------------------- /captcha.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/includes/config.php: -------------------------------------------------------------------------------- 1 | "SET NAMES 'utf8'")); 11 | } 12 | catch (PDOException $e) 13 | { 14 | exit("Error: " . $e->getMessage()); 15 | } 16 | ?> -------------------------------------------------------------------------------- /logout.php: -------------------------------------------------------------------------------- 1 | 16 | 17 | -------------------------------------------------------------------------------- /admin/logout.php: -------------------------------------------------------------------------------- 1 | prepare($ret); 14 | $query-> execute(); 15 | unset($_SESSION['login']); 16 | session_destroy(); // destroy session 17 | header("location:../adminlogin.php"); 18 | ?> 19 | 20 | -------------------------------------------------------------------------------- /admin/get_book.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 8 | $query-> bindParam(':bookid', $bookid, PDO::PARAM_STR); 9 | $query-> execute(); 10 | $results = $query -> fetchAll(PDO::FETCH_OBJ); 11 | $cnt=1; 12 | if($query -> rowCount() > 0) 13 | { 14 | foreach ($results as $result) {?> 15 | 16 | Book Name : 17 | BookName); 19 | echo ""; 20 | } 21 | } 22 | else{?> 23 | 24 | 25 | $('#submit').prop('disabled',true);"; 27 | } 28 | } 29 | ?> 30 | -------------------------------------------------------------------------------- /check_availability.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 13 | $query-> bindParam(':email', $email, PDO::PARAM_STR); 14 | $query-> execute(); 15 | $results = $query -> fetchAll(PDO::FETCH_OBJ); 16 | $cnt=1; 17 | if($query -> rowCount() > 0) 18 | { 19 | echo " Email already exists ."; 20 | echo ""; 21 | } else{ 22 | 23 | echo " Email available for Registration ."; 24 | echo ""; 25 | } 26 | } 27 | } 28 | 29 | 30 | ?> 31 | -------------------------------------------------------------------------------- /admin/get_student.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 8 | $query-> bindParam(':studentid', $studentid, PDO::PARAM_STR); 9 | $query-> execute(); 10 | $results = $query -> fetchAll(PDO::FETCH_OBJ); 11 | $cnt=1; 12 | if($query -> rowCount() > 0) 13 | { 14 | foreach ($results as $result) { 15 | if($result->Status==0) 16 | { 17 | echo " Student ID Blocked "."
"; 18 | echo "Student Name-" .$result->FullName; 19 | echo ""; 20 | } else { 21 | ?> 22 | 23 | 24 | FullName); 26 | echo ""; 27 | } 28 | } 29 | } 30 | else{ 31 | 32 | echo " Invaid Student Id. Please Enter Valid Student id ."; 33 | echo ""; 34 | } 35 | } 36 | ?> 37 | -------------------------------------------------------------------------------- /assets/js/custom.js: -------------------------------------------------------------------------------- 1 | 2 | /*============================================================= 3 | Authour URI: www.binarytheme.com 4 | License: Commons Attribution 3.0 5 | 6 | http://creativecommons.org/licenses/by/3.0/ 7 | 8 | 100% Free To use For Personal And Commercial Use. 9 | IN EXCHANGE JUST GIVE US CREDITS AND TELL YOUR FRIENDS ABOUT US 10 | 11 | ======================================================== */ 12 | 13 | (function ($) { 14 | "use strict"; 15 | var mainApp = { 16 | slide_fun: function () { 17 | 18 | $('#carousel-example').carousel({ 19 | interval:3000 // THIS TIME IS IN MILLI SECONDS 20 | }) 21 | 22 | }, 23 | dataTable_fun: function () { 24 | 25 | $('#dataTables-example').dataTable(); 26 | 27 | }, 28 | 29 | custom_fun:function() 30 | { 31 | /*==================================== 32 | WRITE YOUR SCRIPTS BELOW 33 | ======================================*/ 34 | 35 | 36 | 37 | 38 | }, 39 | 40 | } 41 | 42 | 43 | $(document).ready(function () { 44 | mainApp.slide_fun(); 45 | mainApp.dataTable_fun(); 46 | mainApp.custom_fun(); 47 | }); 48 | }(jQuery)); 49 | 50 | 51 | -------------------------------------------------------------------------------- /admin/assets/js/custom.js: -------------------------------------------------------------------------------- 1 | 2 | /*============================================================= 3 | Authour URI: www.binarytheme.com 4 | License: Commons Attribution 3.0 5 | 6 | http://creativecommons.org/licenses/by/3.0/ 7 | 8 | 100% Free To use For Personal And Commercial Use. 9 | IN EXCHANGE JUST GIVE US CREDITS AND TELL YOUR FRIENDS ABOUT US 10 | 11 | ======================================================== */ 12 | 13 | (function ($) { 14 | "use strict"; 15 | var mainApp = { 16 | slide_fun: function () { 17 | 18 | $('#carousel-example').carousel({ 19 | interval:3000 // THIS TIME IS IN MILLI SECONDS 20 | }) 21 | 22 | }, 23 | dataTable_fun: function () { 24 | 25 | $('#dataTables-example').dataTable(); 26 | 27 | }, 28 | 29 | custom_fun:function() 30 | { 31 | /*==================================== 32 | WRITE YOUR SCRIPTS BELOW 33 | ======================================*/ 34 | 35 | 36 | 37 | 38 | }, 39 | 40 | } 41 | 42 | 43 | $(document).ready(function () { 44 | mainApp.slide_fun(); 45 | mainApp.dataTable_fun(); 46 | mainApp.custom_fun(); 47 | }); 48 | }(jQuery)); 49 | 50 | 51 | -------------------------------------------------------------------------------- /admin/overduereport.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 8 | $query->execute(); 9 | $results=$query->fetchAll(PDO::FETCH_OBJ); 10 | 11 | $table = ' 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | '; 22 | $cnt=1; 23 | $totalcredit=0; 24 | if($query->rowCount() > 0) 25 | { 26 | foreach($results as $result) 27 | { 28 | //echo""; 29 | $table .= ' 30 | 31 | 32 | 33 | 34 | 35 | '; 36 | $cnt+=1; 37 | $totalcredit+=$result->Fine; 38 | } 39 | } 40 | $table .= ' 41 | 42 |
Sr NoStudent NameStudent IDPhone NumberFine
'.$cnt.'
'.$result->StudentName.'
'.$result->StudentID.'
'.$result->MobNumber.'
'.$result->Fine.'
43 |
Total Credit:'.$totalcredit.'
44 |
45 | 46 | '; 47 | 48 | echo $table; 49 | 50 | 51 | 52 | ?> -------------------------------------------------------------------------------- /admin/Clientreport.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 8 | $query->execute(); 9 | $results=$query->fetchAll(PDO::FETCH_OBJ); 10 | 11 | $table = ' 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | '; 23 | $cnt=1; 24 | if($query->rowCount() > 0) 25 | { 26 | foreach($results as $result) 27 | { 28 | //echo""; 29 | $table .= ' 30 | 31 | 32 | 33 | 34 | 35 | 36 | '; 37 | } 38 | } 39 | $table .= ' 40 | 41 |
Student NameBook NameBook IDISBN NumberIssued DateReturn Date
'.$result->FullName.'
'.$result->BookName.'
'.$result->id.'
'.$result->ISBNNumber.'
'.$result->IssuesDate.'
'.$result->ReturnDate.'
42 | 43 | '; 44 | 45 | echo $table; 46 | 47 | 48 | 49 | ?> -------------------------------------------------------------------------------- /temp.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 20 | $query->bindParam(':StudentID',$StudentID,PDO::PARAM_STR); 21 | $query->bindParam(':ISBNNumber',$ISBNNumber,PDO::PARAM_STR); 22 | $query->execute(); 23 | $results=$query->fetchAll(PDO::FETCH_OBJ); 24 | $cnt=1; 25 | if($query->rowCount() > 0) 26 | { 27 | $_SESSION['msg']="You have already requested this book"; 28 | header('location:request-a-book.php'); 29 | } 30 | else{ 31 | $sql = "SELECT * from tblrequestedbookdetails where StudentID=:StudentID"; 32 | $query = $dbh -> prepare($sql); 33 | $query->bindParam(':StudentID',$StudentID,PDO::PARAM_STR); 34 | $query->execute(); 35 | $results=$query->fetchAll(PDO::FETCH_OBJ); 36 | $cnt=1; 37 | if($query->rowCount() == 2) 38 | { 39 | $_SESSION['msg']="You cannot request more than 2 books at a time"; 40 | header('location:request-a-book.php'); 41 | } 42 | else 43 | { 44 | $sql="INSERT INTO tblrequestedbookdetails(StudentID,StudName,BookName,CategoryName,AuthorName,ISBNNumber,BookPrice) VALUES(:StudentID,:StudName,:BookName,:CategoryName,:AuthorName,:ISBNNumber,:BookPrice)"; 45 | $query = $dbh->prepare($sql); 46 | $query->bindParam(':StudentID',$StudentID,PDO::PARAM_STR); 47 | $query->bindParam(':StudName',$StudName,PDO::PARAM_STR); 48 | $query->bindParam(':BookName',$BookName,PDO::PARAM_STR); 49 | $query->bindParam(':CategoryName',$CategoryName,PDO::PARAM_STR); 50 | $query->bindParam(':AuthorName',$AuthorName,PDO::PARAM_STR); 51 | $query->bindParam(':ISBNNumber',$ISBNNumber,PDO::PARAM_STR); 52 | $query->bindParam(':BookPrice',$BookPrice,PDO::PARAM_STR); 53 | $query->execute(); 54 | $lastInsertId = $dbh->lastInsertId(); 55 | $_SESSION['msg']="Book requested successfully"; 56 | header('location:request-a-book.php'); 57 | } 58 | } 59 | }?> 60 | 61 | 62 | -------------------------------------------------------------------------------- /admin/bgwork.php: -------------------------------------------------------------------------------- 1 | prepare($ret); 9 | $query-> execute(); 10 | $results=$query->fetchAll(PDO::FETCH_OBJ); 11 | if($query->rowCount() > 0) 12 | { 13 | foreach($results as $result) 14 | { 15 | $_SESSION['fine']=$result->fine; 16 | } 17 | } 18 | 19 | $ret="select BookId,StudentID,IssuesDate from tblissuedbookdetails where ReturnStatus=0"; 20 | $query= $dbh -> prepare($ret); 21 | $query-> execute(); 22 | $results=$query->fetchAll(PDO::FETCH_OBJ); 23 | if($query->rowCount() > 0) 24 | { 25 | foreach($results as $result) 26 | { 27 | $date2=Date("Y/m/d",strtotime($result->IssuesDate)); 28 | $diff=strtotime($date)- strtotime($date2); 29 | $days=floor($diff/86400); 30 | if($days>7){ 31 | $days=$days-7; 32 | //echo""; 33 | $totalfine=$days*$_SESSION['fine']; 34 | $ret1="select * from overdue where StudentID=:id"; 35 | $query1= $dbh -> prepare($ret1); 36 | $query1 -> bindParam(':id',$result->StudentID, PDO::PARAM_STR); 37 | $query1-> execute(); 38 | $res=$query1->fetchAll(PDO::FETCH_OBJ); 39 | if($query1->rowCount()<=0){ 40 | $sql="INSERT INTO overdue(StudentID,Fine,StudentName,MobNumber) VALUES(:studentid,:fine,:name,:number)"; 41 | $query2 = $dbh->prepare($sql); 42 | 43 | 44 | $sq="select FullName,MobileNumber from tblstudents where StudentId=:studentid"; 45 | $query4 = $dbh->prepare($sq); 46 | $query4->bindParam(':studentid',$result->StudentID,PDO::PARAM_STR); 47 | $query4->execute(); 48 | $res1=$query4->fetch(PDO::FETCH_OBJ); 49 | 50 | $query2->bindParam(':studentid',$result->StudentID,PDO::PARAM_STR); 51 | $query2->bindParam(':fine',$totalfine,PDO::PARAM_STR); 52 | $query2->bindParam(':name',$res1->FullName,PDO::PARAM_STR); 53 | $query2->bindParam(':number',$res1->MobileNumber,PDO::PARAM_STR); 54 | $query2->execute(); 55 | $lastInsertId = $dbh->lastInsertId(); 56 | } 57 | else{ 58 | $sql1="update overdue set Fine=Fine+:fine where StudentID=:studentid"; 59 | $query3 = $dbh->prepare($sql1); 60 | $query3->bindParam(':fine',$totalfine,PDO::PARAM_STR); 61 | $query3->bindParam(':studentid',$result->StudentID,PDO::PARAM_STR); 62 | $query3->execute(); 63 | } 64 | 65 | } 66 | } 67 | } 68 | $_SESSION['thread1']=1; 69 | } 70 | ?> -------------------------------------------------------------------------------- /admin/report.php: -------------------------------------------------------------------------------- 1 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | Online Library Management System | Add Categories 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 |
46 |
47 |
48 |
49 |

Report

50 | 51 |
52 | 53 |
54 |
55 |
56 |
57 |
58 | Report 59 |
60 |
61 |
62 |
63 | 64 | 69 |
70 | 71 | 72 |
73 |
74 |
75 |
76 | 77 |
78 | 79 |
80 |
81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /admin/index.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 10 | $query-> bindParam(':username', $username, PDO::PARAM_STR); 11 | $query-> bindParam(':password', $password, PDO::PARAM_STR); 12 | $query-> execute(); 13 | $results=$query->fetchAll(PDO::FETCH_OBJ); 14 | if($query->rowCount() > 0) 15 | { 16 | $_SESSION['alogin']=$_POST['username']; 17 | echo ""; 18 | } else{ 19 | echo ""; 20 | } 21 | } 22 | ?> 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | Online Library Management System 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 |
46 |
47 |
48 |
49 |

ADMIN LOGIN FORM

50 |
51 |
52 | 53 | 54 |
55 |
56 |
57 |
58 | LOGIN FORM 59 |
60 |
61 |
62 | 63 |
64 | 65 | 66 |
67 |
68 | 69 | 70 |
71 | 72 |
73 |
74 |
75 |
76 |
77 | 78 | 79 | 80 |
81 |
82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /adminlogin.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 15 | $query-> bindParam(':username', $username, PDO::PARAM_STR); 16 | $query-> bindParam(':password', $password, PDO::PARAM_STR); 17 | $query-> execute(); 18 | $results=$query->fetchAll(PDO::FETCH_OBJ); 19 | if($query->rowCount() > 0) 20 | { 21 | $_SESSION['alogin']=$_POST['username']; 22 | echo ""; 23 | } else{ 24 | echo ""; 25 | } 26 | } 27 | ?> 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | Online Library Management System 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 |
51 |
52 |
53 |
54 |

ADMIN LOGIN FORM

55 |
56 |
57 | 58 | 59 |
60 |
61 |
62 |
63 | LOGIN FORM 64 |
65 |
66 |
67 | 68 |
69 | 70 | 71 |
72 |
73 | 74 | 75 |
76 | 77 | 78 |
79 |
80 |
81 |
82 |
83 | 84 | 85 | 86 |
87 |
88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /includes/header.php: -------------------------------------------------------------------------------- 1 | 24 | 25 | 28 | 53 | 54 | 73 | 74 | -------------------------------------------------------------------------------- /admin/add-publications.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 16 | $query->bindParam(':author',$author,PDO::PARAM_STR); 17 | $query->execute(); 18 | $lastInsertId = $dbh->lastInsertId(); 19 | if($lastInsertId) 20 | { 21 | $_SESSION['msg']="Publication Listed successfully"; 22 | header('location:manage-publications.php'); 23 | } 24 | else 25 | { 26 | $_SESSION['error']="Something went wrong. Please try again"; 27 | header('location:manage-publications.php'); 28 | } 29 | 30 | } 31 | ?> 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | Online Library Management System | Add Author 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 |
56 |
57 |
58 |
59 |

Add Publication

60 | 61 |
62 | 63 |
64 |
65 |
66 |
67 |
68 | Publication Info 69 |
70 |
71 |
72 |
73 | 74 | 75 |
76 | 77 | 78 | 79 |
80 |
81 |
82 |
83 | 84 |
85 | 86 |
87 |
88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Library-Management-System 2 | 3 | Hi!, welcome to my repository. The **Library Management System (LMS)** is developed for transforming manual offline workload into online automatic system. It contains all the main 4 | features such as adding and managing students, books with efficiently maintaining their data. It also contains other security features such as **Captcha Verification** and 5 | **Password Encryption**. This is a complete LMS with all the necessary functionalties. It also provides feature to **generate report** and **manage fine**. 6 | 7 | Note: This is an extended version of Library Management System that can be found [here](https://phpgurukul.com/online-library-management-system/). I have added more advance functionalities like **report generation**. 8 | 9 | # Getting Started 10 | 11 | These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. 12 | 13 | ## Prerequisites 14 | 15 | It is good to have basic knowledge of HTML, CSS, PHP and MySQL to understand this project. 16 | >We will use XAMP server as it has cross-platform support and we won't be needed to worry about the operating system support. 17 | Download and install suitable XAMP server from this link - https://www.apachefriends.org/download.html 18 | 19 | ## Setting up the environment 20 | 21 | - Download and extract project source code on your local machine. 22 | - Paste the source code in the htdocs folder. Default path will be here("C:\xampp\htdocs") 23 | - Open XAMP Control Panel and start Apache & MySQL service 24 | - Open your web browser and paste this link ("http://localhost/phpmyadmin/"). It should open database server page. 25 | - Create new empty database named library. Select the library database and import the SQL file given with the source code. 26 | - Review the config file from both of the includes folders. Change username and password accordingly. 27 | - Open your web browser and paste this link ("http://localhost/foldername-in-htdocs-directory/"). It should open login page. 28 | - Use any credentials from database to login. The password for all accounts is set to **Test@123** 29 | 30 | # Screenshots 31 | 32 | ![Login Page](Screenshots/Login.png) 33 | 34 | *** 35 | 36 | ![Admin Dashboard](Screenshots/admin_dashboard.png) 37 | *** 38 | 39 | ![Profile](Screenshots/profile.png) 40 | 41 | *** 42 | 43 | ![Add Book](Screenshots/add_book.png) 44 | 45 | *** 46 | 47 | ![Manage Books](Screenshots/manage_books.png) 48 | 49 | *** 50 | 51 | ![Add Category](Screenshots/add_category.png) 52 | 53 | *** 54 | 55 | ![Manage Category](Screenshots/manage_categories.png) 56 | 57 | *** 58 | 59 | ![Add Publication](Screenshots/add_publication.png) 60 | 61 | *** 62 | 63 | ![Manage Publication](Screenshots/manage_publications.png) 64 | 65 | *** 66 | 67 | ![Change Password](Screenshots/change_password.png) 68 | 69 | *** 70 | 71 | ![Set Fine](Screenshots/set_fine.png) 72 | 73 | *** 74 | 75 | ![Issue Book](Screenshots/issue_book.png) 76 | 77 | *** 78 | 79 | ![Manage Issued Books](Screenshots/manage_issued_books.png) 80 | 81 | *** 82 | 83 | ![Manage Issued Books 2](Screenshots/manage_issued_books2.png) 84 | 85 | *** 86 | 87 | ![Manage Requested Books](Screenshots/manage_requested_books.png) 88 | 89 | *** 90 | 91 | ![Reistered Students](Screenshots/registered_students.png) 92 | 93 | *** 94 | 95 | ![Report](Screenshots/report.png) 96 | 97 | *** 98 | 99 | ![Overdue Report](Screenshots/overdue_report.png) 100 | 101 | *** 102 | 103 | ![UserWise Report](Screenshots/User_wise.png) 104 | -------------------------------------------------------------------------------- /admin/edit-publication.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 17 | $query->bindParam(':author',$author,PDO::PARAM_STR); 18 | $query->bindParam(':athrid',$athrid,PDO::PARAM_STR); 19 | $query->execute(); 20 | $_SESSION['updatemsg']="Author info updated successfully"; 21 | header('location:manage-authors.php'); 22 | 23 | 24 | 25 | } 26 | ?> 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | Online Library Management System | Add Publication 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 |
51 |
52 |
53 |
54 |

Add Publication

55 | 56 |
57 | 58 |
59 |
60 |
61 |
62 |
63 | Publication Info 64 |
65 |
66 |
67 |
68 | 69 | prepare($sql); 73 | $query->bindParam(':athrid',$athrid,PDO::PARAM_STR); 74 | $query->execute(); 75 | $results=$query->fetchAll(PDO::FETCH_OBJ); 76 | $cnt=1; 77 | if($query->rowCount() > 0) 78 | { 79 | foreach($results as $result) 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 | -------------------------------------------------------------------------------- /dashboard.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Online Library Management System | User Dash Board 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |
33 |
34 |
35 |
36 |

User DASHBOARD

37 | 38 |
39 | 40 |
41 | 42 |
43 | 44 | 45 | 46 | 47 |
48 |
49 | 50 | prepare($sql1); 54 | $query1->bindParam(':sid',$sid,PDO::PARAM_STR); 55 | $query1->execute(); 56 | $results1=$query1->fetchAll(PDO::FETCH_OBJ); 57 | $issuedbooks=$query1->rowCount(); 58 | ?> 59 | 60 |

61 | Book Issued 62 |
63 |
64 | 65 |
66 |
67 | 68 | prepare($sql2); 72 | $query2->bindParam(':sid',$sid,PDO::PARAM_STR); 73 | $query2->bindParam(':rsts',$rsts,PDO::PARAM_STR); 74 | $query2->execute(); 75 | $results2=$query2->fetchAll(PDO::FETCH_OBJ); 76 | $returnedbooks=$query2->rowCount(); 77 | ?> 78 | 79 |

80 | Books Not Returned Yet 81 |
82 |
83 |
84 | 85 | 86 | 87 |
88 |
89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 14 | $query-> bindParam(':email', $email, PDO::PARAM_STR); 15 | $query-> bindParam(':password', $password, PDO::PARAM_STR); 16 | $query-> execute(); 17 | $results=$query->fetchAll(PDO::FETCH_OBJ); 18 | 19 | if($query->rowCount() > 0) 20 | { 21 | foreach ($results as $result) { 22 | $_SESSION['stdid']=$result->StudentId; 23 | $_SESSION['username']=$result->FullName; 24 | if($result->Status==1) 25 | { 26 | $_SESSION['login']=$_POST['emailid']; 27 | echo ""; 28 | } else { 29 | echo ""; 30 | 31 | } 32 | } 33 | 34 | } 35 | 36 | else{ 37 | echo ""; 38 | } 39 | } 40 | ?> 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | Online Library Management System | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 |
64 |
65 |
66 |
67 |

USER LOGIN FORM

68 |
69 |
70 | 71 | 72 |
73 |
74 |
75 |
76 | LOGIN FORM 77 |
78 |
79 |
80 | 81 |
82 | 83 | 84 |
85 |
86 | 87 | 88 |

Forgot Password

89 |
90 | 91 | | Not Register Yet 92 |
93 |
94 |
95 |
96 |
97 | 98 | 99 | 100 |
101 |
102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /admin/set-fine.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 17 | $query->execute(); 18 | $results=$query->fetchAll(PDO::FETCH_OBJ); 19 | $listedbooks=$query->rowCount(); 20 | if($listedbooks==0) 21 | { 22 | $sql="insert into tblfine values(:fine)"; 23 | $query = $dbh->prepare($sql); 24 | $query->bindParam(':fine',$fine,PDO::PARAM_STR); 25 | $query->execute(); 26 | $lastInsertId = $dbh->lastInsertId(); 27 | } 28 | else 29 | { 30 | $sql="update tblfine set fine=:fine where 1"; 31 | $query = $dbh->prepare($sql); 32 | $query->bindParam(':fine',$fine,PDO::PARAM_STR); 33 | $query->execute(); 34 | $lastInsertId = $dbh->lastInsertId(); 35 | } 36 | 37 | if($lastInsertId) 38 | { 39 | $_SESSION['msg']="Fine Updated successfully"; 40 | header('location:set-fine.php'); 41 | } 42 | else 43 | { 44 | $_SESSION['error']="Something went wrong. Please try again"; 45 | header('location:set-fine.php'); 46 | } 47 | 48 | } 49 | ?> 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | Online Library Management System | Add Author 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 |
74 |
75 |
76 |
77 |

Set Fine

78 | 79 |
80 | 81 |
82 |
83 |
84 |
85 |
86 | Fine Update Section 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 | -------------------------------------------------------------------------------- /admin/add-category.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 17 | $query->bindParam(':CategoryName',$category,PDO::PARAM_STR); 18 | $query->execute(); 19 | $results=$query->fetchAll(PDO::FETCH_OBJ); 20 | $cnt=1; 21 | if($query->rowCount() > 0) 22 | { 23 | $_SESSION['msg']="This category is already added"; 24 | header('location:manage-categories.php'); 25 | } 26 | else 27 | { 28 | $sql="INSERT INTO tblcategory(CategoryName,Status) VALUES(:category,:status)"; 29 | $query = $dbh->prepare($sql); 30 | $query->bindParam(':category',$category,PDO::PARAM_STR); 31 | $query->bindParam(':status',$status,PDO::PARAM_STR); 32 | $query->execute(); 33 | $lastInsertId = $dbh->lastInsertId(); 34 | if($lastInsertId) 35 | { 36 | $_SESSION['msg']="categories Listed successfully"; 37 | header('location:manage-categories.php'); 38 | } 39 | else 40 | { 41 | $_SESSION['error']="Something went wrong. Please try again"; 42 | header('location:manage-categories.php'); 43 | } 44 | } 45 | } 46 | ?> 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | Online Library Management System | Add Categories 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 |
71 |
72 |
73 |
74 |

Add category

75 | 76 |
77 | 78 |
79 |
80 |
81 |
82 |
83 | Category Info 84 |
85 |
86 |
87 |
88 | 89 | 90 |
91 |
92 | 93 |
94 | 97 |
98 |
99 | 102 |
103 | 104 |
105 | 106 | 107 |
108 |
109 |
110 |
111 | 112 |
113 | 114 |
115 |
116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | -------------------------------------------------------------------------------- /admin/edit-category.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 18 | $query->bindParam(':category',$category,PDO::PARAM_STR); 19 | $query->bindParam(':status',$status,PDO::PARAM_STR); 20 | $query->bindParam(':catid',$catid,PDO::PARAM_STR); 21 | $query->execute(); 22 | $_SESSION['updatemsg']="Brand updated successfully"; 23 | header('location:manage-categories.php'); 24 | 25 | 26 | } 27 | ?> 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | Online Library Management System | Edit Categories 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 |
52 |
53 |
54 |
55 |

Edit category

56 | 57 |
58 | 59 |
60 |
61 |
62 |
63 |
64 | Category Info 65 |
66 | 67 |
68 |
69 | prepare($sql); 73 | $query-> bindParam(':catid',$catid, PDO::PARAM_STR); 74 | $query->execute(); 75 | $results=$query->fetchAll(PDO::FETCH_OBJ); 76 | if($query->rowCount() > 0) 77 | { 78 | foreach($results as $result) 79 | { 80 | ?> 81 |
82 | 83 | 84 |
85 |
86 | 87 | Status==1) {?> 88 |
89 | 92 |
93 |
94 | 97 |
98 | 99 |
100 | 103 |
104 |
105 | 108 |
110 |
111 | 112 | 113 | 114 |
115 |
116 |
117 |
118 | 119 |
120 | 121 |
122 |
123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | -------------------------------------------------------------------------------- /admin/includes/header.php: -------------------------------------------------------------------------------- 1 | 21 | 22 | -------------------------------------------------------------------------------- /user-forgot-password.php: -------------------------------------------------------------------------------- 1 | alert('Incorrect verification code');" ; 10 | } 11 | else { 12 | $email=$_POST['email']; 13 | $mobile=$_POST['mobile']; 14 | $newpassword=md5($_POST['newpassword']); 15 | $sql ="SELECT EmailId FROM tblstudents WHERE EmailId=:email and MobileNumber=:mobile"; 16 | $query= $dbh -> prepare($sql); 17 | $query-> bindParam(':email', $email, PDO::PARAM_STR); 18 | $query-> bindParam(':mobile', $mobile, PDO::PARAM_STR); 19 | $query-> execute(); 20 | $results = $query -> fetchAll(PDO::FETCH_OBJ); 21 | if($query -> rowCount() > 0) 22 | { 23 | $con="update tblstudents set Password=:newpassword where EmailId=:email and MobileNumber=:mobile"; 24 | $chngpwd1 = $dbh->prepare($con); 25 | $chngpwd1-> bindParam(':email', $email, PDO::PARAM_STR); 26 | $chngpwd1-> bindParam(':mobile', $mobile, PDO::PARAM_STR); 27 | $chngpwd1-> bindParam(':newpassword', $newpassword, PDO::PARAM_STR); 28 | $chngpwd1->execute(); 29 | echo ""; 30 | } 31 | else { 32 | echo ""; 33 | } 34 | } 35 | } 36 | ?> 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | Online Library Management System | Password Recovery 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 65 | 66 | 67 | 68 | 69 | 70 | 71 |
72 |
73 |
74 |
75 |

User Password Recovery

76 |
77 |
78 | 79 | 80 |
81 |
82 |
83 |
84 | LOGIN FORM 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 | | Login 115 |
116 |
117 |
118 |
119 |
120 | 121 | 122 | 123 |
124 |
125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | -------------------------------------------------------------------------------- /admin/change-password.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 17 | $query-> bindParam(':username', $username, PDO::PARAM_STR); 18 | $query-> bindParam(':password', $password, PDO::PARAM_STR); 19 | $query-> execute(); 20 | $results = $query -> fetchAll(PDO::FETCH_OBJ); 21 | if($query -> rowCount() > 0) 22 | { 23 | $con="update admin set Password=:newpassword where UserName=:username"; 24 | $chngpwd1 = $dbh->prepare($con); 25 | $chngpwd1-> bindParam(':username', $username, PDO::PARAM_STR); 26 | $chngpwd1-> bindParam(':newpassword', $newpassword, PDO::PARAM_STR); 27 | $chngpwd1->execute(); 28 | $msg="Your Password succesfully changed"; 29 | } 30 | else { 31 | $error="Your current password is wrong"; 32 | } 33 | } 34 | 35 | ?> 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | Online Library Management System | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 70 | 71 | 83 | 84 | 85 | 86 | 87 | 88 |
89 |
90 |
91 |
92 |

User Change Password

93 |
94 |
95 |
ERROR:
SUCCESS:
97 | 98 |
99 |
100 |
101 |
102 | Change Password 103 |
104 |
105 |
106 | 107 |
108 | 109 | 110 |
111 | 112 |
113 | 114 | 115 |
116 | 117 |
118 | 119 | 120 |
121 | 122 | 123 |
124 |
125 |
126 |
127 |
128 | 129 | 130 | 131 |
132 |
133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | -------------------------------------------------------------------------------- /change-password.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 17 | $query-> bindParam(':email', $email, PDO::PARAM_STR); 18 | $query-> bindParam(':password', $password, PDO::PARAM_STR); 19 | $query-> execute(); 20 | $results = $query -> fetchAll(PDO::FETCH_OBJ); 21 | if($query -> rowCount() > 0) 22 | { 23 | $con="update tblstudents set Password=:newpassword where EmailId=:email"; 24 | $chngpwd1 = $dbh->prepare($con); 25 | $chngpwd1-> bindParam(':email', $email, PDO::PARAM_STR); 26 | $chngpwd1-> bindParam(':newpassword', $newpassword, PDO::PARAM_STR); 27 | $chngpwd1->execute(); 28 | $msg="Your Password succesfully changed"; 29 | } 30 | else { 31 | $error="Your current password is wrong"; 32 | } 33 | } 34 | 35 | ?> 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | Online Library Management System | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 70 | 71 | 83 | 84 | 85 | 86 | 87 | 88 |
89 |
90 |
91 |
92 |

User Change Password

93 |
94 |
95 |
ERROR:
SUCCESS:
97 | 98 |
99 |
100 |
101 |
102 | Change Password 103 |
104 |
105 |
106 | 107 |
108 | 109 | 110 |
111 | 112 |
113 | 114 | 115 |
116 | 117 |
118 | 119 | 120 |
121 | 122 | 123 |
124 |
125 |
126 |
127 |
128 | 129 | 130 | 131 |
132 |
133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | -------------------------------------------------------------------------------- /admin/issue-book.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 17 | $query->bindParam(':studentid',$studentid,PDO::PARAM_STR); 18 | $query->bindParam(':bookid',$bookid,PDO::PARAM_STR); 19 | $query->execute(); 20 | $lastInsertId = $dbh->lastInsertId(); 21 | if($lastInsertId) 22 | { 23 | $_SESSION['msg']="Book issued successfully"; 24 | 25 | 26 | $sql="update tblbooks set IssuedCopies=IssueCopies-1 where id=:bookid"; 27 | $query = $dbh->prepare($sql); 28 | $query->bindParam(':bookid',$bookid,PDO::PARAM_STR); 29 | $query->execute(); 30 | 31 | 32 | 33 | header('location:manage-issued-books.php'); 34 | } 35 | else 36 | { 37 | $_SESSION['error']="Something went wrong. Please try again"; 38 | header('location:manage-issued-books.php'); 39 | } 40 | 41 | } 42 | ?> 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | Online Library Management System | Issue a new Book 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 91 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 |
106 |
107 |
108 |
109 |

Issue a New Book

110 | 111 |
112 | 113 |
114 |
115 |
116 |
117 |
118 | Issue a New Book 119 |
120 |
121 |
122 | 123 |
124 | 125 | 126 |
127 | 128 |
129 | 130 |
131 | 132 | 133 | 134 | 135 | 136 |
137 | 138 | 139 |
140 | 141 |
142 | 143 | 146 |
147 |
148 | 149 |
150 |
151 | 152 |
153 |
154 | 155 |
156 | 157 |
158 |
159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | -------------------------------------------------------------------------------- /my-profile.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 18 | $query->bindParam(':sid',$sid,PDO::PARAM_STR); 19 | $query->bindParam(':fname',$fname,PDO::PARAM_STR); 20 | $query->bindParam(':mobileno',$mobileno,PDO::PARAM_STR); 21 | $query->execute(); 22 | 23 | echo ''; 24 | } 25 | 26 | ?> 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 38 | Online Library Management System | Student Signup 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 |
54 |
55 |
56 |
57 |

My Profile

58 | 59 |
60 | 61 |
62 |
63 | 64 |
65 |
66 |
67 | My Profile 68 |
69 |
70 |
71 | prepare($sql); 75 | $query-> bindParam(':sid', $sid, PDO::PARAM_STR); 76 | $query->execute(); 77 | $results=$query->fetchAll(PDO::FETCH_OBJ); 78 | $cnt=1; 79 | if($query->rowCount() > 0) 80 | { 81 | foreach($results as $result) 82 | { ?> 83 | 84 |
85 | 86 | StudentId);?> 87 |
88 | 89 |
90 | 91 | RegDate);?> 92 |
93 | UpdationDate!=""){?> 94 |
95 | 96 | UpdationDate);?> 97 |
98 | 99 | 100 | 101 |
102 | 103 | Status==1){?> 104 | Active 105 | 106 | Blocked 107 | 108 |
109 | 110 | 111 |
112 | 113 | 114 |
115 | 116 | 117 |
118 | 119 | 120 |
121 | 122 |
123 | 124 | 125 |
126 | 127 | 128 | 129 | 130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | -------------------------------------------------------------------------------- /admin/b.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 17 | $query->bindParam(':brand',$brand,PDO::PARAM_STR); 18 | $query->bindParam(':id',$id,PDO::PARAM_STR); 19 | $query->execute(); 20 | $lastInsertId = $dbh->lastInsertId(); 21 | 22 | $msg="Brand updted successfully"; 23 | 24 | } 25 | ?> 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | Car Rental Portal | Admin Create Brand 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 74 | 75 | 76 | 77 | 78 | 79 | 80 |
81 | 82 |
83 |
84 | 85 |
86 |
87 | 88 |

Create Brand

89 | 90 |
91 |
92 |
93 |
Form fields
94 |
95 |
96 | 97 | 98 |
ERROR:
SUCCESS:
100 | 101 | prepare($ret); 105 | $query->bindParam(':id',$id, PDO::PARAM_STR); 106 | $query-> execute(); 107 | $results = $query -> fetchAll(PDO::FETCH_OBJ); 108 | $cnt=1; 109 | if($query -> rowCount() > 0) 110 | { 111 | foreach($results as $result) 112 | { 113 | ?> 114 | 115 |
116 | 117 |
118 | 119 |
120 |
121 |
122 | 123 | 124 | 125 | 126 |
127 |
128 | 129 | 130 |
131 |
132 | 133 |
134 | 135 |
136 |
137 |
138 | 139 |
140 | 141 | 142 | 143 |
144 |
145 | 146 | 147 |
148 |
149 |
150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | -------------------------------------------------------------------------------- /admin/a.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 15 | $query -> bindParam(':id',$id, PDO::PARAM_STR); 16 | $query -> execute(); 17 | $msg="Page data updated successfully"; 18 | 19 | } 20 | 21 | 22 | 23 | ?> 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | Car Rental Portal |Admin Manage Brands 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |
79 | 80 |
81 |
82 | 83 |
84 |
85 | 86 |

Manage Brands

87 | 88 | 89 |
90 |
Listed Brands
91 |
92 |
ERROR:
SUCCESS:
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 | prepare($sql); 120 | $query->execute(); 121 | $results=$query->fetchAll(PDO::FETCH_OBJ); 122 | $cnt=1; 123 | if($query->rowCount() > 0) 124 | { 125 | foreach($results as $result) 126 | { ?> 127 | 128 | 129 | 130 | 131 | 132 | 134 | 135 | 136 | 137 | 138 |
#Brand NameCreation DateUpdation dateAction
#Brand NameCreation DateUpdation dateAction
BrandName);?>CreationDate);?>UpdationDate);?>   133 |
139 | 140 | 141 | 142 |
143 |
144 | 145 | 146 | 147 |
148 |
149 | 150 |
151 |
152 |
153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | -------------------------------------------------------------------------------- /assets/css/style.css: -------------------------------------------------------------------------------- 1 | 2 | /*============================================================= 3 | Authour URI: www.binarytheme.com 4 | License: Commons Attribution 3.0 5 | 6 | http://creativecommons.org/licenses/by/3.0/ 7 | 8 | 100% Free To use For Personal And Commercial Use. 9 | IN EXCHANGE JUST GIVE US CREDITS AND TELL YOUR FRIENDS ABOUT US 10 | 11 | ======================================================== */ 12 | 13 | 14 | 15 | /* ============================================================= 16 | GENERAL STYLES 17 | ============================================================ */ 18 | 19 | body { 20 | font-family: 'Open Sans', sans-serif; 21 | line-height:28px; 22 | 23 | } 24 | .set-radius-zero { 25 | border-radius:0px; 26 | -moz-border-radius:0px; 27 | -webkit-border-radius:0px; 28 | } 29 | .content-wrapper { 30 | margin-top: 40px; 31 | min-height:800px; 32 | padding-bottom:90px; 33 | } 34 | .header-line { 35 | font-weight:900; 36 | padding-bottom:25px; 37 | border-bottom:1px solid #eeeeee; 38 | text-transform:uppercase; 39 | } 40 | .pad-botm { 41 | padding-bottom:30px; 42 | } 43 | 44 | 45 | /* ============================================================= 46 | NAVBAR & MENU STYLES 47 | ============================================================ */ 48 | 49 | .right-div { 50 | float: right; 51 | padding: 20px; 52 | } 53 | #menu-top a { 54 | color:#000; 55 | text-decoration:none; 56 | font-weight:500; 57 | padding: 25px 15px 25px 15px; 58 | text-transform:uppercase; 59 | 60 | } 61 | .menu-section { 62 | background-color: #f7f7f7; 63 | border-bottom:5px solid #9170E4; 64 | width:100% 65 | } 66 | .menu-top-active { 67 | background-color:#eeeeee; 68 | } 69 | .navbar-inverse { 70 | background-color: #FFF; 71 | border-color: rgba(155, 153, 153, 0.23); 72 | 73 | } 74 | 75 | .navbar { 76 | min-height: 90px; 77 | margin-bottom: 0px; 78 | 79 | } 80 | .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { 81 | border-color:transparent; 82 | } 83 | .navbar-toggle { 84 | background-color: black; 85 | border: 1px solid black; 86 | } 87 | 88 | /* ============================================================= 89 | DASHBOARD STYLES 90 | ============================================================ */ 91 | 92 | .img-comments { 93 | border: 3px double #e1e1e1; 94 | height: 60px; 95 | 96 | } 97 | 98 | .chat-widget-main { 99 | max-height:330px; 100 | overflow:auto; 101 | } 102 | 103 | .slide-bdr { 104 | border:5px solid #9170E4 105 | } 106 | .chat-widget-left:after { 107 | top: 100%; 108 | left: 10%; 109 | border: solid transparent; 110 | content: " "; 111 | position: absolute; 112 | border-top-color: #F70E62; 113 | border-width: 15px; 114 | margin-left: -15px; 115 | } 116 | 117 | .chat-widget-left { 118 | width: 100%; 119 | height: auto; 120 | padding: 15px; 121 | -webkit-border-radius: 5px; 122 | -moz-border-radius: 5px; 123 | border-radius: 5px; 124 | position: relative; 125 | border: 1px solid #F70E62; 126 | font-size:12px; 127 | } 128 | .chat-widget-right:after { 129 | top: 100%; 130 | right: 10%; 131 | border: solid transparent; 132 | content: " "; 133 | position: absolute; 134 | border-top-color: #5AA8CC; 135 | border-width: 15px; 136 | margin-left: -15px; 137 | } 138 | 139 | .chat-widget-right { 140 | width: 100%; 141 | height: auto; 142 | padding: 15px; 143 | -webkit-border-radius: 5px; 144 | -moz-border-radius: 5px; 145 | border-radius: 5px; 146 | position: relative; 147 | border: 1px solid #5AA8CC; 148 | font-size:12px; 149 | } 150 | 151 | .chat-widget-name-left { 152 | color: #808080; 153 | margin-top: 30px; 154 | margin-left: 60px; 155 | text-align:left; 156 | } 157 | 158 | .img-left-chat { 159 | border:3px double #e1e1e1; 160 | float:left; 161 | margin-right:30px; 162 | } 163 | .img-right-chat { 164 | border:3px double #e1e1e1; 165 | float:right; 166 | margin-left:30px; 167 | } 168 | .chat-widget-main img-right { 169 | border:3px double #e1e1e1; 170 | float:left; 171 | } 172 | .chat-widget-name-left h4 { 173 | font-weight:normal; 174 | font-size:11px; 175 | 176 | } 177 | .chat-widget-name-left h5 { 178 | font-weight:normal; 179 | font-size:10px; 180 | } 181 | .chat-widget-name-right h4 { 182 | font-weight:normal; 183 | font-size:11px; 184 | } 185 | .chat-widget-name-right h5 { 186 | font-weight:normal; 187 | font-size:10px; 188 | } 189 | .chat-widget-name-right { 190 | color: #808080; 191 | margin-top: 40px; 192 | margin-right: 60px; 193 | text-align:right; 194 | } 195 | 196 | .recent-users-sec img { 197 | max-height:80px; 198 | margin:15px; 199 | } 200 | 201 | .back-widget-set { 202 | background-color:transparent; 203 | } 204 | 205 | /* ============================================================= 206 | FOOTER SECTION STYLES 207 | ============================================================ */ 208 | .footer-section { 209 | padding:25px 50px 25px 50px; 210 | color:#000; 211 | font-size:13px; 212 | background-color: #f7f7f7; 213 | text-align:right; 214 | border-top:5px solid #9170E4; 215 | 216 | } 217 | 218 | .footer-section a, .footer-section a:hover { 219 | color:#000; 220 | } 221 | 222 | -------------------------------------------------------------------------------- /admin/assets/css/style.css: -------------------------------------------------------------------------------- 1 | 2 | /*============================================================= 3 | Authour URI: www.binarytheme.com 4 | License: Commons Attribution 3.0 5 | 6 | http://creativecommons.org/licenses/by/3.0/ 7 | 8 | 100% Free To use For Personal And Commercial Use. 9 | IN EXCHANGE JUST GIVE US CREDITS AND TELL YOUR FRIENDS ABOUT US 10 | 11 | ======================================================== */ 12 | 13 | 14 | 15 | /* ============================================================= 16 | GENERAL STYLES 17 | ============================================================ */ 18 | 19 | body { 20 | font-family: 'Open Sans', sans-serif; 21 | line-height:28px; 22 | 23 | } 24 | .set-radius-zero { 25 | border-radius:0px; 26 | -moz-border-radius:0px; 27 | -webkit-border-radius:0px; 28 | } 29 | .content-wrapper { 30 | margin-top: 40px; 31 | min-height:800px; 32 | padding-bottom:90px; 33 | } 34 | .header-line { 35 | font-weight:900; 36 | padding-bottom:25px; 37 | border-bottom:1px solid #eeeeee; 38 | text-transform:uppercase; 39 | } 40 | .pad-botm { 41 | padding-bottom:30px; 42 | } 43 | 44 | 45 | /* ============================================================= 46 | NAVBAR & MENU STYLES 47 | ============================================================ */ 48 | 49 | .right-div { 50 | float: right; 51 | padding: 20px; 52 | } 53 | #menu-top a { 54 | color:#000; 55 | text-decoration:none; 56 | font-weight:500; 57 | padding: 25px 15px 25px 15px; 58 | text-transform:uppercase; 59 | 60 | } 61 | .menu-section { 62 | background-color: #f7f7f7; 63 | border-bottom:5px solid #9170E4; 64 | width:100% 65 | } 66 | .menu-top-active { 67 | background-color:#eeeeee; 68 | } 69 | .navbar-inverse { 70 | background-color: #FFF; 71 | border-color: rgba(155, 153, 153, 0.23); 72 | 73 | } 74 | 75 | .navbar { 76 | min-height: 90px; 77 | margin-bottom: 0px; 78 | 79 | } 80 | .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { 81 | border-color:transparent; 82 | } 83 | .navbar-toggle { 84 | background-color: black; 85 | border: 1px solid black; 86 | } 87 | 88 | /* ============================================================= 89 | DASHBOARD STYLES 90 | ============================================================ */ 91 | 92 | .img-comments { 93 | border: 3px double #e1e1e1; 94 | height: 60px; 95 | 96 | } 97 | 98 | .chat-widget-main { 99 | max-height:330px; 100 | overflow:auto; 101 | } 102 | 103 | .slide-bdr { 104 | border:5px solid #9170E4 105 | } 106 | .chat-widget-left:after { 107 | top: 100%; 108 | left: 10%; 109 | border: solid transparent; 110 | content: " "; 111 | position: absolute; 112 | border-top-color: #F70E62; 113 | border-width: 15px; 114 | margin-left: -15px; 115 | } 116 | 117 | .chat-widget-left { 118 | width: 100%; 119 | height: auto; 120 | padding: 15px; 121 | -webkit-border-radius: 5px; 122 | -moz-border-radius: 5px; 123 | border-radius: 5px; 124 | position: relative; 125 | border: 1px solid #F70E62; 126 | font-size:12px; 127 | } 128 | .chat-widget-right:after { 129 | top: 100%; 130 | right: 10%; 131 | border: solid transparent; 132 | content: " "; 133 | position: absolute; 134 | border-top-color: #5AA8CC; 135 | border-width: 15px; 136 | margin-left: -15px; 137 | } 138 | 139 | .chat-widget-right { 140 | width: 100%; 141 | height: auto; 142 | padding: 15px; 143 | -webkit-border-radius: 5px; 144 | -moz-border-radius: 5px; 145 | border-radius: 5px; 146 | position: relative; 147 | border: 1px solid #5AA8CC; 148 | font-size:12px; 149 | } 150 | 151 | .chat-widget-name-left { 152 | color: #808080; 153 | margin-top: 30px; 154 | margin-left: 60px; 155 | text-align:left; 156 | } 157 | 158 | .img-left-chat { 159 | border:3px double #e1e1e1; 160 | float:left; 161 | margin-right:30px; 162 | } 163 | .img-right-chat { 164 | border:3px double #e1e1e1; 165 | float:right; 166 | margin-left:30px; 167 | } 168 | .chat-widget-main img-right { 169 | border:3px double #e1e1e1; 170 | float:left; 171 | } 172 | .chat-widget-name-left h4 { 173 | font-weight:normal; 174 | font-size:11px; 175 | 176 | } 177 | .chat-widget-name-left h5 { 178 | font-weight:normal; 179 | font-size:10px; 180 | } 181 | .chat-widget-name-right h4 { 182 | font-weight:normal; 183 | font-size:11px; 184 | } 185 | .chat-widget-name-right h5 { 186 | font-weight:normal; 187 | font-size:10px; 188 | } 189 | .chat-widget-name-right { 190 | color: #808080; 191 | margin-top: 40px; 192 | margin-right: 60px; 193 | text-align:right; 194 | } 195 | 196 | .recent-users-sec img { 197 | max-height:80px; 198 | margin:15px; 199 | } 200 | 201 | .back-widget-set { 202 | background-color:transparent; 203 | } 204 | 205 | /* ============================================================= 206 | FOOTER SECTION STYLES 207 | ============================================================ */ 208 | .footer-section { 209 | padding:25px 50px 25px 50px; 210 | color:#000; 211 | font-size:13px; 212 | background-color: #f7f7f7; 213 | text-align:right; 214 | border-top:5px solid #9170E4; 215 | 216 | } 217 | 218 | .footer-section a, .footer-section a:hover { 219 | color:#000; 220 | } 221 | 222 | -------------------------------------------------------------------------------- /signup.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 22 | $query->bindParam(':StudentId',$StudentId,PDO::PARAM_STR); 23 | $query->bindParam(':fname',$fname,PDO::PARAM_STR); 24 | $query->bindParam(':mobileno',$mobileno,PDO::PARAM_STR); 25 | $query->bindParam(':email',$email,PDO::PARAM_STR); 26 | $query->bindParam(':password',$password,PDO::PARAM_STR); 27 | $query->bindParam(':status',$status,PDO::PARAM_STR); 28 | $query->execute(); 29 | $lastInsertId = $dbh->lastInsertId(); 30 | if($lastInsertId) 31 | { 32 | echo ''; 33 | } 34 | else 35 | { 36 | echo ""; 37 | } 38 | } 39 | ?> 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 51 | Online Library Management System | Student Signup 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 72 | 87 | 88 | 89 | 90 | 91 | 92 | 93 |
94 |
95 |
96 |
97 |

User Signup

98 | 99 |
100 | 101 |
102 |
103 | 104 |
105 |
106 |
107 | SINGUP FORM 108 |
109 |
110 |
111 |
112 | 113 | 114 |
115 | 116 | 117 |
118 | 119 | 120 |
121 | 122 |
123 | 124 | 125 | 126 |
127 | 128 |
129 | 130 | 131 |
132 | 133 |
134 | 135 | 136 |
137 | 138 | 139 | 140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | -------------------------------------------------------------------------------- /admin/issue-book2.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 18 | $query->bindParam(':studentid',$studentid,PDO::PARAM_STR); 19 | $query->bindParam(':bookid',$bookid,PDO::PARAM_STR); 20 | $query->execute(); 21 | $lastInsertId = $dbh->lastInsertId(); 22 | 23 | $bookid=$_GET['ISBNNumber']; 24 | $studentid=$_GET['StudentID']; 25 | $sql="DELETE FROM tblrequestedbookdetails WHERE StudentID=:studentid and ISBNNumber=:bookid"; 26 | $query = $dbh->prepare($sql); 27 | $query -> bindParam(':studentid',$studentid, PDO::PARAM_STR); 28 | $query -> bindParam(':bookid',$bookid, PDO::PARAM_STR); 29 | $query->execute(); 30 | 31 | $sql="update tblbooks set IssuedCopies=IssuedCopies+1 where ISBNNumber=:bookid"; 32 | $query = $dbh->prepare($sql); 33 | $query->bindParam(':bookid',$bookid,PDO::PARAM_STR); 34 | $query->execute(); 35 | 36 | $_SESSION['msg']="Book issued successfully"; 37 | header('location:manage-issued-books.php'); 38 | 39 | } 40 | ?> 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | Online Library Management System | Issue a new Book 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 89 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 |
104 |
105 |
106 |
107 |

Issue a New Book

108 | 109 |
110 | 111 |
112 |
113 |
114 |
115 |
116 | Issue a New Book 117 |
118 |
119 | 120 | 121 | 122 | 123 | 124 |
125 | 126 | 130 |
131 | 132 | 133 |
134 | 135 |
136 | 137 |
138 | 139 |
140 | 141 | 142 |
143 | 144 |
145 | Book Title 147 |
148 | 149 |
ERROR:
SUCCESS:
151 | 152 | 153 | 154 |
155 |
156 |
157 |
158 | 159 |
160 | 161 |
162 |
163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | -------------------------------------------------------------------------------- /admin/add-book.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 21 | $query->bindParam(':bookname',$bookname,PDO::PARAM_STR); 22 | $query->bindParam(':category',$category,PDO::PARAM_STR); 23 | $query->bindParam(':author',$author,PDO::PARAM_STR); 24 | $query->bindParam(':isbn',$isbn,PDO::PARAM_STR); 25 | $query->bindParam(':price',$price,PDO::PARAM_STR); 26 | $query->bindParam(':copies',$copies,PDO::PARAM_STR); 27 | $query->execute(); 28 | $lastInsertId = $dbh->lastInsertId(); 29 | if($lastInsertId) 30 | { 31 | $_SESSION['msg']="Book Listed successfully"; 32 | header('location:manage-books.php'); 33 | } 34 | else 35 | { 36 | $_SESSION['error']="Something went wrong. Please try again"; 37 | header('location:manage-books.php'); 38 | } 39 | 40 | } 41 | ?> 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | Online Library Management System | Add Book 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 |
66 |
67 |
68 |
69 |

Add Book

70 | 71 |
72 | 73 |
74 |
75 |
76 |
77 |
78 | Book Info 79 |
80 |
81 |
82 |
83 | 84 | 85 |
86 | 87 |
88 | 89 | 106 |
107 | 108 | 109 |
110 | 111 | 127 |
128 | 129 |
130 | 131 | 132 |

An ISBN is an International Standard Book Number.ISBN Must be unique

133 |
134 | 135 |
136 | 137 | 138 |
139 | 140 |
141 | 142 | 143 |
144 | 145 | 146 |
147 |
148 |
149 |
150 | 151 |
152 | 153 |
154 |
155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | -------------------------------------------------------------------------------- /assets/js/dataTables/dataTables.bootstrap.css: -------------------------------------------------------------------------------- 1 | div.dataTables_length label { 2 | float: left; 3 | text-align: left; 4 | font-weight: normal; 5 | } 6 | 7 | div.dataTables_length select { 8 | width: 75px; 9 | } 10 | 11 | div.dataTables_filter label { 12 | float: right; 13 | font-weight: normal; 14 | } 15 | 16 | div.dataTables_filter input { 17 | width: 16em; 18 | } 19 | 20 | div.dataTables_info { 21 | padding-top: 8px; 22 | } 23 | 24 | div.dataTables_paginate { 25 | float: right; 26 | margin: 0; 27 | } 28 | 29 | div.dataTables_paginate ul.pagination { 30 | margin: 2px 0; 31 | white-space: nowrap; 32 | } 33 | 34 | table.dataTable, 35 | table.dataTable td, 36 | table.dataTable th { 37 | -webkit-box-sizing: content-box; 38 | -moz-box-sizing: content-box; 39 | box-sizing: content-box; 40 | } 41 | 42 | table.dataTable { 43 | clear: both; 44 | margin-top: 6px !important; 45 | margin-bottom: 6px !important; 46 | max-width: none !important; 47 | } 48 | 49 | table.dataTable thead .sorting, 50 | table.dataTable thead .sorting_asc, 51 | table.dataTable thead .sorting_desc, 52 | table.dataTable thead .sorting_asc_disabled, 53 | table.dataTable thead .sorting_desc_disabled { 54 | cursor: pointer; 55 | } 56 | 57 | table.dataTable thead .sorting { 58 | background: url('../images/sort_both.html') no-repeat center right; 59 | } 60 | 61 | table.dataTable thead .sorting_asc { 62 | background: url('../images/sort_asc.html') no-repeat center right; 63 | } 64 | 65 | table.dataTable thead .sorting_desc { 66 | background: url('../images/sort_desc.html') no-repeat center right; 67 | } 68 | 69 | table.dataTable thead .sorting_asc_disabled { 70 | background: url('../images/sort_asc_disabled.html') no-repeat center right; 71 | } 72 | 73 | table.dataTable thead .sorting_desc_disabled { 74 | background: url('../images/sort_desc_disabled.html') no-repeat center right; 75 | } 76 | 77 | table.dataTable th:active { 78 | outline: none; 79 | } 80 | 81 | /* Scrolling */ 82 | 83 | div.dataTables_scrollHead table { 84 | margin-bottom: 0 !important; 85 | border-bottom-left-radius: 0; 86 | border-bottom-right-radius: 0; 87 | } 88 | 89 | div.dataTables_scrollHead table thead tr:last-child th:first-child, 90 | div.dataTables_scrollHead table thead tr:last-child td:first-child { 91 | border-bottom-left-radius: 0 !important; 92 | border-bottom-right-radius: 0 !important; 93 | } 94 | 95 | div.dataTables_scrollBody table { 96 | margin-top: 0 !important; 97 | margin-bottom: 0 !important; 98 | border-top: none; 99 | } 100 | 101 | div.dataTables_scrollBody tbody tr:first-child th, 102 | div.dataTables_scrollBody tbody tr:first-child td { 103 | border-top: none; 104 | } 105 | 106 | div.dataTables_scrollFoot table { 107 | margin-top: 0 !important; 108 | border-top: none; 109 | } 110 | 111 | /* 112 | * TableTools styles 113 | */ 114 | 115 | .table tbody tr.active td, 116 | .table tbody tr.active th { 117 | color: white; 118 | background-color: #08C; 119 | } 120 | 121 | .table tbody tr.active:hover td, 122 | .table tbody tr.active:hover th { 123 | background-color: #0075b0 !important; 124 | } 125 | 126 | .table tbody tr.active a { 127 | color: white; 128 | } 129 | 130 | .table-striped tbody tr.active:nth-child(odd) td, 131 | .table-striped tbody tr.active:nth-child(odd) th { 132 | background-color: #017ebc; 133 | } 134 | 135 | table.DTTT_selectable tbody tr { 136 | cursor: pointer; 137 | } 138 | 139 | div.DTTT .btn { 140 | font-size: 12px; 141 | color: #333 !important; 142 | } 143 | 144 | div.DTTT .btn:hover { 145 | text-decoration: none !important; 146 | } 147 | 148 | ul.DTTT_dropdown.dropdown-menu { 149 | z-index: 2003; 150 | } 151 | 152 | ul.DTTT_dropdown.dropdown-menu a { 153 | color: #333 !important; /* needed only when demo_page.css is included */ 154 | } 155 | 156 | ul.DTTT_dropdown.dropdown-menu li { 157 | position: relative; 158 | } 159 | 160 | ul.DTTT_dropdown.dropdown-menu li:hover a { 161 | color: white !important; 162 | background-color: #0088cc; 163 | } 164 | 165 | div.DTTT_collection_background { 166 | z-index: 2002; 167 | } 168 | 169 | /* TableTools information display */ 170 | 171 | div.DTTT_print_info.modal { 172 | height: 150px; 173 | margin-top: -75px; 174 | text-align: center; 175 | } 176 | 177 | div.DTTT_print_info h6 { 178 | margin: 1em; 179 | font-size: 28px; 180 | font-weight: normal; 181 | line-height: 28px; 182 | } 183 | 184 | div.DTTT_print_info p { 185 | font-size: 14px; 186 | line-height: 20px; 187 | } 188 | 189 | /* 190 | * FixedColumns styles 191 | */ 192 | 193 | div.DTFC_LeftHeadWrapper table, 194 | div.DTFC_LeftFootWrapper table, 195 | div.DTFC_RightHeadWrapper table, 196 | div.DTFC_RightFootWrapper table, 197 | table.DTFC_Cloned tr.even { 198 | background-color: white; 199 | } 200 | 201 | div.DTFC_RightHeadWrapper table, 202 | div.DTFC_LeftHeadWrapper table { 203 | margin-bottom: 0 !important; 204 | border-top-right-radius: 0 !important; 205 | border-bottom-left-radius: 0 !important; 206 | border-bottom-right-radius: 0 !important; 207 | } 208 | 209 | div.DTFC_RightHeadWrapper table thead tr:last-child th:first-child, 210 | div.DTFC_RightHeadWrapper table thead tr:last-child td:first-child, 211 | div.DTFC_LeftHeadWrapper table thead tr:last-child th:first-child, 212 | div.DTFC_LeftHeadWrapper table thead tr:last-child td:first-child { 213 | border-bottom-left-radius: 0 !important; 214 | border-bottom-right-radius: 0 !important; 215 | } 216 | 217 | div.DTFC_RightBodyWrapper table, 218 | div.DTFC_LeftBodyWrapper table { 219 | margin-bottom: 0 !important; 220 | border-top: none; 221 | } 222 | 223 | div.DTFC_RightBodyWrapper tbody tr:first-child th, 224 | div.DTFC_RightBodyWrapper tbody tr:first-child td, 225 | div.DTFC_LeftBodyWrapper tbody tr:first-child th, 226 | div.DTFC_LeftBodyWrapper tbody tr:first-child td { 227 | border-top: none; 228 | } 229 | 230 | div.DTFC_RightFootWrapper table, 231 | div.DTFC_LeftFootWrapper table { 232 | border-top: none; 233 | } -------------------------------------------------------------------------------- /admin/assets/js/dataTables/dataTables.bootstrap.css: -------------------------------------------------------------------------------- 1 | div.dataTables_length label { 2 | float: left; 3 | text-align: left; 4 | font-weight: normal; 5 | } 6 | 7 | div.dataTables_length select { 8 | width: 75px; 9 | } 10 | 11 | div.dataTables_filter label { 12 | float: right; 13 | font-weight: normal; 14 | } 15 | 16 | div.dataTables_filter input { 17 | width: 16em; 18 | } 19 | 20 | div.dataTables_info { 21 | padding-top: 8px; 22 | } 23 | 24 | div.dataTables_paginate { 25 | float: right; 26 | margin: 0; 27 | } 28 | 29 | div.dataTables_paginate ul.pagination { 30 | margin: 2px 0; 31 | white-space: nowrap; 32 | } 33 | 34 | table.dataTable, 35 | table.dataTable td, 36 | table.dataTable th { 37 | -webkit-box-sizing: content-box; 38 | -moz-box-sizing: content-box; 39 | box-sizing: content-box; 40 | } 41 | 42 | table.dataTable { 43 | clear: both; 44 | margin-top: 6px !important; 45 | margin-bottom: 6px !important; 46 | max-width: none !important; 47 | } 48 | 49 | table.dataTable thead .sorting, 50 | table.dataTable thead .sorting_asc, 51 | table.dataTable thead .sorting_desc, 52 | table.dataTable thead .sorting_asc_disabled, 53 | table.dataTable thead .sorting_desc_disabled { 54 | cursor: pointer; 55 | } 56 | 57 | table.dataTable thead .sorting { 58 | background: url('../images/sort_both.html') no-repeat center right; 59 | } 60 | 61 | table.dataTable thead .sorting_asc { 62 | background: url('../images/sort_asc.html') no-repeat center right; 63 | } 64 | 65 | table.dataTable thead .sorting_desc { 66 | background: url('../images/sort_desc.html') no-repeat center right; 67 | } 68 | 69 | table.dataTable thead .sorting_asc_disabled { 70 | background: url('../images/sort_asc_disabled.html') no-repeat center right; 71 | } 72 | 73 | table.dataTable thead .sorting_desc_disabled { 74 | background: url('../images/sort_desc_disabled.html') no-repeat center right; 75 | } 76 | 77 | table.dataTable th:active { 78 | outline: none; 79 | } 80 | 81 | /* Scrolling */ 82 | 83 | div.dataTables_scrollHead table { 84 | margin-bottom: 0 !important; 85 | border-bottom-left-radius: 0; 86 | border-bottom-right-radius: 0; 87 | } 88 | 89 | div.dataTables_scrollHead table thead tr:last-child th:first-child, 90 | div.dataTables_scrollHead table thead tr:last-child td:first-child { 91 | border-bottom-left-radius: 0 !important; 92 | border-bottom-right-radius: 0 !important; 93 | } 94 | 95 | div.dataTables_scrollBody table { 96 | margin-top: 0 !important; 97 | margin-bottom: 0 !important; 98 | border-top: none; 99 | } 100 | 101 | div.dataTables_scrollBody tbody tr:first-child th, 102 | div.dataTables_scrollBody tbody tr:first-child td { 103 | border-top: none; 104 | } 105 | 106 | div.dataTables_scrollFoot table { 107 | margin-top: 0 !important; 108 | border-top: none; 109 | } 110 | 111 | /* 112 | * TableTools styles 113 | */ 114 | 115 | .table tbody tr.active td, 116 | .table tbody tr.active th { 117 | color: white; 118 | background-color: #08C; 119 | } 120 | 121 | .table tbody tr.active:hover td, 122 | .table tbody tr.active:hover th { 123 | background-color: #0075b0 !important; 124 | } 125 | 126 | .table tbody tr.active a { 127 | color: white; 128 | } 129 | 130 | .table-striped tbody tr.active:nth-child(odd) td, 131 | .table-striped tbody tr.active:nth-child(odd) th { 132 | background-color: #017ebc; 133 | } 134 | 135 | table.DTTT_selectable tbody tr { 136 | cursor: pointer; 137 | } 138 | 139 | div.DTTT .btn { 140 | font-size: 12px; 141 | color: #333 !important; 142 | } 143 | 144 | div.DTTT .btn:hover { 145 | text-decoration: none !important; 146 | } 147 | 148 | ul.DTTT_dropdown.dropdown-menu { 149 | z-index: 2003; 150 | } 151 | 152 | ul.DTTT_dropdown.dropdown-menu a { 153 | color: #333 !important; /* needed only when demo_page.css is included */ 154 | } 155 | 156 | ul.DTTT_dropdown.dropdown-menu li { 157 | position: relative; 158 | } 159 | 160 | ul.DTTT_dropdown.dropdown-menu li:hover a { 161 | color: white !important; 162 | background-color: #0088cc; 163 | } 164 | 165 | div.DTTT_collection_background { 166 | z-index: 2002; 167 | } 168 | 169 | /* TableTools information display */ 170 | 171 | div.DTTT_print_info.modal { 172 | height: 150px; 173 | margin-top: -75px; 174 | text-align: center; 175 | } 176 | 177 | div.DTTT_print_info h6 { 178 | margin: 1em; 179 | font-size: 28px; 180 | font-weight: normal; 181 | line-height: 28px; 182 | } 183 | 184 | div.DTTT_print_info p { 185 | font-size: 14px; 186 | line-height: 20px; 187 | } 188 | 189 | /* 190 | * FixedColumns styles 191 | */ 192 | 193 | div.DTFC_LeftHeadWrapper table, 194 | div.DTFC_LeftFootWrapper table, 195 | div.DTFC_RightHeadWrapper table, 196 | div.DTFC_RightFootWrapper table, 197 | table.DTFC_Cloned tr.even { 198 | background-color: white; 199 | } 200 | 201 | div.DTFC_RightHeadWrapper table, 202 | div.DTFC_LeftHeadWrapper table { 203 | margin-bottom: 0 !important; 204 | border-top-right-radius: 0 !important; 205 | border-bottom-left-radius: 0 !important; 206 | border-bottom-right-radius: 0 !important; 207 | } 208 | 209 | div.DTFC_RightHeadWrapper table thead tr:last-child th:first-child, 210 | div.DTFC_RightHeadWrapper table thead tr:last-child td:first-child, 211 | div.DTFC_LeftHeadWrapper table thead tr:last-child th:first-child, 212 | div.DTFC_LeftHeadWrapper table thead tr:last-child td:first-child { 213 | border-bottom-left-radius: 0 !important; 214 | border-bottom-right-radius: 0 !important; 215 | } 216 | 217 | div.DTFC_RightBodyWrapper table, 218 | div.DTFC_LeftBodyWrapper table { 219 | margin-bottom: 0 !important; 220 | border-top: none; 221 | } 222 | 223 | div.DTFC_RightBodyWrapper tbody tr:first-child th, 224 | div.DTFC_RightBodyWrapper tbody tr:first-child td, 225 | div.DTFC_LeftBodyWrapper tbody tr:first-child th, 226 | div.DTFC_LeftBodyWrapper tbody tr:first-child td { 227 | border-top: none; 228 | } 229 | 230 | div.DTFC_RightFootWrapper table, 231 | div.DTFC_LeftFootWrapper table { 232 | border-top: none; 233 | } -------------------------------------------------------------------------------- /issued-books.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 15 | $query -> bindParam(':id',$id, PDO::PARAM_STR); 16 | $query -> execute(); 17 | $_SESSION['delmsg']="Category deleted scuccessfully "; 18 | header('location:manage-books.php'); 19 | 20 | } 21 | 22 | 23 | ?> 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | Online Library Management System | Manage Issued Books 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 |
49 |
50 |
51 |
52 |

Manage Issued Books

53 |
54 | 55 | 56 |
57 |
58 | 59 |
60 |
61 | Issued Books 62 |
63 |
64 |
65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | prepare($sql); 81 | $query-> bindParam(':sid', $sid, PDO::PARAM_STR); 82 | $query->execute(); 83 | $results=$query->fetchAll(PDO::FETCH_OBJ); 84 | $cnt=1; 85 | if($query->rowCount() > 0) 86 | { 87 | foreach($results as $result) 88 | { ?> 89 | 90 | 91 | 92 | 93 | 94 | 103 | 104 | 105 | 106 | 107 | 108 |
#Book NameISBN Issued DateReturn DateFine in(Rs)
BookName);?>ISBNNumber);?>IssuesDate);?>ReturnDate=="") 95 | {?> 96 | 97 | 98 | 99 | ReturnDate); 101 | } 102 | ?>fine);?>
109 |
110 | 111 |
112 |
113 | 114 |
115 |
116 | 117 | 118 | 119 |
120 |
121 |
122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | -------------------------------------------------------------------------------- /admin/manage-requested-books.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | Online Library Management System | Manage Issued Books 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
39 |
40 |
41 |
42 |

Manage Requested Books

43 |
44 |
45 | 47 |
48 |
49 | Error : 50 | 51 | 52 |
53 |
54 | 55 | 57 |
58 |
59 | Success : 60 | 61 | 62 |
63 |
64 | 65 | 66 | 67 | 68 | 70 |
71 |
72 | Success : 73 | 74 | 75 |
76 |
77 | 78 | 79 |
80 | 81 | 82 |
83 |
84 |
85 | 86 |
87 |
88 | Requested Books 89 |
90 |
91 |
92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | prepare($sql); 109 | $query->execute(); 110 | $results=$query->fetchAll(PDO::FETCH_OBJ); 111 | $cnt=1; 112 | if($query->rowCount() > 0) 113 | { 114 | foreach($results as $result) 115 | { ?> 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 |
#Student IDStudent NameBook NameCategory NamePublication NameISBN NumberBook PriceAction
StudentID);?>StudName);?>BookName);?>CategoryName);?>AuthorName);?>ISBNNumber);?>BookPrice);?> Issue  
130 |
131 | 132 |
133 |
134 | 135 |
136 |
137 | 138 | 139 | 140 |
141 |
142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | -------------------------------------------------------------------------------- /request-a-book.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Online Library Management System | Manage Issued Books 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 |
37 |
38 |
39 |
40 |

Request a Book

41 |
42 |
43 | 45 |
46 |
47 | Error : 48 | 49 | 50 |
51 |
52 | 53 | 55 |
56 |
57 | Success : 58 | 59 | 60 |
61 |
62 | 63 | 64 | 65 | 66 | 68 |
69 |
70 | Success : 71 | 72 | 73 |
74 |
75 | 76 | 77 |
78 |
79 |
80 |
81 | 82 |
83 |
84 | Available Books 85 |
86 |
87 |
88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | prepare($sql); 103 | $query->execute(); 104 | $results=$query->fetchAll(PDO::FETCH_OBJ); 105 | $cnt=1; 106 | if($query->rowCount() > 0) 107 | { 108 | foreach($results as $result) 109 | { 110 | if($result->Copies > $result->IssuedCopies) 111 | { ?> 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 122 | 123 | 124 | 125 |
#Book NameCategoryPublication NameISBN PriceAction
BookName);?>CategoryName);?>AuthorName);?>ISBNNumber);?>BookPrice);?>
126 |
127 |
128 |
129 | 130 |
131 |
132 |
133 |
134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | -------------------------------------------------------------------------------- /admin/manage-publications.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 15 | $query -> bindParam(':id',$id, PDO::PARAM_STR); 16 | $query -> execute(); 17 | $_SESSION['delmsg']="Publication deleted"; 18 | header('location:manage-publications.php'); 19 | } 20 | ?> 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | Online Library Management System | Manage Authors 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 |
46 |
47 |
48 |
49 |

Manage Publications

50 |
51 |
52 | 54 |
55 |
56 | Error : 57 | 58 | 59 |
60 |
61 | 62 | 64 |
65 |
66 | Success : 67 | 68 | 69 |
70 |
71 | 72 | 74 |
75 |
76 | Success : 77 | 78 | 79 |
80 |
81 | 82 | 83 | 84 | 86 |
87 |
88 | Success : 89 | 90 | 91 |
92 |
93 | 94 | 95 |
96 | 97 | 98 |
99 |
100 |
101 | 102 |
103 |
104 | Publications Listing 105 |
106 |
107 |
108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | prepare($sql); 121 | $query->execute(); 122 | $results=$query->fetchAll(PDO::FETCH_OBJ); 123 | $cnt=1; 124 | if($query->rowCount() > 0) 125 | { 126 | foreach($results as $result) 127 | { ?> 128 | 129 | 130 | 131 | 132 | 133 | 138 | 139 | 140 | 141 |
#PublicationCreation DateUpdation DateAction
AuthorName);?>creationDate);?>UpdationDate);?> 134 | 135 | 136 | 137 |
142 |
143 | 144 |
145 |
146 | 147 |
148 |
149 | 150 | 151 | 152 |
153 |
154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | -------------------------------------------------------------------------------- /admin/reg-students.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 18 | $query -> bindParam(':id',$id, PDO::PARAM_STR); 19 | $query -> bindParam(':status',$status, PDO::PARAM_STR); 20 | $query -> execute(); 21 | header('location:reg-students.php'); 22 | } 23 | 24 | 25 | 26 | //code for active students 27 | if(isset($_GET['id'])) 28 | { 29 | $id=$_GET['id']; 30 | $status=1; 31 | $sql = "update tblstudents set Status=:status WHERE id=:id"; 32 | $query = $dbh->prepare($sql); 33 | $query -> bindParam(':id',$id, PDO::PARAM_STR); 34 | $query -> bindParam(':status',$status, PDO::PARAM_STR); 35 | $query -> execute(); 36 | header('location:reg-students.php'); 37 | } 38 | 39 | 40 | ?> 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | Online Library Management System | Manage Reg Students 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 |
66 |
67 |
68 |
69 |

Manage Reg Students

70 |
71 | 72 | 73 |
74 |
75 |
76 | 77 |
78 |
79 | Reg Students 80 |
81 |
82 |
83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | prepare($sql); 99 | $query->execute(); 100 | $results=$query->fetchAll(PDO::FETCH_OBJ); 101 | $cnt=1; 102 | if($query->rowCount() > 0) 103 | { 104 | foreach($results as $result) 105 | { ?> 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 122 | 132 | 133 | 134 | 135 |
#Student IDStudent NameEmail id Mobile NumberReg DateStatusAction
StudentId);?>FullName);?>EmailId);?>MobileNumber);?>RegDate);?>Status==1) 114 | { 115 | echo htmlentities("Active"); 116 | } else { 117 | 118 | 119 | echo htmlentities("Blocked"); 120 | } 121 | ?> 123 | Status==1) 124 | {?> 125 | 126 | 127 | 128 | 129 | 130 | 131 |
136 |
137 | 138 |
139 |
140 | 141 |
142 |
143 | 144 | 145 | 146 |
147 |
148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | -------------------------------------------------------------------------------- /admin/update-issue-bookdeails.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 21 | $query->bindParam(':rid',$rid,PDO::PARAM_STR); 22 | $query->bindParam(':fine',$fine,PDO::PARAM_STR); 23 | $query->bindParam(':rstatus',$rstatus,PDO::PARAM_STR); 24 | $query->execute(); 25 | 26 | $sql="update tblbooks set IssuedCopies=IssuedCopies-1 where ISBNNumber=:ISBNNumber"; 27 | $query = $dbh->prepare($sql); 28 | $query->bindParam(':ISBNNumber',$ISBNNumber,PDO::PARAM_STR); 29 | $query->execute(); 30 | 31 | $_SESSION['msg']="Book Returned successfully"; 32 | header('location:manage-issued-books.php'); 33 | 34 | 35 | } 36 | } 37 | ?> 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | Online Library Management System | Issued Book Details 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 86 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 |
101 |
102 |
103 |
104 |

Issued Book Details

105 | 106 |
107 | 108 |
109 |
110 |
111 |
112 |
113 | Issued Book Details 114 |
115 |
116 |
117 | prepare($sql); 121 | $query->bindParam(':rid',$rid,PDO::PARAM_STR); 122 | $query->execute(); 123 | $results=$query->fetchAll(PDO::FETCH_OBJ); 124 | $cnt=1; 125 | if($query->rowCount() > 0) 126 | { 127 | foreach($results as $result) 128 | { ?> 129 | 130 | 131 | 132 | 133 |
134 | 135 | FullName);?> 136 |
137 | 138 |
139 | 140 | BookName);?> 141 |
142 | 143 | 144 |
145 | 146 | id);?> 147 |
148 | 149 |
150 | 151 | ISBNNumber);?> 152 |
153 | 154 |
155 | 156 | IssuesDate);?> 157 |
158 | 159 |
160 | 161 | ReturnDate=="") 162 | { 163 | echo htmlentities("Not Return Yet"); 164 | } else { 165 | echo htmlentities($result->ReturnDate); 166 | }?> 167 |
168 | 169 |
170 | ReturnDate===NULL) 173 | { 174 | $flag=1; 175 | ?> 176 | Fine To Be Paid: 177 | 179 |
180 | 181 | 182 | 183 |
184 | 185 | 186 | 189 |
190 | 191 | fine===Null){ 193 | echo htmlentities("0"); 194 | } 195 | else 196 | { 197 | echo htmlentities($result->fine); 198 | } 199 | } 200 | ?>
201 |
202 | 203 | ReturnStatus==0){?> 204 |
205 |
206 |
207 | 208 |
209 |
210 |
211 |
212 |
213 | 214 | 215 | 216 |
217 |
218 |
219 |
220 |
221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | -------------------------------------------------------------------------------- /admin/edit-book.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 22 | $query->bindParam(':bookname',$bookname,PDO::PARAM_STR); 23 | $query->bindParam(':category',$category,PDO::PARAM_STR); 24 | $query->bindParam(':author',$author,PDO::PARAM_STR); 25 | $query->bindParam(':isbn',$isbn,PDO::PARAM_STR); 26 | $query->bindParam(':price',$price,PDO::PARAM_STR); 27 | $query->bindParam(':bookid',$bookid,PDO::PARAM_STR); 28 | $query->bindParam(':Copies',$Copies,PDO::PARAM_STR); 29 | $query->execute(); 30 | $_SESSION['msg']="Book info updated successfully"; 31 | header('location:manage-books.php'); 32 | 33 | 34 | } 35 | ?> 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | Online Library Management System | Edit Book 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 |
60 |
61 |
62 |
63 |

Add Book

64 | 65 |
66 | 67 |
68 |
69 |
70 |
71 |
72 | Book Info 73 |
74 |
75 |
76 | prepare($sql); 80 | $query->bindParam(':bookid',$bookid,PDO::PARAM_STR); 81 | $query->execute(); 82 | $results=$query->fetchAll(PDO::FETCH_OBJ); 83 | $cnt=1; 84 | if($query->rowCount() > 0) 85 | { 86 | foreach($results as $result) 87 | { ?> 88 |
89 | 90 | 91 |
92 | 93 |
94 | 95 | 96 |
97 | 98 |
99 | 100 | 123 |
124 | 125 | 126 |
127 | 128 | 149 |
150 | 151 |
152 | 153 | 154 |

An ISBN is an International Standard Book Number.ISBN Must be unique

155 |
156 | 157 |
158 | 159 | 160 |
161 | 162 |
163 | 164 | 165 |
166 | 167 | 168 | 169 |
170 |
171 |
172 |
173 | 174 |
175 | 176 |
177 |
178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | -------------------------------------------------------------------------------- /admin/manage-categories.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 15 | $query -> bindParam(':id',$id, PDO::PARAM_STR); 16 | $query -> execute(); 17 | $_SESSION['delmsg']="Category deleted scuccessfully "; 18 | header('location:manage-categories.php'); 19 | 20 | } 21 | 22 | 23 | ?> 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | Online Library Management System | Manage Categories 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 |
49 |
50 |
51 |
52 |

Manage Categories

53 |
54 |
55 | 57 |
58 |
59 | Error : 60 | 61 | 62 |
63 |
64 | 65 | 67 |
68 |
69 | Success : 70 | 71 | 72 |
73 |
74 | 75 | 77 |
78 |
79 | Success : 80 | 81 | 82 |
83 |
84 | 85 | 86 | 87 | 89 |
90 |
91 | Success : 92 | 93 | 94 |
95 |
96 | 97 | 98 |
99 | 100 | 101 |
102 |
103 |
104 | 105 |
106 |
107 | Categories Listing 108 |
109 |
110 |
111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | prepare($sql); 125 | $query->execute(); 126 | $results=$query->fetchAll(PDO::FETCH_OBJ); 127 | $cnt=1; 128 | if($query->rowCount() > 0) 129 | { 130 | foreach($results as $result) 131 | { ?> 132 | 133 | 134 | 135 | 140 | 141 | 142 | 147 | 148 | 149 | 150 |
sr noCategoryStatusCreation DateUpdation DateAction
CategoryName);?>Status==1) {?> 136 | Active 137 | 138 | Inactive 139 | CreationDate);?>UpdationDate);?> 143 | 144 | 145 | 146 |
151 |
152 | 153 |
154 |
155 | 156 |
157 |
158 | 159 | 160 | 161 |
162 |
163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | -------------------------------------------------------------------------------- /admin/manage-books.php: -------------------------------------------------------------------------------- 1 | prepare($sql); 15 | $query -> bindParam(':id',$id, PDO::PARAM_STR); 16 | $query -> execute(); 17 | $_SESSION['delmsg']="Book deleted scuccessfully "; 18 | header('location:manage-books.php'); 19 | } 20 | ?> 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | Online Library Management System | Manage Books 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 |
46 |
47 |
48 |
49 |

Manage Books

50 |
51 |
52 | 54 |
55 |
56 | Error : 57 | 58 | 59 |
60 |
61 | 62 | 64 |
65 |
66 | Success : 67 | 68 | 69 |
70 |
71 | 72 | 74 |
75 |
76 | Success : 77 | 78 | 79 |
80 |
81 | 82 | 83 | 84 | 86 |
87 |
88 | Success : 89 | 90 | 91 |
92 |
93 | 94 | 95 |
96 | 97 | 98 |
99 |
100 |
101 | 102 |
103 |
104 | Books Listing 105 |
106 |
107 |
108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | prepare($sql); 126 | $query->execute(); 127 | $results=$query->fetchAll(PDO::FETCH_OBJ); 128 | $cnt=1; 129 | if($query->rowCount() > 0) 130 | { 131 | foreach($results as $result) 132 | { ?> 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 148 | 149 | 150 | 151 |
#Book NameBook IDTotal CopiesIssued CopiesCategoryPublicationISBNPriceAction
BookName);?>id);?>Copies);?>IssuedCopies);?>CategoryName);?>AuthorName);?>ISBNNumber);?>BookPrice);?> 144 | 145 | 146 | 147 |
152 |
153 | 154 |
155 |
156 | 157 |
158 |
159 | 160 | 161 | 162 |
163 |
164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | -------------------------------------------------------------------------------- /admin/manage-issued-books.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | Online Library Management System | Manage Issued Books 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
39 |
40 |
41 |
42 |

Manage Issued Books

43 |
44 |
45 | 47 |
48 |
49 | Error : 50 | 51 | 52 |
53 |
54 | 55 | 57 |
58 |
59 | Success : 60 | 61 | 62 |
63 |
64 | 65 | 66 | 67 | 68 | 70 |
71 |
72 | Success : 73 | 74 | 75 |
76 |
77 | 78 | 79 |
80 | 81 | 82 |
83 |
84 |
85 | 86 |
87 |
88 | Issued Books 89 |
90 |
91 |
92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | prepare($sql); 108 | $query->execute(); 109 | $results=$query->fetchAll(PDO::FETCH_OBJ); 110 | $cnt=1; 111 | if($query->rowCount() > 0) 112 | { 113 | foreach($results as $result) 114 | { ?> 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 148 | 153 | 154 | 155 | 156 |
#Student NameBook NameBook IDISBN Issued DateReturn DateAction
FullName);?>BookName);?>id);?>ISBNNumber);?>IssuesDate);?>ReturnDate=="") 123 | { 124 | $date=Date('Y/m/d'); 125 | $date2=Date("Y/m/d",strtotime($result->IssuesDate)); 126 | $diff=strtotime($date)- strtotime($date2); 127 | $days=floor($diff/86400); 128 | if($days>7) 129 | { 130 | $days=$days-7; 131 | $str=$days." days exceeded"; 132 | } 133 | else if($days<7) 134 | { 135 | $days=7-$days; 136 | $str=$days." days remaining"; 137 | } 138 | else 139 | { 140 | $str="Last day remaining"; 141 | } 142 | echo htmlentities("Not Return Yet ");?> 143 | ReturnDate); 146 | } 147 | ?> 149 | 150 | 151 | 152 |
157 |
158 | 159 |
160 |
161 | 162 |
163 |
164 | 165 | 166 | 167 |
168 |
169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | --------------------------------------------------------------------------------