Level 1 Internship Project - Suven Consultantsmonster.suvenconsultants.com/downloads/library...
Transcript of Level 1 Internship Project - Suven Consultantsmonster.suvenconsultants.com/downloads/library...
Library Management System – Level 1 Internship Project
Download from http://monster.suven.net Page 1
Library system
In this project we will build a small library management system in which users can request books and return
books only after the request was fulfilled by the admin.
Two parts of the project:
1) Admin
2) User
Admin
In index.php the admin will get a link as admin login on click of which login block will open if admin enters
proper login credentials and clicks on login button, the control will be transferred to log.php using
javascript-ajax which will check whether entered username and password is correct, if yes it will redirect to
adminpanel.php
Adminpanel.php
Library Management System – Level 1 Internship Project
Download from http://monster.suven.net Page 2
The admin can add books in the DB via this form; the adminpanel.php has an option to delete the books
from the database.
User
In index.php the user can view all the books available on our site. If the user wishes to view the description
of a particular book, then the user will have to click on the name of that book which will redirect to
desc.php. The other side of the page there are two tables which display the people who are currently holding
the book and their issue date and return date and which displays the people who are in the queue to hold the
books.
Now the system should be intelligent enough to view the return date of every book and when that date
comes the respective entries should be deleted and pending request should be fulfilled and thus should be
viewed in the issued status table.
Library Management System – Level 1 Internship Project
Download from http://monster.suven.net Page 3
We check all the entries in the book_issued table which have return_date column same or less than the
current date. The entries which pass it will have its pid extracted and then deleted, the extracted pid will be
used to fire another query which will search the requested_book table for that pid ,if it is a success we will
fetch the uid and create $start_date and $end_date and make an entry in the book_issued table using these
values. The entry form the requested_book table which passed and was used to create the values will then be
deleted as well.
Desc.php
The desc.php now has a log in button option, so you need to login in order to request books.
Library Management System – Level 1 Internship Project
Download from http://monster.suven.net Page 4
The request book button will only be viewed only if the session is created of the user.
On clicking the Request book button an ajax call should take place to req_book.php which will check if the
respective book is occupied or not. If it is not occupied then we should have an alert box saying that book is
issued to you like above and the fact should be inserted in the database.
Library Management System – Level 1 Internship Project
Download from http://monster.suven.net Page 5
If the book is occupied an alert should be provided like above and the request should be noted as pending.
If the book is occupied by a person it should see the message like above.
Library Management System – Level 1 Internship Project
Download from http://monster.suven.net Page 6
Database schema
Admin
Aid
Aname
Apass
Book
Bid
Bname
Image
Bdesc
Bcost
Book_issued
Iid
Uid
Bid
Start_date
End_date
Book_requested
Rid
Uid
Bid
Req-date
User
Uid
Uname
Upass
Library Management System – Level 1 Internship Project
Download from http://monster.suven.net Page 7
This is descriptive list of files. (A student may code more or less files for implementing this logic)
Index.php
Desc.php //to describe a book and check if the user has issued the book or not , if yes display that he occupies it
else show request button
Request_book // will check if the book is occupied or not , if it does an entry will be created in the requested_book
table else in the book_issued table .will be called through ajax from desc.php
signIn.php //will be a form to sign in
signIn_action.php //if true goto index
register.php
register_action.php // if true goto index
logout.php
admin.php //sign-in page
admin_action.php
adminpanel.php //can add product and view all product for deletion
addproduct.php
delete_book.php
logout.php