Digital Library System
Digital Library System
INSTITUTE OF TECHNOLOGY
FACULTY OF COMPUTING
DEPARTMENT OF INFORMATION TECHNOLOGY
Industrial Project on: - Digital library system for
Blue Mark College
By
Name ID
Labena Lemma BDU08017003US
Mesiud Seid BDU08017331US
Biruk Mathewos BDU0801613US
Aweke Aba BDU0801577US
Advisor:-
Bahir Dar , ETHIOPIA
Sep 2021
I
Acknowledgment
First and for most we would to express our deep thank to our almighty GOD for his unlimited help and
blessing in this project. We would also like to express our deep gratitude to Advisor ______, our project
advisor, for her patient guidance, enthusiastic engorgement and useful critiques of this graduation
project. We would also like to thank all our friends and family for their constant support and advice
throughout this project. Our thanks also extends to the Information Technology department staff who
provided the necessary resources and platforms for the successful accomplishment of each task.
ii | P a g e
Abstract
This project is aimed to develop a system that handles digital library has been applied to a wide
variety of offerings from collections of electronic journals to software agents that support inquiry-
based education to collections of email to electronic versions of a public library, to personal
information collections, and even to the entire Internet. All of the objects in a digital library,
whether sounds, images, texts, or some other media, can be treated in essentially the same way. So,
libraries needed to treat various media, for example, books, journals, videos, and musical
recordings, mechanism which permits a form of equality among various information resources.
This equality has importance for delivery and integration of information. Thus in this project I will
implement digital Library in Blue Mark college education.
iii | P a g e
Abbreviation and acronyms
PHP---------------------------------------------- personal home page
HTML-------------------------------------------hypertext markup language
XML---------------------------------------------extensible markup language
CSS-----------------------------------------------cascading style sheet
HTTP--------------------------------------------hyper text transfer protocol
MYSQL-----------------------------------------structured query language
UML--------------------------------------------unified modeling language
OOSA --------------------------------------------Object Oriented System Analysis.
OOSD---------------------------------------------Object Oriented System Design
CD-------------------------------------------------Compact Disc.
DVD --------------------------------------------------Digital Versatile Disc
UC--------------------------------------------------use case
DLSDBCTE---------------------------------------- digital library system
iv | P a g e
List of Table
Table 1 Cost analysis.................................................................................................................................13
Table 3 Actor identification.......................................................................................................................22
Table 4 Use case Diagram........................................................................................................................24
Table 5 Register Book use case.................................................................................................................25
Table 6 Search Book Use case..................................................................................................................26
Table 7update Book Use case....................................................................................................................27
Table 8 Delete Book Use Case..................................................................................................................28
Table 9 Print Document Use Case............................................................................................................29
Table 10 Download Document Use Case..................................................................................................30
Table 11 Send comment Use Case.............................................................................................................31
v|Page
List of Figures
Figure 1 Admin Login to the System........................................................................................................34
Figure 2 Admin register books.................................................................................................................35
Figure 3 Admin Searches for Registered Book.........................................................................................36
Figure 4 Admin Update Registered Book..................................................................................................37
Figure 5 End user Login to the system......................................................................................................38
Figure 6 End user Search resource...........................................................................................................39
Figure 7 End User Material Download....................................................................................................40
Figure 8 Class Diagram............................................................................................................................42
Figure 9 Admin Registration for Book......................................................................................................43
Figure 10 Admin Search Book..................................................................................................................44
Figure 11 Admin update Record (Book)...................................................................................................45
Figure 12 Admin delete books...................................................................................................................46
Figure 13 End user search........................................................................................................................47
Figure 14 State Diagram for Login...........................................................................................................48
Figure 15 State Diagram for Registration...............................................................................................49
Figure 16 State Diagram for Search Information.....................................................................................50
Figure 17 User Interface prototype...........................................................................................................51
Figure 18 overview Software Architecture................................................................................................57
Figure 19 Deployment Diagram...............................................................................................................58
Figure 20 Physical data Base design........................................................................................................59
Figure 21 component diagram..................................................................................................................60
Figure 23 Users login page........................................................................................................................64
Figure 24 Admin creating accounts...........................................................................................................65
Figure 25 Admin uploading books............................................................................................................66
Figure 26 users downloading book............................................................................................................66
vi | P a g e
Table of Contents
Acknowledgment...............................................................................................................................................................ii
Abstract............................................................................................................................................................................. iii
Abbreviation and acronyms...............................................................................................................................................iv
List of Table........................................................................................................................................................................ v
List of Figures.....................................................................................................................................................................vi
INTRODUCTION..................................................................................................................................................................1
1.1 Introduction.............................................................................................................................................................1
1.2 Background Information of the organization...........................................................................................................1
1.3 Statement of the problem........................................................................................................................................1
1.4 Objective of the project............................................................................................................................................2
1.4.1 General objective..............................................................................................................................................2
1.4.2 Specific objective...............................................................................................................................................2
1.5 Scope of the project.................................................................................................................................................2
1.6 Significance of the Project........................................................................................................................................2
1.7 Limitation of the project.....................................................................................................................................3
1.8 Target Beneficiaries of the system...........................................................................................................................3
1.9 Methodology for the project....................................................................................................................................3
1.9.1 Data collection method.....................................................................................................................................3
1.9.2 System Analysis and Design Methodology........................................................................................................4
1.9.3 Case tools..........................................................................................................................................................4
1.9.4 System development environment...................................................................................................................5
1.9.5 Testing procedures............................................................................................................................................6
1.9.6 Risks and contingencies.....................................................................................................................................6
1.10 Feasibility Studies...................................................................................................................................................7
1.10.1 Economical Feasibility.....................................................................................................................................7
1.10.2 Technical Feasibility.........................................................................................................................................8
1.10.3 Operational Feasibility.....................................................................................................................................8
1.10.4 Legal Feasibility...............................................................................................................................................8
CHAPTER TWO...................................................................................................................................................................9
DESCRIPTION OF THE EXISTING SYSTEM............................................................................................................................9
vii | P a g e
2.1 Introduction of the existing system..........................................................................................................................9
2.2 Player in the existing system....................................................................................................................................9
2.3 Major Functions/Activities in the Existing................................................................................................................9
2.4 Report Generated in the Existing System...............................................................................................................10
2.5 Business Rules in the Existing System.....................................................................................................................10
2.6 Bottlenecks of the Existing System.........................................................................................................................10
2.7 Practices to be preserved.......................................................................................................................................11
2.8 Proposed Solution for the New System..................................................................................................................11
2.9 Requirements of the proposed system..................................................................................................................12
2.9.1 Functional requirement...................................................................................................................................12
2.9.2 Nonfunctional requirement.............................................................................................................................13
2.10. System Models....................................................................................................................................................15
2.10.1 Actor identification...................................................................................................................................15
2.10.2 Use case Diagram..........................................................................................................................................17
2.10.3. The Descriptions of Use cases...................................................................................................................19
2.10.4. Object Model............................................................................................................................................26
2.10.3. Class Diagram..............................................................................................................................................34
2.10.3. Activity Diagram..........................................................................................................................................36
2.10.5. State Diagram...........................................................................................................................................40
2.11. User Interface prototyping (navigation path and screen mock-ups)........................................................43
2.11.1. Supplementary Specification.......................................................................................................................45
CHAPTER Three................................................................................................................................................................ 46
SYSTEM DESIGN............................................................................................................................................................... 46
3.1. Introduction......................................................................................................................................................46
3.1.1. Purpose of the system..............................................................................................................................46
3.1.2. Design Goals.............................................................................................................................................46
3.2. Current Software Architecture.........................................................................................................................47
3.3. Proposed Software Architecture......................................................................................................................47
3.3.1. Overview..................................................................................................................................................47
3.1.1. Subsystem Decomposition.......................................................................................................................50
3.1.2. Deployment Diagram................................................................................................................................50
3.1.3. Physical data Base design.........................................................................................................................51
viii | P a g e
3.1.4. Component diagram.................................................................................................................................52
CHAPTER FOUR................................................................................................................................................................54
4. IMPLEMENTATION AND TESTING.............................................................................................................................54
4.1. Introduction.........................................................................................................................................................54
Final Testing of the System...........................................................................................................................................54
4.2. Hardware Software Acquisition........................................................................................................................55
4.3. User Manual Preparation.................................................................................................................................55
4.4. Training.............................................................................................................................................................56
4.5. Startup Strategy...............................................................................................................................................56
4.6. Sample Users Interface.....................................................................................................................................56
4.7. sample code.....................................................................................................................................................60
APPENDIX.........................................................................................................................................................................65
References....................................................................................................................................................................... 66
ix | P a g e
INTRODUCTION
1.1 Introduction
A digital library is a library in which collection are stored in digital formats and accessible by the
computers. The computer contents may be stored in locally. Digital library is a type of information
retrieval system.
The one property these various entities have in common is their digitization or digital coherence. Digital
coherence means all the objects in a digital library, whether sounds, images, texts, or some other media,
can be treated in essentially the same way. Prior to digital coherence, libraries needed to treat various
media, for example, books, journals, videos, and musical recordings, one could say that digital
coherence is the mechanism which permits a form of equality among various information resources.
This equality has importance for delivery and integration of information. Thus in this project we will
implement digital Library in Blue Mark college.
1|Page
Incomplete resource sharing among the existing students and the instructors themselves.
They cannot access new website.
New research of the, students, lifelong learners, and the general public by developing of digital
libraries are not enabling
1.4 Objective of the project
1.4.1 General objective
The general objective of the project is to develop online digital library system for Blue Mark
College.
2|Page
It save space which reserved by shelves.
Improve the data sharing (uploading and downloading) from one sub system to another sub System.
The authorized access to information resources files of the system is more advanced. This Means
secured login to the system will be developed.
Resources and time sharing in the system operation and services provision is one of the major
benefits.
Enabling students to use today’s ICT technology.
Decrease errors in information access of the manual system
Hardware Tools
Different hardware used to develop our project
Computer: -computer is a machine capable of doing many things. We use it to type on it
and install all software and programming language.
Flash Disk and CD Hardware: - used for the movement of data from one machine to
another. We use both of them when we move our data from one machine to another.
Stationery: Stationery like paper, pen and so on that were need. All these are necessary
thing that we need to do and use.
Network cable: since our system is web based, it is very necessary requirement. It is also
help us to extract relevant information about our project from internet
6|Page
Time management problem: we solve this problem by working cooperatively, divide
our time by schedule for each phase of the project and we try to use this schedule
effectively
Power problem: we tried to use laptops to cover the gap happened to our
project during power failure.
7|Page
tool
Edraw max 1 Free Free
Windows 10 1 Free Free
OS
Total cost - - - 275
Table 1 Cost analysis
8|Page
CHAPTER TWO
Registration of information about book is mostly done by filling form by hand writing, it’s difficult
in the manual system
End user searches books from library shelf
9|Page
It tries to fulfill the Mission and vision of the college.
Recording library information
It stores actor files and service items
Try to reduce the complaint of end users
11 | P a g e
In general the proposed system will be described as follows regarding:-
Performance
It is easy to use (user friendly)
Fast and reliable
Speed
It will let the user to access the information being needed more quickly.
Give service to many users at any time.
Cost
It minimizes cost
Reduces wastage of man power
Reduces wastage of paper, pen, pencil, rubber
Reduces consumption of resources to maintain regular communication
13 | P a g e
This issue encompasses measures taken throughout the applications life cycle to prevent exceptions
in the security policy of the system through flows in the design, development, and maintenance of
application. In general to make the system asset safe, the system will follow a role based security
which means the access level and privilege for each builders of the collection is predefined by the
system administrator. The end user of the system most of the time will be asked for authorization
login except if the library or collection developer has set its own criteria to access the collections
Performance characteristics
The system will be accessed by many users or students inside the college. So it should be given
more emphasis for the speed to access the web site or the system database. The constraint
characteristics are also one of the performance characteristics of the system, the constraints can be
user’s computer low RAM, Network or connectivity failure, and others
Error Performance characteristics or handling and Extreme conditions
When the users of the system interact with the system errors may appear. To control these
Inaccuracies the system will generate different messages. Data errors which are entered in to the
system may not be completely avoided but they can be minimized. To do this most of the system
execution buttons will be controlled according to the sequence which the user is expected to follow.
Or this can be done by generating different system responses to the input of the users
System modification
Through time there are always changes when the user’s needs another additional functionality,
when the system administrator identifies the system need to be modified, while the organizations
work style is changed and depending on different reasons. Some of the user interface and basic
modification can be performed by the collection developers but the system developers are the right
persons to update the system
14 | P a g e
2.10. System Models
The project development team used an object oriented system development methodology. Because
the Object system development approach gives easier and natural way to breakdown problems into
simple, small and manageable components. An important goal of requirement modeling is come to
an understanding of the existing system problem that the new system is to address. This chapter
focuses on developing the requirement and analysis models for the new system using the UML use
case model, sequence diagram, activity diagram and class diagram. And also in this section the
functionalities of the system are described and modeled using UML models and also describe the
interaction between the user and the system. This section also used to identify the actors of the
system and what the actors does on the system.
15 | P a g e
Actor name Description
Administrator Administrator is the responsible person
in the library for managing and
coordinating the whole system. This
service called backline that means he/she
doesn’t contact with members
Manager Performs all management related tasks.
He creates account for the member, add
member, remove member and search all
information about the library
Librarian
They provide front line serves for the
user/members and always have direct
contact with the members.
16 | P a g e
2.10.2 Use case Diagram
Use case diagrams are diagrams used for capturing for functional requirements of the system. Each
use case diagram describes a behaviorally related sequence of transaction in a dialogue between the
user and the system.
Accordingly, Blue Mark college Digital library System contains many use cases that are described
as follows.
17 | P a g e
Table 3 Use case Diagram
18 | P a g e
2.10.3. The Descriptions of Use cases
Register Book use case
Name of use case Register use case
ID UC#1
Actor Admin
Flow of events: 1. The Librarian logs to Book
Registration form the home page of
the DBTCDLS
2. The Librarian clicks on the
register Book button
3. The system displays Book
registration form
4. The Librarian fills Book
registration data and click register
Book
5. The system displays successfully
saved message
Alternative case 6. If the registered Book exists in the
database, the system displays the file
already exists
Message and if the input data has
errors the system display error
message and allow the
Librarian to try again
19 | P a g e
Search Book Use case
ID UC#2
Participating actor Librarian
20 | P a g e
Update Book record Use Case
Name of use case Update Book
ID UC#3
Participating Actor: Admin
21 | P a g e
Delete Book Use Case
Name of use case Delete Book
ID UC#4
Participating actor Admin
22 | P a g e
Print Document Use Case
Name of use case: Print Document
ID UC#6
Participating actor: End User (Admen, Librarian,
Students, Staff and others)
Entry condition: The End user login to the system
23 | P a g e
Download Document Use Case
Name of use case Download Document
ID UC#7
ID UC#8
Participating actor End User (Students, Staff and
others)
Entry condition Login
25 | P a g e
2.10.4. Object Model
Object model deals with object oriented of the system. An object model is a logical interface,
software or system that is modeled through the use of object-oriented techniques. It enables the
creation of an architectural software or system model prior to development or programming. This
includes class diagram, relationship between these classes, methods in the class and properties.
2.10.5. Sequence diagram
Sequence diagram describe behavior as a sequence of messages exchanged among a set of objects.
Sequence diagram which is also known as interaction diagrams are one of the diagrams used in
UML, for modeling the dynamic aspects of the system. It shows an interaction consisting of a set of
objects and their relationship including message that may be dispatched among them. It emphasizes
the time ordering of messages.
A sequence diagram shows an interaction arranged in time sequence. In particular, it shows the
instances participating in the interaction by their “lifelines” and the stimuli that they exchange
arranged in time sequence. It does not show the associations among the objects. Sequence diagrams
are used to display the interaction between users, screens, objects and entities within the system. It
provides a sequential map of message passing between objects over time. Frequently these
diagrams are placed under Use Cases in the model to illustrate the use case scenario how a user will
interact with the system and what happens internally to get the work done. Often, the objects are
represented using special stereotyped icons. Its participating objects.
26 | P a g e
Figure 1 Admin Login to the System
27 | P a g e
Figure 2 Admin register books
28 | P a g e
Figure 3 Admin Searches for Registered Book
29 | P a g e
Figure 4 Admin Update Registered Book
30 | P a g e
Figure 5 End user Login to the system
31 | P a g e
Figure 6 End user Search resource
32 | P a g e
Figure 7 End User Material Download
33 | P a g e
2.10.3. Class Diagram
Class diagram shows the static structure of data and the operations that action the data, i.e. it shows
the static structure of an object-oriented model the object class, their internal structure, and the
relationships in which they participate. Class diagram represents a detailed view of a single use
case, shows the classes that participate in the use case, and documents the relationship among the
classes. It is a logical model, which evolves into a physical model & finally becomes functioning
information system. Class diagram evolve into code modules, data objects, & other system
components Class diagrams describe the structure of the system in terms of classes and objects.
Classes are abstractions that specify the attributes and behavior of a set of objects. Objects are
entities that encapsulate state and behavior.
34 | P a g e
Figure 8 Class Diagram
35 | P a g e
2.10.3. Activity Diagram
Activity diagram is another important diagram in UML to describe the dynamic aspects of the
system. Activity diagram is basically a flowchart to represent the flow from one activity to another
activity. The activity can be described as an operation of the system. The control flow is drawn
from one operation to another. This flow can be sequential, branched, or concurrent.
36 | P a g e
Start
Home
Login
Admin page
Click search
End
Registration
Form
Choice
Close Click Cancel
Registration
Form
Click No
Click search
Summary Correct?
msg box
Click close
Click yes
37 | P a g e
Start
Home
Login
Library page
End
Click update book
Registration
Form
Choice
Close
Registration
Form
Click Cancel
Click search
Registration
Form with page
Click No
Click update book
Summary
msg box
Correct?
Click ok
Click yes
Successful update
Message
38 | P a g e
Start
Home
Click login
Library page
Choice
Close
Registration
form
Click cancel
Click search
Registration
Form with page
Click No
Click Delete book
Summary
msg box
Correct?
End Click close
Click yes
Successful Delete
Message
39 | P a g e
Start
Home
Click login
Correct
NO Correction
Message
Yes
Download/view
End
40 | P a g e
Figure 14 State Diagram for Login
41 | P a g e
Figure 15 State Diagram for Registration
42 | P a g e
Figure 16 State Diagram for Search Information
43 | P a g e
NEWS
NEW
S
Searc
h
44 | P a g e
2.11.1. Supplementary Specification
Functionality
✓ Remote Access
All functionality shall be available remotely through an internet connection.
Usability
✓ Design for Ease-of-Use
The user interface of the marketing and service directory web app shall be designed for ease-of use
and shall be appropriate for a computer-literate user community with no additional training on the
System.
Reliability
✓ Availability
The marketing and service directory web app shall be available 24 hours a day, 7 days a week if
users want to use it.
Performance
✓ Simultaneous Users
The web application can be used by too much of users at a time simultaneously.
✓ Database Access Response Time
The application shall provide access to marketing and resource directory database with no more
than a 1second latency
45 | P a g e
CHAPTER Three
SYSTEM DESIGN
3.1. Introduction
After the determination of the requirements, it is the design that follows. The design is all about
stating the design goals of the system and subdividing the system into smaller parts so as to tackle
the problem in a modular approach. The output of this phase includes description of each
subsystems and the deployment of the subsystems. The use of digital library system is very
important for Blue Mark college digital library system in rendering service for the user. To give
right service for the right user at the right time on subject of his/her need, digital library plays a
great role.
Blue Mark College Digital Library system is currently renders service manually for its users.
46 | P a g e
Throughput: system can accomplish high amount of outputs within a specified
amount time.
Availability: The system or component is always operational and accessible when required for
use.
Accuracy: system must display accurate output.
Usability: -The system should have a simple and easy graphical interface that users can understand
quickly.
Security: user’s account is created by the system administrator, so, no one can’t create an account
by themselves and use the system. But person who has an account can login to the system
using his/her username and password and use the system. For example in the grading system,
since each student see their grade value by their own account with unique id, no one can’t see
other’s grade. Generally due to the above reasons, our system is secure.
Error handling: When the users interact with the system errors may appear. In addition to the
operating system error handling mechanism we use exception handler during implementation. To
control these inaccuracies the system will generate different messages.
Extensibility: the system is enabling the addition of new functionality without any restriction.
This constraint enables the system to have the acceptance of users, for it does not restrict the future
expansion of the system.
3.3.1. Overview
The proposed system is expected to replace the existing manual system by an automated system
in all facts. The architecture used for the system is a 3 tier Client/Server Architecture where a
client can use Internet browsers to access the digital library system (DLS) with in the local area
network of the school or anywhere using the Internet.
47 | P a g e
The presentation tier: the top most level of the application and is responsible for display and
collection of user data. It translates tasks and result to something the user can understand.
The middle tier (web/application server) is responsible for taking requests for the client’s
presentation tier, performing some type of business logic or process, and returning the results
back to the client for presentation. The controller logic processes client requests such as requests
to view placement or to retrieve data from the database. Business rules enforced by the business
logic dictate how clients can and cannot access application data and how applications process
data.
A web server is a program that runs on a network server (computer) to respond to HTTP requests.
The most commonly used web servers are Internet Information Server (IIS) and Apache.
The web server used in this system is IIS. HTTP is used to transfer data across an Intranet or the
Internet. It is the standard protocol for moving data across the internet
The data layer: is responsible to store and retrieve information from database. Only the application
tier should be allowed to request information from this tier. The data tier maintains the applications
data such as user data, placement data etc. It stores these data in a relational database management
system (RDBMS).
48 | P a g e
Internet
accesses
Digital library DB
Clint browser
Download book
MYSQL Database
Search book
49 | P a g e
Figure 18 overview Software Architecture
50 | P a g e
Shows the configuration of run-time processing elements and the software components, processes,
and objects.
The collection of one or more deployment diagrams with their associated documentation. Showing
relation b/n application and the database shows the deployment.
Librarian Manager
Admin
Database devices
MYSQl
User
Main server
Application server
Digital library DB
51 | P a g e
Figure 20 Physical data Base design
52 | P a g e
Identifies the logical, reusable, and transportable system components that define the system
architecture
Admin
Security
Manager
IReservation
Digital library
Digital library
User
DB
Librarian’s worker
53 | P a g e
CHAPTER FOUR
54 | P a g e
Functional testing is the testing to ensure that the specified functionality required in the system
requirements works.
System testing
It is the final step of testing. In this system tested the entire system as a whole with all forms, code,
modules. In this we tested all the functionalities in the System. All errors in the forms, functions,
modules have been tested. Finally, System testing ensures that the entire integrated software system
meets the desired requirements. It tests a configuration to ensure known and predictable results.
55 | P a g e
computer. So anyone who can access the internet can also access the system easily with in the given
permission or role.
4.4. Training
During the deployment of the system, the project group members will give short time training. The
team will provide short training term for the admin and registrar how he/she manage and operate
the system. The teams can explain information regarding the operation of the system for the
administrator during deploying the system on server. As the system is user friendly, it is not
complicated for the administrator to manage the system.
56 | P a g e
Figure 22 Users login page
57 | P a g e
Figure 23 Admin creating accounts
58 | P a g e
Figure 24 Admin uploading books
59 | P a g e
4.7. sample code
Login.php
<?php
$conn=mysql_connect("localhost","root","");
$db1=mysql_select_db("digital",$conn);
if(isset($_POST['login']))
{
$username=$_POST['username'];
$password =$_POST['password'];
// $position=$_POST['position'];
$query = "SELECT * FROM account WHERE username = '{$username}' AND password =
'{$password}' ";
$result_set=mysql_query($query);
$row=mysql_fetch_array($result_set);
$user=$row['position'];
if(mysql_num_rows($result_set)>0)
{
if($user=='manager')
{
session_start();
$_SESSION['accountid']=$row['accountid'];
echo "<script>window.location='managerpage.php';</script>";
}
else if($user=='user')
{
session_start();
$_SESSION['accountid']=$row['accountid'];
echo "<script>window.location='user.php';</script>";
}
else if($user=='admin')
{
session_start();
$_SESSION['accountid']=$row['accountid'];
echo "<script>window.location='manager.php';</script>";
}
else if($user=='librarian')
{
session_start();
$_SESSION['accountid']=$row['accountid'];
echo "<script>window.location='librarian.php';</script>";
}
}
60 | P a g e
else
{
Upload.php
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<style type="text/css">
#wrapper {
margin: 0 auto;
float: none;
width:70%;
}
.header {
padding:10px 0;
border-bottom:1px solid #CCC;
}
.title {
padding: 0 5px 0 0;
float:left;
margin:0;
}
.container form input {
height: 30px;
}
body
{
font-size:12;
font-weight:bold;
}
</style>
61 | P a g e
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Upload File</title>
<?php
if(!empty($_POST))
{
$con = mysql_connect("localhost","root","");
if (!$con)
echo('Could not connect: ' . mysql_error());
else
{
if (file_exists("download/" . $_FILES["file"]["name"]))
{
echo '<script language="javascript">alert(" Sorry!! Filename Already Exists...")</script>';
}
else
{
move_uploaded_file($_FILES["file"]["tmp_name"],
"download/" . $_FILES["file"]["name"]) ;
mysql_select_db("digital", $con);
$sql = "INSERT INTO book(book,author,file) VALUES ('" . $_POST["sub"] ."','" .
$_POST["pre"] . "','" .
$_FILES["file"]["name"] ."');";
if (!mysql_query($sql,$con))
echo('Error : ' . mysql_error());
else
echo '<script language="javascript">alert("Thank You!! File Uploded")</script>';
}
}
mysql_close($con);
}
?>
</head>
<body>
<div class="container home">
<br>
<h3><center> UPLOAD BOOKS</center></h3></font>
Download.php
<?php
$file = './download/'.$_GET['id'];
$title=$_GET['id'];
header("Pragma: public");
header('Content-disposition: attachment; filename='.$title);
header('Content-Transfer-Encoding: binary');
ob_clean();
flush();
while (!feof($handle)) {
$buffer = fread($handle, $chunksize);
echo $buffer;
ob_flush();
flush();
}
fclose($handle);
} else {
readfile($file);
}
?>
64 | P a g e
APPENDIX
Diagram used during development Symbol definition
Symbol definition
------------------------------------------------------------------------------------ Actor
----------------------------------------------------------------------------- Package
---------------------------------------------------------------------- Component
---------------------------------------------------------------------------------- Node
---------------------------------------------------------------------------------- Device
65 | P a g e
References
1. Stephen, R.(2005) Object Oriented and Classical Software Engineering
2. http://www.youtube.com/watch?v=digital
3. Digital libraries. Types and structures of digital library. Retrieved Aug,
2013, from the free encyclopedia
5. Wikipediawebsite:http://en.wikipedia.org/wiki/Digital_library
4. Software engineering text book and object oriented software engineering book.
6. www.dynamicss.com...how to design interfaces
66 | P a g e