Project Library Management
Project Library Management
from
Guru Gobind Singh Indraprastha University, Delhi
Sushant Enrolment No. 00427402021, Aayushman Sharma Enrolment No. 04027402021, Divyansh Naruka
Enrolment No. 03627402021, Karan Kumar Yadav Enrolment No. 02827402021 from BCA-5 Semester of
the KCC INSTITUTE OF LEGAL AND HIGHER EDUCATION, GREATER NOIDA hereby
declare that the Major Project Report titled LIBRARY MANAGEMENT SYSTEM is an original work
and the same has not been submitted to any other Institute for the award of any other degree.
Certified that the Project Report submitted in partial fulfilment of Bachelor of Computer Application
(BCA) to be awarded by G.G.S.I.P. University, Delhi by Sushant Enrolment No. 00427402021,
Aayushman Sharma Enrolment No. 04027402021, Divyansh Naruka Enrolment No. 03627402021, Karan Kumar
Yadav Enrolment No. 02827402021 has been completed under our guidance and is Satisfactory.
ii
ACKNOWLEDGEMENT
I wish to express my sincere gratitude to our faculty guide Mr.Azhar Ahmed for providing me
assistance in doing my major project report work.
I sincerely thank Mr.Azhar Ahmed for their guidance and encouragement in carrying out this project
work. I also wish to express my gratitude to other staff members of KCC Institute of Legal and Higher
Education who rendered their help during the period of my project work.
I also thank all the faculty members of KCC Institute of Legal and Higher Education for providing me
the opportunity to embark on this project
ii
TABLE OF CONTENTS
ABSTRACT 5
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
ii
ABSTRACT
Overall this project of ours is being developed to help the students as well as
staff of library to maintain the library in the best way possible and also reduce
the human efforts.
ii
CHAPTER1
INTRODUCTION
This chapter gives an overview about the aim , objectives ,background and operation
environment of the system.
ii
1.2 BACKGROUND 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.
In addition, report module is also included in Library Management System. If user’s position is
admin, the user is able to generate different kinds of reports like lists of students registered, list
of books, issue and return reports.
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.
DATABASE MY SQL
ii
SYSTEM ANALYSIS
In this chapter, we will discuss and analyze about the developing process of Library
Management System including software requirement specification (SRS) and
comparison between existing and proposed system . The functional and non functional
requirements are included in SRS part to provide complete description and overview of
system requirement before the developing process is carried out. Besides that, existing
vs proposed provides a view of how the proposed system will be more efficient than the
existing one.
PRODUCT DESCRIPTION:
It can help user to manage the transaction or record more effectively and time-
saving.
PROBLEM STATEMENT:
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.
ii
File damaged When a computerized system is not there file is always lost due to some accdent like
spilling of water by some member on file accidentally.Besides some natural disaster like floods or fires
may also damage the files.
Space consuming
After the number of records become large the space for physical storage of file and
records also increases if no computerized system is implemented.
Cost consuming
As there is no computerized system the to add each record paper will be
needed which will increase the cost for the management of library.
.The system can add user, validate user and is also bug free.
Save cost
After computerized system is implemented less human force will be required to
maintain the library thus reducing the overall cost.
Save time
Librarian is able to search record by using few clicks of mouse and few search
keywords thus saving his valuable time.
Lecture Notes
ii
Teacher have a facility to upload lectures notes in a pdf file having size not more
than 10mb
RELIABILITY REQUIREMENT
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 REQUIREMENT
IMPLEMENTATION 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
The whole system is expected to be delivered in six months of time with a weekly
evaluation by the project guide.
ii
2.1.1.1 FUNCTIONAL REQUIREMENTS
1. NORMAL USER
Functional requirements
-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.
This feature can be performed by all users to register new user to create account.
Functional requirements
ii
1.3 REGISTER NEW BOOK
Description of feature
This feature allows to add new books to the library
Functional requirements
- System must be able to not allow two books having same book id.
SEARCH BOOK
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
ii
This feature allows to issue and return books and also view reports of book issued.
Functional requirements
- System must be able to search if book is available or not before issuing books
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 display information on notice board available in the homepage
of site
ii
Operating system- Windows 7 is used as the operating system as it is stable
and supports more features and is more user friendly
Database MYSQL-MYSQL is used as database as it easy to maintain and retrieve
records by simple queries which are in English language which are easy to
understand and easy to write.
Development tools and Programming language- HTML is used to write the whole
code and develop webpages with css, java script for styling work and php for
sever side scripting.
• Existing system does not have any facility of teachers login or student
login where as proposed system will have a facility of student login as well
as teacher’s login
• Existing system does not have a facility of online reservation of books
whereas proposed system has a facility of online reservation of books
• Existing system does not have any facility of online notice board where
description of workshops happening in our college as well as nearby colleges
is being provided.
• Existing system does not has any option of lectures notes uploaded by
teachers whereas proposed system will have this facility
ii
• Existing system does not have any facility to generate student reports as
well book issue reports whereas proposed system provides librarian with a
tool to generate reports
• Existing system does not has any facility for book request and
sugeestions where as in proposed system after logging in to their
accounts student can request books as well as provide suggestions to
improve library
• SOFTWARE TOOLS USED
The whole Project is divided in two parts the front end and the back end.
• Front end
The front end is designed using of html , Php ,css, Java script
• HTML- HTML or Hyper Text Markup Language is the main markup language
for creating web pages and other information that can be displayed in a web
browser.HTML is written in the form of HTML elements consisting of tags
enclosed in angle brackets (like <html>), within the web page content. HTML tags
most commonly come in pairs like <h1> and </h1>, although some tags represent
empty elements and so are unpaired, for example <img>. The first tag in a pair is
the start tag, and the second tag is the end tag (they are also called opening tags
and closing tags). In between these tags web designers can add text, further tags,
comments and other types of text-based content. The purpose of a web browser is to
read HTML documents and compose them into visible or audible web pages. The
browser does not display the HTML tags, but uses the tags to interpret the content of
the page.HTML elements form the building blocks of all websites. HTML allows
images and objects to be embedded and can be used to create interactive forms. It
provides a means to create structured
documents by denoting structural semantics for text such as headings, paragraphs,
lists, links, quotes and other items. It can embed scripts written in languages such as
JavaScript which affect the behavior of HTML web pages.content from document
presentation, including elements such as the layout, colors, and fonts. This
separation can improve content accessibility, provide more flexibility and control in
the specification
ii
• CSS- Cascading Style Sheets (CSS) is a style sheet language used for
describing the look and formatting of a document written in a markup language.
While most often used to style web pages and interfaces written in HTML and
XHTML, the language can be applied to any kind
of XML document, including plain XML, SVG and XUL. CSS is a cornerstone
specification of the web and almost all web pages use CSS style sheets to describe
their presentation.CSS is designed primarily to enable the separation of document of
presentation characteristics, enable multiple pages to share formatting, and reduce
complexity and repetition in the structural content (such as by allowing for table less
web design).CSS can also allow the same markup page to be presented in different
styles for different rendering methods, such as on-screen, in print, by voice (when
read out by a speech-based browser or screen reader) and on Braille-based, tactile
devices. It can also be used to allow the web page to display differently depending
on the screen size or device on which it is being viewed. While the author of a
document typically links that document to a CSS file, readers can use a different
style sheet, perhaps one on their own computer, to override the one the author has
specified. However if the author or the reader did not link the document to a specific
style sheet the default style of the browser will be applied.CSS specifies a priority
scheme to determine which style rules apply if more than one rule matches against a
particular element. In this so-called cascade, priorities or weights are calculated
and assigned to rules, so that the results are predictable.
ii
and functional programming styles. The application of JavaScript to use outside
of web pages—for example, in PDF documents, site-specific browsers, and
desktop widgets—is also significant. Newer and faster JavaScript VMs and
platforms built upon them (notably Node.js) have also increased the popularity of
JavaScript for server-side web applications. On the client side, JavaScript was
traditionally implemented as
PHP- PHP is a server-side scripting language designed for web development but
also used as a general-purpose programming language. PHP is now installed on
more than 244 million websites and 2.1 million web servers. Originally created by
Rasmus Lerdorf in 1995, the reference implementation of PHP is now produced by
The PHP Group. While PHP originally stood for Personal Home Page, it now
stands for PHP: Hypertext Preprocessor, a recursive backronym.PHP code is
interpreted by a web server with a PHP processor module, which generates the
resulting web page: PHP commands can be embedded directly into an HTML
source document rather than calling an external file to process data. It has also
evolved to include a command-line interface capability and can be used
in standalone graphical applications. PHP is free software released under the PHP
License. PHP can be deployed on most web servers and also as a standalone shell
on almost every operating system and platform, free of charge.
2.3.1 BACK END- The back end is designed using mysql which is used to design
the databases
MYSQL- MySQL ("My S-Q-L", officially, but also called "My Sequel") is (as of July
2013) the world's second most widely used open-source relational database management
system (RDBMS). It is named after co-founder Michael Widenius daughter, My. The
SQL phrase stands for Structured Query Language. The MySQL development project
has made its source code available under the terms of the GNU General Public License,
as well as under a variety
of proprietary agreements. MySQL was owned and sponsored by a single for- profit
firm, the Swedish company MySQL AB, now owned by Oracle Corporation
ii
.MySQL is a popular choice of database for use in web applications, and is a central
component of the widely used LAMP open source web application software stack (and
other 'AMP' stacks). LAMP is an acronym for "Linux, Apache,
ii
CHAPTER 3 SYSTEM
DESIGN
VARIOUS TABELS TO
MAINTAIN INFORMATION
⚫ BOOK TABLE FOR KEEPING TRACK OF BOOKS
No of INT(10) Null
copies
ii
⚫ STUDENT TABLE FOR STUDENT INFORMATION
ii
⚫ Issue table to keep track of books issued
ii
⚫ EVENT TABLE FOR EVENT INFORMATION
ii
3.1 DATA FLOW DIAGRAMS
TEACHER
DATABASE
ENTER
ENTER CHECK
TEACHER USERNAME
URL VALIDITY
&
IF VALID
TEACHER
WEB SERVER
LOGIN
PAGE
After entering to the home page of the website , teacher can choose the TEACHER LOGIN
option where they are asked to enter username & password , and if he/she is a valid user then
a teacher login page will be displayed.
ii
DATA FLOW DIAGRAM FOR STUDENT LOGIN
STUDENT
DATABASE
ENTER
ENTER CHECK
STUDENT USERNAME
URL VALIDITY
&
IF VALID
STUDENT
WEB SERVER
LOGIN
PAGE
After entering to the home page of the website , student can choose the STUDENT LOGIN
option where they are asked to enter username & password , and if he/she is a valid user then
a student login page will be displayed.
ii
DATA FLOW DIAGRAM FOR BOOK ISSUE
LOGIN
DATABASE
It is a 2nd level Data Flow Diagram where after entering STUDENT LOGIN page he/she can select
a book issue option where after entering the book detail, he/she can select the book issue
option and if the maximum no of books issued limit is not crossed then a request will be sent to
the librarian who will approve the book issue.
ii
SELECT ENTER ADMIN MESSAGE
HOME
ACCOUNT STUDENT VERIFY SENT
CREATION DETAIL STUDEN
T TO
IF ALL REG. IS IF VALID
PARTIALLY FILLED
ii
CHAPTER 4
SYSTEM IMPLEMENTATION
ii
ADMIN
The following module contains various facilities like student validation, teacher
4.1.1 Admin
registration, book Module
addition, and report generation.
//Start session
session_start();
?>
<!DOCTYPE html>
<head>
ii
<script type="text/javascript" src="../scripts/jquery-ui-1.7.2.custom.min.js"></script>
</head>
<body id="top">
<div class="fl_left">
<p></p>
</div>
<div class="fl_right">
<ul>
<li><a href="http://localhost/xampp/project/library/homepage.php">Home</a></
li>
<li><a
href="http://localhost/xampp/project/library/contact/Contactus.php">Contact
Us</a></li>
<li><a href="http://localhost/xampp/project/library/egateway/egateway.php">E-
Gateway</a></li>
<li><a
href="http://localhost/xampp/project/library/studentlogin/studentlogin.php">Student
Login</a></li>
<li><a
href="http://localhost/xampp/project/library/admin/adminlogin.php">Adminlogin</a></
li>
ii
</ul>
<fieldset>
<strong>Search:</strong>
</fieldset>
</form>
</div>
</div>
</div>
<!--
#######################################################################
################################ -->
<div class="rnd">
<div id="topnav">
<ul>
<li class="active"><a
href="http://localhost/xampp/project/library/homepage.php">Home</a></li>
<li><a href="http://localhost/xampp/project/library/newarrivals.php">New
Arrivals</a></li>
<li><a href="http://localhost/xampp/project/library/onlinebooks.php">Online
Books</a></li>
ii
<li><a href="http://localhost/xampp/project/library/egallery.php">E
Gallery</a></li>
<li><a href="http://localhost/xampp/project/library/questionpaper.php">Question
Paper</a></li>
<li><a href="http://localhost/xampp/project/library/aboutus.php">About
Us</a></li>
</a></li>
</ul>
</div>
</div>
</div>
<!--
#######################################################################
################################ -->
<div class="wrapper">
<div class="overlay_left"></div>
<div id="featured_content">
/>
<div class="floater">
<p>School oF Engineering Library or the S.O.E library is one of the finest library
ii
in kerela having a good collection of books related to various subjects</p>
</div>
</div>
/>
<div class="floater">
<h2>Existence</h2>
<p>School oF Engineering library came into existence in year 1995 and from then
</div>
</div>
/>
<div class="floater">
<h2>Collection</h2>
</div>
</div>
/>
ii
<div class="floater">
<h2>E-Repository</h2>
<p>School oF Engineering Library has a collection of 6000 cds and 2800 online
journals and also has a section where teachers upload their lectures notes and student
can download them.</p>
</div>
</div>
/>
<div class="floater">
<p></p>
</div>
</div>
</div>
<ul id="featured_tabs">
<li><a href="#fc2">Existence</a></li>
<li><a href="#fc4">E-Repository</a></li>
</ul>
<div class="overlay_right"></div>
ii
</div>
</div>
<!--
#######################################################################
################################ -->
<div class="rnd">
<!--
#######################################################################
################################ -->
<div id="left_column">
<h2>Sugeestion</h2>
<h2>Book request</h2>
<h2>Account creation</h2>
<h2>Photos</h2>
ii
</div>
<div id="latestnews">
<table>
</form>
</table>
</div>
</div>
<!--
#######################################################################
################################ -->
<!--
#######################################################################
################################ -->
<div class="linkbox">
<ul>
ii
<li><a href="http://localhost/xampp/project/library/homepage.php">»
Home</a></li>
<li><a href="http://localhost/xampp/project/library/studentlogin.php">»
Student Login</a></li>
<li><a
href="http://localhost/xampp/project/library/adminlogin.php">»
Adminlogin</a></li><li><a
href="http://localhost/xampp/project/library/newarrival.php">» New
Arrivals</a></li>
<li><a href="http://localhost/xampp/project/library/onlinebooks.php">»
Online Books</a></li>
<li><a href="http://localhost/xampp/project/library/egallery.php">» E-
Gallery</a></li>
<li><a href="http://localhost/xampp/project/library/aboutus.php">»
About Us</a></li>
<li><a href="http://localhost/xampp/project/library/contactus.php">»
Contact Us</a></li>
<li><a href="http://localhost/xampp/project/library/questionpaper.php">»
Question Papers</a></li>
<li><a href="http://localhost/xampp/project/library/latestnews.php">»
Latest Events & News</a></li>
</ul>
</div>
<!--
#######################################################################
################################ -->
</div>
</div>
</div>
ii
<!--
#######################################################################
################################ -->
<!--
#######################################################################
################################ -->
<div class="wrapper">
</div>
</div>
</body>
</html>
<?php
session_start();
ii
// Connect to server and select databse.
$myusername=$_POST['username'];
$mypassword=$_POST['password'];
$result=mysql_query($sql);
$count=mysql_num_rows($result);
row if($count>0)
{ session_regenerate_id();
$member = mysql_fetch_assoc($result);
$_SESSION['SESS_FIRST_NAME'] = $member['username'];
$_SESSION['SESS_LAST_NAME'] = $member['password'];
session_write_close();
header("location: adminlogin1.php");
exit();
}else {
//Login failed
$errflag = true;
if($errflag) {
ii
$_SESSION['ERRMSG_ARR'] = $errmsg_arr;
session_write_close();
header("location: adminlogin.php");
exit();
?>
$libid=$row['libid'] ;
$regno= $row['regno'] ;
$name= $row['stuname'] ;
$branch= $row['branch'] ;
$semester= $row['semester'] ;
$section= $row['section'] ;
$yearofadm= $row['yearofadm'];
$email=$row['email'];
$username= $row['username'];
$password= $row['password'];
mysqli_close($con);
ii
?>
<?php
require '../include/connection1.php';
$admin="[email protected]";
('$libid','$regno','$name','$branch','$semester','$section','$yearofadm')";
('$libid','$username','$password','')";
if (!mysqli_query($connection,$sql))
else if (!mysqli_query($connection,$result))
else
echo"added 1 record";
mysqli_close($connection);
?>
<?php
require '../include/connection.php';
ii
$result = mysqli_query($con,"SELECT * FROM student");
while($row = mysqli_fetch_array($result))
$libid=$row['libid'] ;
$regno= $row['regno'] ;
$name= $row['stuname'] ;
$branch= $row['branch'] ;
$semester= $row['semester'] ;
$section= $row['section'] ;
$yearofadm= $row['yearofadm'];
$email=$row['email'];
$username= $row['username'];
$password= $row['password'];
?>
<?php
$con=mysqli_connect("localhost","root","rahul#1991","library");
// Check connection
ii
if (mysqli_connect_errno())
$loginid=$_POST['teacherid'];
$username=$_POST['username'];
$password=$_POST['password'];
$teachername=$_POST['teachername'];
$designation=$_POST['designation'];
$branch=$_POST['branch'];
$contactno=$_POST['contact'];
$lecture='';
( $loginid,$teachername,$designation,$branch,$contactno,$lecture)";
( $loginid,$username, $password)";
if (!mysqli_query($con,$sql))
echo "error";
if (!mysqli_query($con,$tql))
echo "error1";
ii
echo "successs";
mysqli_close($con);
?>
<?php
$con=mysqli_connect("localhost","root","","library");
// Check connection
if (mysqli_connect_errno())
VALUES
('$_POST[bookid]','$_POST[bookname]','$_POST[author]','$_POST[publication]','$_P
OST[subject]','$_POST[numberofbooks]')";
if (!mysqli_query($con,$sql))
echo "error";
echo "successs";
ii
mysqli_close($con);
?>
<?php
$con=mysqli_connect("localhost","root","","admin");
// Check connection
if (mysqli_connect_errno())
VALUES
('$_POST[bookid]','$_POST[bookname]','$_POST[author]','$_POST[publication]','$_P
OST[subject]','$_POST[numberofbooks]','$_POST[arrivaldate]')";
if (!mysqli_query($con,$sql))
echo "error";
echo "successs";
mysqli_close($con);
ii
?>
ii
STUDENT STUDENT LOGIN
REGISTRATION
STUDENT
USERNAME AND FORGOT
PASSWORD PASSWORD
AUTHENTICATION
ONLINE BOOK EVENT ADDITION
RESERVATTION
The following module contains various facilities like student registration, student login,
online book reservation, and event addition. Any student if at any moment forgets his
password he can retrieve it from forgot password option.
<!DOCTYPE html>
<head>
ii
<meta http-equiv="imagetoolbar" content="no" />
</head>
<body id="top">
<div class="fl_left">
<p></p>
</div>
<div class="fl_right">
<ul>
<li><a
href="http://localhost/xampp/project/library/homepage.php">Home</a></li>
<li><a
href="http://localhost/xampp/project/library/contact/Contactus.php">Contact
Us</a></li>
<li><a
href="http://localhost/xampp/project/library/egateway/egateway.php">E-
Gateway</a></li>
ii
<li><a
href="http://localhost/xampp/project/library/studentlogin/studentlogin.php">Student
Login</a></li>
<li ><a
href="http://localhost/xampp/project/library/teachrlogin/teacherlogin.php">Teacherl
ogin</a></li>
<li><a
href="http://localhost/xampp/project/library/admin/adminlogin.php">Adminlogin</a
></li>
</ul>
<fieldset>
<strong>Search:</strong>
/>
</fieldset>
</form>
</div>
</div>
</div>
<!--
####################################################################
################################### -->
<div class="rnd">
ii
<!-- ###### -->
<div id="topnav">
<ul>
</ul>
</div>
</div>
</div>
<!--
####################################################################
################################### -->
<div class="wrapper">
<div class="overlay_left"></div>
<div id="featured_content">
ii
<div class="featured_box" id="fc1"><img src="../images/demo/slider/1.gif"
alt="" />
<div class="floater">
</div>
</div>
<div class="floater">
<h2>Existence</h2>
<p>School oF Engineering library came into existence in year 1995 and from
then on it has been a premier source of information for college students</p>
</div>
</div>
<div class="floater">
<h2>Collection</h2>
ii
<p class="readmore"><a href="#">Continue Reading »</a></p>
</div>
</div>
<div class="floater">
<h2>E-Repository</h2>
</div>
</div>
<div class="floater">
<p></p>
</div>
</div>
</div>
<ul id="featured_tabs">
<li><a href="#fc2">Existence</a></li>
ii
<li><a href="#fc4">E-Repository</a></li>
</ul>
<div class="overlay_right"></div>
</div>
</div>
<!--
####################################################################
################################### -->
<div class="rnd">
<!--
####################################################################
################################### -->
<div id="left_column">
<h2>Sugeestion</h2>
<h2>Book request</h2>
<h2>Account creation</h2>
ii
<div class="imgholder"><a href="#"><img
src="../images/images/account.jpg" alt="" /></a></div>
<h2>Photos</h2>
</div>
<div id="latestnews">
<table>
<legend>Student Information:</legend>
<tr>
</tr>
<tr>
</tr>
<tr>
ii
<span class="error">* </span><br><br></td>
</tr>
<tr>
<option>Mechanical</option>
<option>Civil</option>
<option>Information Technology</option>
</select>
</tr>
<tr>
<option selected="selected">1&2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
</select>
ii
<span class="error">* </span><br><br></td>
</tr>
<tr>
<option selected="selected">A</option>
<option>B</option>
</select>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
ii
</tr>
<tr>
</tr>
<tr>
</tr>
</form>
</table>
ii
</div>
</div>
<!--
####################################################################
################################### -->
<!--
####################################################################
################################### -->
<div class="linkbox">
<ul>
<li><a
href="http://localhost/xampp/project/library/homepage.php">»
Home</a></li>
<li><a
href="http://localhost/xampp/project/library/studentlogin/studentlogin.php">»
; Student Login</a></li>
<li><a
href="http://localhost/xampp/project/library/teacherlogin/teacherlogin.php">»
; Teacher Login</a></li>
<li><a
href="http://localhost/xampp/project/library/adminlogin/adminlogin.php">»
Adminlogin</a></li>
ii
<li><a
href="http://localhost/xampp/project/library/newarrivals/newarrivals.php">»
New Arrivals</a></li>
<li><a
href="http://localhost/xampp/project/library/onlinebooks/onlinebooks">»
Online Books</a></li>
<li><a
href="http://localhost/xampp/project/library/egallery/egallery.php">» E-
Gallery</a></li>
<li><a
href="http://localhost/xampp/project/library/aboutus/aboutus.php">» About
Us</a></li>
<li><a
href="http://localhost/xampp/project/library/contactus/contactus.php">»
Contact Us</a></li>
<li><a
href="http://localhost/xampp/project/library/questionpaper/questionpaper.php">&ra
quo; Question Papers</a></li>
<li><a
href="http://localhost/xampp/project/library/latestnews/latestnews.php">»
Latest Events & News</a></li>
</ul>
</div>
<!--
####################################################################
################################### -->
</div>
</div>
</div>
ii
<!--
####################################################################
################################### -->
<!--
####################################################################
################################### -->
<div class="wrapper">
</div>
</div>
</body>
</html>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST")
if (empty($_POST["libid"]))
ii
{$libidErr = "libid is required";
echo $libidErr;
include("createaccount.php");
ii
else
{$libid= test_input($_POST["libid"]);}
if (empty($_POST["regno"]))
include("createaccount.php");
else
{$regno = test_input($_POST["regno"]);}
if (empty($_POST["stuname"]))
else
{$stuname = test_input($_POST["stuname"]);}
if (empty($_POST["branch"]))
else
{$branch = test_input($_POST["branch"]);
ii
}
if (empty($_POST["semester"]))
else
{$semester = test_input($_POST["semester"]);}
if (empty($_POST["section"]))
{$sectionErr = "section is
required"; echo $sectionErr;
include("createaccount.php");
else
{$section = test_input($_POST["section"]);}
if (empty($_POST["yearofadm"]))
else
{$yearofadm = test_input($_POST["yearofadm"]);
ii
}
if (empty($_POST["username"]))
else
{$username = test_input($_POST["username"]);
if (empty($_POST["password"]))
else
{$password = test_input($_POST["password"]);}
function test_input($data)
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
ii
}
?>
<?php
$con=mysqli_connect("localhost","root","","admin");
// Check connection
if (mysqli_connect_errno())
$sql="INSERT INTO
student(libid,regno,stuname,branch,semester,section,yearofadm,email,username,pass
word)
VALUES
('$_POST[libid]','$_POST[regno]','$_POST[stuname]','$_POST[branch]','$_POST[s
emester]','$_POST[section]','$_POST[yearofadm]','$_POST[email]','$_POST[userna
me]','$_POST[password]')";
if (!mysqli_query($con,$sql))
mysqli_close($con);
?>
ii
4.1.1.1 Code For Student login check
<?php
//Start session
session_start();
?>
<!DOCTYPE html>
<head>
</head>
<body id="top">
ii
<div id="header" class="clear">
<div class="fl_left">
ii
<h1><a href="homepage.php">SOE LIBRARY MANAGEMENT
SYSTEM</a></h1>
<p></p>
</div>
<div class="fl_right">
<ul>
<li><a
href="http://localhost/xampp/project/library/homepage.php">Home</a></li>
<li><a
href="http://localhost/xampp/project/library/contact/Contactus.php">Contact
Us</a></li>
<li><a
href="http://localhost/xampp/project/library/egateway/egateway.php">E-
Gateway</a></li>
<li><a
href="http://localhost/xampp/project/library/studentlogin/studentlogin.php">Student
Login</a></li>
<li><a
href="http://localhost/xampp/project/library/admin/adminlogin.php">Adminlogin</a
></li>
</ul>
<fieldset>
<strong>Search:</strong>
/>
ii
</fieldset>
</form>
</div>
</div>
</div>
<!--
####################################################################
################################### -->
<div class="rnd">
<div id="topnav">
<ul>
<li class="active"><a
href="http://localhost/xampp/project/library/homepage.php">Home</a></li>
<li><a href="http://localhost/xampp/project/library/newarrivals.php">New
Arrivals</a></li>
ii
<li><a href="http://localhost/xampp/project/library/onlinebooks.php">Online
Books</a></li>
<li><a href="http://localhost/xampp/project/library/egallery.php">E
Gallery</a></li>
<li><a
href="http://localhost/xampp/project/library/questionpaper.php">Question
Paper</a></li>
<li><a href="http://localhost/xampp/project/library/aboutus.php">About
Us</a></li>
</a></li>
</ul>
</div>
</div>
</div>
<!--
####################################################################
################################### -->
<div class="wrapper">
<div class="overlay_left"></div>
<div id="featured_content">
<div class="floater">
ii
<h2>All ABOUT SOE LIBRARY</h2>
</div>
</div>
<div class="floater">
<h2>Existence</h2>
<p>School oF Engineering library came into existence in year 1995 and from
then on it has been a premier source of information for college students</p>
</div>
</div>
<div class="floater">
ii
<h2>Collection</h2>
</div>
</div>
<div class="floater">
<h2>E-Repository</h2>
</div>
</div>
<div class="floater">
<p></p>
</div>
</div>
</div>
<ul id="featured_tabs">
ii
<li><a href="#fc1">All About The Library</a></li>
<li><a href="#fc2">Existence</a></li>
<li><a href="#fc4">E-Repository</a></li>
</ul>
<div class="overlay_right"></div>
</div>
</div>
<!--
####################################################################
################################### -->
<div class="rnd">
ii
<!--
####################################################################
################################### -->
<div id="left_column">
<h2>Sugeestion</h2>
<h2>Book request</h2>
<h2>Account creation</h2>
<h2>Photos</h2>
</div>
<div id="latestnews">
<table>
</form>
ii
</table>
</div>
</div>
<!--
####################################################################
################################### -->
<!--
####################################################################
################################### -->
<div class="linkbox">
<ul>
ii
<li><a href="http://localhost/xampp/project/library/homepage.php">»
Home</a></li>
<li><a
href="http://localhost/xampp/project/library/studentlogin.php">» Student
Login</a></li>
<li><a
href="http://localhost/xampp/project/library/adminlogin.php">»
Adminlogin</a></li>
<li><a
href="http://localhost/xampp/project/library/newarrival.php">» New
Arrivals</a></li>
<li><a
href="http://localhost/xampp/project/library/onlinebooks.php">» Online
Books</a></li>
<li><a href="http://localhost/xampp/project/library/egallery.php">»
E-Gallery</a></li>
<li><a href="http://localhost/xampp/project/library/aboutus.php">»
About Us</a></li>
<li><a href="http://localhost/xampp/project/library/contactus.php">»
Contact Us</a></li>
<li><a
href="http://localhost/xampp/project/library/questionpaper.php">» Question
Papers</a></li>
<li><a href="http://localhost/xampp/project/library/latestnews.php">»
Latest Events & News</a></li>
</ul>
</div>
<!--
####################################################################
################################### -->
ii
</div>
</div>
</div>
<!--
####################################################################
################################### -->
<!--
####################################################################
################################### -->
<div class="wrapper">
ii
</div>
</div>
</body>
</html>
<?php
session_start();
$myusername=$_POST['username'];
$mypassword=$_POST['password'];
$result=mysql_query($sql);
$count=mysql_num_rows($result);
ii
// If result matched $myusername and $mypassword, table row must be 1
row if($count>0)
{ session_regenerate_id();
$member = mysql_fetch_assoc($result);
$_SESSION['SESS_username'] = $member['username'];
$_SESSION['SESS_password'] = $member['password'];
session_write_close();
header("location:studentlogin1.php");
exit();
}else {
//Login failed
$errflag = true;
if($errflag) {
$_SESSION['ERRMSG_ARR'] = $errmsg_arr;
session_write_close();
header("location: studentlogin.php");
exit();
ii
}
?>
<?php
$con=mysqli_connect("localhost","root","","admin");
// Check connection
if (mysqli_connect_errno())
('$_POST[ename]','$_POST[date]','$_POST[time]','$_POST[venue]','$_POST[name
]','$_POST[phno]','$_POST[email]')";
if (!mysqli_query($con,$sql))
?>
ii
ii
SUGGESTIONS
EVENT ADDITION
TEACHER
USERNAME AND
PASSWORD
AUTHENTICATION
TEACHER LOGIN
FORGOT
PASSWORD
The following module contains various facilities like teacher login, suggestions, and
event addition. Further any teacher if at any moment forgets his/her password he/she can
retrieve it from ‘forgot password’ option.
<?php
session_start();
ii
$username="root"; // Mysql username
$myusername=$_POST['username'];
$mypassword=$_POST['password'];
ii
$result=mysql_query($sql);
$count=mysql_num_rows($result);
row if($count>0)
{ session_regenerate_id();
$member = mysql_fetch_assoc($result);
$_SESSION['SESS_username'] = $member['username'];
$_SESSION['SESS_password'] = $member['password'];
session_write_close();
header("location:teacherlogin1.php");
exit();
}else {
//Login failed
$errflag = true;
if($errflag) {
$_SESSION['ERRMSG_ARR'] = $errmsg_arr;
session_write_close();
header("location: teacherlogin.php");
exit();
?>
ii
4.1.3.2 Code for Suggestion
<?php
session_start();
?>
<!DOCTYPE html>
<head>
ii
<script type="text/javascript" src="../scripts/jquery.tabs.setup.js"></script>
</head>
<body id="top">
<div class="fl_left">
<p></p>
</div>
<div class="fl_right">
<ul>
<li><a
href="http://localhost/xampp/project/library/homepage.php">Home</a></li>
<li><a
href="http://localhost/xampp/project/library/contact/Contactus.php">Contact
Us</a></li>
<li><a
href="http://localhost/xampp/project/library/egateway/egateway.php">E-
Gateway</a></li>
<li><a
href="http://localhost/xampp/project/library/studentlogin/studentlogin.php">Student
Login</a></li>
<li><a
href="http://localhost/xampp/project/library/admin/adminlogin.php">Adminlogin</a
></li>
ii
</ul>
<fieldset>
<strong>Search:</strong>
/>
</fieldset>
</form>
</div>
</div>
</div>
<!--
####################################################################
################################### -->
<div class="rnd">
ii
<!-- ###### -->
<div id="topnav">
<ul>
<li class="active"><a
href="http://localhost/xampp/project/library/homepage.php">Home</a></li>
<li><a href="http://localhost/xampp/project/library/newarrivals.php">New
Arrivals</a></li>
<li><a href="http://localhost/xampp/project/library/onlinebooks.php">Online
Books</a></li>
<li><a href="http://localhost/xampp/project/library/egallery.php">E
Gallery</a></li>
<li><a
href="http://localhost/xampp/project/library/questionpaper.php">Question
Paper</a></li>
<li><a href="http://localhost/xampp/project/library/aboutus.php">About
Us</a></li>
</a></li>
</ul>
</div>
</div>
</div>
<!--
####################################################################
################################### -->
<div class="wrapper">
ii
<div id="featured_slide" class="clear">
<div class="overlay_left"></div>
<div id="featured_content">
<div class="floater">
</div>
</div>
<div class="floater">
<h2>Existence</h2>
ii
<p>School oF Engineering library came into existence in year 1995 and from
then on it has been a premier source of information for college students</p>
</div>
</div>
<div class="floater">
<h2>Collection</h2>
</div>
</div>
<div class="floater">
<h2>E-Repository</h2>
</div>
</div>
<div class="floater">
ii
<p></p>
</div>
</div>
</div>
<ul id="featured_tabs">
<li><a href="#fc2">Existence</a></li>
<li><a href="#fc4">E-Repository</a></li>
</ul>
<div class="overlay_right"></div>
</div>
</div>
ii
<!--
####################################################################
################################### -->
<div class="rnd">
<!--
####################################################################
################################### -->
<div id="left_column">
<h2>Sugeestion</h2>
<h2>Book request</h2>
<h2>Account creation</h2>
<h2>Photos</h2>
</div>
<div id="latestnews">
ii
<table border=1>
<tr>
</tr>
<tr>
<td><input type="submit"
value="submit"name="submit"><br></br></td>
</tr>
</form>
</table>
<
</div>
</div>
ii
</div>
<!--
####################################################################
################################### -->
<!--
####################################################################
################################### -->
<div class="linkbox">
<ul>
<li><a href="http://localhost/xampp/project/library/homepage.php">»
Home</a></li>
<li><a
href="http://localhost/xampp/project/library/studentlogin.php">» Student
Login</a></li>
<li><a
href="http://localhost/xampp/project/library/adminlogin.php">»
Adminlogin</a></li>
<li><a
href="http://localhost/xampp/project/library/newarrival.php">» New
Arrivals</a></li>
<li><a
href="http://localhost/xampp/project/library/onlinebooks.php">» Online
Books</a></li>
<li><a
href="http://localhost/xampp/project/library/egallery.php">»
E-Gallery</a></li>
<li><a href="http://localhost/xampp/project/library/aboutus.php">»
About Us</a></li>
ii
<li><a href="http://localhost/xampp/project/library/contactus.php">»
Contact Us</a></li>
<li><a
href="http://localhost/xampp/project/library/questionpaper.php">» Question
Papers</a></li>
<li><a href="http://localhost/xampp/project/library/latestnews.php">»
Latest Events & News</a></li>
</ul>
</div>
<!--
####################################################################
################################### -->
</div>
</div>
</div>
ii
<!--
####################################################################
################################### -->
<!--
####################################################################
################################### -->
<div class="wrapper">
</div>
</div>
</body>
</html>
<?php
session_start();
require '../include/connection1.php';
$rocount=mysqli_num_rows($sql);
if($rocount==1)
while($row = mysqli_fetch_array($sql))
ii
$logid=$row['logid'];
$username= $row['username'] ;
$password= $row['password'] ;
$numbooks= $row['numbooks'];
$rowcount=mysqli_num_rows($result);
if($rowcount==1)
while($row = mysqli_fetch_array($result))
$libid=$row['libid'];
$regno= $row['regno'] ;
$stuname= $row['stuname'] ;
$branch= $row['branch'] ;
$semester= $row['semester'] ;
ii
$section= $row['section'] ;
$yearofadm= $row['yearofadm'] ;
mysqli_close($connection);
?>
<?php
require'../include/connection.php';
('$libid','$_POST[suggestion]')";
if (!mysqli_query($con,$sql))
echo "error";
echo "successs";
mysqli_close($con);
?>
ii
ii
BOOK MAINTENANCE
SEARCH BOOK
ii
{
echo "error";
echo "successs";
ii
mysqli_close($con);
?>
<?php
$con=mysqli_connect("localhost","root","","admin");
// Check connection
if (mysqli_connect_errno())
VALUES
('$_POST[bookid]','$_POST[bookname]','$_POST[author]','$_POST[publication]','$_P
OST[subject]','$_POST[numberofbooks]','$_POST[arrivaldate]')";
if (!mysqli_query($con,$sql))
echo "error";
echo "successs";
mysqli_close($con);
?>
ii
<!DOCTYPE html>
<head>
<div class="fl_left">
ii
<p></p>
</div>
<div class="fl_right">
<ul>
<li><a href="homepage.php">Home</a></li>
<li><a href="http://localhost/xampp/project/library/contact/Contactus.php">Contact
Us</a></li>
<li><a href="http://localhost/xampp/project/library/egateway/egateway.php">E-
Gateway</a></li>
<li><a
href="http://localhost/xampp/project/library/studentlogin/studentlogin.php">Student
Login</a></li>
<li ><a
href="http://localhost/xampp/project/library/teachrlogin/teacherlogin.php">Teacherlogi
n</a></li>
<li><a
href="http://localhost/xampp/project/library/admin/adminlogin.php">Adminlogin</a></
li>
</ul>
<fieldset>
<strong>Search:</strong>
</fieldset>
</form>
</div>
ii
</div>
</div>
<!--
#######################################################################
################################ -->
<div class="rnd">
<div id="topnav">
<ul>
<li><a
href="http://localhost/xampp/project/library/newarrivals/newarrivals.php">New
Arrivals</a></li>
<li><a
href="http://localhost/xampp/project/library/onlinebooks/onlinebooks.php">Online
Books</a></li>
ii
<li><a href="http://localhost/xampp/project/library/egallery/egallery.php">E
Gallery</a></li>
<li><a
href="http://localhost/xampp/project/library/questionpaper/questionpaper.php">Questio
n Paper</a></li>
<li><a href="http://localhost/xampp/project/library/aboutus/aboutus.php">About
Us</a></li>
<li><a href="http://localhost/xampp/project/library/abouts/bookissue.php">Book
Issue </a></li>
</ul>
</div>
</div>
</div>
<!--
#######################################################################
################################ -->
<div class="wrapper">
<div class="overlay_left"></div>
<div id="featured_content">
/>
<div class="floater">
<p>School oF Engineering Library or the S.O.E library is one of the finest library
ii
in kerela having a good collection of books related to various subjects</p>
</div>
</div>
/>
<div class="floater">
<h2>Existence</h2>
<p>School oF Engineering library came into existence in year 1995 and from then
</div>
</div>
/>
<div class="floater">
<h2>Collection</h2>
ii
<p>School of Engineering Library has a collection of over 25000 books related to
various subjects in engineering</p>
</div>
</div>
/>
<div class="floater">
<h2>E-Repository</h2>
<p>School oF Engineering Library has a collection of 6000 cds and 2800 online
journals and also has a section where teachers upload their lectures notes and student
can download them.</p>
</div>
</div>
/>
<div class="floater">
<p></p>
</div>
</div>
</div>
<ul id="featured_tabs">
ii
<li><a href="#fc2">Existence</a></li>
<li><a href="#fc4">E-Repository</a></li>
</ul>
<div class="overlay_right"></div>
</div>
</div>
<!--
#######################################################################
################################ -->
<div class="rnd">
<!--
#######################################################################
################################ -->
ii
<div id="left_column">
<h2>Sugeestion</h2>
<h2>Book request</h2>
<h2>Account creation</h2>
<div class="imgholder"><a
href="http://localhost/xampp/project/library/create/createaccount.php"><img
src="../images/images/account.jpg" alt="" /></a></div>
<h2>Photos</h2>
</div>
<div id="latestnews">
<table>
<legend>Book Information:</legend>
<tr>
</tr>
ii
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
ii
</form>
</table>
</div>
</div>
</div>
<!--
#######################################################################
################################ -->
<!--
#######################################################################
################################ -->
<div class="linkbox">
<ul>
<li><a href="http://localhost/xampp/project/library/homepage.php">»
Home</a></li>
ii
<li><a href="http://localhost/xampp/project/library/studentlogin.php">»
Student Login</a></li>
<li><a href="http://localhost/xampp/project/library/teacherlogin.php">»
Teacher Login</a></li>
<li><a href="http://localhost/xampp/project/library/adminlogin.php">»
Adminlogin</a></li>
<li><a href="http://localhost/xampp/project/library/newarrivals.php">»
New Arrivals</a></li>
<li><a href="http://localhost/xampp/project/library/onlinebooks.php">»
Online Books</a></li>
<li><a href="http://localhost/xampp/project/library/egallery.php">» E-
Gallery</a></li>
<li><a href="http://localhost/xampp/project/library/aboutus.php">»
About Us</a></li>
<li><a href="http://localhost/xampp/project/library/contactus.php">»
Contact Us</a></li>
<li><a href="http://localhost/xampp/project/library/questionpaper.php">»
Question Papers</a></li>
<li><a href="http://localhost/xampp/project/library/latestnews.php">»
Latest Events & News</a></li>
ii
</ul>
</div>
<!--
#######################################################################
################################ -->
</div>
</div>
</div>
<!--
#######################################################################
################################ -->
<!--
#######################################################################
################################ -->
<div class="wrapper">
</div>
</div>
</body>
</html>
<?php
$con=mysqli_connect("localhost","root","","library");
// Check connection
ii
if (mysqli_connect_errno())
$code=$_POST['bookcode'];
$name=$_POST['bookname'];
$aname=$_POST['authorname'];
$publication=$_POST['publication'];
<tr>
<th>Book code</th>
<th>Book Name</th>
<th>Author</th>
<th>Publication</th>
<th>Subject</th>
<th>No of Books</th>
ii
</tr>";
while($row = mysqli_fetch_array($result))
echo "<tr>";
echo "</table>";
mysqli_close($con);
?>
ii
BOOK TRANSACTION
RETURN BOOK
ISSUE BOOK CHECK
RESERVATION
4.1.5 Book Transaction Module
The following module contains various facilities like issue book, return book and check
reservation.
ii
4.1.5.1 Code For issue book
<?php
require'../include/connection1.php';
$libid=$row['logid'] ;
$username= $row['username'];
$password= $row['password'];
$numbooks=$row['numbooks'];
if($numbooks>3)
else
$libid=$_POST['libid'];
$bookid=$_POST['bookid'];
$issuedate=$_POST['issuedate'];
$returndate=date_add($issuedate,date_interval_create_from_date_string("15 days"));
ii
$sql="INSERT INTO issuebooks(libid,bookid,issuedate,returndate)
VALUES
('$libid','$bookid','$issuedate','$returndate')";
mysqli_query($connection,"UPDATE studentlogin SET
numbooks=numbooks+1
WHERE logid='$libid'");
WHERE code='$bookid'");
if (!mysqli_query($connection,$sql))
else
echo"added 1 record";
mysqli_close($connection);
?>
ii
<?php
require'../include/connection1.php';
$libid=$_POST['libid'];
$bookid=$_POST['bookid'];
$rowcount=mysqli_num_rows($result);
if($rowcount>0)
WHERE logid='$libid'");
WHERE code='$bookid'");
else
mysqli_close($connection);
?>
ii
4.1.2 Screenshot for Book search
ii
REPORT
R TEACHER REPORT
The following module contains various facilities like student report, teacher report, book
report, and transaction report.
<?php
require '../include/connection1.php';
$count=mysqli_num_rows($result);
<tr>
<td>Teacher id</td>
<td>Name</td>
ii
<td>Designation</td>
<td>Branch</td>
<td>Contact no</td>
</tr>";
while($count>0)
{
while($row = mysqli_fetch_array($result))
ii
{echo "<tr>";
$count=$count-1;
mysqli_close($connection);
?>
</table>
<?php
require '../include/connection1.php';
student");
$count=mysqli_num_rows($result);
<tr>
<td>Libraryid</td>
ii
<td>Registration number</td>
<td>Name</td>
<td>Branch</td>
<td>Semester</td>
<td>Section</td>
<td>Year of adm</td>
</tr>";
while($count>0)
while($row = mysqli_fetch_array($result))
{echo "<tr>";
ii
echo"</tr>";
$count=$count-1;
mysqli_close($connection);
?>
</table>
<?php
require '../include/connection1.php';
$count=mysqli_num_rows($result);
echo "<table border='1' style='width=100px'>
<tr>
<td>Libraryid</td>
<td>Bookid</td>
<td>Issue date</td>
<td>Return date</td>
</tr>";
while($count>0)
ii
{
while($row = mysqli_fetch_array($result))
{echo "<tr>";
$count=$count-1;
mysqli_close($connection);
?>
</table>
ii
4.1.6.4 Code For Book Report
<?php
require '../include/connection1.php';
$count=mysqli_num_rows($result);
<tr>
<td>Book Id</td>
<td>Name</td>
<td>Publication</td>
<td>Author</td>
<td>Subject</td>
<td>Number Of Books</td>
</tr>";
while($count>0)
while($row = mysqli_fetch_array($result))
{echo "<tr>";
ii
echo "<td>" . $row['numberofbooks'] . "</td>";
echo"</tr>";
$count=$count-1;
mysqli_close($connection);
?></table>
ii
CHAPTER 5
SYSTEM TESTING
The aim of the system testing process was to determine all defects in our project .The program
was subjected to a set of test inputs and various observations were made and based on these
observations it will be decided whether the program behaves as expected or not.
1.integration testing
UNIT TESTING
Unit testing is undertaken when a module has been created and succesfully reviewed .In order to
test a single module we need to provide a complete environment ie besides the module we
would require
The procedures belonging to other modules that the module under test calls
Non local data structures that module accesses
A procedure to call the functions of the module under test with
appropriate parameters
ii
Unit testing was done on each and every module that is described under module description of
chapter 4
ii
Testing admin login form-This form is used for log in of administrator of
the system.In this we enter the username and password if both are
correct administration page will open other wise if any of data is wrong it
will get redirected back to the login page and again ask for username and
password
Student account addition- In this section the admin can verify student
details from student academinc info and then only add student details to
main library database it contains add and delete buttons if user click add
button data will be added to student database and if he clicks delete
button the student data will be deleted
Book Addition- Admin can enter details of book and can add the details
to the main book table also he can view the books requests .
ii
Test for teacher login form- This form is used for logg in of teacher .In
this we enter the username and password if all these are correct
teacher login page will open other wise if any of data is wrong it will get
redirected back to the login page and again ask for username and
password.
ii
INTEGRATION TESTING
In this type of testing we test various integration of the project module by providing the input
.The primary objective is to test the module interfaces in order to ensure that no errors are
occurring when one module invokes the other module.
ii
CHAPTER 6 CONCLUSION &
FUTURE SCOPE
This website provides a computerized version of library management system which will benefit
the students as well as the staff of the library.
It makes entire process online where student can search books, staff can generate reports and do
book transactions. It also has a facility for student login where student can login and can see
status of books issued as well request for book or give some suggestions. It has a facility of
teacher’s login where teachers can add lectures notes and also give necessary suggestion to
library and also add info about workshops or events happening in our college or nearby college
in the online notice board.
There is a future scope of this facility that many more features such as online lectures video
tutorials can be added by teachers as well as online assignments submission facility , a feature
Of group chat where students can discuss various issues of engineering can be added to this
project thus making it more interactive more user friendly and project which fulfills each users
need in the best way possible
ii
CHAPTER 7
REFERENCES
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
ii
ii
ii
ii
ii
ii
ii
ii
ii
ii