AJU190914 Removed
AJU190914 Removed
members. add update books, and manage check in specifications for the systems based on the
client's statement of need.
This is a typical management Information system (MIS), its Development include the
establishment and maintenance of back-end database and front-end application development
aspects. For the former require the establishment of data consistency and integrity of the
strong data security and good libraries. As for the latter requires the application fully
INTRODUCTION
The purpose of the Library Management system is to allow for storing details of a large
number of books, magazines, Journals, thesis and allow for add, search, borrow, return
facilities separately to administrator/Librarian, staff and students.
The main objective of the Library Management System is to manage the details of Address,
Member, Issues, Books, Student. It manages all the information about Address, Librarian,
Student, Address. The project is totally built at administrative end and thus only the
administrator is guaranteed the ac cess. The purpose of the project is to build an application
program to reduce the manual work for managing the Address, Member, Librarian, Issues. It
tracks all the details about the Issues, Books, Student.
1.2 MOTIVATION
Libraries are essential in a process of giving citizens access to knowledge. In digital times
they are needed more than ever before. In our country, library systems are written that's why
we make a great use of paper. By making paper we cut trees. It is very harmful for our
environment. For our environment, we take this step to reduce this.
The application will allow the admin to sign in into the page by using their id and password
set by them to insert books, update the book quantity, can also update the book edition and
can delete the book. The student can search their book-by-book name and can issue the book
or can return the book if issued earlier.
A user will have to sign in first by giving the username and password to get to the admin
interface. The admin interface or the web page will involve 4 fields, to add new books, to
update book quantity and edition and to delete the book.
The student interface or the web page will involve 3 fields, to search books by name, to issue
book and to return book.
-2-
1.4 HARWARE INTERFACE
RAM: - 512MB
HARD DISK: 40 GB
The application can run in any system having an updated version of a web browser and a
local web server such as XAMPP where we can deploy and test the application that can run
our code and give us the intended layout.
-3-
CHAPTER II
2.1 EXISTING SYSTEM
In the available Online Library Management System, librarian maintains the details of each
book on the registers so to find out the number of books available in the library they need to
go to check the entire entry which makes the process slow.
While they need to spend an extra hour to maintain the records of books. For a student who
wants to know about a book in the library need to search the entire book section. The student
needs to check the status of the book means the last date of book; how many books has issued
This project will help the students and Admin to maintain the details of the library.
It will assist the admin before the shortage of books while they can know the details of the
number of currently available in the library according to the author by accessing the system.
A student can view the details of the book issued by them, and the system will notify the
students about the last date of submission of books.
At the time of issue of a book, the student will get assisted by the system about different
authors of a similar book so that they can get the best available book from the library.
4.Fine Check
5.Look and Feel Environment All the manual difficulties in managing the library have been
rectified by implementing computerization.
-4-
CHAPTER III
Description of features
This feature used by the user to login to 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.
Functional requirements
-user id is provided by the authorities
-The system must only allow user with user id and password to enter the system
-The system performs authorization process which decides what user level can access
-The user must be able to logout after they finished using system.
Functional requirements
System must be able to verify information System must be able to enter number of
copies into table
-Systems must be able to not allow two books having same book id
• Product Requirements
Efficiency Requirement
When a library management system will be implemented librarian and user will
easily access library as searching and book transaction will be very faster.
-5-
Reliability Requirement
The system should accurately perform member registration member validation, report
generation, book transaction and search
Usability Requirement
The system is designed for a user-friendly environment so that student and staff of
library can perform the various tasks easily and in an effective way.
Delivery Requirements
The whole system is expected to be delivered in six months of time with a weekly
evaluation by the project guide.
-6-
Data Flow Diagram
0 Level DFD
-7-
1 Level DFD
-8-
2 Level DFD
-9-
E-R Diagram
- 10 -
Flow Chart
- 11 -
3.3 NORMALIZATION
- 12 -
CHAPTER IV
4. TESTING
Testing is one of the most important parts of software engineering. During requirement
analysis and design, the output is a document that is usually textual and not executable. After
the coding phase, computer programs are available that can be executed for testing purpose.
This implies that te
sting not only, has to uncover errors introduced during coding, but also errors introduced
during previous phase. Thus, the goal of testing is to uncover the requirements, design and
coding errors in the programs. The source code declared above for the program of ‘Library
Management System ‘has-been tested several times and all the functionalities are working
perfectly without any error.
Testing of the software as a mean of accessing or measuring the software to determine its
quality. The area of testing is one of the key process areas in ensuring the quality of the
software known as Software Quality Assurance (SQA).
Testing is done with one primary objective to ensure the quality of the software before it is
actually implemented. The main purpose of testing from developer’s point of view is to gain
confidence. If no error is found at least he is sure that the product under development is
meeting it required goals in terms of quality.
There is no way to find when to stop testing however people have followed certain norms
and guidelines over the course of time. They are as follows:
Based on the size of the system, “enough” errors have been found where “enough” can
be a quantitative parameter based on historical data.
- 13 -
4.2 INTEGREATION TESTING
The last step was to integrate the various modules in the software. We implemented top-
down integration. The integration was performed in five steps:
The main control module was used as test driver and stubs were substituted for all
components directly subordinate to the main control module.
Depending on depth first search subordinate stubs was replaced with actual components.
- 14 -
CHAPTER V
Admin Pannel
- 15 -
- 16 -
- 17 -
User Pannel
- 18 -
- 19 -
5.2 DATA BASE DEGINE
• Data independence
• Performance
- 20 -
SOURCE CODE OF INDEX PAGE:
--
CREATETABLE `admin`(
`id` int(11)NOTNULL,
`FullName` varchar(100)DEFAULTNULL,
`AdminEmail` varchar(120)DEFAULTNULL,
`UserName` varchar(100)NOTNULL,
`Password` varchar(100)NOTNULL,
`updationDate` timestampNOTNULLDEFAULT'0000-00-00
00:00:00'ONUPDATEcurrent_timestamp()
--
--
(1,'Anuj Kumar','[email protected]','admin','f925916e2754e5e03f75dd58a5733251','2022-
01-08 06:03:56');
-- --------------------------------------------------------
- 21 -
--
--
CREATETABLE `tblauthors`(
`id` int(11)NOTNULL,
`AuthorName` varchar(159)DEFAULTNULL,
`creationDate` timestampNULLDEFAULTcurrent_timestamp(),
`UpdationDate` timestampNULLDEFAULTNULLONUPDATEcurrent_timestamp()
--
--
- 22 -
(14,'Herbert Schildt','2022-01-22 07:23:03',NULL);
-- --------------------------------------------------------
--
--
CREATETABLE `tblbooks`(
`id` int(11)NOTNULL,
`BookName` varchar(255)DEFAULTNULL,
`CatId` int(11)DEFAULTNULL,
`AuthorId` int(11)DEFAULTNULL,
`ISBNNumber` varchar(25)DEFAULTNULL,
`BookPrice` decimal(10,2)DEFAULTNULL,
`bookImage` varchar(250)NOTNULL,
`isIssued` int(1)DEFAULTNULL,
`RegDate` timestampNULLDEFAULTcurrent_timestamp(),
`UpdationDate` timestampNULLDEFAULTNULLONUPDATEcurrent_timestamp()
--
--
- 23 -
INSERTINTO `tblbooks`(`id`, `BookName`, `CatId`, `AuthorId`, `ISBNNumber`,
`BookPrice`, `bookImage`, `isIssued`, `RegDate`, `UpdationDate`)VALUES
(6, 'WordPress for Beginners 2022: A Visual Step-by-Step Guide to Mastering WordPress', 5,
10, 'B019MO3WCM', '100.00', '144ab706ba1cb9f6c23fd6ae9c0502b3.jpg', NULL, '2022-01-
22 07:16:07', '2022-01-22 07:20:49'),
(8, 'Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and
Middle Class Do Not', 8, 12, 'B07C7M8SX9', '120.00',
'52411b2bd2a6b2e0df3eb10943a5b640.jpg', NULL, '2022-01-22 07:20:39', NULL),
(9, 'The Girl Who Drank the Moon', 8, 13, '1848126476', '200.00',
'f05cd198ac9335245e1fdffa793207a7.jpg', NULL, '2022-01-22 07:22:33', NULL),
(10, 'C++: The Complete Reference, 4th Edition', 5, 14, '007053246X', '142.00',
'36af5de9012bf8c804e499dc3c3b33a5.jpg', 0, '2022-01-22 07:23:36', '2022-01-22 08:18:22'),
-- --------------------------------------------------------
--
- 24 -
-- Table structure for table `tblcategory`
--
--
--
-- --------------------------------------------------------
- 25 -
--
--
--
--
- 26 -
(12, 10, 'SID012', '2022-01-22 08:18:08', '2022-01-22 08:18:22', 1, 5);
-- --------------------------------------------------------
--
--
--
--
- 27 -
(1, 'SID002', 'Anuj kumar', '[email protected]', '9865472555',
'f925916e2754e5e03f75dd58a5733251', 1, '2022-01-02 07:23:03', '2022-01-22 16:25:45'),
--
--
--
--
--
--
- 28 -
ADD PRIMARY KEY (`id`);
--
--
--
--
--
--
--
--
- 29 -
--
--
--
--
--
--
--
--
--
--
- 30 -
ALTER TABLE `tblcategory`
--
--
--
--
COMMIT;
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if($_SESSION['alogin']!=''){
- 31 -
$_SESSION['alogin']='';
if(isset($_POST['login']))
$username=$_POST['username'];
$password=md5($_POST['password']);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() >0)
$_SESSION['alogin']=$_POST['username'];
} else{
?>
<!DOCTYPEhtml>
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metacharset="utf-8"/>
- 32 -
<metaname="viewport"content="width=device-width, initial-scale=1, maximum-scale=1"/>
<metaname="description"content=""/>
<metaname="author"content=""/>
<linkhref="assets/css/bootstrap.css"rel="stylesheet"/>
<linkhref="assets/css/font-awesome.css"rel="stylesheet"/>
<linkhref="assets/css/style.css"rel="stylesheet"/>
<linkhref='http://fonts.googleapis.com/css?family=Open+Sans'rel='stylesheet'type='text/cs
s'/>
</head>
<body>
<?phpinclude('includes/header.php');?>
<divclass="content-wrapper">
<divclass="container">
<divclass="row pad-botm">
<divclass="col-md-12">
</div>
</div>
- 33 -
<!--LOGIN PANEL START-->
<divclass="row">
<divclass="panel panel-info">
<divclass="panel-heading">
LOGIN FORM
</div>
<divclass="panel-body">
<formrole="form"method="post">
<divclass="form-group">
<label>Enter Username</label>
<inputclass="form-control"type="text"name="username"autocomplete="off"required/>
</div>
<divclass="form-group">
<label>Password</label>
<inputclass="form-control"type="password"name="password"autocomplete="off"required/>
</div>
</form>
</div>
</div>
</div>
</div>
- 34 -
<!---LOGIN PABNEL END-->
</div>
</div>
<?phpinclude('includes/footer.php');?>
<scriptsrc="assets/js/jquery-1.10.2.js"></script>
<scriptsrc="assets/js/bootstrap.js"></script>
<scriptsrc="assets/js/custom.js"></script>
</script>
</body>
</html>
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if($_SESSION['alogin']!=''){
$_SESSION['alogin']='';
if(isset($_POST['login']))
- 35 -
$username=$_POST['username'];
$password=md5($_POST['password']);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() >0)
$_SESSION['alogin']=$_POST['username'];
} else{
?>
<!DOCTYPEhtml>
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metacharset="utf-8"/>
<metaname="description"content=""/>
<metaname="author"content=""/>
- 36 -
<!-- BOOTSTRAP CORE STYLE -->
<linkhref="assets/css/bootstrap.css"rel="stylesheet"/>
<linkhref="assets/css/font-awesome.css"rel="stylesheet"/>
<linkhref="assets/css/style.css"rel="stylesheet"/>
<linkhref='http://fonts.googleapis.com/css?family=Open+Sans'rel='stylesheet'type='text/cs
s'/>
</head>
<body>
<?phpinclude('includes/header.php');?>
<divclass="content-wrapper">
<divclass="container">
<divclass="row pad-botm">
<divclass="col-md-12">
</div>
</div>
<divclass="row">
- 37 -
<divclass="panel panel-info">
<divclass="panel-heading">
LOGIN FORM
</div>
<divclass="panel-body">
<formrole="form"method="post">
<divclass="form-group">
<label>Enter Username</label>
<inputclass="form-control"type="text"name="username"autocomplete="off"required/>
</div>
<divclass="form-group">
<label>Password</label>
<inputclass="form-control"type="password"name="password"autocomplete="off"required/>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
- 38 -
</div>
<?phpinclude('includes/footer.php');?>
<scriptsrc="assets/js/jquery-1.10.2.js"></script>
<scriptsrc="assets/js/bootstrap.js"></script>
<scriptsrc="assets/js/custom.js"></script>
</script>
</body>
</html>
?php
require_once("includes/config.php");
if(!empty($_POST["emailid"])) {
$email= $_POST["emailid"];
if (filter_var($email, FILTER_VALIDATE_EMAIL)===false) {
else {
- 39 -
$query-> execute();
$cnt=1;
echo "<script>$('#submit').prop('disabled',true);</script>";
} else{
echo "<script>$('#submit').prop('disabled',false);</script>";
?>
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['login'])==0)
header('location:index.php');
else{?>
- 40 -
<!DOCTYPEhtml>
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metacharset="utf-8"/>
<metaname="description"content=""/>
<metaname="author"content=""/>
<linkhref="assets/css/bootstrap.css"rel="stylesheet"/>
<linkhref="assets/css/font-awesome.css"rel="stylesheet"/>
<linkhref="assets/css/style.css"rel="stylesheet"/>
<linkhref='http://fonts.googleapis.com/css?family=Open+Sans'rel='stylesheet'type='text/cs
s'/>
</head>
<body>
<?phpinclude('includes/header.php');?>
<divclass="content-wrapper">
<divclass="container">
<divclass="row pad-botm">
- 41 -
<divclass="col-md-12">
<h4class="header-line">User DASHBOARD</h4>
</div>
</div>
<divclass="row">
<ahref="listed-books.php">
<?php
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$listdbooks=$query->rowCount();
?>
Books Listed
</div></div></a>
- 42 -
<iclass="fa fa-recycle fa-5x"></i>
<?php
$rsts=0;
$sid=$_SESSION['stdid'];
$query2->bindParam(':sid',$sid,PDO::PARAM_STR);
$query2->bindParam(':rsts',$rsts,PDO::PARAM_STR);
$query2->execute();
$results2=$query2->fetchAll(PDO::FETCH_OBJ);
$returnedbooks=$query2->rowCount();
?>
</div>
</div>
<ahref="issued-books.php">
<h3> </h3>
Issued Books
</div></div></a>
- 43 -
</div>
</div>
</div>
<?phpinclude('includes/footer.php');?>
<scriptsrc="assets/js/jquery-1.10.2.js"></script>
<scriptsrc="assets/js/bootstrap.js"></script>
<scriptsrc="assets/js/custom.js"></script>
</body>
</html>
<?php } ?>
?php
session_start();
error_reporting(0);
include('includes/config.php');
if($_SESSION['login']!=''){
- 44 -
$_SESSION['login']='';
if(isset($_POST['login']))
$email=$_POST['emailid'];
$password=md5($_POST['password']);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() >0)
$_SESSION['stdid']=$result->StudentId;
if($result->Status==1)
$_SESSION['login']=$_POST['emailid'];
} else {
- 45 -
}
else{
?>
<!DOCTYPEhtml>
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metacharset="utf-8"/>
<metaname="description"content=""/>
<metaname="author"content=""/>
<linkhref="assets/css/bootstrap.css"rel="stylesheet"/>
<linkhref="assets/css/font-awesome.css"rel="stylesheet"/>
<linkhref="assets/css/style.css"rel="stylesheet"/>
- 46 -
<linkhref='http://fonts.googleapis.com/css?family=Open+Sans'rel='stylesheet'type='text/cs
s'/>
</head>
<body>
<?phpinclude('includes/header.php');?>
<divclass="content-wrapper">
<divclass="container">
<!--Slider---->
<divclass="row">
<divclass="carousel-inner">
<divclass="item active">
<imgsrc="assets/img/1.jpg"alt=""/>
</div>
<divclass="item">
<imgsrc="assets/img/2.jpg"alt=""/>
</div>
<divclass="item">
<imgsrc="assets/img/3.jpg"alt=""/>
</div>
</div>
<!--INDICATORS-->
- 47 -
<olclass="carousel-indicators">
<lidata-target="#carousel-example"data-slide-to="0"class="active"></li>
<lidata-target="#carousel-example"data-slide-to="1"></li>
<lidata-target="#carousel-example"data-slide-to="2"></li>
</ol>
<!--PREVIUS-NEXT BUTTONS-->
<aclass="left carousel-control"href="#carousel-example"data-slide="prev">
<spanclass="glyphicon glyphicon-chevron-left"></span>
</a>
<aclass="right carousel-control"href="#carousel-example"data-slide="next">
<spanclass="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
</div>
</div>
<hr/>
<divclass="row pad-botm">
<divclass="col-md-12">
</div>
</div>
<aname="ulogin"></a>
<divclass="row">
- 48 -
<divclass="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
<divclass="panel panel-info">
<divclass="panel-heading">
LOGIN FORM
</div>
<divclass="panel-body">
<formrole="form"method="post">
<divclass="form-group">
<inputclass="form-control"type="text"name="emailid"requiredautocomplete="off"/>
</div>
<divclass="form-group">
<label>Password</label>
<inputclass="form-control"type="password"name="password"requiredautocomplete="off" />
<pclass="help-block"><ahref="user-forgot-password.php">Forgot Password</a></p>
</div>
</form>
</div>
</div>
</div>
</div>
- 49 -
<!---LOGIN PABNEL END-->
</div>
</div>
<?phpinclude('includes/footer.php');?>
<scriptsrc="assets/js/jquery-1.10.2.js"></script>
<scriptsrc="assets/js/bootstrap.js"></script>
<scriptsrc="assets/js/custom.js"></script>
</body>
</html>
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['login'])==0)
header('location:index.php');
else{
- 50 -
?>
<!DOCTYPEhtml>
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metacharset="utf-8"/>
<metaname="description"content=""/>
<metaname="author"content=""/>
<linkhref="assets/css/bootstrap.css"rel="stylesheet"/>
<linkhref="assets/css/font-awesome.css"rel="stylesheet"/>
<linkhref="assets/js/dataTables/dataTables.bootstrap.css"rel="stylesheet"/>
<linkhref="assets/css/style.css"rel="stylesheet"/>
<linkhref='http://fonts.googleapis.com/css?family=Open+Sans'rel='stylesheet'type='text/cs
s'/>
</head>
<body>
- 51 -
<?phpinclude('includes/header.php');?>
<divclass="content-wrapper">
<divclass="container">
<divclass="row pad-botm">
<divclass="col-md-12">
</div>
<divclass="row">
<divclass="col-md-12">
<divclass="panel panel-default">
<divclass="panel-heading">
Issued Books
</div>
<divclass="panel-body">
<divclass="table-responsive">
<thead>
<tr>
<th>#</th>
<th>Book Name</th>
<th>ISBN </th>
- 52 -
<th>Issued Date</th>
<th>Return Date</th>
<th>Fine in(USD)</th>
</tr>
</thead>
<tbody>
<?php
$sid=$_SESSION['stdid'];
$sql="SELECT
tblbooks.BookName,tblbooks.ISBNNumber,tblissuedbookdetails.IssuesDate,tblissuedbookde
tails.ReturnDate,tblissuedbookdetails.id as rid,tblissuedbookdetails.fine
from tblissuedbookdetails join tblstudents on
tblstudents.StudentId=tblissuedbookdetails.StudentId join tblbooks on
tblbooks.id=tblissuedbookdetails.BookId where tblstudents.StudentId=:sidorder by
tblissuedbookdetails.id desc";
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() >0)
foreach($results as $result)
{ ?>
<trclass="odd gradeX">
- 53 -
<tdclass="center"><?php echo htmlentities($result-
>ISBNNumber);?></td>
<tdclass="center"><?phpif($result->ReturnDate=="")
{?>
<spanstyle="color:red">
</span>
<?php } else {
echo htmlentities($result->ReturnDate);
?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
- 54 -
</div>
</div>
</div>
<?phpinclude('includes/footer.php');?>
<scriptsrc="assets/js/jquery-1.10.2.js"></script>
<scriptsrc="assets/js/bootstrap.js"></script>
<scriptsrc="assets/js/dataTables/jquery.dataTables.js"></script>
<scriptsrc="assets/js/dataTables/dataTables.bootstrap.js"></script>
<scriptsrc="assets/js/custom.js"></script>
</body>
</html>
<?php } ?>
?php
- 55 -
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['login'])==0)
header('location:index.php');
else{
?>
<!DOCTYPEhtml>
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metacharset="utf-8"/>
<metaname="description"content=""/>
<metaname="author"content=""/>
<linkhref="assets/css/bootstrap.css"rel="stylesheet"/>
<linkhref="assets/css/font-awesome.css"rel="stylesheet"/>
<linkhref="assets/js/dataTables/dataTables.bootstrap.css"rel="stylesheet"/>
- 56 -
<linkhref="assets/css/style.css"rel="stylesheet"/>
<linkhref='http://fonts.googleapis.com/css?family=Open+Sans'rel='stylesheet'type='text/cs
s'/>
</head>
<body>
<?phpinclude('includes/header.php');?>
<divclass="content-wrapper">
<divclass="container">
<divclass="row pad-botm">
<divclass="col-md-12">
</div>
<divclass="row">
<divclass="col-md-12">
<divclass="panel panel-default">
<divclass="panel-heading">
Issued Books
</div>
<divclass="panel-body">
- 57 -
<?php $sql = "SELECT
tblbooks.BookName,tblcategory.CategoryName,tblauthors.AuthorName,tblbooks.ISBNNum
ber,tblbooks.BookPrice,tblbooks.id as bookid,tblbooks.bookImage,tblbooks.isIssued
from tblbooks join tblcategory on tblcategory.id=tblbooks.CatId join tblauthors on
tblauthors.id=tblbooks.AuthorId";
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() >0)
foreach($results as $result)
{ ?>
<divclass="col-md-4"style="float:left; height:300px;">
<?phpif($result->isIssued=='1'): ?>
- 58 -
<?phpendif;?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?phpinclude('includes/footer.php');?>
<scriptsrc="assets/js/jquery-1.10.2.js"></script>
<scriptsrc="assets/js/bootstrap.js"></script>
- 59 -
<!-- DATATABLE SCRIPTS -->
<scriptsrc="assets/js/dataTables/jquery.dataTables.js"></script>
<scriptsrc="assets/js/dataTables/dataTables.bootstrap.js"></script>
<scriptsrc="assets/js/custom.js"></script>
</body>
</html>
<?php } ?>
<?php
session_start();
header("location:index.php");
?>
<?php
session_start();
include('includes/config.php');
error_reporting(0);
if(strlen($_SESSION['login'])==0)
header('location:index.php');
else{
if(isset($_POST['update']))
- 60 -
{
$sid=$_SESSION['stdid'];
$fname=$_POST['fullanme'];
$mobileno=$_POST['mobileno'];
$query = $dbh->prepare($sql);
$query->bindParam(':sid',$sid,PDO::PARAM_STR);
$query->bindParam(':fname',$fname,PDO::PARAM_STR);
$query->bindParam(':mobileno',$mobileno,PDO::PARAM_STR);
$query->execute();
?>
<!DOCTYPEhtml>
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metacharset="utf-8"/>
<metaname="description"content=""/>
<metaname="author"content=""/>
<!--[if IE]>
- 61 -
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<![endif]-->
<linkhref="assets/css/bootstrap.css"rel="stylesheet"/>
<linkhref="assets/css/font-awesome.css"rel="stylesheet"/>
<linkhref="assets/css/style.css"rel="stylesheet"/>
<linkhref='http://fonts.googleapis.com/css?family=Open+Sans'rel='stylesheet'type='text/cs
s'/>
</head>
<body>
<?phpinclude('includes/header.php');?>
<divclass="content-wrapper">
<divclass="container">
<divclass="row pad-botm">
<divclass="col-md-12">
<h4class="header-line">My Profile</h4>
</div>
- 62 -
</div>
<divclass="row">
<divclass="col-md-9 col-md-offset-1">
<divclass="panel panel-danger">
<divclass="panel-heading">
My Profile
</div>
<divclass="panel-body">
<formname="signup"method="post">
<?php
$sid=$_SESSION['stdid'];
$sql="SELECT
StudentId,FullName,EmailId,MobileNumber,RegDate,UpdationDate,Statusfrom tblstudents
where StudentId=:sid";
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() >0)
foreach($results as $result)
{ ?>
<divclass="form-group">
- 63 -
<label>Student ID : </label>
</div>
<divclass="form-group">
</div>
<?phpif($result->UpdationDate!=""){?>
<divclass="form-group">
</div>
<?php } ?>
<divclass="form-group">
<?phpif($result->Status==1){?>
<spanstyle="color: green">Active</span>
<spanstyle="color: red">Blocked</span>
<?php }?>
</div>
<divclass="form-group">
- 64 -
<inputclass="form-control"type="text"name="fullanme"value="<?php echo
htmlentities($result->FullName);?>"autocomplete="off"required/>
</div>
<divclass="form-group">
<inputclass="form-control"type="text"name="mobileno"maxlength="10"value="<?php echo
htmlentities($result->MobileNumber);?>"autocomplete="off"required/>
</div>
<divclass="form-group">
<label>Enter Email</label>
<inputclass="form-control"type="email"name="email"id="emailid"value="<?php echo
htmlentities($result->EmailId);?>" autocomplete="off"requiredreadonly/>
</div>
<?php }} ?>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
- 65 -
<!-- CONTENT-WRAPPER SECTION END-->
<?phpinclude('includes/footer.php');?>
<scriptsrc="assets/js/jquery-1.10.2.js"></script>
<scriptsrc="assets/js/bootstrap.js"></script>
<scriptsrc="assets/js/custom.js"></script>
</body>
</html>
<?php } ?>
?php
session_start();
include('includes/config.php');
error_reporting(0);
if(isset($_POST['signup']))
$count_my_page = ("studentid.txt");
$hits = file($count_my_page);
$hits[0] ++;
fputs($fp , "$hits[0]");
fclose($fp);
$StudentId= $hits[0];
- 66 -
$fname=$_POST['fullanme'];
$mobileno=$_POST['mobileno'];
$email=$_POST['email'];
$password=md5($_POST['password']);
$status=1;
$sql="INSERTINTO tblstudents(StudentId,FullName,MobileNumber,EmailId,Password,Stat
us) VALUES(:StudentId,:fname,:mobileno,:email,:password,:status)";
$query = $dbh->prepare($sql);
$query->bindParam(':StudentId',$StudentId,PDO::PARAM_STR);
$query->bindParam(':fname',$fname,PDO::PARAM_STR);
$query->bindParam(':mobileno',$mobileno,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':password',$password,PDO::PARAM_STR);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
else
- 67 -
?>
<!DOCTYPEhtml>
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metacharset="utf-8"/>
<metaname="description"content=""/>
<metaname="author"content=""/>
<!--[if IE]>
<![endif]-->
<linkhref="assets/css/bootstrap.css"rel="stylesheet"/>
<linkhref="assets/css/font-awesome.css"rel="stylesheet"/>
<linkhref="assets/css/style.css"rel="stylesheet"/>
<linkhref='http://fonts.googleapis.com/css?family=Open+Sans'rel='stylesheet'type='text/cs
s'/>
<scripttype="text/javascript">
function valid()
- 68 -
if(document.signup.password.value!= document.signup.confirmpassword.value)
document.signup.confirmpassword.focus();
returnfalse;
returntrue;
</script>
<script>
function checkAvailability() {
$("#loaderIcon").show();
jQuery.ajax({
url: "check_availability.php",
data:'emailid='+$("#emailid").val(),
type: "POST",
success:function(data){
$("#user-availability-status").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
</script>
</head>
- 69 -
<body>
<?phpinclude('includes/header.php');?>
<divclass="content-wrapper">
<divclass="container">
<divclass="row pad-botm">
<divclass="col-md-12">
<h4class="header-line">User Signup</h4>
</div>
</div>
<divclass="row">
<divclass="col-md-9 col-md-offset-1">
<divclass="panel panel-danger">
<divclass="panel-heading">
SINGUP FORM
</div>
<divclass="panel-body">
<formname="signup"method="post"onSubmit="return valid();">
<divclass="form-group">
<inputclass="form-control"type="text"name="fullanme"autocomplete="off"required/>
</div>
- 70 -
<divclass="form-group">
<inputclass="form-
control"type="text"name="mobileno"maxlength="10"autocomplete="off"required/>
</div>
<divclass="form-group">
<label>Enter Email</label>
<inputclass="form-
control"type="email"name="email"id="emailid"onBlur="checkAvailability()" autocomplete
="off"required />
<spanid="user-availability-status"style="font-size:12px;"></span>
</div>
<divclass="form-group">
<label>Enter Password</label>
<inputclass="form-control"type="password"name="password"autocomplete="off"required />
</div>
<divclass="form-group">
<inputclass="form-
control" type="password"name="confirmpassword"autocomplete="off"required />
</div>
- 71 -
<buttontype="submit"name="signup"class="btn btn-danger"id="submit">Register Now
</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<?phpinclude('includes/footer.php');?>
<scriptsrc="assets/js/jquery-1.10.2.js"></script>
<scriptsrc="assets/js/bootstrap.js"></script>
<scriptsrc="assets/js/custom.js"></script>
</body>
</html>
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(isset($_POST['change']))
- 72 -
$email=$_POST['email'];
$mobile=$_POST['mobile'];
$newpassword=md5($_POST['newpassword']);
$query-> execute();
$chngpwd1 = $dbh->prepare($con);
$chngpwd1->execute();
else {
?>
- 73 -
<!DOCTYPEhtml>
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metacharset="utf-8"/>
<metaname="description"content=""/>
<metaname="author"content=""/>
<linkhref="assets/css/bootstrap.css"rel="stylesheet"/>
<linkhref="assets/css/font-awesome.css"rel="stylesheet"/>
<linkhref="assets/css/style.css"rel="stylesheet"/>
<linkhref='http://fonts.googleapis.com/css?family=Open+Sans'rel='stylesheet'type='text/cs
s'/>
<scripttype="text/javascript">
function valid()
if(document.chngpwd.newpassword.value!= document.chngpwd.confirmpassword.value)
document.chngpwd.confirmpassword.focus();
returnfalse;
- 74 -
returntrue;
</script>
</head>
<body>
<?phpinclude('includes/header.php');?>
<divclass="content-wrapper">
<divclass="container">
<divclass="row pad-botm">
<divclass="col-md-12">
</div>
</div>
<divclass="row">
<divclass="panel panel-info">
<divclass="panel-heading">
LOGIN FORM
</div>
<divclass="panel-body">
<formrole="form"name="chngpwd"method="post"onSubmit="return valid();">
- 75 -
<divclass="form-group">
<inputclass="form-control"type="email"name="email"requiredautocomplete="off"/>
</div>
<divclass="form-group">
<inputclass="form-control"type="text"name="mobile"requiredautocomplete="off"/>
</div>
<divclass="form-group">
<label>Password</label>
<inputclass="form-
control"type="password"name="newpassword"requiredautocomplete="off" />
</div>
<divclass="form-group">
<label>ConfirmPassword</label>
<inputclass="form-
control"type="password"name="confirmpassword"requiredautocomplete="off" />
</div>
</form>
- 76 -
</div>
</div>
</div>
</div>
</div>
</div>
<?phpinclude('includes/footer.php');?>
<scriptsrc="assets/js/jquery-1.10.2.js"></script>
<scriptsrc="assets/js/bootstrap.js"></script>
<scriptsrc="assets/js/custom.js"></script>
</body>
</html>
- 77 -
Database View
- 78 -
- 79 -
- 80 -
- 81 -
. CONCLUSION AND FUTURE WORK
The project was successfully completed and it is working fine fulfilling our desired functions
using the basic web development tools such as HTML, CSS and JavaScript used to design the
main page and PHP and MySQL database for storing the user information and validation of
users trying to access the main page. And also has a facility for student login where student
can login and can see status of books issued as well as request for book or give some
suggestions. It is a simple webpage and it gives us a basic idea about how the millions of
webpages that are there in the internet of different websites are designed. Although it is a
simple webpage with some simple functionality, it can be further modified in the future for
automation of data entry from the existing system. Also, will add some other functionalites
like students not only be able to check their fine amount but will also be able to pay their dues
through payment gateway
- 82 -
Chapter VI
6.REFERENCE
• HTML & CSS, and JavaScript & JQuery Book by jon Duckett
• MicrosoftSQLserver : Abeginner’sguide , seventh Edition Book by Dusan petkovic
www.youtube.com
- 83 -