Lybaray Management System Project 1
Lybaray Management System Project 1
A PROJECT SUBMITTED
IN PARTIAL – FULFILMENT OF THE REQUIREMENT
FOR THE AWARD OF THE DEGREE OF
BACHELOR OF SCIENCE
IN INFORMATION TECHNOLOGY
BY
DEPARTMENT OF IT
DSPMU, RANCHI
(2020-2023)
0
LIBRARY MANAGEMENT SYSTEM
A PROJECT SUBMITTED
IN PARTIAL – FULFILMENT OF THE REQUIREMENT
FOR THE AWARD OF THE DEGREE OF
BACHELOR OF SCIENCE
IN INFORMATION TECHNOLOGY
BY
DEPARTMENT OF IT
DSPMU, RANCHI
(2020-2023)
1
DECLARATION CERTIFICATE
This is to certify that the work presented in the project entitled “library
management system” in partial fulfillment of the requirement for the
award of degree of Bachelor of Science in Information Technology, of
Department of CA & IT, Dr Shyama Prashad Mukherjee, is an authentic
work carried out under my supervision. To the best of knowledge, the
content of this project does not form a basis for the award of any previous
to anyone else.
2
CRETIFICATE OF APPROVAL
3
ACKNOWLEDGEMENT
Last, but not the least I am heartily thankful to almighty god for showering
his blessing forever during my entire life and also to my family members
for providing me a great support.
4
TABLE OF CONTENTS
Certificate of Declaration…………………………………………….. 2
Certificate of Approval……………………………………………….. 3
Acknowledgement …………………………………………………… 4
ABSTRACT …………………………………………………………… 7
6
ABSTRACT
7
CHAPTER 1
INTRODUCTION
8
BACKGROUND OF PROJECT
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.
9
OPERATION ENVIRONMENT
10
CHAPTER 2
SYSTEM ANALYSIS
GENERAL DESCRIPTION
PRODUCT DESCRIPTION:
11
damaged and time consuming. It can help user to manage the
transaction or record more effectively and timesaving.
PROBLEM STATEMENT:
• File lost
• 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
12
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.
SYSTEM OBJECTIVES
• Save time
• Lecture Notes
13
SYSTEM REQUIREMENTS
NON-FUNCTIONAL REQUIREMENTS
Product Requirements
EFFICIENCY REQUIREMENT
RELIABILITY REQUIREMENT
USABILITY REQUIREMENT
14
ORGANIZATIONAL REQUIREMENT IMPLEMENTATION
REQUIREMNTS
DELIVERY REQUIREMENTS
FUNCTIONAL REQUIREMENTS
NORMAL USER
USER LOGIN
Description of feature
This feature used by the user to login into system. They are required
to enter user id and password before they are allowed to enter the
system .The user id and password will be verified and if invalid id is
there user is allowed to not enter the system.
15
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.
Description of feature
Functional requirements
Description of feature
16
-System must be able to verify information
- System must be able to not allow two books having same book id.
SEARCH BOOK
DESCRIPTION OF FEATURE
Functional requirements
DESCRIPTION OF FEATURE
This feature allows to issue and return books and also view
reports of book issued.
Functional requirements
17
-System must be able to enter issue information in database.
EVENT ADDITION
DESCRIPTION OF FEATURE
Functional requirements
18
SOFTWARE REQUIREMENTS
HARDWARE REQUIREMENTS
19
EXISTING VS PROPOSED SYSTEM
iii. 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.
iv. Existing system does not has any option of lectures notes uploaded
by teachers whereas proposed system will have this facility
vi. 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
The whole Project is divided in two parts the front end and the
back end.
20
Front end
The front end is designed using of html , Php ,css, Java script
21
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 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
22
priorities or weights are calculated and assigned to rules, so that
the results are predictable.
23
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.
24
of proprietary agreements. MySQL was owned and sponsored
by a single forprofit firm, the Swedish company MySQL AB, now
owned by Oracle Corporation .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, MySQL, Perl/PHP/Python." Free-
software-open source projects that require a full-featured
database management system often use MySQL. For
commercial use, several paid editions are available, and offer
additional functionality. Applications which use MySQL
databases
25
CHAPTER 3
SYSTEM DESIGN
TABLE DESIGN
26
branch VARCHAR(2 NULL
55)
section VARCHAR(2 NULL
55)
semeste VARCHAR(2 NULL
r 55)
section VARCHAR(2 NULL
)
yearofad INT(5) NULL
m
27
EVENT TABLE FOR EVENT INFORMATION
28
DATA FLOW DIAGRAMS
STUDENT
DATABASE
ENTER
ENTER USERNAME CHECK
STUDENT
URL & VALIDITY
PASSWORD
IF VALID
STUDENT
WEB SERVER LOGIN
PAGE
29
DATA FLOW DIAGRAM FOR BOOK ISSUE
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
30
DATA FLOW DIAGRAM FOR BOOK SEARCH
ENTER IF
SELECT
ADVANCE BOOK BOOK
HOME FOUND DETAILS
SEARCH DETAIL
BOOK
DATABASE
After the home page login there will be an option of the book
search where after entering book detail like author name,
publication, book name etc book details will be displayed.
31
DATA FLOW DIAGRAM FOR ACCOUNT CREATION
ADMIN STUDENT
DATABASE DATABASE
32
CHAPTER 4
SYSTEM IMPLEMENTATION
MODULE DESCRIPTION
33
Admin Module
ADMIN
STUDENT
TEACHER BOOK ADDITION REPORT
VALIDATION
REGISTRATION GENERATION
href="http://localhost/xampp/project/library/homepage.php">Ho
me</a></li> <li><a
href="http://localhost/xampp/project/library/newarrivals.php">Ne
w Arrivals</a></li> Code for entering admin username and
password
<?php
//Start session
session_start();
//Unset the variables stored in session
34
unset($_SESSION['SESS_FIRST_NAME']);
unset($_SESSION['SESS_LAST_NAME']);
?>
<!DOCTYPE html>
<html xml:lang="EN" lang="EN" dir="ltr">
<head>
<title>SOE LIBRARY INFORMATION SYSTEM</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="../styles/layout.css" type="text/css"
/>
<!-- Homepage Specific Elements -->
<script type="text/javascript" src="../scripts/jquery-
1.4.1.min.js"></script>
<script type="text/javascript" src="../scripts/jquery-ui-
1.7.2.custom.min.js"></script>
<script type="text/javascript"
src="../scripts/jquery.tabs.setup.js"></script>
<!-- End Homepage Specific Elements -->
</head>
<body id="top">
<div class="wrapper row1">
<div id="header" class="clear">
<div class="fl_left">
<h1><a href="homepage.php">SOE LIBRARY
MANAGEMENT
SYSTEM</a></h1>
35
<p></p>
</div>
<div class="fl_right">
<ul>
<li><a
href="http://localhost/xampp/project/library/homepage.php">Ho
me</a></li>
<li><a
href="http://localhost/xampp/project/library/contact/Contactus.ph
p">Contact
Us</a></li>
<li><a
href="http://localhost/xampp/project/library/egateway/egateway.
php">EGateway</a></li>
<li><a
href="http://localhost/xampp/project/library/studentlogin/studentl
ogin.php">Student
Login</a></li>
<li ><a href="teacherlogin.php">Teacherlogin</a></li>
<li><a
href="http://localhost/xampp/project/library/admin/adminlogin.ph
p">Adminlogin</a></ li> </ul>
<form action="#" method="post" id="sitesearch">
<fieldset>
<strong>Search:</strong>
<input type="text" value="Search Our webiste for books;"
onfocus="this.value=(this.value=='Search Our website for
books;')? '' : this.value ;" />
36
<input type="image" src="../images/search.gif"
id="search" alt="Search" /> </fieldset>
</form>
</div>
</div>
</div>
<!--
###################################################
####################
################################ -->
<div class="wrapper row2">
<div class="rnd">
<!-- ###### -->
<div id="topnav">
<ul>
<li class="active"><a
<li><a
href="http://localhost/xampp/project/library/onlinebooks.php">O
nline 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>
37
<li><a
href="http://localhost/xampp/project/library/bookissue.php">Boo
k Issue </a></li>
<li class="last"><a href="#"></a></li>
</ul>
</div>
<!-- ###### -->
</div>
</div>
<!--
###################################################
####################
################################ -->
<div class="wrapper">
<div id="featured_slide" class="clear">
<!-- ###### -->
<div class="overlay_left"></div>
<div id="featured_content">
<div class="featured_box" id="fc1"><img
src="../images/demo/slider/1.gif" alt="" />
<div class="floater">
<h2>All ABOUT SOE LIBRARY</h2>
<p>School oF Engineering Library or the S.O.E library is
one of the finest library in kerela having a good collection of
books related to various subjects</p> <p
class="readmore"><a href="#">Continue Reading
»</a></p>
38
</div>
</div>
<div class="featured_box" id= "fc2"><img
src="../images/demo/slider/2.gif" alt="" />
<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> <p
class="readmore"><a href="#">Continue Reading
»</a></p>
</div>
</div>
<div class="featured_box" id="fc3"><img
src="../images/demo/slider/3.gif" alt="" />
<div class="floater">
<h2>Collection</h2>
<p>School of Engineering Library has a collection of over
25000 books related to various subjects in engineering</p>
<p class="readmore"><a href="#">Continue Reading
»</a></p>
</div>
</div>
<div class="featured_box" id="fc4"><img
src="../images/demo/slider/4.gif" alt="" />
<div class="floater">
<h2>E-Repository</h2>
39
<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>
<p class="readmore"><a href="#">Continue Reading
»</a></p>
</div>
</div>
<div class="featured_box" id="fc5"><img
src="../images/demo/slider/5.gif" alt="" />
<div class="floater">
<h2>Latest News and events</h2>
<p></p>
<p class="readmore"><a href="#">Click here to go to
latest news page;</a></p> </div>
</div>
</div>
<ul id="featured_tabs">
<li><a href="#fc1">All About The Library</a></li>
<li><a href="#fc2">Existence</a></li>
<li><a href="#fc3">Collection of Books</a></li>
<li><a href="#fc4">E-Repository</a></li>
<li class="last"><a href="#fc5">Latest News &
Events</a></li>
</ul>
<div class="overlay_right"></div>
<!-- ###### -->
</div>
40
</div>
<!--
###################################################
####################
################################ -->
<div class="wrapper row3">
<div class="rnd">
<div id="container" class="clear">
<!--
###################################################
####################
################################ -->
<div id="homepage" class="clear">
<!-- ###### -->
<div id="left_column">
<h2>Sugeestion</h2>
<div class="imgholder"><a href="#"><img
src="../images/images/suggestions.jpg" alt="" /></a></div>
<h2>Book request</h2>
<div class="imgholder"><a href="#"><img
src="../images/images/bookrequest1.jpg" alt="" /></a></div>
<h2>Account creation</h2>
<div class="imgholder"><a href="#"><img
src="../images/images/account.jpg" alt="" /></a></div>
<h2>Photos</h2>
<div class="imgholder"><a href="#"><img
src="../images/images/photos.jpg" alt="" /></a></div>
41
</div>
<!-- ###### -->
<div id="latestnews">
<h2>Pls enter username and password to login</h2>
<table>
<form action="checklogin.php" method="post"><br><br>
Username:<input name="username" type="text"
maxlength="12"><br><br>
Password:<input name="password" type="password"
maxlength="12">
<input name="submit" type="submit">
</form>
</table>
</div>
<!-- ###### -->
42
<h2>Quickly Find What You Are Looking For</h2>
<div class="linkbox">
<ul>
<li><a
href="http://localhost/xampp/project/library/homepage.php">&ra
quo; Home</a></li>
<li><a
href="http://localhost/xampp/project/library/studentlogin.php">&r
aquo;
Student Login</a></li>
<li><a href="teacherlogin.php">» Teacher
Login</a></li>
<li><a
href="http://localhost/xampp/project/library/adminlogin.php">&ra
quo; Adminlogin</a></li>
<li><a
href="http://localhost/xampp/project/library/newarrival.php">&ra
quo; New Arrivals</a></li>
<li><a
href="http://localhost/xampp/project/library/onlinebooks.php">&r
aquo; Online Books</a></li>
<li><a
href="http://localhost/xampp/project/library/egallery.php">&raqu
o; EGallery</a></li>
<li><a
href="http://localhost/xampp/project/library/aboutus.php">&raqu
o; About Us</a></li>
<li><a
href="http://localhost/xampp/project/library/contactus.php">&raq
uo; Contact Us</a></li>
43
<li><a
href="http://localhost/xampp/project/library/questionpaper.php">
» Question Papers</a></li>
<li><a
href="http://localhost/xampp/project/library/latestnews.php">&ra
quo;
Latest Events & News</a></li>
</ul>
</div>
<!--
###################################################
####################
################################ -->
</div>
</div>
</div>
<!--
###################################################
####################
################################ -->
<!--
###################################################
####################
################################ -->
<div class="wrapper">
<div id="copyright" class="clear">
44
<p class="fl_left">Copyright © 2014 - All Rights
Reserved for SOE
LIBRARY-</p>
</div>
</div>
</body>
</html>
<?php
session_start();
$host="localhost"; // Host name
$username="root"; // Mysql username
$password=""; // Mysql password
$db_name="admin"; // Database name
$tbl_name="adminlogin"; // Table name
45
$result=mysql_query($sql);
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
$errmsg_arr[] = 'user name and password not found';
$errflag = true;
if($errflag) {
$_SESSION['ERRMSG_ARR']
= $errmsg_arr;
session_write_close();
header("location:
adminlogin.php"); exit();
}
}
?>
46
Code for student validation
<?php
require '../include/connection.php';
$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'];
}
mysqli_close($con);
?>
<?php
require '../include/connection1.php';
$admin="[email protected]";
$sql="INSERT INTO
student(Libid,regno,stuname,branch,semester,section,yearofad
m)
47
VALUES
('$libid','$regno','$name','$branch','$semester','$section','$yearofadm')";
$result="INSERT INTO
studentlogin(logid,username,password,numbooks)
VALUES
('$libid','$username','$password','')";
if (!mysqli_query($connection,$sql))
{
die('Error1: ' . mysqli_error($connection));
}
else if (!mysqli_query($connection,$result))
{
die('Error2: ' . mysqli_error($connection));
}
e
l
s
e
mail($email,"registrationdetails","you are registered pls
login with ur email id and password","From: $admin\n");
echo"added 1 record"; mysqli_close($connection);
?>
<?php
require '../include/connection.php';
$result = mysqli_query($con,"SELECT * FROM student");
while($row = mysqli_fetch_array($result))
{
$libid=$row['libid'] ;
48
$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'];
}
$sql=mysqli_query($con,"DELETE FROM student WHERE
libid='$libid'"); mysqli_close($con);
?>
<?php
$con=mysqli_connect("localhost","root","rahul#1991","library");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$loginid=$_POST['teacherid'];
$username=$_POST['username'];
$password=$_POST['password'];
49
$teachername=$_POST['teachername'];
$designation=$_POST['designation'];
$branch=$_POST['branch'];
$contactno=$_POST['contact'];
$lecture='';
$sql="INSERT INTO teacher (Tid, name, designation, branch,
contactno,lectures)
VALUES
(
$loginid,$teachername,$designation,$branch,$contactno,$lectu
re)";
$tql="INSERT INTO teacherlogin
($loginid,$username,$password)
VALUES
( $loginid,$username, $password)";
if (!mysqli_query($con,$sql))
{
echo "error";
}
if (!mysqli_query($con,$tql))
{
echo "error1";
}
echo "successs";
mysqli_close($con);
?>
50
Code for book addition
<?php
$con=mysqli_connect("localhost","root","","library");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
if (!mysqli_query($con,$sql))
{
echo "error";
}
echo "successs";
mysqli_close($con);
?>
<?php
$con=mysqli_connect("localhost","root","","admin");
51
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
if (!mysqli_query($con,$sql))
{
echo "error";
}
echo "successs";
mysqli_close($con); ?>
52
Screenshot for Admin login
Student Module
STUDENT
STUDENT
STUDENT LOGIN ONLINE BOOK EVENT ADDITION
REGISTRATION
RESERVATTION
53
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>
<html xml:lang="EN" lang="EN" dir="ltr">
<head>
<title>SOE LIBRARY INFORMATION SYSTEM</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="../styles/layout.css" type="text/css"
/>
<!-- Homepage Specific Elements -->
<script type="text/javascript" src="../scripts/jquery-
1.4.1.min.js"></script>
<script type="text/javascript" src="../scripts/jquery-
ui1.7.2.custom.min.js"></script>
<script type="text/javascript"
src="../scripts/jquery.tabs.setup.js"></script>
<!-- End Homepage Specific Elements -->
</head>
<body id="top">
<div class="wrapper row1">
<div id="header" class="clear">
54
<div class="fl_left">
<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">Ho
me</a></li>
<li><a
href="http://localhost/xampp/project/library/contact/Contactus.ph
p">Contact
Us</a></li>
<li><a
href="http://localhost/xampp/project/library/egateway/egateway.
php">EGateway</a></li>
<li><a
href="http://localhost/xampp/project/library/studentlogin/studentl
ogin.php">Student
Login</a></li>
<li ><a
href="http://localhost/xampp/project/library/teachrlogin/teacherlo
gin.php">Teacherl ogin</a></li>
<li><a
href="http://localhost/xampp/project/library/admin/adminlogin.ph
p">Adminlogin</a ></li>
55
</ul>
<form action="#" method="post" id="sitesearch">
<fieldset>
<strong>Search:</strong>
<input type="text" value="Search Our webiste for books;"
onfocus="this.value=(this.value=='Search Our website for
books;')? '' : this.value ;" />
<input type="image" src="../images/search.gif"
id="search" alt="Search" /> </fieldset>
</form>
</div>
</div>
</div>
<!--
###################################################
#################
################################### -->
<div class="wrapper row2">
<div class="rnd">
<!-- ###### -->
<div id="topnav">
<ul>
<li class="active"><a
href="homepage.php">Home</a></li>
<li><a href="newarrivals.php">New Arrivals</a></li>
<li><a href="onlinebooks.php">Online Books</a></li>
<li><a href="egallery.php">E Gallery</a></li>
<li><a href="questionpaper.php">Question Paper</a></li>
56
<li><a href="aboutus.php">About Us</a></li>
<li><a href="bookissue.php">Book Issue </a></li>
<li class="last"><a href="#"></a></li>
</ul>
</div>
<!-- ###### -->
</div>
</div>
<!--
###################################################
#################
################################### -->
<div class="wrapper">
<div id="featured_slide" class="clear">
<!-- ###### -->
<div class="overlay_left"></div>
<div id="featured_content">
<div class="featured_box" id="fc1"><img
src="../images/demo/slider/1.gif" alt="" />
<div class="floater">
<h2>All ABOUT SOE LIBRARY</h2>
<p>School oF Engineering Library or the S.O.E library is
one of the finest library in kerela having a good collection of
books related to various subjects</p>
<p class="readmore"><a href="#">Continue Reading
»</a></p>
</div>
</div>
57
<div class="featured_box" id= "fc2"><img
src="../images/demo/slider/2.gif" alt="" />
<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> <p
class="readmore"><a href="#">Continue Reading
»</a></p>
</div>
</div>
<div class="featured_box" id="fc3"><img
src="../images/demo/slider/3.gif" alt="" />
<div class="floater">
<h2>Collection</h2>
<p>School of Engineering Library has a collection of over
25000 books related to various subjects in engineering</p>
<p class="readmore"><a href="#">Continue Reading
»</a></p>
</div>
</div>
<div class="featured_box" id="fc4"><img
src="../images/demo/slider/4.gif" alt="" />
<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>
<p class="readmore"><a href="#">Continue Reading
»</a></p>
58
</div>
</div>
<div class="featured_box" id="fc5"><img
src="../images/demo/slider/5.gif" alt="" />
<div class="floater">
<h2>Latest News and events</h2>
<p></p>
<p class="readmore"><a href="#">Click here to go to
latest news page;</a></p>
</div>
</div>
</div>
<ul id="featured_tabs">
<li><a href="#fc1">All About The Library</a></li>
<li><a href="#fc2">Existence</a></li>
<li><a href="#fc3">Collection of Books</a></li>
<li><a href="#fc4">E-Repository</a></li>
<li class="last"><a href="#fc5">Latest News &
Events</a></li> </ul>
<div class="overlay_right"></div>
<!-- ###### -->
</div>
</div>
<!--
###################################################
#################
################################### -->
<div class="wrapper row3">
59
<div class="rnd">
<div id="container" class="clear">
<!--
###################################################
#################
################################### -->
<div id="homepage" class="clear">
<!-- ###### -->
<div id="left_column">
<h2>Sugeestion</h2>
<div class="imgholder"><a href="#"><img
src="../images/images/suggestions.jpg" alt="" /></a></div>
<h2>Book request</h2>
<div class="imgholder"><a href="#"><img
src="../images/images/bookrequest1.jpg" alt="" /></a></div>
<h2>Account creation</h2>
<div class="imgholder"><a href="#"><img
src="../images/images/account.jpg" alt="" /></a></div>
<h2>Photos</h2>
<div class="imgholder"><a href="#"><img
src="../images/images/photos.jpg" alt="" /></a></div>
</div>
<!-- ###### -->
<div id="latestnews">
<h2>ENTER YOUR DETAILS</h2>
<p><span class="error">* required field.</span></p>
60
<table>
<form action="insertaccount.php" method="POST">
<legend>Student Information:</legend>
<tr>
<td>Library Id:</td> <td><input type="text" name="libid"
size="30">
<span class="error">* </span><br><br></td>
</tr>
<tr>
<td>Registration No: </td> <td><input type="text"
name="regno" size="30">
<span class="error">* </span><br><br></td>
</tr>
<tr>
<td>Name: </td> <td> <input type="text" name="stuname"
size="30">
<span class="error">* </span><br><br></td>
</tr>
<tr>
<td>Branch: </td> <td> <select name="branch" size="1"
tabindex="7">
<option selected="selected">Computer Science</option>
<option>Electronics & Communication</option>
<option>Electrical & Electronics</option>
<option>Mechanical</option>
<option>Safety & Fire</option>
<option>Civil</option>
61
<option>Information Technology</option>
</select>
<span class="error">* </span><br><br></td>
</tr>
<tr>
<td>Semester: </td> <td><select name="semester" size="1"
tabindex="8">
<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>
<span class="error">* </span><br><br></td>
</tr>
<tr>
<td>Section: </td> <td><select name="section" size="1"
tabindex="2">
<option selected="selected">A</option>
<option>B</option>
</select>
<span class="error">* </span><br><br></td>
</tr>
<tr>
62
<td>Year of adm:</td> <td> <input
type="text"name="yearofadm" size="30">
<span class="error">* </span><br><br></td>
</tr>
<tr>
<td>Email:</td> <td> <input type="email"name="email"
size="30">
<span class="error">* </span><br><br></td>
</tr>
<tr>
<td>Username:</td> <td> <input type="text"name="username"
size="30">
<span class="error">* </span><br><br></td>
</tr>
<tr>
<td>Password:</td> <td> <input
type="password"name="password" size="30">
<span class="error">* </span><br><br></td>
</tr>
<tr>
<td><p>Click the submit</p></td>
</tr>
<tr>
<td height="40"><input type="submit" name= "submit"
value="submit" action=
"insertaccount.php"></td>
</tr>
63
</form>
</table>
</div>
<!-- ###### -->
64
; Student Login</a></li>
<li><a
href="http://localhost/xampp/project/library/teacherlogin/teacherl
ogin.php">»
; Teacher Login</a></li>
<li><a
href="http://localhost/xampp/project/library/adminlogin/adminlogi
n.php">»
Adminlogin</a></li>
<li><a
href="http://localhost/xampp/project/library/newarrivals/newarriv
als.php">»
New Arrivals</a></li>
<li><a
href="http://localhost/xampp/project/library/onlinebooks/onlinebo
oks">»
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
65
href="http://localhost/xampp/project/library/questionpaper/questi
onpaper.php">&ra quo; Question Papers</a></li>
<li><a
href="http://localhost/xampp/project/library/latestnews/latestnew
s.php">»
Latest Events & News</a></li>
</ul>
</div>
<!--
###################################################
#################
################################### -->
</div>
</div>
</div>
<!--
###################################################
#################
################################### -->
<!--
###################################################
#################
################################### -->
<div class="wrapper">
<div id="copyright" class="clear">
66
<p class="fl_left">Copyright © 2013 - All Rights
Reserved for SOE
LIBRARY-</p>
</div>
</div>
</body>
</html>
<?php
// define variables and set to empty values
$libidErr = $regnoErr = $stunameErr = $branchErr =
$semesterErr = $sectionErr =
$yearofadmErr = $usernameErr = $passwordErr = "";
$libid = $regno = $stuname = $branch = $semester = $section
= $yearofadm =
$username = $password = "";
if ($_SERVER["REQUEST_METHOD"] == "POST")
{
if (empty($_POST["libid"]))
{$libidErr = "libid is required";
echo $libidErr;
include("createaccount.php");
}
else
{$libid= test_input($_POST["libid"]);}
67
if (empty($_POST["regno"]))
{$regnoErr = "Registration number is required";
echo $regnoErr;
include("createaccount.php");
}
else
{$regno = test_input($_POST["regno"]);}
if (empty($_POST["stuname"]))
{ $stunameErr = "student name is
required"; echo $stunameErr;
include("createaccount.php");
}
else
{$stuname = test_input($_POST["stuname"]);}
if (empty($_POST["branch"]))
{$branchErr = " branch is
required" ; echo $branchErr;
include("createaccount.php");
}
else
{$branch = test_input($_POST["branch"]);
if (empty($_POST["semester"]))
{$semesterErr = "semester is
68
required"; echo $semesterErr;
include("createaccount.php");
}
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"]))
{$yearofadmErr = "year of adm. is
required"; echo $yearofadmErr;
include("createaccount.php");
}
else
{$yearofadm = test_input($_POST["yearofadm"]);
}
if (empty($_POST["username"]))
{$usernameErr = "username is
required"; echo $usernameErr;
include("createaccount.php");
}
69
else
{$username = test_input($_POST["username"]);
}
if (empty($_POST["password"]))
{$passwordErr = "password is
required"; echo $passwordErr;
include("createaccount.php");
}
else
{$password = test_input($_POST["password"]);}
function test_input($data)
{
$data = trim($data);
$data =
stripslashes($data);
$data =
htmlspecialchars($data);
return $data;
}
?>
<?php
$con=mysqli_connect("localhost","root","","admin");
// Check connection
70
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$sql="INSERT INTO
student(libid,regno,stuname,branch,semester,section,yearofad
m,email,username,pass word)
VALUES
('$_POST[libid]','$_POST[regno]','$_POST[stuname]','$_POST[
branch]','$_POST[s
emester]','$_POST[section]','$_POST[yearofadm]','$_POST[em
ail]','$_POST[userna me]','$_POST[password]')";
if (!mysqli_query($con,$sql))
{
die('Error: ' . mysqli_error($con));
}
echo "wait for conformation";
mysqli_close($con);
?>
<?php
//Start session
session_start();
71
//Unset the variables stored in session
unset($_SESSION['SESS_username']);
unset($_SESSION['SESS_password']);
?>
<!DOCTYPE html>
<html xml:lang="EN" lang="EN" dir="ltr">
<head>
<title>SOE LIBRARY INFORMATION SYSTEM</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="../styles/layout.css" type="text/css"
/>
<!-- Homepage Specific Elements -->
<script type="text/javascript" src="../scripts/jquery-
1.4.1.min.js"></script>
<script type="text/javascript" src="../scripts/jquery-
ui1.7.2.custom.min.js"></script>
<script type="text/javascript"
src="../scripts/jquery.tabs.setup.js"></script>
<!-- End Homepage Specific Elements -->
</head>
<body id="top">
<div class="wrapper row1">
<div id="header" class="clear">
<div class="fl_left">
<h1><a href="homepage.php">SOE LIBRARY
MANAGEMENT
SYSTEM</a></h1>
72
<p></p>
</div>
<div class="fl_right">
<ul>
<li><a
href="http://localhost/xampp/project/library/homepage.php">Ho
me</a></li>
<li><a
href="http://localhost/xampp/project/library/contact/Contactus.ph
p">Contact
Us</a></li>
<li><a
href="http://localhost/xampp/project/library/egateway/egateway.
php">EGateway</a></li>
<li><a
href="http://localhost/xampp/project/library/studentlogin/studentl
ogin.php">Student
Login</a></li>
<li ><a href="teacherlogin.php">Teacherlogin</a></li>
<li><a
href="http://localhost/xampp/project/library/admin/adminlogin.ph
p">Adminlogin</a
></li>
</ul>
<form action="#" method="post" id="sitesearch">
<fieldset>
<strong>Search:</strong>
<input type="text" value="Search Our webiste for books;"
73
onfocus="this.value=(this.value=='Search Our website for
books;')? '' : this.value ;" />
<input type="image" src="../images/search.gif"
id="search" alt="Search" /> </fieldset>
</form>
</div>
</div>
</div>
<!--
###################################################
#################
################################### -->
<div class="wrapper row2">
<div class="rnd">
<!-- ###### -->
<div id="topnav">
<ul>
<li class="active"><a
href="http://localhost/xampp/project/library/homepage.php">Ho
me</a></li> <li><a
href="http://localhost/xampp/project/library/newarrivals.php">Ne
w Arrivals</a></li>
<li><a
href="http://localhost/xampp/project/library/onlinebooks.php">O
nline
Books</a></li>
<li><a
href="http://localhost/xampp/project/library/egallery.php">E
Gallery</a></li>
74
<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>
<li><a
href="http://localhost/xampp/project/library/bookissue.php">Boo
k Issue </a></li>
<li class="last"><a href="#"></a></li>
</ul>
</div>
<!-- ###### -->
</div>
</div>
<!--
###################################################
#################
################################### -->
<div class="wrapper">
<div id="featured_slide" class="clear">
<!-- ###### -->
<div class="overlay_left"></div>
<div id="featured_content">
<div class="featured_box" id="fc1"><img
src="../images/demo/slider/1.gif" alt="" />
<div class="floater">
75
<h2>All ABOUT SOE LIBRARY</h2>
<p>School oF Engineering Library or the S.O.E library is
one of the finest library in kerela having a good collection of
books related to various subjects</p>
<p class="readmore"><a href="#">Continue Reading
»</a></p>
</div>
</div>
<div class="featured_box" id= "fc2"><img
src="../images/demo/slider/2.gif" alt="" />
<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> <p
class="readmore"><a href="#">Continue Reading
»</a></p>
</div>
</div>
<div class="featured_box" id="fc3"><img
src="../images/demo/slider/3.gif" alt="" />
<div class="floater">
<h2>Collection</h2>
<p>School of Engineering Library has a collection of over
25000 books related to various subjects in engineering</p>
<p class="readmore"><a href="#">Continue Reading
»</a></p>
</div>
</div>
<div class="featured_box" id="fc4"><img
src="../images/demo/slider/4.gif" alt="" />
76
<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>
<p class="readmore"><a href="#">Continue Reading
»</a></p>
</div>
</div>
<div class="featured_box" id="fc5"><img
src="../images/demo/slider/5.gif" alt="" />
<div class="floater">
<h2>Latest News and events</h2>
<p></p>
<p class="readmore"><a href="#">Click here to go to
latest news page;</a></p>
</div>
</div>
</div>
<ul id="featured_tabs">
<li><a href="#fc1">All About The Library</a></li>
<li><a href="#fc2">Existence</a></li>
<li><a href="#fc3">Collection of Books</a></li>
<li><a href="#fc4">E-Repository</a></li>
<li class="last"><a href="#fc5">Latest News &
Events</a></li> </ul>
<div class="overlay_right"></div>
<!-- ###### -->
77
</div>
</div>
<!--
###################################################
#################
################################### -->
<div class="wrapper row3">
<div class="rnd">
<div id="container" class="clear">
<!--
###################################################
#################
################################### -->
<div id="homepage" class="clear">
<!-- ###### -->
<div id="left_column">
<h2>Sugeestion</h2>
<div class="imgholder"><a href="#"><img
src="../images/images/suggestions.jpg" alt="" /></a></div>
<h2>Book request</h2>
<div class="imgholder"><a href="#"><img
src="../images/images/bookrequest1.jpg" alt="" /></a></div>
<h2>Account creation</h2>
<div class="imgholder"><a href="#"><img
src="../images/images/account.jpg" alt="" /></a></div>
<h2>Photos</h2>
78
<div class="imgholder"><a href="#"><img
src="../images/images/photos.jpg" alt="" /></a></div>
</div>
<!-- ###### -->
<div id="latestnews">
<h2>Pls enter username and password to login</h2>
<table>
<form action="checklogin.php" method="post"><br><br>
Username:<input name="username" type="text"
maxlength="12"><br><br>
Password:<input name="password" type="password"
maxlength="12">
<input name="submit" type="submit">
</form>
</table>
</div>
<!-- ###### -->
79
################################### -->
<div id="academiclinks" class="clear">
<h2>Quickly Find What You Are Looking For</h2>
<div class="linkbox">
<ul>
<li><a
href="http://localhost/xampp/project/library/homepage.php">&ra
quo;
Home</a></li>
<li><a
href="http://localhost/xampp/project/library/studentlogin.php">&r
aquo; Student
Login</a></li>
<li><a href="teacherlogin.php">» Teacher
Login</a></li>
<li><a
href="http://localhost/xampp/project/library/adminlogin.php">&ra
quo;
Adminlogin
</a></li>
<li><a
href="http://localhost/xampp/project/library/newarrival.php">&ra
quo; New
Arrivals</a></li>
<li><a
href="http://localhost/xampp/project/library/onlinebooks.php">&r
aquo; Online
Books</a></li>
80
<li><a
href="http://localhost/xampp/project/library/egallery.php">&raqu
o; E-Gallery</a></li>
<li><a
href="http://localhost/xampp/project/library/aboutus.php">&raqu
o; About Us</a></li>
<li><a
href="http://localhost/xampp/project/library/contactus.php">&raq
uo;
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">&ra
quo;
Latest Events & News</a></li>
</ul>
</div>
<!--
###################################################
#################
################################### -->
</div>
</div>
</div>
<!--
81
###################################################
#################
################################### -->
<!--
###################################################
#################
################################### -->
<div class="wrapper">
<div id="copyright" class="clear">
<p class="fl_left">Copyright © 2014 - All Rights
Reserved for SOE LIBRARY-</p>
</div>
</div>
</body>
</html>
<?php
session_start();
$host="localhost"; // Host name
$username="root"; // Mysql username
$password=""; // Mysql password
$db_name="library"; // Database name
$tbl_name="studentlogin"; // Table name
82
mysql_connect("$host", "$username", "$password")or
die("cannot connect"); mysql_select_db("$db_name")or
die("cannot select DB");
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:studentlo
gin1.php"); exit(); }else {
//Login failed
$errmsg_arr[] = 'user name and password not found';
$errflag = true;
if($errflag) {
83
$_SESSION['ERRMSG_ARR'] =
$errmsg_arr;
session_write_close();
header("location:
studentlogin.php"); exit();
}
}
?>
<?php
$con=mysqli_connect("localhost","root","","admin");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$sql="INSERT INTO
event(Name,date,time,venue,mname,contactno,email)
VALUES
('$_POST[ename]','$_POST[date]','$_POST[time]','$_POST[ven
ue]','$_POST[name
]','$_POST[phno]','$_POST[email]')";
if (!mysqli_query($con,$sql))
{
die('Error: ' . mysqli_error($con));
84
}
echo "wait for conformation";
mysqli_close($con);
?>
Book Module
BOOK
MAINTENANCE
85
The following module contains various facilities like add new
book and search book. In the ‘add new book’ section if any
new book comes in the library then the librarian can add its
specifications. Similarly if the user wants to search for a
specific book then he/she can use search book option to do it.
<?php
$con=mysqli_connect("localhost","root","","library");
// Check
connection if
(mysqli_connect
_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
if (!mysqli_query($con,$sql))
{
86
echo "error";
}
echo "successs";
mysqli_close($con);
?>
<?php
$con=mysqli_connect("localhost","root","","admin");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
if (!mysqli_query($con,$sql))
{
echo "error";
}
echo "successs";
mysqli_close($con);
87
?>
<!DOCTYPE html>
<html xml:lang="EN" lang="EN" dir="ltr">
<head>
<title>SOE LIBRARY INFORMATION SYSTEM</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="../styles/layout.css" type="text/css"
/>
<!-- Homepage Specific Elements -->
<script type="text/javascript" src="../scripts/jquery-
1.4.1.min.js"></script>
<script type="text/javascript" src="../scripts/jquery-ui-
1.7.2.custom.min.js"></script>
<script type="text/javascript"
src="../scripts/jquery.tabs.setup.js"></script>
<!-- End Homepage Specific Elements -->
</head>
<body id="top">
<div class="wrapper row1">
<div id="header" class="clear">
<div class="fl_left">
<h1><a href="homepage.php">SOE LIBRARY
MANAGEMENT SYSTEM</a></h1>
88
<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.ph
p">Contact Us</a></li>
<li><a
href="http://localhost/xampp/project/library/egateway/egateway.
php">EGateway</a></li>
<li><a
href="http://localhost/xampp/project/library/studentlogin/studentl
ogin.php">Student
Login</a></li>
<li ><a
href="http://localhost/xampp/project/library/teachrlogin/teacherlo
gin.php">Teacherlogi n</a></li>
<li><a
href="http://localhost/xampp/project/library/admin/adminlogin.ph
p">Adminlogin</a></ li> </ul>
<form action="#" method="post" id="sitesearch">
<fieldset>
<strong>Search:</strong>
<input type="text" value="Search Our webiste for books;"
onfocus="this.value=(this.value=='Search Our website for
books;')? '' : this.value ;" />
<input type="image" src="images/search.gif" id="search"
alt="Search" /> </fieldset>
89
</form>
</div>
</div>
</div>
<!--
###################################################
####################
################################ -->
<div class="wrapper row2">
<div class="rnd">
<!-- ###### -->
<div id="topnav">
<ul>
<li class="active"><a
href="homepage.php">Home</a></li>
<li><a
href="http://localhost/xampp/project/library/newarrivals/newarriv
als.php">New
Arrivals</a></li>
<li><a
href="http://localhost/xampp/project/library/onlinebooks/onlinebo
oks.php">Online Books</a></li>
<li><a
href="http://localhost/xampp/project/library/egallery/egallery.php
">E
Gallery</a></li>
<li><a
90
href="http://localhost/xampp/project/library/questionpaper/questi
onpaper.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.ph
p">Book
Issue </a></li>
<li class="last"><a href="#"></a></li>
</ul>
</div>
<!-- ###### -->
</div>
</div>
<!--
###################################################
####################
################################ -->
<div class="wrapper">
<div id="featured_slide" class="clear">
<!-- ###### -->
<div class="overlay_left"></div>
<div id="featured_content">
<div class="featured_box" id="fc1"><img
src="../images/demo/slider/12.gif" alt="" />
<div class="floater">
<h2>All ABOUT SOE LIBRARY</h2>
91
<p>School oF Engineering Library or the S.O.E library is
one of the finest library in kerela having a good collection of
books related to various subjects</p> <p
class="readmore"><a href="#">Continue Reading
»</a></p>
</div>
</div>
<div class="featured_box" id= "fc2"><img
src="../images/demo/slider/21.gif" alt="" />
<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> <p
class="readmore"><a href="#">Continue Reading
»</a></p>
</div>
</div>
<div class="featured_box" id="fc3"><img
src="../images/demo/slider/31.gif" alt="" />
<div class="floater">
<h2>Collection</h2>
<p>School of Engineering Library has a collection of over
25000 books related to various subjects in engineering</p>
<p class="readmore"><a href="#">Continue Reading
»</a></p>
</div>
</div>
92
<div class="featured_box" id="fc4"><img
src="../images/demo/slider/41.gif" alt="" />
<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>
<p class="readmore"><a href="#">Continue Reading
»</a></p>
</div>
</div>
<div class="featured_box" id="fc5"><img
src="../images/demo/slider/51.gif" alt="" />
<div class="floater">
<h2>Latest News and events</h2>
<p></p>
<p class="readmore"><a href="#">Click here to go to
latest news page;</a></p> </div>
</div>
</div>
<ul id="featured_tabs">
<li><a href="#fc1">All About The Library</a></li>
<li><a href="#fc2">Existence</a></li>
<li><a href="#fc3">Collection of Books</a></li>
<li><a href="#fc4">E-Repository</a></li>
<li class="last"><a href="#fc5">Latest News &
Events</a></li>
93
</ul>
<div class="overlay_right"></div>
<!-- ###### -->
</div>
</div>
<!--
###################################################
####################
################################ -->
<div class="wrapper row3">
<div class="rnd">
<div id="container" class="clear">
<!--
###################################################
####################
################################ -->
<div id="homepage" class="clear">
<!-- ###### -->
<div id="left_column">
<h2>Sugeestion</h2>
<div class="imgholder"><a href="#"><img
src="../images/images/suggestions.jpg" alt="" /></a></div>
<h2>Book request</h2>
<div class="imgholder"><a href="#"><img
src="../images/images/bookrequest1.jpg" alt="" /></a></div>
<h2>Account
creation</h2> <div
class="imgholder"><a
94
href="http://localhost/xampp/project/library/create/createaccount
.php"><img src="../images/images/account.jpg" alt=""
/></a></div>
<h2>Photos</h2>
<div class="imgholder"><a href="#"><img
src="../images/images/photos.jpg" alt="" /></a></div>
</div>
<!-- ###### -->
<div id="latestnews">
<h2>ENTER BOOK DETAILS</h2>
<table>
<form action="advancesearchresult.php" method="POST">
<legend>Book Information:</legend>
<tr>
<td>Book Code:</td> <td><input type="text" name="bookcode"
size="30"><br><br></td>
</tr>
<tr>
<td>Book Name: </td> <td><input type="text"
name="bookname" size="30"><br><br></td>
</tr>
<tr>
<td>Publication: </td> <td> <input type="text"
name="publication" size="30"><br><br></td>
</tr>
<tr>
95
<td>Author Name: </td> <td> <input
type="text"name="authorname" size="30"><br><br></td>
</tr>
<tr>
<td><p>Click the submit</p></td>
</tr>
<tr>
<td height="40"><input type="submit" name= "submit"
value="submit" action=
"insertaccount.php"></td>
</tr>
</form>
</table>
<!--
96
###################################################
####################
################################ -->
<!--
###################################################
####################
################################ -->
<div id="academiclinks" class="clear">
<h2>Quickly Find What You Are Looking For</h2>
<div class="linkbox">
<ul>
<li><a
href="http://localhost/xampp/project/library/homepage.php">&ra
quo; Home</a></li>
<li><a
href="http://localhost/xampp/project/library/studentlogin.php">&r
aquo; Student Login</a></li>
<li><a
href="http://localhost/xampp/project/library/teacherlogin.php">&r
aquo; Teacher Login</a></li>
<li><a
href="http://localhost/xampp/project/library/adminlogin.php">&ra
quo; Adminlogin</a></li>
<li><a
href="http://localhost/xampp/project/library/newarrivals.php">&r
aquo; New Arrivals</a></li>
<li><a
href="http://localhost/xampp/project/library/onlinebooks.php">&r
aquo; Online Books</a></li>
97
<li><a
href="http://localhost/xampp/project/library/egallery.php">&raqu
o; EGallery</a></li>
<li><a
href="http://localhost/xampp/project/library/aboutus.php">&raqu
o; About Us</a></li>
<li><a
href="http://localhost/xampp/project/library/contactus.php">&raq
uo; 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">&ra
quo; Latest Events & News</a></li>
</ul>
</div>
<!--
###################################################
####################
################################ -->
</div>
</div>
</div>
<!--
###################################################
####################
################################ -->
98
<!--
###################################################
####################
################################ -->
<div class="wrapper">
<div id="copyright" class="clear">
<p class="fl_left">DEVELOPER:
VIKRAM,RAHUL,PRABHAKAR,RAJAT</p>
</div>
</div>
</body>
</html>
<?php
$con=mysqli_connect("localhost","root","","library");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$code=$_POST['bookcode'];
$name=$_POST['bookname'];
$aname=$_POST['authorname'];
$publication=$_POST['publication'];
$result = mysqli_query($con,"SELECT * FROM books WHERE
code = '$code' || bookname = '$name' || author = '$aname' ||
publication = '$publication'");
99
echo "<table border='1'>
<tr>
<th>Book code</th>
<th>Book Name</th>
<th>Author</th>
<th>Publication</th>
<th>Subject</th>
<th>No of Books</th>
</tr>";
while($row = mysqli_fetch_array($result))
{ echo "<tr>"; echo "<td>" .
$row['code'] . "</td>"; echo
"<td>" . $row['bookname'] .
"</td>"; echo "<td>" .
$row['author'] . "</td>"; echo
"<td>" . $row['publication'] .
"</td>"; echo "<td>" .
$row['subject'] . "</td>"; echo
"<td>" . $row['numberofbooks'] .
"</td>"; echo "</tr>";
}
echo "</table>";
mysqli_close($con);
?>
100
Book Transaction Module
BOOK
TRANSACTION
ISSUE BOOK
RETURN BOOK CHECK
RESERVATION
<?php
require'../include/connection1.php';
$result = mysqli_query($connection,"SELECT * FROM
studentlogin"); while($row =
mysqli_fetch_array($result))
{
$libid=$row['logid'] ;
$username= $row['username'];
$password= $row['password'];
101
$numbooks=$row['numbooks'];
}
if($numbooks>3)
{
echo"cannnot issue books limit exceeded";
}
else
{
$libid=$_POST['libid'];
$bookid=$_POST['bookid'];
$issuedate=$_POST['issuedate'];
$returndate=date_add($issuedate,date_interval_create_from_d
ate_string("15 days"));
$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'");
mysqli_query($connection,"UPDATE book SET
numberofbooks=numberofbo
oks-1 WHERE
code='$bookid'");
if (!mysqli_query($connection,$sql))
{
die('Error1: ' . mysqli_error($connection));
102
}
else
echo"added 1 record";
}
mysqli_close($connection);
?>
<?php
require'../include/connection1.php';
$libid=$_POST['libid'];
$bookid=$_POST['bookid'];
$result = mysqli_query($connection,"SELECT * FROM
issuebooks where libid= '$libid' && bookid='$bookid'");
$rowcount=mysqli_num_rows($result);
if($rowcount>0)
{
$sql=mysqli_query($connection,"UPDATE studentlogin
SET numbooks=numbooks-1
WHERE logid='$libid'");
$sql1=mysqli_query($connection,"UPDATE book
SET numberofbooks=numberofbooks+1
WHERE code='$bookid'");
$sql2=mysqli_query($connection,"DELETE FROM
issuebooks WHERE libid=$libid && bookid='$bookid'");
103
}
else
echo"no book issued";
mysqli_close($connection);
?>
104
Report Module
REPORT
STUDENT REPORT
BOOK REPORT TRANSACTION
REPORT
<?php
require '../include/connection1.php';
$result = mysqli_query($connection,"SELECT *
FROM student");
$count=mysqli_num_rows($result);
echo "<table border='1'
style='width=100px'>
<tr>
105
<td>Libraryid</td>
<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>"; echo "<td>" .
$row['libid'] . "</td>"; echo
"<td>" . $row['regno'] .
"</td>"; echo "<td>" .
$row['stuname'] . "</td>";
echo "<td>" .
$row['branch'] . "</td>";
echo "<td>" .
$row['semester'] . "</td>";
echo "<td>" . $row['section'] .
"</td>"; echo "<td>" .
$row['yearofadm'] . "</td>";
echo"</tr>";
}
$count=$count-1;
}
mysqli_close($connection);
106
?>
</ta
ble
>
<?php
require '../include/connection1.php';
$result = mysqli_query($connection,"SELECT * FROM
issuebooks order by libid");
$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)
{
while($row = mysqli_fetch_array($result))
{echo "<tr>"; echo "<td>" .
$row['libid'] . "</td>"; echo
"<td>" . $row['bookid'] .
107
"</td>"; echo "<td>" .
$row['issuedate'] . "</td>";
echo "<td>" .
$row['returndate'] . "</td>";
echo"</tr>";
}
$count=$count-1;
}
mysqli_close($connection);
?>
</table>
<?php
require '../include/connection1.php';
$result = mysqli_query($connection,"SELECT * FROM
books")
$count=mysqli_num_ro
ws($result); echo
"<table border='1'
style='width=100px'>
<tr>
<td>Book Id</td>
<td>Name</td>
<td>Publication</td>
108
<td>Author</td>
<td>Subject</td>
<td>Number Of Books</td>
</tr>";
while($
count>
0)
{
while($row = mysqli_fetch_array($result))
{echo "<tr>"; echo
"<td>" . $row['code'] .
"</td>"; echo "<td>" .
$row['bookname'] .
"</td>"; echo "<td>" .
$row['publication'] .
"</td>"; echo "<td>" .
$row['author'] . "</td>";
echo "<td>" .
$row['subject'] . "</td>";
echo "<td>" .
$row['numberofbooks'] .
"</td>"; echo"</tr>";
}
$count=$count-1;
}
mysqli_close($connection);
?></table>
109
CHAPTER 5
SYSTEM TESTING
UNIT TESTING
110
1. Test For the admin module
• 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
otherwise if any of data is wrong it will get redirected back to the
login page and again ask for username and password
• 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 .
111
• Test for account creation- This form is used for new account
creation when student does not fill the form completely it asks
again to fill the whole form when he fill the form fully it gets
redirected to page which show waiting for conformation message
as his data will be only added by administrator after verification.
INTEGRATION TESTING
112
CHAPTER 6
113
LIMITATION
Without computers, as some libraries are, all of them are dependent on paper
work. When compared to computerized systems, data backup and data
retrieval systems are inefficient and labour intensive.
Researching which new books are required by users becomes very difficult,
and again, labor intensive. Librarians must be consulted directly to find out the
availability of a book since it may already be issued to some other library user.
Furthermore, acquiring hard data on user trends and interests within the library
again becomes very hard with a paper-based system. Forms will need to be
designed, printed off and handed out. This is the kind of work that an online,
library-based survey would improve on hugely.
114
BIBLIOGRAPHY
▪ 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, PHI learning
▪ Web development and application development by Ivan Byross BPB
publications
115