You are on page 1of 55

1.

FIGURES &ABBREVATIONS

1.1LIST OF FIGURES

S.NO. TOPIC PAGE NO.

1. ENTITY RELATIONAL DIAGRAM 17


2. DATA FLOW DIAGRAM 18
3. USE CASE DIAGRAM 20

1.2 LIST OF ABBREVATIONS

ABBREVATIONS DESCRIPTION

HTML HYPER TEXT MARKUP LANGUAGE


PHP HYPER TEXT PREPROCESSOR
SQL STRUCTURED QUERY LANGUAGE
CSS CASCADING STYLE SHEETS
JPEG JOINT PHOTOGRAPHIC EXPERT GROUP
PDF PORTABLE DOCUMENT FORMAT
DL DIGITAL LIBRARY
DB DATABASE
PROJECT OVERVIEW
2.1 PROJECT OVERVIEW

 This is digital library project. It is totally web based digital library.


 It Contain 500+ E-Books. Student can download that e-books from this website.
 This digital library has two side one is admin side and another side is student side.
 The admin side can add book, delete book, edit book. If admin add e-book it shall
show in student side. Admin side play a major in this project.
 Student side is for students. They can register & create our own user id.
 And student can see list of e-books if it is need student can download it easily without
any problem.
.
2.2 INTRODUCTION

A digital library, also called an online library, an internet library, a digital repository,
or a digital collection is an online database of digital objects that can include e-book formats
or a library accessible through the internet. Objects can consist of digitized content like e-
book or In addition to storing content, digital libraries provide means for organizing,
searching, and retrieving the content contained in the collection. Digital libraries can vary
immensely in size and scope, and can be maintained by individuals or organizations. The
digital content may be stored locally, or accessed remotely via computer networks. These
information retrieval systems are able to exchange information with each other through
interoperability and sustainability.
2.3 ABSTRACT
The Online Library System in PHP is a simple project developed using PHP,
JavaScript, and CSS. The project contains an admin and user side. The admin side manages
all the management like adding books, deleting books, and edit details of books. The admin
has an important role in the management of this online library system.

For the user section, the users can log in as a student if they already had an account,
otherwise, he/she has to fill up the signup form to register as a student.

OBJECTIVES
 Providing the online digital library interface for students, faculty.
 Increasing the efficiency of digital library.
 Decrease time required to access and delivers book for students
 To make the system more secure using credentials.

PURPOSE
 The purpose is to design a website which contains up to date information of the
student records. That should improve efficiency of library book management.
 It needs to provide a simple interface for the maintenance of digital library.
 The system needs to provide a secure access to the users so that other than the users
no can able to access the data.
SYSTEM STUDY
3.1 SYSTEM STUDY

 This system saves the time of the student. It includes student registration.
 This system help to students education. They get more knowledge through digital
library
 This makes the system easy to handle and feasible for student use.

3.2 EXISTING WORK

 The maximum number of printed reference books is available at high price.


Even there are number of free search engines and search directories and
websites available online for users reference purpose.
 Only one user can use a printed resource at one time. The user may lose the
opportunity if the resources is misplaced or lost in library.
 As reporter May Wong states, Once-a-year updates for printed editions means
that Some information can be stale even before the books get out of the box
 If users want a traditional print resource he/she should visit the library during
the working hours only.

3.3 PROPOSED WORK

 As part of the proposed system, Admin will have the opportunity to manually
add their e-books to the digital library.
 Students can also view e-books and download through the database that has
been added and so they are able to see & download whenever they wish.
 There are several advantages to the proposed system: User-friendly interface,
Fast access to data, Large storage capacity.
 Through the idea of computerization, the online DIGITAL LIBRARY in PHP
MYSQL.
SYSTEM
REQUIREMENTS
4. SYSTEM REQUIREMENTS

4.1 SOFTWARE REQUIREMENT

 Coding: Sublime or Notepad

To edit or modify the coding part in the project

 User interface: Browser (chrome, firefox, etc…)

Execution of the project through the internet.

 Server and Database: Xampp

It provides the local server and database for the execution of the project.

4.2 HARDWARE REQUIREMENT:

 Operating systems: Windows 8.1 or above.

It manages the computer's memory and processes, as well as all of its software and
hardware.

 Processors: AMD A6-7350B processor or above.

Provides the instructions and processing power the computer needs to do its work.

 Ram: 4 GB.

It is used as a short-term memory for computers to place its data for easy access.

 Rom: 500 GB.

It is essential for the storage and operation of the BIOS, but it can also be used for
basic data management, to hold software for basic processes of utilities and to read and write
to peripheral devices.
TECHNOLOGIES
The Student Management
System web server must
provide a user interface that
will be
accessible through any internet
brows

5.1 FRONT END DEVELOPMENT

HTML

 HTML is a hypertext markup language which is in reality a backbone of any website.


 Every website can’t be structured without the knowledge of html.
 If we make our web page only with the help of html, than we can’t add many of the
effective features in a web page, for making a web page more effective we use various
platforms such as CSS.
 So here we are using this language to make our web pages more effective as well as
efficient.
 And to make our web pages dynamic we are using Java script.

CSS

 CSS Stands for "Cascading Style Sheet."


 Cascading style sheets are used to format the layout of Web pages.
 They can be used to define text styles, table sizes, and other aspects of Web pages that
previously could only be defined in a page's HTML.
 The basic purpose of CSS is to separate the content of a web document (written in any
markup language) from its presentation (that is written using Cascading Style Sheets).
 There are lots of benefits that one can extract through CSS like improved content
accessibility, better flexibility and moreover, CSS gives a level of control over various
presentation characteristics of the document.
 It also helps in reducing the complexity and helps in saving overall presentation time.
 CSS gives the option of selecting various style schemes and rules according to the
requirements and it also allows the same HTML document to be presented in more
than one varying style.

PHP

 PHP is a very powerful server-side scripting language for developing dynamic web
applications.
 Using PHP, one can build interactive and dynamic websites with ease.
 PHP script can be embedded straight into the heart of html code.
 PHP is compatible with various web servers like Apache and the Microsoft’s IIS as
well.
 All the PHP scripts are executed on the server and it supports various databases like
MySQL, Oracle, Solid, Generic ODBC etc, however, it is mostly used with MySQL.

5.2 BACK END DEVELOPMENT

SQL

 SQL stands for Structured Query Language.


 SQL lets us access and manipulate databases.
 SQL is an ANSI (American National Standards Institute) standard.
 SQL can execute queries against a database, retrieve data from a database, insert
records in a database, update records in a database, delete records from a database,
create new databases, create new tables in a database, create stored procedures in a
database, create views in a database, set permissions on tables, procedures, and views.
SYSTEM DESIGN
6.1 MODULES

The system has a different segment to process a specific task which is the modules.
This will help the system to develop easily and makes it more user-friendly.

THE MODULES OF THE PROJECT ARE:

Login Module:

 This will help users to login into the system using their id and password. A user who
has the valid id and password can only log in to their respective accounts.
 It will help the authentication of the user who enters the system. The module provides
a layer of security over the system as only authorized personnel can login into the
system.
 This prevents any anonymous person to enter the system and mishandle the records. It
is better than the manual method as they do not have any security measure of who can
access the system and who cannot.

Registration Module:

 In this module, the student will get registered as it is new in the system. It will be
formed like a structure where all the student details will be filled.
 It will have the fields regarding their information like register no and name along with
the year of study.
 As this module is present online, the student can register them from anywhere on the
internet is present. After registration information will go to the admin for
authentication.
STUDENT MODULE

 Each student will be able to select their need e-book. And download
 The e-book is also added by the administrator.
 It will be added to their information details.
 All the e-book will be handled by the administrator.

ADMIN MODULE

 Admin play a major roll in this project.


 Admin can add book, edit book., delete book.

6.2 Functional Requirement

Admin
 Admin can add e-book.
 Admin can edit e-book.
 Admin can delete e-book

Student

 They are able to only view their e-books


 And download they needed e-book
6.3 Non-Functional Requirement

Security

 Every user has his own account and only authorized users can access the system with
username and password.

Performance

 This project makes Easy to share e-books.

User Friendly

 The system has a friendly user interface and the system very interactive.

Availability

 The systems are available to users anytime, anywhere, just need a PC and Internet
Connection.
 Also the system works in multiple web browsers like (Chrome, Mozilla, Opera, and
Internet Explorer).
SYSTEM ANALYSIS
7.1 ER DIAGRAM

 E-R (Entity-Relationship) Diagram is used to represents the relationship between


entities in a table.
 ER diagrams represent the logical structure of databases. ER Diagram represent
relationship between two database tables.
 Helps you to define terms related to entity relationship modeling.
 Provide a preview of how all your tables should connect, what fields are going to be
on each table
 Helps to describe entities, attributes, relationships
 ER diagrams are translatable into relational tables which allows you to build databases
quickly
 ER diagrams can be used by database designers as a blueprint for implementing data
in specific software applications.

ADMIN ER DIAGRAM
STUDENT ER DIAGRAM

7.2 DATA FLOW DIAGRAM


 A Data Flow Diagram (DFD) is a graphical representation of the “flow” of Student
Management System.
 A data flow diagram can also be used for the visualization of Data Processing.
 DFD shows the interaction between the system and outside entities.
 A DFD represents flow of data through a system.
 Data flow diagrams are commonly used during problem analysis.
 It views a system as function that transforms the given input into required output.
 Movement of data through the different transformations or processes in the system is
shown in Data Flow Diagram.
7.2.1 DATA FLOW DIAGRAM

Database
7.3 USE CASE DIAGRAM
This part contains the analysis of the functional and non-functional requirements
using use-case diagrams, and use-cases details.

ADMIN
The functions that Admin can do,

 Add e-book.
 Edit e-book.
 Delete e-book.

 Logout from admin dashboard.

Upload E-Book

Edit E-book

Delete E-Book

Logout
STUDENT

 The functions that Student can do after login,


 View category vise e-book collection
 If student is new this library. he can create our username & password.

Registration

Login

Download E-Book

Logout
DESIGN&
IMPLEMENTATION
8.1 DESIGN PHASE

DATABASE DESIGN

START YOUR XAMPP

 For starting your server on Xampp, we simply have to start the services in the Xampp
console which is shown on below screenshot. 

 After starting this services type local host in your search bar and a page will open. On
this page click on phpMyAdmin option which is shown in below screenshot.  
 We can also open the Php My Admin by clicking the MYSQL button in Xampp control
panel.
 We need to stop the services once the project is closed in the website.
 Click on New option which is shown in below screen. After that we have to enter our
database name and then click on Create option to create a new database. 
 After creating a new database we have to move forward for creating a new SQL table.  

CREATING A TABLES AND RECORDS IN SQL

 After creating your database we will be creating a new table.


 For creating a new table specifies your table name and number of columns.
 In our case we are specifying our table name as courseDb and specify the number of
columns as
 The 4 different columns are as follows.
 The 1st column is for id, 2nd column is for course Name, 3rd column is for course
Description and 4th column is for course Duration.  

 After clicking on Go option your table will be created.


 Now we have to add column heading for our SQLite table.
 For adding this column heading you will get to see below screen. 
TYPE AND LIMITATIONS FOR SQL TABLE

 Enter the name for your columns in name section which is shown in above screen.
 After that enter the data type of the data which we will be adding in our database. In
this we are specifying INT for our ID as our ID will be an integer. And in SQL table
VARCHAR is used for storing strings.
 In the length/ values section we have to specify the maximum length of the data which
we will be adding in our table. We will not be specifying length for our ID because it is
added automatically.
 After that we have to auto increment our ID. For this we have to check the box which is
shown in above screenshot so that it will be incremented automatically on adding new
data.

For our system we design to design the database according to the required tables and
their records.

 And also we need to set types and limitations for the data that is to be entered.
 We are going to create a table for the digital library
 For student we are add some e-books like book id, name, author and etc.,

Book id NAME AUTHOR PATH


CSE120 CS JAMES ../EBOOK
ECO121 ALGORITHM PRASATH ../EBOOK
COD22 ADVANCE CS THOMAS ../EBOOK
ENG123 MATH BRIAN ../EBOOK

 We are going to create a table for student detail.

STUDENT ROLL DEPT EMAIL PASSWORD TYPE


HEMANTH 111 CSE HEMANTH@GMAIL. QWERTY STUDENT
COM

 Now our database has been created successfully.

FINAL RESULT
BOOKS

STUDENT DETAIL

8.2 LOGIN FORM

Creating the Database Table


 We can SQL query to create the users table or also we can create it manually inside your
MySQL database.
Creating the Configuration File
 After creating the table, we need create a PHP script in order to connect to the MySQL
database server.
 We can create a file named "config.php" and we can code to connect the database to the
server in which the system is running.

Creating the Registration Form


 We can create another PHP file "register.php" if we are adding a sign up page for the
user.
 It can include some records such as first name, last name, username, password, address,
email etc..
 By connecting it to the database it will generate errors if a user tries to submit the form
without entering any value, or if username entered by the user is already taken by another
user.
LOGIN FORM

UI DESIGN
 User interface is the one which makes the user feel pleasant of using the system.
 The user interface must be attractive and also responsive to the user so that it cannot
make the user feel uncomfortable
 Since it is a digital library we can design a dashboard for the main user interface for
better interaction
 We can create a header and footer part of the dashboard of the user area
 Other than that I have added some buttons such as books etc…
 At last we have a sign out button for the user.

8.3 FORM DESIGN


 This is the basic form design for the UI we can make it more attractive by using the CSS.
 We can modify the elements of the dash board some of the major elements are text, color,
image, icons, etc…
 We can modify the text element using html and by using this we can perform some other
things like color of the text, type of the text, size of the text etc…
 We can use images to make the dashboard more interactive for the user.
 We can also add some images using the html and also we can adjust its attributes like
contrast, brightness using CSS.
 It does take a coding knowledge to work with languages so overcome that content
management system like WORD PRESS are used to easily modify the web pages of the
website.
 By this we can able to design a dashboard which is both responsive and also attractive to
the user
 There are many other frame works that are used to create and manage the web based
applications
 As we seen below is the final outcome of the system.

INTERFACE USER
8.4 IMPLEMENTATION PHASE

 After creating we need to connect the database to the respective fields.


 As we click each button it needs to display the record who are enrolled by the admin
which is fetched from the database.
 It must be in an organized manner.

STUDENTS REGISTRATION
 As we seen above first we need to enter the name followed by the gender of the student.
 By using the reg no we can we can identify each user uniquely.
 Select the department of the student.
 Click register new the student record is created and added to the database.

DOWNLOAD E-BOOK
CODING

9.SAMPLE CODING
LIB.SPL
CREATE TABLE `book` (

`b_id` varchar(255) NOT NULL,

`booksname` varchar(50) NOT NULL,

`authorname` varchar(50) NOT NULL,

`copies` varchar(20) NOT NULL,

`avl_cpy` int(100) NOT NULL,

`dept` varchar(50) NOT NULL,

`file_name` varchar(255) NOT NULL,

`path` varchar(200) NOT NULL

INDEX.PHP

1. <?php
2. include("conn.php");
3. $error="";
4. session_start();
5. if($_SERVER['REQUEST_METHOD'] == "POST" and
isset($_POST['submit']))
6. {
7. $count=0;
8. $data=mysqli_query($conn,"select * from student_registration
where emailid='$_POST[username]
9. password='$_POST[password]'");
10. $count=mysqli_num_rows($data);
11. $row = mysqli_fetch_array($data);
12. if($count==0)
13. {
14. $error= "Invalid username or password";
15. }
16. else
17. {
18. if($row["type"]=="admin")
19. {
20. header("Location:admindas.php");
21. }
22. else{
23. $_SESSION["sname"]=$row["name"];
24. $_SESSION["semail"]=$row["emailid"];
25. $_SESSION["sgender"]=$row["gender"];
26. header("Location:sdb.php");
27. }
28. }
29. }
30. ?>
31. <!DOCTYPE html>
32. <html>
33. <head><title>HOME PAGE</title></head>
34. <style>
35. body{
36. background: url(backforall.jpg);
37. }
38. .box{
39. width:74%;
40. height:170px;
41. border:solid 1px #000000;
42. background-image: url("headback2.jpg");
43. background-size: cover;
44. margin-left: 13%;
45. opacity: .9;
46. border-radius:12px;
47.
48. 73.5%; height:40px; margin-left:13%; margin-top:15px" >
49. <marquee><h6 style="line-height:1px;">Thank You
For Using This System.</h6></marquee>
50.
51.
52. </div>

CONN.PHP

1. <?php
2. define("DBHOST","localhost");
3. define("DBUSERNAME","root");
4. define("DBPASSWORD","");
5. define("DB","lib");
6. $conn = mysqli_connect(DBHOST,DBUSERNAME,DBPASSWORD,DB);
7. ?>

SDB.PHP

1. <?php include("conn.php");
2. session_start();
3. $name=$_SESSION["sname"];
4. $email=$_SESSION["semail"];
5. $gender=$_SESSION["sgender"];
6. $namecap=ucwords($name);
7. ?>
8. <!DOCTYPE html>
9. <html>
10. <style>
11. body{
12. background: url("backforall.jpg");
13. }
14. .box{
15. width:74%;
16. height:160px;
17. background-image: url("headback2.jpg");
18. background-size: cover;
19. margin-left: 13%;
20. opacity: .9;
21. box-shadow:0px 0px 15px black;
22. border-radius:12px;
23. border:solid 1px #000000;
24. }
25. .boxtwo{
26. background-image: url("headback2.jpg");
27. background-size: cover;
28. box-shadow:0px 0px 15px black;
29. border:solid 1px #000000;
30. }
31. ul{
32. padding: 0 ;
33. list-style: none;
34. }
35. ul li{
36. float: left;
37. width: 248px;
38. height: 40px;
39. background-color: #ffc000;
40. opacity: .8;
41. line-height: 40px;
42. text-align: center;
43. font-size: 20px;
44. margin-right: 2px;
45. border-radius: 5px;
46. }
47. ul li a{
48. text-decoration: none;
49. color: black;
50. display: block;
51. }
52. ul li a:hover{
53. background-color: #daa520;
54. }
55. ul li ul li{
56. display: none;
57. }
58. ul li:hover ul li{
59. display: block;
60. }
61. .nav{
62. padding-left:13%;
63. }
64. .box-cnt{
65. box-shadow: 0px 0px 15px black;
66. background:ffc000;
67. float:left;
68. border-radius:12px;
69. overflow: auto;
70. height:400px;
71. width:45%;
72. margin: 2% 2%;
73. float: left;
74. }
75. .box-cnt-h{
76. color:black;
77. text-align: center;
78. padding-top:2px;
79. padding-bottom: 2px;
80. background:#ffc000;
81. border-radius:12px;
82. }
83. .box-table{
84. color: black;
85. text-align: center;
86. border-collapse: collapse;
87. margin:1%;
88. box-shadow: 0px 0px 10px white;
89. height: auto;
90. }
91. .box-table td,tr{
92. border: 1px solid black;
93. }
94. a{
95. color: black;
96. }
97. .searchbox{
98. height: 30px;
99. }

ADMIN.PHP

1. <?php
2. include("conn.php");?
3. <html>
4. <head>
5. <style>
6. body{
7. background: url("backforall.jpg");
8. }
9. tablheight: auto;
10. text-align: center;
11. color: black;
12. font-weight: bold;
13. }
14. th{
15. font-size: 17px;
16. text-decoration: underline;
17. font-style: italic;
18. }
19. .main{
20. width: 80%;
21. box-shadow: black;
22. border-radius: 20px;
23. overflow: auto;
24. margin-left: 10%;
25. margin-top: 2%;
26. height:270px;
27. background: #ffbf00;
28. border-color: black;
29. border: 2px;
30. }
31. .box{
32. width:74%;
33. height:160px;
34. background-image: url("headback2.jpg");
35. background-size: cover;
36. margin-left: 13%;
37. opacity: .9;
38. border:solid 1px #000000;
39. border-radius: 12px;
40. }
41. .boxtwo{
42. background-image: url("headback2.jpg");
43. background-size: cover;
44. box-shadow:0px 0px 15px black;
45. border-radius:12px;
46. }
47. ul{
48. padding: 0 ;
49. list-style: none;
50. }
51. ul li{
52. float: left;
53. width: 200px;
54. height: 40px;
55. background-color: #ffbf00;
56. opacity: .8;
57. line-height: 40px;
58. text-align: center;
59. font-size: 20px;
60. margin-right: 2px;
61. border-radius: 12px;
62. }
63. ul li a{
64. text-decoration: none;
65. color: black;
66. display: block;
67. }
68. ul li a:hover{
69. background-color: #DAA520;
70. border-radius: 12px;
71. }
72. ul li ul li{
73. display: none;
74. }
75. ul li:hover ul li{
76. display: block;
77. }
78. .nav{
79. padding-left:12%;
80. }
81. .three{
82. margin-left: 60%;
83. margin-top: 5px;
84. box-shadow:0px 0px 15px black;
85. }
86. button{
87. margin-top: 10px;
SCREENSHOTS
10. SCREENSHOTS

ADMIN DASHBOARD

ADD E-BOOK
EDIT E-BOOK`

DELETE E-BOOKS
STUDENT LOGIN

REGESTRATION PAGE
STUDENT DASHBOARD

E-BOOK DOWNLOAD PAGE


RESULT
CONCLUSION

11.1 CONCLUSION
The advantages of digital libraries as a means of easily and rapidly accessing books, archives
and images of various types are now widely recognized by commercial interests and public
bodies alike.
Traditional libraries are limited by storage space; digital libraries have the potential to store
much more information, simply because digital information requires very little physical space to
contain it. As such, the cost of maintaining a digital library can be much lower than that of a
traditional library. A physical library must spend large sums of money paying for staff, book
maintenance, rent, and additional books. Digital libraries may reduce or, in some instances, do
away with these fees. Both types of library require cataloging input to allow users to locate and
retrieve material. Digital libraries may be more willing to adopt innovations in technology
providing users with improvements in electronic and audio book technology as well as
presenting new forms of communication such as wikis and blogs; conventional libraries may
consider that providing online access to their OP AC catalog is sufficient. An important
advantage to digital conversion is increased accessibility to users. They also increase availability
to individuals who may not be traditional patrons of a library, due to geographic location or
organizational affiliation.

No physical boundary: The user of a digital library need not to go to the library physically;
people from all over the world can gain access to the same information, as long as an Internet
connection is available.

Round the clock availability: A major advantage of digital libraries is that people can gain
access 24/7 to the information.

Multiple access: The same resources can be used simultaneously by a number of institutions and
patrons. This may not be the case for copyrighted material: a library may have a license for
"lending out" only one copy at a time; this is achieved with a system of digital rights
management where a resource can become inaccessible after expiration of the lending period or
after the lender chooses to make it inaccessible (equivalent to returning the resource).

Information retrieval: The user is able to use any search term (word, phrase, title, name,
subject) to search the entire collection. Digital libraries can provide very user-friendly interfaces,
giving click able access to its resources.
Preservation and conservation: Digitization is not a long-term preservation solution for
physical collections, but does succeed in providing access copies for materials that would
otherwise fall to degradation from repeated use. Digitized collections and born-digital objects
pose many preservation and conservation concerns that analog materials do not. Please see the
following "Problems" section of this page for examples.

Space: Whereas traditional libraries are limited by storage space, digital libraries have the
potential to store much more information, simply because digital information requires very little
physical space to contain them and media storage technologies are more affordable than ever
before.

Added value: Certain characteristics of objects, primarily the quality of images, may be
improved. Digitization can enhance legibility and remove visible flaws such as stains and
discoloration.

11.2 FUTURE ENHANCEMENT


 In future we can add some other extra books for students and also teachers.
 It can also include some other things for students like audio books etc…
 In this we can also create the admin login.
 We can add newspaper & previous year question paper feature.
 We can also improve the user interface and efficiency by using the advanced tools.
 Some other are to be added such as membership option and etc.
BIBLIOGRAPHY
12.1REFRENCES
1) Web Based Application Development with PHP A.A. Puntambekar
2) HTML and CSS Design and Build Webs Jon Duckett
3) SQL For Beginners Craig Berg
4) WEB Designing BPB Publication
5) Responsive Web Design with HTML and CSS Ben Frain

You might also like