Major Project Report: Submitted To: Submitted by
Major Project Report: Submitted To: Submitted by
Major Project Report: Submitted To: Submitted by
On
Page 1
Library Management System
CERTIFICATE
Certified that this is a bonafide record of the
project work titled
Rajesh kumar
Page 2
Library Management System
ACKNOWLEDGEMENT
extend our sincere and heartfelt thanks to our esteemed guide, Mrs.
Rajneesh Kumar, for providing us with the right guidance and advice at
the crucial junctures and for showing me the right way. We extend our
other faculty members also, at this occasion. Last but not the least, we
would like to thank our teachers and family for the support and
TABLE OF CONTENTS
ABSTRACT 5
Page 3
Library Management System
1. INTRODUCTION 6
1.1 PROJECT AIMS AND OBJECTIVES 6
1.2 BACKGROUND OF PROJECT 7
1.3 OPERATION ENVIRONMENT 8
2. SYSTEM ANALYSIS 9
2.1 SOFTWARE REQUIREMENT SPECIFICATION 9
2.2 EXISTING VS PROPOSED 15
2.3 SOFTWARE TOOL USED 16
3. SYSTEM DESIGN 20
3.1 TABLE DESIGN 20
3.2 DATA FLOW DIAGRAM’S 24
4. SYSTEM IMPLEMENTATION 30
4.1 MODULE DESCRIPTION 30
4.2 SCREEN SHOTS 80
5. SYSTEM TESTING 85
5.1 UNIT TESTING 85
5.2 INTEGRATION TESTING 87
6. CONCLUSION & FUTURE SCOPE 88
7. REFERENCES 89
ABSTRACT
Page 4
Library Management System
Page 5
Library Management System
CHAPTER 1
INTRODUCTION
Page 6
Library Management System
1.2BACKGROUND OF PROJECT
Library Management System is an application which refers to library
systems which are generally small or medium in size. It is used by
librarian to manage the library using a computerized system where
he/she can record various transactions like issue of books, return of
books, addition of new books, addition of new students etc.
Books and student maintenance modules are also included in this system
which would keep track of the students using the library and also a
detailed description about the books a library contains. With this
computerized system there will be no loss of book record or member
record which generally happens when a non computerized system is
used.
All these modules are able to help librarian to manage the library with
more convenience and in a more efficient way as compared to library
systems which are not computerized.
Page 7
Library Management System
Page 8
Library Management System
CHAPTER 2
SYSTEM ANALYSIS
PRODUCT DESCRIPTION:
Library Management System is a computerized system
which helps user(librarian) to manage the library daily
activity in electronic format. It reduces the risk of paper
work such as file lost, file damaged and time consuming.
It can help user to manage the transaction or record more effectively
and timesaving.
Page 9
Library Management System
PROBLEM STATEMENT:
The problem occurred before having computerized system
includes:
• File lost
When computerized system is not implemented file is always
lost because of human environment.Some times due to some
human error there may be a loss of records.
Page 10
Library Management System
RELIABILITY REQUIREMENT
The system should accurately performs member
registration ,member validation , report generation, book
transaction and search
USABILITY REQUIREMENT
The system is designed for a user friendly environment
so that student and staff of library can perform the
various tasks easily and in an effective way.
ORGANIZATIONAL
REQUIREMENTIMPLEMENTATIO
N REQUIREMNTS
In implementing whole system it uses html in front end
with php as server side scripting language which will be
used for database connectivity and the backend ie the
database part is developed using mysql.
DELIVERY REQUIREMENTS
Functional requirements
-user id is provided when they register
-The system must only allow user with valid id and
password to enter the system -The system performs
authorization process which decides what user level can
acess to.
-The user must be able to logout after they finished using
system.
Functional requirements
-System must be able to verify information
-System must be able to delete information if information is
wrong
DESCRIPTION OF FEATURE
This feature is found in book maintenance part . we can
search book based on book id , book name , publication or
by author name.
Functional requirements
- System must be able to search the database based
on select search type
- System must be able to filter book based on
keyword enterd
- System must be able to show the filtered book in
table view
DESCRIPTION OF FEATURE
Division Of Computer Science And Engineering Page 16
Library Management System
This feature allows to issue and return books and also view
reports of book issued.
Functional requirements
-System must be able to enter issue information in database.
-System must be able to update number of books.
- System must be able to search if book is available or not
before issuing books -System should be able to enter
issue and return date information
DESCRIPTION OF FEATURE
This feature allows teacher and student to add information
about various workshops being conducted in college and
colleges nearby.
Functional requirements
-System should be able to add detailed information about
events .
-System should be able to display information on notice
board available in the homepage of site
#include "general_functions.h"
#include "core_functions.h"
int main(){
login = fopen("password.dat","rb");
if(login == NULL){
gotoxy(10,9);
printf("Database Do not exits. Be an adminstrator. Sign Up");
adminsignup();
}else{
adminsignin();
}
mainmenu();
return 0;
}
void mainmenu()
{
while(1){
system("cls");
gotoxy(20,3);
printf("\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2
MAIN MENU
\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2");
gotoxy(20,5);
printf("\xDB\xDB\xDB\xDB\xB2 1. Add Books ");
gotoxy(20,7);
printf("\xDB\xDB\xDB\xDB\xB2 2. Delete Book");
gotoxy(20,9);
printf("\xDB\xDB\xDB\xDB\xB2 3. Search Book");
gotoxy(20,11);
printf("\xDB\xDB\xDB\xDB\xB2 4. View Book List");
gotoxy(20,13);
printf("\xDB\xDB\xDB\xDB\xB2 5. Edit Book Record ");
gotoxy(20,15);
printf("\xDB\xDB\xDB\xDB\xB2 6. Change Password");
gotoxy(20,17);
printf("\xDB\xDB\xDB\xDB\xB2 7. Close Application");
gotoxy(20,19);
printf("\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\
xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\
xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2\xB2");
gotoxy(20,21);
printf("Enter your choice:");
switch(getch()){
case '1':
addbooks();
break;
case '2':
deletebooks();
break;
case '3':
searchbooks();
break;
case '4':
viewbooks();
break;
case '5':
editbooks();
break;
case '6':
change_password();
gotoxy(10,13);
printf("press any key to continue....");
getch();
break;
case '7':
creditNclose();
default:
gotoxy(10,23);
printf("\aWrong Entry!!Please re-entered correct option");
getch(); //holds the screen until a key is pressed
}
}
}
void addbooks(void){ //funtion that add books
system("cls");
FILE *fp;
int i, choice;
add_window();
gotoxy(20,22);
printf("Enter your choice:");
scanf("%d", &choice);
if(choice==7)
mainmenu() ;
system("cls");
fp = fopen("Record.dat","ab+");
if(getdata(choice) == 1){
book.cat=catagories[choice-1];
fseek(fp,0,SEEK_END);
fwrite(&book,sizeof(book),1,fp);
fclose(fp);
gotoxy(21,14);
printf("The record is sucessfully saved");
gotoxy(21,15);
printf("Save any more?(Y / N):");
if(getch()=='n')
mainmenu();
else{
system("cls");
addbooks();
}
}
fclose(fp);
}
void deletebooks(){ //function that delete items from file Record.dat
FILE *ft,*fp;
system("cls");
int d,findBook = 0;
char another='y';
while(another=='y'){ //infinite loop
system("cls");
gotoxy(10,5);
printf("Enter the Book ID to delete:");
scanf("%d",&d);
fp = fopen("Record.dat","rb+");
while(fread(&book,sizeof(book),1,fp)==1){
if(book.id==d){
gotoxy(10,7);
printf("The book record is available");
gotoxy(10,8);
printf("Book name is %s",book.name);
gotoxy(10,9);
printf("Rack No. is %d",book.rackno);
findBook = 1;
gotoxy(10,10);
printf("Do you want to delete it?(Y/N):");
if(getch()=='y'){
ft=fopen("test.dat","wb"); //temporary file for delete
rewind(fp);
while(fread(&book,sizeof(book),1,fp)==1){
if(book.id!=d){
fwrite(&book,sizeof(book),1,ft); //write all in tempory
file except that
} //we want to delete
}
fclose(fp);
fclose(ft);
remove("Record.dat");
rename("test.dat","Record.dat"); //copy all item from
temporary file to fp except that
//we want to delete
gotoxy(10,11);
printf("The record is sucessfully deleted");
}
}
}
if(findBook == 0){
gotoxy(10,10);
printf("No record is found");
getch();
}
gotoxy(10,12);
printf("Delete another record?(Y/N)");
fflush(stdin);
another=getch();
}
}
void searchbooks()
{
system("cls");
printf("*****************************Search
Books*********************************");
gotoxy(20,10);
printf("\xDB\xDB\xDB\xB2 1. Search By ID");
gotoxy(20,14);
printf("\xDB\xDB\xDB\xB2 2. Search By Name");
gotoxy( 15,20);
printf("Enter Your Choice");
switch(getch())
{
case '1':
searchByID();
break;
break;
case '2':
searchByName();
break;
default :
getch();
searchbooks();
}
}
printf("%s",book.name);
gotoxy(36,j);
printf("%s",book.Author);
gotoxy(50,j);
printf("%d",book.quantity);
gotoxy(57,j);
printf("%.2f",book.Price);
gotoxy(69,j);
printf("%d",book.rackno);
printf("\n\n");
j++;
}
fclose(fp);
gotoxy(35,25);
returnfunc();
}
if(c==0)
{
gotoxy(15,9);
printf("No record found");
}
}
gotoxy(15,16);
printf("Modify another Record?(Y/N)");
fflush(stdin);
another=getch() ;
}
returnfunc();
}
FILE *ft,*fp;
system("cls");
int d,findBook = 0;
char another='y';
while(another=='y'){ //infinite loop
system("cls");
gotoxy(10,5);
printf("Enter the Book ID to delete:");
scanf("%d",&d);
fp = fopen("Record.dat","rb+");
while(fread(&book,sizeof(book),1,fp)==1){
if(book.id==d){
gotoxy(10,7);
printf("The book record is available");
gotoxy(10,8);
printf("Book name is %s",book.name);
gotoxy(10,9);
printf("Rack No. is %d",book.rackno);
findBook = 1;
gotoxy(10,10);
printf("Do you want to delete it?(Y/N):");
if(getch()=='y'){
ft=fopen("test.dat","wb"); //temporary file for delete
rewind(fp);
while(fread(&book,sizeof(book),1,fp)==1){
if(book.id!=d){
fwrite(&book,sizeof(book),1,ft); //write all in tempory
file except that
} //we want to delete
}
fclose(fp);
fclose(ft);
remove("Record.dat");
rename("test.dat","Record.dat"); //copy all item from
temporary file to fp except that
//we want to delete
gotoxy(10,11);
printf("The record is sucessfully deleted");
}
}
}
if(findBook == 0){
gotoxy(10,10);
printf("No record is found");
getch();
}
gotoxy(10,12);
printf("Delete another record?(Y/N)");
fflush(stdin);
another=getch();
}
}
void searchbooks()
{
system("cls");
printf("*****************************Search
Books*********************************");
gotoxy(20,10);
printf("\xDB\xDB\xDB\xB2 1. Search By ID");
gotoxy(20,14);
printf("\xDB\xDB\xDB\xB2 2. Search By Name");
gotoxy( 15,20);
printf("Enter Your Choice");
switch(getch())
{
case '1':
searchByID();
break;
break;
case '2':
searchByName();
break;
default :
getch();
searchbooks();
}
}
gotoxy(69,j);
printf("%d",book.rackno);
printf("\n\n");
j++;
}
fclose(fp);
gotoxy(35,25);
returnfunc();
}
gotoxy(15,12);
printf("Enter new price:");scanf("%f",&book.Price);
gotoxy(15,13);
printf("Enter new
rackno:");scanf("%d",&book.rackno);
gotoxy(15,14);
printf("The record is modified");
fseek(fp,ftell(fp)-sizeof(book),0);
fwrite(&book,sizeof(book),1,fp);
fclose(fp);
c=1;
}
if(c==0)
{
gotoxy(15,9);
printf("No record found");
}
}
gotoxy(15,16);
printf("Modify another Record?(Y/N)");
fflush(stdin);
another=getch() ;
}
returnfunc();
}
CHAPTER 3
SYSTEM DESIGN
TEACHER
DATABASE
ENTER
ENTER USERNAME CHECK
TEACHER
URL & VALIDITY
PASSWORD
IF VALID
TEACHER
WEB SERVER LOGIN
PAGE
STUDENT
DATABASE
ENTER
ENTER USERNAME CHECK
STUDENT
URL & VALIDITY
PASSWORD
IF VALID
STUDENT
WEB SERVER LOGIN
PAGE
LOGIN
DATABASE
IF NO.
STUDENT SELECT ENTER
IF OF UPDATE MESSAGE
BOOK BOOK SELECT
LOGIN ISSUE DETAIL BOOK
NO.
OF
“BOOK
ISSUE BOOK
PAGE AVBL ISSUED COPIES RESERVED”
LESS THAN
3
ENTER IF
SELECT
ADVANCE BOOK BOOK
HOME FOUND
SEARCH DETAIL DETAILS
BOOK
DATABASE
ADMIN STUDENT
DATABASE DATABASE
CHAPTER 4
SYSTEM IMPLEMENTATION
4.1.1Admin Module
ADMIN
4.1.2Student Module
STUDENT
REGISTRATION RESERVATTION
TEACHER
SUGGESTIONS
TEACHER LOGIN EVENT ADDITION
USERNAME AND
PASSWORDFORGOT
PASSWORD
AUTHENTICATION
BOOK MAINTENANCE
BOOK TRANSACTION
REPORT
REPORT
CHAPTER 5
SYSTEM TESTING
INTEGRATION TESTING
Chapter 6
CONCLUSION & FUTURE SCOPE
CHAPTER 7REFERENCES
http://www.w3schools.com/html/html_intro.asp
http://www.w3schools.com/css/css_background.asp
http://www.w3schools.com/js/js_datatypes.asp
http://www.w3schools.com/sql/sql_insert.asp
http://www.w3schools.com/sql/sql_update.asp
http://www.w3schools.com/php/php_forms.asp
Fundamentals of software engineering by Rajib mall, PHIlearning
Web development and application development by Ivan Byross BPB publications