├── README.md
├── SQL
└── library.sql
├── admin
├── add-author.php
├── add-book.php
├── add-category.php
├── assets
│ ├── css
│ │ ├── bootstrap.css
│ │ ├── font-awesome.css
│ │ └── style.css
│ ├── fonts
│ │ ├── fontawesome-webfont862f.eot
│ │ ├── fontawesome-webfont862f.svg
│ │ ├── fontawesome-webfont862f.ttf
│ │ ├── fontawesome-webfont862f.woff
│ │ ├── fontawesome-webfontd41d.eot
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.svg
│ │ ├── glyphicons-halflings-regular.ttf
│ │ ├── glyphicons-halflings-regular.woff
│ │ └── glyphicons-halflings-regulard41d.eot
│ ├── img
│ │ ├── 1.jpg
│ │ ├── 2.jpg
│ │ ├── 3.jpg
│ │ ├── logo.png
│ │ ├── user.gif
│ │ └── user2.png
│ └── js
│ │ ├── bootstrap.js
│ │ ├── custom.js
│ │ ├── dataTables
│ │ ├── dataTables.bootstrap.css
│ │ ├── dataTables.bootstrap.js
│ │ └── jquery.dataTables.js
│ │ ├── images
│ │ ├── sort_asc.html
│ │ ├── sort_asc_disabled.html
│ │ ├── sort_both.html
│ │ ├── sort_desc.html
│ │ └── sort_desc_disabled.html
│ │ └── jquery-1.10.2.js
├── change-password.php
├── dashboard.php
├── edit-author.php
├── edit-book.php
├── edit-category.php
├── get_book.php
├── get_student.php
├── includes
│ ├── config.php
│ ├── footer.php
│ └── header.php
├── index.php
├── issue-book.php
├── logout.php
├── manage-authors.php
├── manage-books.php
├── manage-categories.php
├── manage-issued-books.php
├── reg-students.php
└── update-issue-bookdeails.php
├── adminlogin.php
├── assets
├── css
│ ├── bootstrap.css
│ ├── font-awesome.css
│ └── style.css
├── fonts
│ ├── fontawesome-webfont862f.eot
│ ├── fontawesome-webfont862f.svg
│ ├── fontawesome-webfont862f.ttf
│ ├── fontawesome-webfont862f.woff
│ ├── fontawesome-webfontd41d.eot
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.svg
│ ├── glyphicons-halflings-regular.ttf
│ ├── glyphicons-halflings-regular.woff
│ └── glyphicons-halflings-regulard41d.eot
├── img
│ ├── logo.png
│ ├── user.gif
│ └── user2.png
└── js
│ ├── bootstrap.js
│ ├── custom.js
│ ├── dataTables
│ ├── dataTables.bootstrap.css
│ ├── dataTables.bootstrap.js
│ └── jquery.dataTables.js
│ ├── images
│ ├── sort_asc.html
│ ├── sort_asc_disabled.html
│ ├── sort_both.html
│ ├── sort_desc.html
│ └── sort_desc_disabled.html
│ └── jquery-1.10.2.js
├── captcha.php
├── change-password.php
├── check_availability.php
├── config.php
├── dashboard.php
├── includes
├── config.php
├── footer.php
└── header.php
├── index.php
├── issued-books.php
├── logout.php
├── my-profile.php
├── signup.php
└── user-forgot-password.php
/README.md:
--------------------------------------------------------------------------------
1 | lms-php-app
2 | This repository is for my PHP MySQL Library Management System that i have done for a project in college for Web services & Applications
3 |
4 |
5 | In order to use this project you need to instal LAMP/WAMP and create folder library in htdocs folder so that you can use localhost to test this application. Then you need to add this files to library folder and also you need to create database called library and add sql file in phpmyadmin dashboard..
6 |
7 | And also you can check out my project live that i have hosted :
8 |
9 | https://aleksandartrifunovic1.000webhostapp.com/
10 |
11 | If you want to check out admin panel you need to have following credentials :
12 |
13 | username : admin
14 | password : admin!!123
15 |
16 | Of course this credentials only work for admin registrations
17 |
18 |
19 |
--------------------------------------------------------------------------------
/SQL /library.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.4.14
3 | -- http://www.phpmyadmin.net
4 | --
5 | -- Host: 127.0.0.1
6 | -- Generation Time: Jul 17, 2017 at 06:15 PM
7 | -- Server version: 5.6.26
8 | -- PHP Version: 5.5.28
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET time_zone = "+00:00";
12 |
13 |
14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17 | /*!40101 SET NAMES utf8mb4 */;
18 |
19 | --
20 | -- Database: `library`
21 | --
22 |
23 | -- --------------------------------------------------------
24 |
25 | --
26 | -- Table structure for table `admin`
27 | --
28 |
29 | CREATE TABLE IF NOT EXISTS `admin` (
30 | `id` int(11) NOT NULL,
31 | `FullName` varchar(100) DEFAULT NULL,
32 | `AdminEmail` varchar(120) DEFAULT NULL,
33 | `UserName` varchar(100) NOT NULL,
34 | `Password` varchar(100) NOT NULL,
35 | `updationDate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP
36 | ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
37 |
38 | --
39 | -- Dumping data for table `admin`
40 | --
41 |
42 | INSERT INTO `admin` (`id`, `FullName`, `AdminEmail`, `UserName`, `Password`, `updationDate`) VALUES
43 | (1, 'Anuj Kumar', 'phpgurukulofficial@gmail.com', 'admin', 'f925916e2754e5e03f75dd58a5733251', '2017-07-16 18:11:42');
44 |
45 | -- --------------------------------------------------------
46 |
47 | --
48 | -- Table structure for table `tblauthors`
49 | --
50 |
51 | CREATE TABLE IF NOT EXISTS `tblauthors` (
52 | `id` int(11) NOT NULL,
53 | `AuthorName` varchar(159) DEFAULT NULL,
54 | `creationDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
55 | `UpdationDate` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
56 | ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
57 |
58 | --
59 | -- Dumping data for table `tblauthors`
60 | --
61 |
62 | INSERT INTO `tblauthors` (`id`, `AuthorName`, `creationDate`, `UpdationDate`) VALUES
63 | (1, 'Anuj kumar', '2017-07-08 12:49:09', '2017-07-08 15:16:59'),
64 | (2, 'Chetan Bhagatt', '2017-07-08 14:30:23', '2017-07-08 15:15:09'),
65 | (3, 'Anita Desai', '2017-07-08 14:35:08', NULL),
66 | (4, 'HC Verma', '2017-07-08 14:35:21', NULL),
67 | (5, 'R.D. Sharma ', '2017-07-08 14:35:36', NULL),
68 | (9, 'fwdfrwer', '2017-07-08 15:22:03', NULL);
69 |
70 | -- --------------------------------------------------------
71 |
72 | --
73 | -- Table structure for table `tblbooks`
74 | --
75 |
76 | CREATE TABLE IF NOT EXISTS `tblbooks` (
77 | `id` int(11) NOT NULL,
78 | `BookName` varchar(255) DEFAULT NULL,
79 | `CatId` int(11) DEFAULT NULL,
80 | `AuthorId` int(11) DEFAULT NULL,
81 | `ISBNNumber` int(11) DEFAULT NULL,
82 | `BookPrice` int(11) DEFAULT NULL,
83 | `RegDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
84 | `UpdationDate` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
85 | ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
86 |
87 | --
88 | -- Dumping data for table `tblbooks`
89 | --
90 |
91 | INSERT INTO `tblbooks` (`id`, `BookName`, `CatId`, `AuthorId`, `ISBNNumber`, `BookPrice`, `RegDate`, `UpdationDate`) VALUES
92 | (1, 'PHP And MySql programming', 5, 1, 222333, 20, '2017-07-08 20:04:55', '2017-07-15 05:54:41'),
93 | (3, 'physics', 6, 4, 1111, 15, '2017-07-08 20:17:31', '2017-07-15 06:13:17');
94 |
95 | -- --------------------------------------------------------
96 |
97 | --
98 | -- Table structure for table `tblcategory`
99 | --
100 |
101 | CREATE TABLE IF NOT EXISTS `tblcategory` (
102 | `id` int(11) NOT NULL,
103 | `CategoryName` varchar(150) DEFAULT NULL,
104 | `Status` int(1) DEFAULT NULL,
105 | `CreationDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
106 | `UpdationDate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP
107 | ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
108 |
109 | --
110 | -- Dumping data for table `tblcategory`
111 | --
112 |
113 | INSERT INTO `tblcategory` (`id`, `CategoryName`, `Status`, `CreationDate`, `UpdationDate`) VALUES
114 | (4, 'Romantic', 1, '2017-07-04 18:35:25', '2017-07-06 16:00:42'),
115 | (5, 'Technology', 1, '2017-07-04 18:35:39', '2017-07-08 17:13:03'),
116 | (6, 'Science', 1, '2017-07-04 18:35:55', '0000-00-00 00:00:00'),
117 | (7, 'Management', 0, '2017-07-04 18:36:16', '0000-00-00 00:00:00');
118 |
119 | -- --------------------------------------------------------
120 |
121 | --
122 | -- Table structure for table `tblissuedbookdetails`
123 | --
124 |
125 | CREATE TABLE IF NOT EXISTS `tblissuedbookdetails` (
126 | `id` int(11) NOT NULL,
127 | `BookId` int(11) DEFAULT NULL,
128 | `StudentID` varchar(150) DEFAULT NULL,
129 | `IssuesDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
130 | `ReturnDate` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
131 | `RetrunStatus` int(1) NOT NULL,
132 | `fine` int(11) DEFAULT NULL
133 | ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
134 |
135 | --
136 | -- Dumping data for table `tblissuedbookdetails`
137 | --
138 |
139 | INSERT INTO `tblissuedbookdetails` (`id`, `BookId`, `StudentID`, `IssuesDate`, `ReturnDate`, `RetrunStatus`, `fine`) VALUES
140 | (1, 1, 'SID002', '2017-07-15 06:09:47', '2017-07-15 11:15:20', 1, 0),
141 | (2, 1, 'SID002', '2017-07-15 06:12:27', '2017-07-15 11:15:23', 1, 5),
142 | (3, 3, 'SID002', '2017-07-15 06:13:40', NULL, 0, NULL),
143 | (4, 3, 'SID002', '2017-07-15 06:23:23', '2017-07-15 11:22:29', 1, 2),
144 | (5, 1, 'SID009', '2017-07-15 10:59:26', NULL, 0, NULL),
145 | (6, 3, 'SID011', '2017-07-15 18:02:55', NULL, 0, NULL);
146 |
147 | -- --------------------------------------------------------
148 |
149 | --
150 | -- Table structure for table `tblstudents`
151 | --
152 |
153 | CREATE TABLE IF NOT EXISTS `tblstudents` (
154 | `id` int(11) NOT NULL,
155 | `StudentId` varchar(100) DEFAULT NULL,
156 | `FullName` varchar(120) DEFAULT NULL,
157 | `EmailId` varchar(120) DEFAULT NULL,
158 | `MobileNumber` char(11) DEFAULT NULL,
159 | `Password` varchar(120) DEFAULT NULL,
160 | `Status` int(1) DEFAULT NULL,
161 | `RegDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
162 | `UpdationDate` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
163 | ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
164 |
165 | --
166 | -- Dumping data for table `tblstudents`
167 | --
168 |
169 | INSERT INTO `tblstudents` (`id`, `StudentId`, `FullName`, `EmailId`, `MobileNumber`, `Password`, `Status`, `RegDate`, `UpdationDate`) VALUES
170 | (1, 'SID002', 'Anuj kumar', 'anuj.lpu1@gmail.com', '9865472555', 'f925916e2754e5e03f75dd58a5733251', 1, '2017-07-11 15:37:05', '2017-07-15 18:26:21'),
171 | (4, 'SID005', 'sdfsd', 'csfsd@dfsfks.com', '8569710025', '92228410fc8b872914e023160cf4ae8f', 0, '2017-07-11 15:41:27', '2017-07-15 17:43:03'),
172 | (8, 'SID009', 'test', 'test@gmail.com', '2359874527', 'f925916e2754e5e03f75dd58a5733251', 1, '2017-07-11 15:58:28', '2017-07-15 13:42:44'),
173 | (9, 'SID010', 'Amit', 'amit@gmail.com', '8585856224', 'f925916e2754e5e03f75dd58a5733251', 1, '2017-07-15 13:40:30', NULL),
174 | (10, 'SID011', 'Sarita Pandey', 'sarita@gmail.com', '4672423754', 'f925916e2754e5e03f75dd58a5733251', 1, '2017-07-15 18:00:59', NULL);
175 |
176 | --
177 | -- Indexes for dumped tables
178 | --
179 |
180 | --
181 | -- Indexes for table `admin`
182 | --
183 | ALTER TABLE `admin`
184 | ADD PRIMARY KEY (`id`);
185 |
186 | --
187 | -- Indexes for table `tblauthors`
188 | --
189 | ALTER TABLE `tblauthors`
190 | ADD PRIMARY KEY (`id`);
191 |
192 | --
193 | -- Indexes for table `tblbooks`
194 | --
195 | ALTER TABLE `tblbooks`
196 | ADD PRIMARY KEY (`id`);
197 |
198 | --
199 | -- Indexes for table `tblcategory`
200 | --
201 | ALTER TABLE `tblcategory`
202 | ADD PRIMARY KEY (`id`);
203 |
204 | --
205 | -- Indexes for table `tblissuedbookdetails`
206 | --
207 | ALTER TABLE `tblissuedbookdetails`
208 | ADD PRIMARY KEY (`id`);
209 |
210 | --
211 | -- Indexes for table `tblstudents`
212 | --
213 | ALTER TABLE `tblstudents`
214 | ADD PRIMARY KEY (`id`),
215 | ADD UNIQUE KEY `StudentId` (`StudentId`);
216 |
217 | --
218 | -- AUTO_INCREMENT for dumped tables
219 | --
220 |
221 | --
222 | -- AUTO_INCREMENT for table `admin`
223 | --
224 | ALTER TABLE `admin`
225 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
226 | --
227 | -- AUTO_INCREMENT for table `tblauthors`
228 | --
229 | ALTER TABLE `tblauthors`
230 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=10;
231 | --
232 | -- AUTO_INCREMENT for table `tblbooks`
233 | --
234 | ALTER TABLE `tblbooks`
235 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
236 | --
237 | -- AUTO_INCREMENT for table `tblcategory`
238 | --
239 | ALTER TABLE `tblcategory`
240 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
241 | --
242 | -- AUTO_INCREMENT for table `tblissuedbookdetails`
243 | --
244 | ALTER TABLE `tblissuedbookdetails`
245 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
246 | --
247 | -- AUTO_INCREMENT for table `tblstudents`
248 | --
249 | ALTER TABLE `tblstudents`
250 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=11;
251 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
252 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
253 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
254 |
--------------------------------------------------------------------------------
/admin/add-author.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']="Author Listed successfully";
22 | header('location:manage-authors.php');
23 | }
24 | else
25 | {
26 | $_SESSION['error']="Something went wrong. Please try again";
27 | header('location:manage-authors.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 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 | Author Info
69 |
70 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
--------------------------------------------------------------------------------
/admin/add-book.php:
--------------------------------------------------------------------------------
1 | prepare($sql);
20 | $query->bindParam(':bookname',$bookname,PDO::PARAM_STR);
21 | $query->bindParam(':category',$category,PDO::PARAM_STR);
22 | $query->bindParam(':author',$author,PDO::PARAM_STR);
23 | $query->bindParam(':isbn',$isbn,PDO::PARAM_STR);
24 | $query->bindParam(':price',$price,PDO::PARAM_STR);
25 | $query->execute();
26 | $lastInsertId = $dbh->lastInsertId();
27 | if($lastInsertId)
28 | {
29 | $_SESSION['msg']="Book Listed successfully";
30 | header('location:manage-books.php');
31 | }
32 | else
33 | {
34 | $_SESSION['error']="Something went wrong. Please try again";
35 | header('location:manage-books.php');
36 | }
37 |
38 | }
39 | ?>
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | Online Library Management System | Add Book
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 | Book Info
77 |
78 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
--------------------------------------------------------------------------------
/admin/add-category.php:
--------------------------------------------------------------------------------
1 | prepare($sql);
17 | $query->bindParam(':category',$category,PDO::PARAM_STR);
18 | $query->bindParam(':status',$status,PDO::PARAM_STR);
19 | $query->execute();
20 | $lastInsertId = $dbh->lastInsertId();
21 | if($lastInsertId)
22 | {
23 | $_SESSION['msg']="Brand Listed successfully";
24 | header('location:manage-categories.php');
25 | }
26 | else
27 | {
28 | $_SESSION['error']="Something went wrong. Please try again";
29 | header('location:manage-categories.php');
30 | }
31 |
32 | }
33 | ?>
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | Online Library Management System | Add Categories
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 | Category Info
71 |
72 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/admin/assets/fonts/fontawesome-webfont862f.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/admin/assets/fonts/fontawesome-webfont862f.eot
--------------------------------------------------------------------------------
/admin/assets/fonts/fontawesome-webfont862f.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/admin/assets/fonts/fontawesome-webfont862f.ttf
--------------------------------------------------------------------------------
/admin/assets/fonts/fontawesome-webfont862f.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/admin/assets/fonts/fontawesome-webfont862f.woff
--------------------------------------------------------------------------------
/admin/assets/fonts/fontawesome-webfontd41d.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/admin/assets/fonts/fontawesome-webfontd41d.eot
--------------------------------------------------------------------------------
/admin/assets/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/admin/assets/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/admin/assets/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/admin/assets/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/admin/assets/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/admin/assets/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/admin/assets/fonts/glyphicons-halflings-regulard41d.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/admin/assets/fonts/glyphicons-halflings-regulard41d.eot
--------------------------------------------------------------------------------
/admin/assets/img/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/admin/assets/img/1.jpg
--------------------------------------------------------------------------------
/admin/assets/img/2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/admin/assets/img/2.jpg
--------------------------------------------------------------------------------
/admin/assets/img/3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/admin/assets/img/3.jpg
--------------------------------------------------------------------------------
/admin/assets/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/admin/assets/img/logo.png
--------------------------------------------------------------------------------
/admin/assets/img/user.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/admin/assets/img/user.gif
--------------------------------------------------------------------------------
/admin/assets/img/user2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/admin/assets/img/user2.png
--------------------------------------------------------------------------------
/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/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.js:
--------------------------------------------------------------------------------
1 | /* Set the defaults for DataTables initialisation */
2 | $.extend(true, $.fn.dataTable.defaults, {
3 | "sDom": "<'row'<'col-sm-6'l><'col-sm-6'f>r>" + "t" + "<'row'<'col-sm-6'i><'col-sm-6'p>>",
4 | "oLanguage": {
5 | "sLengthMenu": "_MENU_ records per page"
6 | }
7 | });
8 |
9 |
10 | /* Default class modification */
11 | $.extend($.fn.dataTableExt.oStdClasses, {
12 | "sWrapper": "dataTables_wrapper form-inline",
13 | "sFilterInput": "form-control input-sm",
14 | "sLengthSelect": "form-control input-sm"
15 | });
16 |
17 | // In 1.10 we use the pagination renderers to draw the Bootstrap paging,
18 | // rather than custom plug-in
19 | if ($.fn.dataTable.Api) {
20 | $.fn.dataTable.defaults.renderer = 'bootstrap';
21 | $.fn.dataTable.ext.renderer.pageButton.bootstrap = function(settings, host, idx, buttons, page, pages) {
22 | var api = new $.fn.dataTable.Api(settings);
23 | var classes = settings.oClasses;
24 | var lang = settings.oLanguage.oPaginate;
25 | var btnDisplay, btnClass;
26 |
27 | var attach = function(container, buttons) {
28 | var i, ien, node, button;
29 | var clickHandler = function(e) {
30 | e.preventDefault();
31 | if (e.data.action !== 'ellipsis') {
32 | api.page(e.data.action).draw(false);
33 | }
34 | };
35 |
36 | for (i = 0, ien = buttons.length; i < ien; i++) {
37 | button = buttons[i];
38 |
39 | if ($.isArray(button)) {
40 | attach(container, button);
41 | } else {
42 | btnDisplay = '';
43 | btnClass = '';
44 |
45 | switch (button) {
46 | case 'ellipsis':
47 | btnDisplay = '…';
48 | btnClass = 'disabled';
49 | break;
50 |
51 | case 'first':
52 | btnDisplay = lang.sFirst;
53 | btnClass = button + (page > 0 ?
54 | '' : ' disabled');
55 | break;
56 |
57 | case 'previous':
58 | btnDisplay = lang.sPrevious;
59 | btnClass = button + (page > 0 ?
60 | '' : ' disabled');
61 | break;
62 |
63 | case 'next':
64 | btnDisplay = lang.sNext;
65 | btnClass = button + (page < pages - 1 ?
66 | '' : ' disabled');
67 | break;
68 |
69 | case 'last':
70 | btnDisplay = lang.sLast;
71 | btnClass = button + (page < pages - 1 ?
72 | '' : ' disabled');
73 | break;
74 |
75 | default:
76 | btnDisplay = button + 1;
77 | btnClass = page === button ?
78 | 'active' : '';
79 | break;
80 | }
81 |
82 | if (btnDisplay) {
83 | node = $('', {
84 | 'class': classes.sPageButton + ' ' + btnClass,
85 | 'aria-controls': settings.sTableId,
86 | 'tabindex': settings.iTabIndex,
87 | 'id': idx === 0 && typeof button === 'string' ? settings.sTableId + '_' + button : null
88 | })
89 | .append($('', {
90 | 'href': '#'
91 | })
92 | .html(btnDisplay)
93 | )
94 | .appendTo(container);
95 |
96 | settings.oApi._fnBindAction(
97 | node, {
98 | action: button
99 | }, clickHandler
100 | );
101 | }
102 | }
103 | }
104 | };
105 |
106 | attach(
107 | $(host).empty().html('').children('ul'),
108 | buttons
109 | );
110 | }
111 | } else {
112 | // Integration for 1.9-
113 | $.fn.dataTable.defaults.sPaginationType = 'bootstrap';
114 |
115 | /* API method to get paging information */
116 | $.fn.dataTableExt.oApi.fnPagingInfo = function(oSettings) {
117 | return {
118 | "iStart": oSettings._iDisplayStart,
119 | "iEnd": oSettings.fnDisplayEnd(),
120 | "iLength": oSettings._iDisplayLength,
121 | "iTotal": oSettings.fnRecordsTotal(),
122 | "iFilteredTotal": oSettings.fnRecordsDisplay(),
123 | "iPage": oSettings._iDisplayLength === -1 ? 0 : Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength),
124 | "iTotalPages": oSettings._iDisplayLength === -1 ? 0 : Math.ceil(oSettings.fnRecordsDisplay() / oSettings._iDisplayLength)
125 | };
126 | };
127 |
128 | /* Bootstrap style pagination control */
129 | $.extend($.fn.dataTableExt.oPagination, {
130 | "bootstrap": {
131 | "fnInit": function(oSettings, nPaging, fnDraw) {
132 | var oLang = oSettings.oLanguage.oPaginate;
133 | var fnClickHandler = function(e) {
134 | e.preventDefault();
135 | if (oSettings.oApi._fnPageChange(oSettings, e.data.action)) {
136 | fnDraw(oSettings);
137 | }
138 | };
139 |
140 | $(nPaging).append(
141 | ''
145 | );
146 | var els = $('a', nPaging);
147 | $(els[0]).bind('click.DT', {
148 | action: "previous"
149 | }, fnClickHandler);
150 | $(els[1]).bind('click.DT', {
151 | action: "next"
152 | }, fnClickHandler);
153 | },
154 |
155 | "fnUpdate": function(oSettings, fnDraw) {
156 | var iListLength = 5;
157 | var oPaging = oSettings.oInstance.fnPagingInfo();
158 | var an = oSettings.aanFeatures.p;
159 | var i, ien, j, sClass, iStart, iEnd, iHalf = Math.floor(iListLength / 2);
160 |
161 | if (oPaging.iTotalPages < iListLength) {
162 | iStart = 1;
163 | iEnd = oPaging.iTotalPages;
164 | } else if (oPaging.iPage <= iHalf) {
165 | iStart = 1;
166 | iEnd = iListLength;
167 | } else if (oPaging.iPage >= (oPaging.iTotalPages - iHalf)) {
168 | iStart = oPaging.iTotalPages - iListLength + 1;
169 | iEnd = oPaging.iTotalPages;
170 | } else {
171 | iStart = oPaging.iPage - iHalf + 1;
172 | iEnd = iStart + iListLength - 1;
173 | }
174 |
175 | for (i = 0, ien = an.length; i < ien; i++) {
176 | // Remove the middle elements
177 | $('li:gt(0)', an[i]).filter(':not(:last)').remove();
178 |
179 | // Add the new list items and their event handlers
180 | for (j = iStart; j <= iEnd; j++) {
181 | sClass = (j == oPaging.iPage + 1) ? 'class="active"' : '';
182 | $('' + j + '')
183 | .insertBefore($('li:last', an[i])[0])
184 | .bind('click', function(e) {
185 | e.preventDefault();
186 | oSettings._iDisplayStart = (parseInt($('a', this).text(), 10) - 1) * oPaging.iLength;
187 | fnDraw(oSettings);
188 | });
189 | }
190 |
191 | // Add / remove disabled classes from the static elements
192 | if (oPaging.iPage === 0) {
193 | $('li:first', an[i]).addClass('disabled');
194 | } else {
195 | $('li:first', an[i]).removeClass('disabled');
196 | }
197 |
198 | if (oPaging.iPage === oPaging.iTotalPages - 1 || oPaging.iTotalPages === 0) {
199 | $('li:last', an[i]).addClass('disabled');
200 | } else {
201 | $('li:last', an[i]).removeClass('disabled');
202 | }
203 | }
204 | }
205 | }
206 | });
207 | }
208 |
209 |
210 | /*
211 | * TableTools Bootstrap compatibility
212 | * Required TableTools 2.1+
213 | */
214 | if ($.fn.DataTable.TableTools) {
215 | // Set the classes that TableTools uses to something suitable for Bootstrap
216 | $.extend(true, $.fn.DataTable.TableTools.classes, {
217 | "container": "DTTT btn-group",
218 | "buttons": {
219 | "normal": "btn btn-default",
220 | "disabled": "disabled"
221 | },
222 | "collection": {
223 | "container": "DTTT_dropdown dropdown-menu",
224 | "buttons": {
225 | "normal": "",
226 | "disabled": "disabled"
227 | }
228 | },
229 | "print": {
230 | "info": "DTTT_print_info modal"
231 | },
232 | "select": {
233 | "row": "active"
234 | }
235 | });
236 |
237 | // Have the collection use a bootstrap compatible dropdown
238 | $.extend(true, $.fn.DataTable.TableTools.DEFAULTS.oTags, {
239 | "collection": {
240 | "container": "ul",
241 | "button": "li",
242 | "liner": "a"
243 | }
244 | });
245 | }
246 |
--------------------------------------------------------------------------------
/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 |
95 |
ERROR:
SUCCESS:
97 |
98 |
99 |
100 |
101 |
102 | Change Password
103 |
104 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
--------------------------------------------------------------------------------
/admin/dashboard.php:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
20 | Online Library Management System | Admin Dash Board
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 | prepare($sql);
53 | $query->execute();
54 | $results=$query->fetchAll(PDO::FETCH_OBJ);
55 | $listdbooks=$query->rowCount();
56 | ?>
57 |
58 |
59 |
60 | Books Listed
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 | prepare($sql1);
71 | $query1->execute();
72 | $results1=$query1->fetchAll(PDO::FETCH_OBJ);
73 | $issuedbooks=$query1->rowCount();
74 | ?>
75 |
76 |
77 | Times Book Issued
78 |
79 |
80 |
81 |
82 |
83 |
84 | prepare($sql2);
88 | $query2->bindParam(':status',$status,PDO::PARAM_STR);
89 | $query2->execute();
90 | $results2=$query2->fetchAll(PDO::FETCH_OBJ);
91 | $returnedbooks=$query2->rowCount();
92 | ?>
93 |
94 |
95 | Times Books Returned
96 |
97 |
98 |
99 |
100 |
101 | prepare($sql3);
104 | $query3->execute();
105 | $results3=$query3->fetchAll(PDO::FETCH_OBJ);
106 | $regstds=$query3->rowCount();
107 | ?>
108 |
109 | Registered Users
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 | prepare($sql4);
125 | $query4->execute();
126 | $results4=$query4->fetchAll(PDO::FETCH_OBJ);
127 | $listdathrs=$query4->rowCount();
128 | ?>
129 |
130 |
131 |
132 | Authors Listed
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 | prepare($sql5);
143 | $query5->execute();
144 | $results5=$query5->fetchAll(PDO::FETCH_OBJ);
145 | $listdcats=$query5->rowCount();
146 | ?>
147 |
148 |
149 | Listed Categories
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |

185 |
186 |
187 |
188 |

189 |
190 |
191 |
192 |

193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
--------------------------------------------------------------------------------
/admin/edit-author.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 Author
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 | Author Info
64 |
65 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
--------------------------------------------------------------------------------
/admin/edit-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(':bookid',$bookid,PDO::PARAM_STR);
27 | $query->execute();
28 | $_SESSION['msg']="Book info updated successfully";
29 | header('location:manage-books.php');
30 |
31 |
32 | }
33 | ?>
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | Online Library Management System | Edit Book
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 | Book Info
71 |
72 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
--------------------------------------------------------------------------------
/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 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 | Category Info
65 |
66 |
67 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
--------------------------------------------------------------------------------
/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 |
31 |
32 | ?>
33 |
--------------------------------------------------------------------------------
/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 |
38 |
39 | ?>
40 |
--------------------------------------------------------------------------------
/admin/includes/config.php:
--------------------------------------------------------------------------------
1 | "SET NAMES 'utf8'"));
11 | }
12 | catch (PDOException $e)
13 | {
14 | exit("Error: " . $e->getMessage());
15 | }
16 | ?>
--------------------------------------------------------------------------------
/admin/includes/footer.php:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/admin/includes/header.php:
--------------------------------------------------------------------------------
1 |
21 |
22 |
--------------------------------------------------------------------------------
/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 |
52 |
53 |
54 |
55 |
56 |
57 |
58 | LOGIN FORM
59 |
60 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/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 | header('location:manage-issued-books.php');
25 | }
26 | else
27 | {
28 | $_SESSION['error']="Something went wrong. Please try again";
29 | header('location:manage-issued-books.php');
30 | }
31 |
32 | }
33 | ?>
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | Online Library Management System | Issue a new Book
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
82 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | Issue a New Book
110 |
111 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
--------------------------------------------------------------------------------
/admin/logout.php:
--------------------------------------------------------------------------------
1 |
15 |
16 |
--------------------------------------------------------------------------------
/admin/manage-authors.php:
--------------------------------------------------------------------------------
1 | prepare($sql);
15 | $query -> bindParam(':id',$id, PDO::PARAM_STR);
16 | $query -> execute();
17 | $_SESSION['delmsg']="Author deleted";
18 | header('location:manage-authors.php');
19 |
20 | }
21 |
22 |
23 | ?>
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | Online Library Management System | Manage Authors
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
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 | Authors Listing
108 |
109 |
110 |
111 |
112 |
113 |
114 | # |
115 | Author |
116 |
117 | Creation Date |
118 | Updation Date |
119 | Action |
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 | AuthorName);?> |
135 | creationDate);?> |
136 | UpdationDate);?> |
137 |
138 |
139 |
140 |
141 | |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
--------------------------------------------------------------------------------
/admin/manage-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 Books
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
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 | Books Listing
108 |
109 |
110 |
111 |
112 |
113 |
114 | # |
115 | Book Name |
116 | Category |
117 | Author |
118 | ISBN |
119 | Price |
120 | Action |
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 | BookName);?> |
136 | CategoryName);?> |
137 | AuthorName);?> |
138 | ISBNNumber);?> |
139 | BookPrice);?> |
140 |
141 |
142 |
143 |
144 | |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
--------------------------------------------------------------------------------
/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 |
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 | Category |
116 | Status |
117 | Creation Date |
118 | Updation Date |
119 | Action |
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 | CategoryName);?> |
135 | Status==1) {?>
136 | Active
137 |
138 | Inactive
139 | |
140 | CreationDate);?> |
141 | UpdationDate);?> |
142 |
143 |
144 |
145 |
146 | |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
--------------------------------------------------------------------------------
/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 |
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 | Student Name |
97 | Book Name |
98 | ISBN |
99 | Issued Date |
100 | Return Date |
101 | Action |
102 |
103 |
104 |
105 | prepare($sql);
107 | $query->execute();
108 | $results=$query->fetchAll(PDO::FETCH_OBJ);
109 | $cnt=1;
110 | if($query->rowCount() > 0)
111 | {
112 | foreach($results as $result)
113 | { ?>
114 |
115 | |
116 | FullName);?> |
117 | BookName);?> |
118 | ISBNNumber);?> |
119 | IssuesDate);?> |
120 | ReturnDate=="")
121 | {
122 | echo htmlentities("Not Return Yet");
123 | } else {
124 |
125 |
126 | echo htmlentities($result->ReturnDate);
127 | }
128 | ?> |
129 |
130 |
131 |
132 |
133 | |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
--------------------------------------------------------------------------------
/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 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 | Reg Students
80 |
81 |
82 |
83 |
84 |
85 |
86 | # |
87 | Student ID |
88 | Student Name |
89 | Email id |
90 | Mobile Number |
91 | Reg Date |
92 | Status |
93 | Action |
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 | StudentId);?> |
109 | FullName);?> |
110 | EmailId);?> |
111 | MobileNumber);?> |
112 | RegDate);?> |
113 | Status==1)
114 | {
115 | echo htmlentities("Active");
116 | } else {
117 |
118 |
119 | echo htmlentities("Blocked");
120 | }
121 | ?> |
122 |
123 | Status==1)
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/update-issue-bookdeails.php:
--------------------------------------------------------------------------------
1 | prepare($sql);
18 | $query->bindParam(':rid',$rid,PDO::PARAM_STR);
19 | $query->bindParam(':fine',$fine,PDO::PARAM_STR);
20 | $query->bindParam(':rstatus',$rstatus,PDO::PARAM_STR);
21 | $query->execute();
22 |
23 | $_SESSION['msg']="Book Returned successfully";
24 | header('location:manage-issued-books.php');
25 |
26 |
27 |
28 | }
29 | ?>
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | Online Library Management System | Issued Book Details
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
78 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 | Issued Book Details
106 |
107 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
--------------------------------------------------------------------------------
/adminlogin.php:
--------------------------------------------------------------------------------
1 | alert('Incorrect verification code');" ;
13 | }
14 | else {
15 |
16 | $username=$_POST['username'];
17 | $password=md5($_POST['password']);
18 | $sql ="SELECT UserName,Password FROM admin WHERE UserName=:username and Password=:password";
19 | $query= $dbh -> prepare($sql);
20 | $query-> bindParam(':username', $username, PDO::PARAM_STR);
21 | $query-> bindParam(':password', $password, PDO::PARAM_STR);
22 | $query-> execute();
23 | $results=$query->fetchAll(PDO::FETCH_OBJ);
24 | if($query->rowCount() > 0)
25 | {
26 | $_SESSION['alogin']=$_POST['username'];
27 | echo "";
28 | } else{
29 | echo "";
30 | }
31 | }
32 | }
33 | ?>
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | Online Library Management System
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
63 |
64 |
65 |
66 |
67 |
68 |
69 | LOGIN FORM
70 |
71 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/assets/fonts/fontawesome-webfont862f.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/assets/fonts/fontawesome-webfont862f.eot
--------------------------------------------------------------------------------
/assets/fonts/fontawesome-webfont862f.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/assets/fonts/fontawesome-webfont862f.ttf
--------------------------------------------------------------------------------
/assets/fonts/fontawesome-webfont862f.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/assets/fonts/fontawesome-webfont862f.woff
--------------------------------------------------------------------------------
/assets/fonts/fontawesome-webfontd41d.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/assets/fonts/fontawesome-webfontd41d.eot
--------------------------------------------------------------------------------
/assets/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/assets/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/assets/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/assets/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/assets/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/assets/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/assets/fonts/glyphicons-halflings-regulard41d.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/assets/fonts/glyphicons-halflings-regulard41d.eot
--------------------------------------------------------------------------------
/assets/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/assets/img/logo.png
--------------------------------------------------------------------------------
/assets/img/user.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/assets/img/user.gif
--------------------------------------------------------------------------------
/assets/img/user2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aragon996/Library-Management-System---PHP-MySql/04c34f028178d03b3c9a1a47af8e6d52333dfee8/assets/img/user2.png
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 | }
--------------------------------------------------------------------------------
/assets/js/dataTables/dataTables.bootstrap.js:
--------------------------------------------------------------------------------
1 | /* Set the defaults for DataTables initialisation */
2 | $.extend(true, $.fn.dataTable.defaults, {
3 | "sDom": "<'row'<'col-sm-6'l><'col-sm-6'f>r>" + "t" + "<'row'<'col-sm-6'i><'col-sm-6'p>>",
4 | "oLanguage": {
5 | "sLengthMenu": "_MENU_ records per page"
6 | }
7 | });
8 |
9 |
10 | /* Default class modification */
11 | $.extend($.fn.dataTableExt.oStdClasses, {
12 | "sWrapper": "dataTables_wrapper form-inline",
13 | "sFilterInput": "form-control input-sm",
14 | "sLengthSelect": "form-control input-sm"
15 | });
16 |
17 | // In 1.10 we use the pagination renderers to draw the Bootstrap paging,
18 | // rather than custom plug-in
19 | if ($.fn.dataTable.Api) {
20 | $.fn.dataTable.defaults.renderer = 'bootstrap';
21 | $.fn.dataTable.ext.renderer.pageButton.bootstrap = function(settings, host, idx, buttons, page, pages) {
22 | var api = new $.fn.dataTable.Api(settings);
23 | var classes = settings.oClasses;
24 | var lang = settings.oLanguage.oPaginate;
25 | var btnDisplay, btnClass;
26 |
27 | var attach = function(container, buttons) {
28 | var i, ien, node, button;
29 | var clickHandler = function(e) {
30 | e.preventDefault();
31 | if (e.data.action !== 'ellipsis') {
32 | api.page(e.data.action).draw(false);
33 | }
34 | };
35 |
36 | for (i = 0, ien = buttons.length; i < ien; i++) {
37 | button = buttons[i];
38 |
39 | if ($.isArray(button)) {
40 | attach(container, button);
41 | } else {
42 | btnDisplay = '';
43 | btnClass = '';
44 |
45 | switch (button) {
46 | case 'ellipsis':
47 | btnDisplay = '…';
48 | btnClass = 'disabled';
49 | break;
50 |
51 | case 'first':
52 | btnDisplay = lang.sFirst;
53 | btnClass = button + (page > 0 ?
54 | '' : ' disabled');
55 | break;
56 |
57 | case 'previous':
58 | btnDisplay = lang.sPrevious;
59 | btnClass = button + (page > 0 ?
60 | '' : ' disabled');
61 | break;
62 |
63 | case 'next':
64 | btnDisplay = lang.sNext;
65 | btnClass = button + (page < pages - 1 ?
66 | '' : ' disabled');
67 | break;
68 |
69 | case 'last':
70 | btnDisplay = lang.sLast;
71 | btnClass = button + (page < pages - 1 ?
72 | '' : ' disabled');
73 | break;
74 |
75 | default:
76 | btnDisplay = button + 1;
77 | btnClass = page === button ?
78 | 'active' : '';
79 | break;
80 | }
81 |
82 | if (btnDisplay) {
83 | node = $('', {
84 | 'class': classes.sPageButton + ' ' + btnClass,
85 | 'aria-controls': settings.sTableId,
86 | 'tabindex': settings.iTabIndex,
87 | 'id': idx === 0 && typeof button === 'string' ? settings.sTableId + '_' + button : null
88 | })
89 | .append($('', {
90 | 'href': '#'
91 | })
92 | .html(btnDisplay)
93 | )
94 | .appendTo(container);
95 |
96 | settings.oApi._fnBindAction(
97 | node, {
98 | action: button
99 | }, clickHandler
100 | );
101 | }
102 | }
103 | }
104 | };
105 |
106 | attach(
107 | $(host).empty().html('').children('ul'),
108 | buttons
109 | );
110 | }
111 | } else {
112 | // Integration for 1.9-
113 | $.fn.dataTable.defaults.sPaginationType = 'bootstrap';
114 |
115 | /* API method to get paging information */
116 | $.fn.dataTableExt.oApi.fnPagingInfo = function(oSettings) {
117 | return {
118 | "iStart": oSettings._iDisplayStart,
119 | "iEnd": oSettings.fnDisplayEnd(),
120 | "iLength": oSettings._iDisplayLength,
121 | "iTotal": oSettings.fnRecordsTotal(),
122 | "iFilteredTotal": oSettings.fnRecordsDisplay(),
123 | "iPage": oSettings._iDisplayLength === -1 ? 0 : Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength),
124 | "iTotalPages": oSettings._iDisplayLength === -1 ? 0 : Math.ceil(oSettings.fnRecordsDisplay() / oSettings._iDisplayLength)
125 | };
126 | };
127 |
128 | /* Bootstrap style pagination control */
129 | $.extend($.fn.dataTableExt.oPagination, {
130 | "bootstrap": {
131 | "fnInit": function(oSettings, nPaging, fnDraw) {
132 | var oLang = oSettings.oLanguage.oPaginate;
133 | var fnClickHandler = function(e) {
134 | e.preventDefault();
135 | if (oSettings.oApi._fnPageChange(oSettings, e.data.action)) {
136 | fnDraw(oSettings);
137 | }
138 | };
139 |
140 | $(nPaging).append(
141 | ''
145 | );
146 | var els = $('a', nPaging);
147 | $(els[0]).bind('click.DT', {
148 | action: "previous"
149 | }, fnClickHandler);
150 | $(els[1]).bind('click.DT', {
151 | action: "next"
152 | }, fnClickHandler);
153 | },
154 |
155 | "fnUpdate": function(oSettings, fnDraw) {
156 | var iListLength = 5;
157 | var oPaging = oSettings.oInstance.fnPagingInfo();
158 | var an = oSettings.aanFeatures.p;
159 | var i, ien, j, sClass, iStart, iEnd, iHalf = Math.floor(iListLength / 2);
160 |
161 | if (oPaging.iTotalPages < iListLength) {
162 | iStart = 1;
163 | iEnd = oPaging.iTotalPages;
164 | } else if (oPaging.iPage <= iHalf) {
165 | iStart = 1;
166 | iEnd = iListLength;
167 | } else if (oPaging.iPage >= (oPaging.iTotalPages - iHalf)) {
168 | iStart = oPaging.iTotalPages - iListLength + 1;
169 | iEnd = oPaging.iTotalPages;
170 | } else {
171 | iStart = oPaging.iPage - iHalf + 1;
172 | iEnd = iStart + iListLength - 1;
173 | }
174 |
175 | for (i = 0, ien = an.length; i < ien; i++) {
176 | // Remove the middle elements
177 | $('li:gt(0)', an[i]).filter(':not(:last)').remove();
178 |
179 | // Add the new list items and their event handlers
180 | for (j = iStart; j <= iEnd; j++) {
181 | sClass = (j == oPaging.iPage + 1) ? 'class="active"' : '';
182 | $('' + j + '')
183 | .insertBefore($('li:last', an[i])[0])
184 | .bind('click', function(e) {
185 | e.preventDefault();
186 | oSettings._iDisplayStart = (parseInt($('a', this).text(), 10) - 1) * oPaging.iLength;
187 | fnDraw(oSettings);
188 | });
189 | }
190 |
191 | // Add / remove disabled classes from the static elements
192 | if (oPaging.iPage === 0) {
193 | $('li:first', an[i]).addClass('disabled');
194 | } else {
195 | $('li:first', an[i]).removeClass('disabled');
196 | }
197 |
198 | if (oPaging.iPage === oPaging.iTotalPages - 1 || oPaging.iTotalPages === 0) {
199 | $('li:last', an[i]).addClass('disabled');
200 | } else {
201 | $('li:last', an[i]).removeClass('disabled');
202 | }
203 | }
204 | }
205 | }
206 | });
207 | }
208 |
209 |
210 | /*
211 | * TableTools Bootstrap compatibility
212 | * Required TableTools 2.1+
213 | */
214 | if ($.fn.DataTable.TableTools) {
215 | // Set the classes that TableTools uses to something suitable for Bootstrap
216 | $.extend(true, $.fn.DataTable.TableTools.classes, {
217 | "container": "DTTT btn-group",
218 | "buttons": {
219 | "normal": "btn btn-default",
220 | "disabled": "disabled"
221 | },
222 | "collection": {
223 | "container": "DTTT_dropdown dropdown-menu",
224 | "buttons": {
225 | "normal": "",
226 | "disabled": "disabled"
227 | }
228 | },
229 | "print": {
230 | "info": "DTTT_print_info modal"
231 | },
232 | "select": {
233 | "row": "active"
234 | }
235 | });
236 |
237 | // Have the collection use a bootstrap compatible dropdown
238 | $.extend(true, $.fn.DataTable.TableTools.DEFAULTS.oTags, {
239 | "collection": {
240 | "container": "ul",
241 | "button": "li",
242 | "liner": "a"
243 | }
244 | });
245 | }
246 |
--------------------------------------------------------------------------------
/captcha.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/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 |
95 |
ERROR:
SUCCESS:
97 |
98 |
99 |
100 |
101 |
102 | Change Password
103 |
104 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/config.php:
--------------------------------------------------------------------------------
1 | "SET NAMES 'utf8'"));
11 | }
12 | catch (PDOException $e)
13 | {
14 | exit("Error: " . $e->getMessage());
15 | }
16 | ?>
--------------------------------------------------------------------------------
/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 |
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 |
101 |
102 |
--------------------------------------------------------------------------------
/includes/config.php:
--------------------------------------------------------------------------------
1 | "SET NAMES 'utf8'"));
11 | }
12 | catch (PDOException $e)
13 | {
14 | exit("Error: " . $e->getMessage());
15 | }
16 | ?>
--------------------------------------------------------------------------------
/includes/footer.php:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/includes/header.php:
--------------------------------------------------------------------------------
1 |
24 |
25 |
28 |
54 |
55 |
74 |
75 |
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
1 | alert('Incorrect verification code');" ;
13 | }
14 | else {
15 | $email=$_POST['emailid'];
16 | $password=md5($_POST['password']);
17 | $sql ="SELECT EmailId,Password,StudentId,Status FROM tblstudents WHERE EmailId=:email and Password=:password";
18 | $query= $dbh -> prepare($sql);
19 | $query-> bindParam(':email', $email, PDO::PARAM_STR);
20 | $query-> bindParam(':password', $password, PDO::PARAM_STR);
21 | $query-> execute();
22 | $results=$query->fetchAll(PDO::FETCH_OBJ);
23 |
24 | if($query->rowCount() > 0)
25 | {
26 | foreach ($results as $result) {
27 | $_SESSION['stdid']=$result->StudentId;
28 | if($result->Status==1)
29 | {
30 | $_SESSION['login']=$_POST['emailid'];
31 | echo "";
32 | } else {
33 | echo "";
34 |
35 | }
36 | }
37 |
38 | }
39 |
40 | else{
41 | echo "";
42 | }
43 | }
44 | }
45 | ?>
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | Online Library Management System |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
75 |
76 |
77 |
78 |
79 |
80 |
81 | LOGIN FORM
82 |
83 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
--------------------------------------------------------------------------------
/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 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 | Issued Books
62 |
63 |
64 |
65 |
66 |
67 |
68 | # |
69 | Book Name |
70 | ISBN |
71 | Issued Date |
72 | Return Date |
73 | Fine in(USD) |
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 | BookName);?> |
92 | ISBNNumber);?> |
93 | IssuesDate);?> |
94 | ReturnDate=="")
95 | {?>
96 |
97 |
98 |
99 | ReturnDate);
101 | }
102 | ?> |
103 | fine);?> |
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 |
--------------------------------------------------------------------------------
/logout.php:
--------------------------------------------------------------------------------
1 |
15 |
16 |
--------------------------------------------------------------------------------
/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 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 | My Profile
68 |
69 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
--------------------------------------------------------------------------------
/signup.php:
--------------------------------------------------------------------------------
1 | alert('Incorrect verification code');" ;
10 | }
11 | else {
12 | //Code for student ID
13 | $count_my_page = ("studentid.txt");
14 | $hits = file($count_my_page);
15 | $hits[0] ++;
16 | $fp = fopen($count_my_page , "w");
17 | fputs($fp , "$hits[0]");
18 | fclose($fp);
19 | $StudentId= $hits[0];
20 | $fname=$_POST['fullanme'];
21 | $mobileno=$_POST['mobileno'];
22 | $email=$_POST['email'];
23 | $password=md5($_POST['password']);
24 | $status=1;
25 | $sql="INSERT INTO tblstudents(StudentId,FullName,MobileNumber,EmailId,Password,Status) VALUES(:StudentId,:fname,:mobileno,:email,:password,:status)";
26 | $query = $dbh->prepare($sql);
27 | $query->bindParam(':StudentId',$StudentId,PDO::PARAM_STR);
28 | $query->bindParam(':fname',$fname,PDO::PARAM_STR);
29 | $query->bindParam(':mobileno',$mobileno,PDO::PARAM_STR);
30 | $query->bindParam(':email',$email,PDO::PARAM_STR);
31 | $query->bindParam(':password',$password,PDO::PARAM_STR);
32 | $query->bindParam(':status',$status,PDO::PARAM_STR);
33 | $query->execute();
34 | $lastInsertId = $dbh->lastInsertId();
35 | if($lastInsertId)
36 | {
37 | echo '';
38 | }
39 | else
40 | {
41 | echo "";
42 | }
43 | }
44 | }
45 | ?>
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
57 | Online Library Management System | Student Signup
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
78 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 | SINGUP FORM
114 |
115 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
--------------------------------------------------------------------------------
/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 |
78 |
79 |
80 |
81 |
82 |
83 |
84 | LOGIN FORM
85 |
86 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
--------------------------------------------------------------------------------