You are on page 1of 28

Wadi International University

eBook Store
M.Anis Mokahhal 4th year Business Informatics
Wisam AboAfash 4th year Business Informatics
Supervisor: Dr.Haythm Watfe

E-COMMERCE ............................................................................................................................... 4
1.1
ATTRIBUTES AND DEFINITION OF E-COMMERCE ...........................................................................................4
1.2 FOUR CATEGORIES OF E-COMMERCE: ..................................................................................................................4
1.2.1 Business-to-Customer (B2C)........................................................................................................................4
1.2.2 Business-to-Business (B2B) .........................................................................................................................4
1.2.3 Consumer-to-Consumer (C2C) ....................................................................................................................4
1.2.4 Customer-to-Business (C2B)........................................................................................................................4
1.3 ADVANTAGES...................................................................................................................................................... 6

GRAPHICAL NOTATIONS USED ................................................................................................... 6

SOFTWARE REQUIREMENTS ANALYSIS .................................................................................... 7

GOALS AND OBJECTIVES ............................................................................................................ 7

SYSTEM STATEMENT OF SCOPE ................................................................................................. 8


5.1
5.2

GENERAL REQUIREMENT: ............................................................................................................................ 8


EXTENDED ENHANCEMENT.......................................................................................................................... 8

SYSTEM CONTEXT........................................................................................................................ 8

MAJOR CONSTRAINTS ................................................................................................................. 9

USAGE SCENARIO .......................................................................................................................... 9


8.1
8.2

USE CASES ................................................................................................................................. 11


9.1
9.2
9.3

10

GUEST AND USER: ........................................................................................................................................ 9


ADMINISTRATORS ........................................................................................................................................ 9

READ ONLY / GUESTS .................................................................................................................................. 11


READ/WRITE/MODIFY OWN / USERS ........................................................................................................... 11
READ/WRITE/MODIFY ALL USERS/FULL CONTROL USERS/ ADMINISTRATORS ........................................... 11

DATA DICTIONARY ..................................................................................................................... 11


10.1
DATA OBJECTS ............................................................................................................................................ 11
10.1.1
Users Table ........................................................................................................................................ 11
10.1.2
Books Table ........................................................................................................................................12
10.1.3
Admin Table .......................................................................................................................................13
10.1.4
Transaction Table.............................................................................................................................. 14
10.1.5
Contact Table .................................................................................................................................... 14
10.2
RELATIONSHIPS DIAGRAMS ........................................................................................................................ 15
10.2.1
Entity Relationship Diagram (ERD)...................................................................................................15
10.2.2
Entity Relationship Diagram Simple Layout .................................................................................. 16

11

FUNCTIONAL MODEL AND DESCRIPTION ................................................................................ 17


11.1
REGISTRATION SYSTEM FLOW .................................................................................................................... 17
11.2
USER ACCOUNT ACTIVITIES ....................................................................................................................... 18
11.3
ACTIVITY DIAGRAMS.................................................................................................................................. 19
11.3.1
Sign up ............................................................................................................................................... 19

Wadi International University | EBook Store

11.3.2
Logout................................................................................................................................................ 19
11.3.3
Update Personal Information ............................................................................................................ 19
11.3.4
MD5................................................................................................................................................... 19
11.3.5
Purchasing Activity ........................................................................................................................... 19
11.3.6
Transformation of Data ......................................................................................................................21
11.4
REGULAR EXPRESSION ............................................................................................................................... 21
12

HUMAN INTERFACES ................................................................................................................. 22


12.1
12.2
12.3
12.4
12.5

BOOKS PAGE ............................................................................................................................................... 22


USER ACCOUNT PAGE................................................................................................................................. 23
ADMIN ACCOUNT PAGE ..............................................................................................................................24
PURCHASE PAGE ......................................................................................................................................... 25
ADMINISTRATORS CONTROL PANEL ONLINE HELP ..................................................................................26

13

RESULTS .......................................................................................................................................27

14

REFERENCES................................................................................................................................27

Wadi International University | EBook Store

Figure 1: Categories of e-Commerce ..................................................................................................... 5


Figure 2: Converging e-Commerce Types ................................................................................................ 5
Figure 3: Graphical Notations .................................................................................................................. 7
Figure 4: Use Case for Users and Guests ................................................................................................10
Figure 5: Use Case for Admin ................................................................................................................10
Figure 6: Professional ERD .................................................................................................................... 15
Figure 7: Simple ERD ............................................................................................................................16
Figure 8: Registration System Flow ........................................................................................................ 17
Figure 9: User Account Activity .............................................................................................................18
Figure 10: Activity Diagram 1 ............................................................................................................... 20
Figure 11: Activity Diagram 2 ............................................................................................................... 20
Figure 12: Transformation of Data .......................................................................................................... 21
Figure 13: Books Page........................................................................................................................... 22
Figure 14: User Account Page ............................................................................................................... 23
Figure 15: Admin Account Page ............................................................................................................ 24
Figure 16: Purchasing Page ................................................................................................................... 25
Figure 17: Online help Page .................................................................................................................. 26

Table 1: Advantages ................................................................................................................................ 6


Table 2: Users Table............................................................................................................................... 11
Table 3: Books Table.............................................................................................................................. 12
Table 4: Admin Table ............................................................................................................................. 13
Table 5: Transaction Table ..................................................................................................................... 14
Table 6: Contact Table ........................................................................................................................... 14

Wadi International University | EBook Store

1 e-Commerce
1.1 Attributes and Definition of e-Commerce
Definition: Technology-mediated exchanges between parties (individuals or
organizations) as well as the electronically based intra-organizational or interorganizational activities that facilitate such exchanges. [2]
The Attributes:
Exchange of digitized information between parties.
Technology-enabled.
Technology-mediated.
Intra-organizational and inter-organizational activities to support exchanges.

1.2 Four Categories of e-Commerce:


1.2.1 Business-to-Customer (B2C)

Exchange of physical and digital products or services directly from businesses to


individual customers [2]
Amazon, Yahoo etc.
1.2.2 Business-to-Business (B2B)

Full activities of e-commerce that can occur between two or more organizations [2]
Globalnetexchange, FreeMarkets, General
Electric, Dell etc.
1.2.3 Consumer-to-Consumer (C2C)

Exchanges involve transactions between and among consumers.


These exchanges can include third-party involvement [2]
E-bay auction, Monster (jobs) etc.
1.2.4 Customer-to-Business (C2B)

Consumers can band together to present themselves as a buyer groups, that can be
economically motivated or social oriented. [2]
SpeakOut.com etc.
As shown in Figure 1 & Figure 2

Wadi International University | EBook Store

Copyright @ 2003 Marketspace LLC

Figure 1: Categories of e-Commerce

Copyright @ 2003 Marketspace LLC

Figure 2: Converging e-Commerce Types

Wadi International University | EBook Store

1.3 Advantages
The e-Commerce has several advantages in the market, this a comparison between B2B
e-Commerce and B2C e-Commerce
As shown in Table 1

B2B e-Commerce
Cost savings
Efficiencies
Access to suppliers
Connecting employees
Access to new markets

B2C e-Commerce
Lowering cost of Selling Online
New Products and Services Offering
Reaching New Segments and Markets
Personalized Marketing
Reinforcing Existing Marketing Efforts

Table 1: Advantages
2 Graphical Notations Used
We used many abbreviations and graphical notations in our project.
Abbreviations:
Guest: Users who has not signed-up yet and has limited view of website.
User: The one who already signed-up and is provided with sufficient information to use
our services.
Admin: Refers to Administrator, the person who can edit and alter content of database
only.
A lot of Graphical notations are presented in our project to describe specific processes.
These notations are used in many diagrams (activity, system flow, Entity Relationship
diagram etc.)
As shown in figure 3

Wadi International University | EBook Store

Figure 3: Graphical Notations

3 Software Requirements Analysis

At first we began establishing requirements for a library web-site.


We asked customers(whom we are making the web site to) some questions:
How would you like your website to act (dynamic/static)?
Would you like to perform an online login?
Would you like to perform an electronic admin insertion?
Would you like to make online payment?
Also some requirements where obvious for customers so our customers just told us about
them.
Users can view all available books online.
User is able to buy online.
Service of delivery.

4 Goals and Objectives


Our goal is to make a library website that includes the following functions:
Navigate through books online.
Buy books.
Users edit their information through their own accounts.
The ability to edit library database online through website administration.

Wadi International University | EBook Store

5 System Statement of Scope


5.1 General Requirement:

Saving time and money to customers with the service of browsing and buying
online.
Providing a private account for each customer that allows the library to store
information electronically.
Each customer is able to visit their account at any time and edit special
information and transactions.
Serving many customers at the same time (parallel processes).
Online payment and service of delivery.
Simple dealing with data for adding and updating information by admins.
Interface enhancement:
Top managers have requested to include their service electronically instead of
traditional paper work.
Its even a more time, staff, and cost saving way. Its also environment
friendly!
Database administrative interface:
Admins could access their control panel. Theyll be prompted to enter their
user name and password.

5.2 Extended Enhancement

Using EasyPhpMyAdmin as an open source application to control the structure of


the database. (Preparation, back-up and manipulation.)

Linking database with the website by using php language.

Also JavaScript language was used to make appropriate rules, and regular
expressions.

Adobe Dreamweaver CS3

6 System Context

Our Project works perfectly using any internet browser and any operating system.

It is designed for simultaneous connections, or parallel transactions.

The database can be easily accessed or modified no matter how large it is.

Wadi International University | EBook Store

7 Major Constraints

The base constraints were time.


Because the project is large and has many features to be accomplished, it was very hard
to finish the website functionality in about 2.5 months.

Due to lack of time we used Rapid Application Development (RAD) Model because the
course time doesnt fit with other models.
The RAD Model is the quickest model. Its done by assigning distinct tasks to each
developer, and then gathering work to have a complete project.
After finishing, the project is immediately handed, but future maintenance and
development for newest versions may be demanded.

8 Usage Scenario
An operational profile indicates how different types of users interoperate with the computers
system. [1]
When people visit the website theyre considered guests.
After signing-up and providing sufficient information about themselves they become
registered users (user).

8.1 Guest and User:


Now, users can access their account and use our services.
They can buy books online, update their profiles, view books, and contact
administrators.
As shown in figure 4

8.2 Administrators
Administrators access their control panel. They can do two major tasks:
Manipulate & edit database content.
View reports.
Can view mails sent by guests and users(Online help service).
As shown in figure 5

Wadi International University | EBook Store

Figure 4: Use Case for Users and Guests

Figure 5: Use Case for Admin


Wadi International University | EBook Store

10

9 Use Cases
A description or scenario that depicts how the user interacts with the product or system
To develop the operational profile, it is necessary to derive a set of user scenarios that are
similar to use-cases. [1]
9.1 Read Only / Guests
The lower permissions level, they can only access the main page, view help, view book,
and sign-up.
9.2 Read/Write/Modify Own / Users
Have more permission. They can update their profile, buy DTs, view detailed
information, view book, and log-out.
9.3 Read/Write/Modify All Users/Full Control Users/ Administrators
Can access control panel, manipulate database content, alter database, structure of
database, and view reports.

10 Data Dictionary
10.1

Data Objects
A data object contains a set of attributes that define some aspect, quality,
characteristic, or descriptor of the data that are being described [1]
10.1.1 Users Table
Users information are electronically inserted into this table when they sign-up.
The Users table consists of eight fields:

Primary Key unique number/not null for every user (ID)


First Name of the user (fname)
Last Name of the user (lname)
Address of the user (Adress)
E-mail address of the user (email)
User Name (username)
Password (password)
Phone Number of the user (phonnum) As shown in Table 2

Table 2: Users Table


Wadi International University | EBook Store

11

10.1.2 Books Table


Also a book can be electronically added from any admin account.
The Books table consists of nine fields:
Primary Key unique number/not null for every book (BookID)
Name of the book (name)
The author of the book (author)
Book cost (price)
Picture of the book (pic)
Descriptions about the book (Text)
International unique number for each book (ISBN)
The issuing date of the book (issuedate)
Category of the book (Type)
As shown in Table 3

Table 3: Books Table

Wadi International University | EBook Store

12

10.1.3 Admin Table


Only can be accessed by an admin, used for admins login
The Admin table consists of eight fields:
Primary Key unique number/not null for every admin (AdminID)
First Name (fname)
Last Name (lname)
Address (Adress)
E-mail (email)
User Name (username)
Password (password)
Phone Number (phonnum)
As shown in Table 4

Table 4: Admin Table

Wadi International University | EBook Store

13

10.1.4 Transaction Table


Used when a user buys books. To save books that the user chooses
through session variables.
The Transaction table consists of three fields:
Primary Key (ID)
Foreign key User ID (UserID)
Foreign key Book ID (BookID)
As shown in Table 5

Table 5: Transaction Table


10.1.5 Contact Table
Used when a user wants to contact with admins by sending a message to
the admin (to provide help to the user in our website).
The Contact table consists of four fields:
Name of the user or guest -primary key ( Name)
Email of the user or guest (Email).
Phone number of the user or guest (Phonenum)
Text area where guest types questions for administrators
(Message).
As shown in Table 6

Table 6: Contact Table

Wadi International University | EBook Store

14

10.2 Relationships Diagrams


10.2.1 Entity Relationship Diagram (ERD)
The Entity relationship depicts relationships between data objects. The
ERD is the notation that is used to conduct the data modeling activity.
The attributes of each data object noted in the ERD can be described using
a data object description. [1]
As shown in figure 6

Figure 6: Professional ERD

Wadi International University | EBook Store

15

10.2.2 Entity Relationship Diagram Simple Layout


This ERD we created it to make it simple as possible to our viewer.
As shown in figure 7

Figure 7: Simple ERD

Wadi International University | EBook Store

16

11

Functional Model and Description


11.1 Registration System Flow
If admin: the admin should Sign in then will move to the admin account page.
If Guests: the guest should Sign up (Entering his personal information) if its filled
correctly a welcome message will appear.
If User: the user should Sign in then will move to the account page.
As shown in figure 8

Figure 8: Registration System Flow

Wadi International University | EBook Store

17

11.2 User Account Activities


The website provides users with many services and activities that simplify
working with the website over the internet.
Each user has a distinct account page, which allows the user to privately
customize books and personal settings.
Main activities of users (from user account page):
Every user can always change his/her information at any time, when changing
information its updated immediately in the database.
Users can view all available books in the database in an ordered way
(categories).
Users can buy books after choosing the appropriate books for their needs.
Users can view their previous operations through their account page.
They can view books that they bought in the past up to a limited period.
Users can logout of the website. When they log out, session that is opened for
each user is closed.
As shown in figure 9

Figure 9: User Account Activity


Wadi International University | EBook Store

18

11.3 Activity Diagrams


11.3.1 Sign up
In the sign up activity user is promoted to fill information, if the user
accepts a new record in table users inserted.
As shown in Figure 10

11.3.2 Logout
In the logout activity user clicks logout, and session will be closed.
As shown in Figure 10

11.3.3 Update Personal Information


In the update personal information activity user is promoted to update his
personal information, if the user fills information, his/her record in table
users is changed.
As shown in Figure 10

11.3.4 MD5
In the MD5 activity we prompt the user to enter his/her user name and
password, if they submit, the password will be transformed to MD5 (Hash
Table) to check the password and the user name in the database.
As shown in Figure 11

11.3.5 Purchasing Activity


In buy book activity, when user clicks Buy Book purchase page is
loaded.
In purchasing page, user is asked to fill information that will be checked
by a bank server.
If information is valid, chosen books will be delivered to the user, if not,
user is asked to refill information.
As shown in Figure 11

Wadi International University | EBook Store

19

Figure 10: Activity Diagram 1

Figure 11: Activity Diagram 2

Wadi International University | EBook Store

20

11.3.6 Transformation of Data


We created this design to describe how data is transformed (Request &
Response) from the PC to the Book Store server and the Bank server.
As shown in figure 12

Figure 12: Transformation of Data

11.4 Regular Expression


All forms tables and text fields in the website are related with java script regular
expressions that are appropriate for the task of these forms tables and text field.
For instance in log in forms, settings pages, contact forms, registration form... etc.
If users enter invalid values for text fields such as phone number, e-mails, or leave
require text field empty or miss match password confirmation, they are notified for
their mistake and promoted to fill information again.

Wadi International University | EBook Store

21

12 Human Interfaces
12.1 Books page
In the books page users can:
Choose any book to purchase.
Choose which kind of book they would like to purchase.
Logout from their account.
Go back to the home page.
Change their account settings.
As shown in figure 13

Figure 13: Books Page

Wadi International University | EBook Store

22

12.2 User Account Page


In the User Account Page users can:

Change their account setting.


Logout from their account.
Go to the books page to view or purchase books.
View the book stores news.
As shown in figure 14

Figure 14: User Account Page

Wadi International University | EBook Store

23

12.3 Admin Account Page


In the admin Account Page admins can:

Change their account setting.


Logout from their account.
View all books.
Delete and add a user.
Delete and add an admin.
Delete and add a book.

As shown in figure 15

Figure 15: Admin Account Page

Wadi International University | EBook Store

24

12.4 Purchase Page


In the Purchasing page user can see:
ISBN, Name, Price of the selected book,
Their personal information,
Select which kind of payment method they would like to implement.
Insert the information of the credit card.

As shown in figure 16

Figure 16: Purchasing Page

Wadi International University | EBook Store

25

12.5 Administrators Control Panel Online help


This service provides efficient help for guests and users.
They can view the contact form and type a message for administrators.
When any administrators logs in he/she is notified for mail (messages sent by users).
If no messages are sent, mail notification is not displayed.
As shown in figure 17

Figure 17: Online help Page

Wadi International University | EBook Store

26

13 Results
During this semester we could develop and design a website that offers books purchasing
services, in a short time.
We hope you like our website.

14 References
[1]
S.PRESSMAN, R. (2005). Software Engineering: A Practitioner's Approach (Sixth ed.).
McGraw-Hill.
[2]
Jeffrey F. Rayport,Bernard J. Jaworski. (2004). Introduction to E-Commerce (second ed.).
United States: McGraw-Hill

[3]
Robert W.Sebesta. (2006). Programming the World Wide Web(Third ed.).Pearson
Education, Inc.

Wadi International University | EBook Store

27