Mini Project Dbms
Mini Project Dbms
MINI PROJECT
ON
“LIBRARY INFORMATION SYSTEM”
SUBMITTED BY
SRISOWMIYA N – 119011012658
SIVASANKARI R – 119011012656
VIJAYADHARSHINI D – 119011012662
YUVASHREE S – 119011012665
SAGANA N - 120011063228
TABLE OF CONTENTS:
1. ABSTRACT
2. INTRODUCTION
3. SOURCE CODE
3.1 ADMIN LOGIN FORM
3.2 INDEX FORM
3.3 MY PROFILE PAGE
3.4 ISSUED BOOK PAGE
3.5 LOGOUT FORM
3.6 SQL CODE FOR TABLES
4. OUTPUT SCREENSHOTS
5. CONCLUSION
6. REFERENCES
ABSTRACT:
Library Information System is a system which maintains the information about the
books present in the library, their authors, the members of library to whom books
are issued, library staff and all. This is very difficult to organize manually.
Maintenance of all this information manually is a very complex task. Owing to the
advancement of technology, organization of an Online Library becomes much
simple. The Online Library Management has been designed to computerize and
automate the operations performed over the information about the members,
book issues and returns and all other operations. This computerization of library
helps in many instances of its maintenances. It reduces the workload of
management as most of the manual work done is reduced.
INTRODUCTION:
The aims and objectives are as follows:
An Admin login page where admin can add books, videos or page sources
Index form:
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if($_SESSION['login']!=''){
$_SESSION['login']='';
}
if(isset($_POST['login']))
{
//code for captach verification
if ($_POST["vercode"] != $_SESSION["vercode"] OR $_SESSION["vercode"]=='') {
echo "<script>alert('Incorrect verification code');</script>" ;
}
else {
$email=$_POST['emailid'];
$password=md5($_POST['password']);
$sql ="SELECT EmailId,Password,StudentId,Status FROM tblstudents WHERE EmailId=:email and
Password=:password";
$query= $dbh -> prepare($sql);
$query-> bindParam(':email', $email, PDO::PARAM_STR);
$query-> bindParam(':password', $password, PDO::PARAM_STR);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
{
foreach ($results as $result) {
$_SESSION['stdid']=$result->StudentId;
if($result->Status==1)
{
$_SESSION['login']=$_POST['emailid'];
echo "<script type='text/javascript'> document.location ='dashboard.php'; </script>";
} else {
echo "<script>alert('Your Account Has been blocked .Please contact admin');</script>";
}
}
}
else{
echo "<script>alert('Invalid Details');</script>";
}
}
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Library Management System | </title>
<!-- BOOTSTRAP CORE STYLE -->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!-- FONT AWESOME STYLE -->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- CUSTOM STYLE -->
<link href="assets/css/style.css" rel="stylesheet" />
<!-- GOOGLE FONT -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
</head>
<body>
<!------MENU SECTION START-->
<?php include('includes/header.php');?>
<!-- MENU SECTION END-->
<div class="content-wrapper">
<div class="container">
<div class="row pad-botm">
<div class="col-md-12">
<h4 class="header-line">USER LOGIN FORM</h4>
</div>
</div>
<!--LOGIN PANEL START-->
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3" >
<div class="panel panel-info">
<div class="panel-heading">
LOGIN FORM
</div>
<div class="panel-body">
<form role="form" method="post">
<div class="form-group">
<label>Enter Email id</label>
<input class="form-control" type="text" name="emailid" required autocomplete="off" />
</div>
<div class="form-group">
<label>Password</label>
<input class="form-control" type="password" name="password" required autocomplete="off" />
<p class="help-block"><a href="user-forgot-password.php">Forgot Password</a></p>
</div>
<div class="form-group">
<label>Verification code : </label>
<input type="text" class="form-control1" name="vercode" maxlength="5" autocomplete="off" required
style="height:25px;" /> <img src="captcha.php">
</div>
<button type="submit" name="login" class="btn btn-info">LOGIN </button> | <a
href="signup.php">Not Register Yet</a>
</form>
</div>
</div>
</div>
</div>
<!---LOGIN PABNEL END-->
</div>
</div>
<!-- CONTENT-WRAPPER SECTION END-->
<?php include('includes/footer.php');?>
<!-- FOOTER SECTION END-->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS -->
<script src="assets/js/bootstrap.js"></script>
<!-- CUSTOM SCRIPTS -->
<script src="assets/js/custom.js"></script>
</body>
</html>
My – Profile page:
<?php
session_start();
include('includes/config.php');
error_reporting(0);
if(strlen($_SESSION['login'])==0)
{
header('location:index.php');
}
else{
if(isset($_POST['update']))
{
$sid=$_SESSION['stdid'];
$fname=$_POST['fullanme'];
$mobileno=$_POST['mobileno'];
Logout form:
<?php
session_start();
$_SESSION = array();
if (ini_get("session.use_cookies")) {
$params = session_get_cookie_params();
setcookie(session_name(), '', time() - 60*60,
$params["path"], $params["domain"],
$params["secure"], $params["httponly"]
);
}
unset($_SESSION['login']);
session_destroy(); // destroy session
header("location:index.php");
?>
SQL code for Create, Insert, Delete, Add, Drop, Alter the table:
OUTPUT SCREENSHOTS:
Registered user
Dashboard module for Admin
Successfully Issued
User Profile
REFERENCES :
http://www.w3schools.com/html/html_intro.asp
http://www.Udemy.com/css/css_background.asp
https://itsourcecode.com/
http://www.w3schools.com/js/js_datatypes.asp