Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
/2007
CHAPTER ONE
1. Introduction
1.1Background
Ambo university consumer coop super market is one of the parts of AU service. Ambo
university consumer coop super market is established in 2002 E.C.
This organization gives service to the customer .the main purpose of the super market is
provide service to the costumer in optimum price. One of main purpose of AU producing
skill people and giving service to the community .this consumer coop supermarket is leading
by professionals people they perform many research to solve the community problems .this
supermarket service is greatly related with this society day to day life. The university
performs main society based research to solve the society problem from this consumer super
market is one of the best practical achievements.
The case study of Ambo university consumer cooperation supermarket that how do they
evaluate and judge its employees will be carried out in form of research on the upcoming
years. This consumer cooperation supermarket is a subsidiary of ambo town and one of the
leading retail stores of Ambo University. In more than one stores consumer cooperation
supermarket are usually 5-10 plus employees working in different shifts. Consumer
cooperation supermarket is became a part of in ambo university more than 7 years ago. All
these can be due to the fact that it has a strong friendly policy that includes staff discounts,
money off vouchers, plus other benefits. The other key factor that plays an important part in
retention is the ability to progress from a supermarket manager.
Information Technology
page 71
/2007
The existing working process for the supermarket management has the following
problems:
The main objective of this project is to develop the web application for ambo university
consumer cooperation supermarket management system.
1.3.2 Specific objective
After the successful completion of this project the software will provide the following
application (services):
Information Technology
page 71
/2007
Will Increase the income of the organization: as long as the system satisfied the users,
the customers will increase.
Reduce the work load: cause the paper based system replaced by the computerized
one.
Our country can get currency from local and international customers.
Information Technology
page 71
/2007
1.6 Methodology
1.6.1 Requirement gathering method
Data about the organization will be collected using Observation, Document Analysis and
interview. Because this methods help us to get full and clear information about the
organization in easy way.
1.6.1.1 Observation
We are used in order to analyse the conditions to which the existing system is acting. We are
collect useful information how jobs are done and how information flows directly from the
user is observed.
1.6.1.3 Interview
Interviewing the employers and customers to have reliable and clarified information from the
users, managers, workers of the company .It will be used assure the information which is
observed from documents, forms, and reports etc. It enables to understand the feeling or
interest of the interviewer directly.
1.6.2 Requirement modelling
We try to use waterfall model to show the process in phases. The output of one
phase in the waterfall model is the input to the other phase. There is a sequential
and linear flow among the process. There are standards set for the output of each
process. If one output is wrong it disturbs the entire model.
OOA (object oriented analysis): This is an entirely different approach in to
information system.
1.6.3 Development tools
1.6.3.1 Software
After having all required data and information, different programming tools will be used
in order to design and represent the new system. This includes
Database server:-this is the most crucial requirements of the new system use MySQL
for the database.
Dreamweaver
Web server: apache running multiple processes to have them ready when a client
request comes in.
Editing /documentation/ software: MS notepad++would be used as documentation
and for other text editing.
Client side script: JavaScript
Adobe Photoshop
Internet explorer
Information Technology
page 71
/2007
Mozilla Firefox
Opera
Google chrome
1.6.3.2Hard ware
Personal computer
Cd: to store the file.
Flash disk: to store a file.
Printer: to print the document of the project.
Digital camera: to take necessary pictures for developing the website.
Scanner: to change pictures from hard copy to soft copy.
Funding source
Funding plan
Proposing organization
By showing
proposal
Ambo university
50,000
Other co financer
By promotion
50,000
the
project 80,000
180,000
Information Technology
page 71
/2007
Dec 2014
ID
Task Name
Start
Finish
Jan 2015
Feb 2015
Mar 2015
Apr 2015
May 2015
Jun 2015
Duration
12/7 12/14 12/21 12/28 1/4 1/11 1/18 1/25 2/1 2/8 2/15 2/22 3/1 3/8 3/15 3/22 3/29 4/5 4/12 4/19 4/26 5/3 5/10 5/17 5/24 5/31 6/7
1 Chapter 1
2 Chapter 2
3 Chapter 3
1/1/2015
1/14/2015
2w
4 Implementation
1/15/2015
6/8/2015
20.6w
5 presentation
6/17/2015
6/16/2016 52.4w
Our project team organization structure is also decentralization .this best team
structure, participate all member s in the group.
Responsibility
Facilitator
Members
Proposal
All members
All members
System analysis
All members
All members
System design
All members
All members
Implementation
All members
All members
Table 1.2 project organization
Information Technology
page 71
/2007
CHAPTER TWO
System Analysis
2.1 Major function of the current system
The current systems of ambo university customer cooperation supermarket use manual
system. This super market cannot give full service to the customer because of they are not
fulfill customer satisfaction. The customer directly comes to the store and buys the service.
When the customer comes to the super market they have lose some things such as time,
money and human labor. They maintain (record) product, customer and employee
information using pen and paper. This has great problem on the consistency of the system.
1. Customer registration
When the customer buying to the product in the super market at that time employees register
the customer.
2. Report
The employee report to daily, weekly and monthly to the manager which product is sold,
some products immediately required for the customer and type of product completed or
finished.
3. Product Registration
The employee to register new Products, selling products and complete products of the super
market of Ambo University and also, the employee update status of the Product list
2.2 problem analysis /definition
Manual system is not secured because of the document is paper based; the document is lost
or damaged. If the documents are lost, damaged or theft by other person leads to endangers
the customers .this means customer information are lost. Even the organization also
endangers by the cause of left their communication with the organization.
Customer must go to the organization from anywhere. So this system consumes time and
money. If you want to buy you must go to the organization you may use a transport like taxi,
this causes for extravagance of time and money.
The problem in the existing system is solved by automated system. For example, identifying
the product price, customer id, and circulation of the employees, done by using the new
system. This automated system saves time and reduces human power
Information Technology
page 71
/2007
Service: It takes more time to give as well as get the services both the
workers and users
This frame work is used to identify the problems with in an existing Dormitory System.
2.3 user needs
We see user needs from two aspects, one from the workers aspect and on the other hand from
the peoples that get services (customer).
Workers aspect: since every activity was performed manually the workers doesnt provide
well service to their customers and feel lack of work satisfaction while if the system will
changed with automated system they make sure that totally their work activity will change
accordingly; and get work satisfaction with their work activities and they can get much more
time to give services for many customer.
Work space also reduced, retrieving, dealing with the customer data also so easiest to.
From customer aspects: since the workers perform their services manually they spend
much time on dealing with only a single customer then, almost 25% if the customer will
wait some long queue on almost all customer; due to this most of the customer doesnt get
service timely. Due to this all the users ensure that if the system is changed to automated
system than every activity (services) will gain timely and believe that the workers
provides such enough service to them.
Generally the users need the system to be having the following things:
The system shall provide a friendly user interface with attractive
The system shall provide easy access, storage
System shall offer security to the stored information through the use of password to
control access to the information
System shall accept data and modification by authorized users
System should be able to store large quantity of data in a central location
Information Technology
page 71
/2007
The requirement analysis of the existing system in ambo university super market
cooperative system is
A, Selling:
The employee to sell the product to the customer
B, Audit:
They can check the selling and the remaining products
They can calculate the income and expense of money
They can checks the expired product
2.4.1 Essential use case modeling:
is also called business use case; simply abstract, generalized use case that capture the
intentions complete, meaningful and well-designed form the point of view of users in some
role, or roles in relation to system and that embodies the purpose or intentions underlying the
interaction.
All the icons and buttons used in the program should be consistent throughout the program.
The GUI should be easily customizable.
The GUI should be easily understandable.
Information Technology
page 71
/2007
The systems in general have a good graphical user interface that enables the users to
Use it easily and in efficient manner.
Business rule: A business rule defines or constrains one aspect of your business that is
intended to assert business structure or influence the behavior of your business.
Name: manager
Identifier: - BR1
Description: control and manage all activities of the super market
Name: employee
Identifier: BR2
Description: register product and customer
Sell product
Preparing bill
Name: customer
Identifier: - BR3
Description: view product information
Buy product
The current system of cooperation super market service has disadvantages that limit the
performance, efficiency and speed of system.
The current system of cooperation super market has advantages
Improve quality of the company service and have fast response time.
Information Technology
page 71
/2007
The system worked totally in computerized and web based system. This system was
designed to solve all problems that are phased in the existing system and activity has great
change on the consistency of the system.
page 71
/2007
Usability
Since I use powerful programming languages which support graphical user interface it
is user friendly for the user and does not require a great deal of skill and expertise.
Performance
The new system accomplishes tasks within good response time and produces
output within a good throughput time.
Time
The system saves lots of time in performing tasks performed by the current system
Security:-To access any data in the database the user should be an authorized
otherwise unauthorized person cannot access any system information illegally.
Portability
The system can be executed in different platforms without any restriction. It is
also adaptable.
Reliability
Compared with the current system it is very reliable where it can handle error and
can effectively produces the desired result in case of performing a specific task.
Flexibility
It is easy to add additional features and tasks performed by the system and also it
is easy for manipulation.
Quality Issues
A much larger volume of software is business-critical, e.g., software that runs in powers web
servers and manages data centres. Defects in this type of software can lead to significant
financial losses. The system will also have different modules for taking backup of
organization data with tape devices or Medias and the backup of the system will of two types
differential or incremental backup depending on the choice of user. Underpinning all of these
areas is systems software: the low-level operating systems, device drivers and networking
software on which complex systems are built. This foundational role means that the reliability
of systems software is of primary importance.
The new system is reliable, robust compare with the current system and also when we
observe the current system its not always available as the new system. In case of our new
system user involvement in the development processes is our vital requirement for the quality
of the system.
System Modification
In future the system can be re-implemented to modify online payment .The reimplementation can be performed by the developers or other system developers by using
technical document.
Physical Environment
The system expected to withstand external problems like when the network connection fails
or slow the system must withstand the network frailer, and if the hardware crashed the system
must be back-up the file that the user use.
Information Technology
page 71
/2007
Security Issues
Security of the system must be given the outmost consideration in a database intensive
system. This document is defined to serve all application parts, to make authentication of
users and authorization on and incorporate functionality that the system need to have:
All the system must be secured: user must be able to give right or deny for all user
based on his or her position by the administration of the system.
All major transaction of the system should be logged to database and seen only by the
administrator. If the system has login part the external intrusions or malicious users
cannot get access.
The system has session control: when the user registered once the system can save the
user data.
Resource Issues
The system has a resource that requires having the following performance characteristics
The server and the client must have memory space.
The server and client must have process speed.
This project consumes 180000 birr to develop the entire for proposals 30000 birr, for
project analysis 40000 birr, for project designs 40000 birr and for implementation part 70000
birr. For these small budgets it can be beneficially for to:
Reducing the cost of the organization. It reduce the cost paid for human power,
reduces the number of employees works in management in the organization
It reduce resource that are used for documentation
It also increases the availability of resources anywhere, so that decrease
transportation rate.
It is beneficiary in terms of reducing the cost of the organization.
It reduces the cost paid for updating and storing of the product data and although
the staff data.
It reduces resources that are used for documentation like paper, pen, etc.
Information Technology
page 71
/2007
Projects are always given deadlines. Every project is completed in specific duration. I had to
complete the project in time and if it is not possible to complete on time then we should try to
fulfil requirements.
2.7 Requirement analysis for new system
Requirements analysis is critical to the success of a systems or software project. The Requirements
should be documented, actionable, measurable, testable, traceable, related to identified business needs
or opportunities, and defined to a level of detail sufficient for system design. So we identify the
following things for the new system:
2.7.1 Actor and Use Case Identification
A use case model is used to document the behavioural requirement and functional tasks .the
system must support essential use case model often returned to as a business use case model
or abstract use case model, models technology independent view of your behavioural
requirement. Essential use case model include after the identification use case diagram.
2.7.1.1Actor Identification
Actors represents anything that can be interact directly or indirectly
Customer
Employee
Manager
Actor Documentation
Name: Customer
ID: AU0001/2007
Description: every customer should be register
Name: employee
ID: AU0002/2007
Description:
Information Technology
page 71
/2007
Generate report
View product information
Delete customer information and product
Accept comment
Update product and customer information
Search customer data
Register customer product
Use case diagram may contain many elements within it namely: Actors, Use case,
Associations, System and they are drowning as stick figures.
Actors: an actor is a person, organization, external system that plays a role in one or more
interactions with your system and they are drowning as stick figures.
Information Technology
page 71
/2007
Use case: Sequence of actions, including variants that a system (or other entity) can perform,
interacting with actors of the system. We use for the action of delete, update, view, record,
report, comment, Login and logout
System boundary: Represents the boundary between the physical system and the actors who
interact with the physical system. We use this boundary between physical systems
Extend: a relationship from an extension use case to a base use case, specifying how the
behavior from the extension use case can be inserted into the behavior defined the base use
case. Use this extension from login to other use case
Uses: A relationship from a base use case to an inclusion use case, specifying how the
behavior for the inclusion use case is inserted into the behavior defined for the base use case.
We use this to indicate which tasks the actors to be performed
2.8 use case diagram documentation and forms
Name: login
Id: UC-1
Priority: high
Actor: manager, employee
Description: This use case allows the manager and employee to login to the system
Precondition: This is done by the manager and employee before doing any activity
Flow of event:
1.
2.
3.
4.
5.
page 71
/2007
Actor: Manager
Description: This use case permit user to update or modify customer information in case of
wrong input or needs.
Precondition: Checked the type of the information that can be updated
Flow of event:
1. User wants to login to system
2. Open the customer page
3. Fill the updated information
4: press update button
5 end of use case
Alternative flow of events:
A1. If fill information is incorrect back to step 3
Post condition: Checked the updated one
Name: delete customer data
Id: uc-3
Priority: high
Actor: Manager
Description: This use case permit user to delete or modify customer information in case of
wrong input or needs.
Precondition: Checked the type of the information that can be deleted
Flow of event:
1. User wants to login to system
2. Open the customer page
3. Fill the deleted information
4: press delete button
5 end of use case
Alternative flow of events:
Information Technology
page 71
/2007
page 71
/2007
page 71
/2007
Flow of event:
1. User wants to login to system
2. Open the customer page
3. Fill the customer information
4: press record button
5 end of use case
Alternative flow of events:
A1. If fill information is incorrect back to step 3
Post condition: Checked the type of the information that can be recorded
Name: give comment
Id: UC-8
Priority: low
Actor: manager, employee and customer
Description: This use case allows the manager, employee and employee to login to the
system
Precondition:
Flow of event:
1.
2.
3.
4.
5.
Information Technology
page 71
/2007
search customer
data
logout
Manager
modify information
extends
extendsextends
update
delete
login
give comment
Customer
record custemer
view product
Employee
generate report
make payment
Information Technology
page 71
/2007
The new system will design by using object oriented model. The object oriented model
contains use case diagram.
The purpose of use case diagram is to identify the user or how the user interact with the new
system, in other words to identify how the system will be used. The use case diagram is
graphical model that summaries the information about actor and use case.
page 71
/2007
Id: UI 4
Description: This page used to manager and employee write the report
Name: search customer data Page
Id: UI5
Description: the manager and employees to get their own pages to enter username and
password
Name: Record customer Page
Id: UI7
Description This use case permit user to record customer information when the customer
buys a products.
Name: main Page
Id: UI8
Description: All users firstly can get the main page .This page consists of about as,
comment page, view page.
2.11 sequence diagram
Sequence diagrams are usually created to show the flow of message among objects and actors in
the system. Sequence diagrams answer questions about how the system will work. Once we have
created the sequence diagram, you next need to determine which the manager, employee and
customer interact with the system and we are drag all actors involved in the use case to the
sequence diagram, then walk through the functionality, adding objects to facilitate that
functionality as needed
Information Technology
page 71
/2007
login:controler
login
home page
database
1:Went to login
create()
2:Enter username
and password
username
validte()
password
requst()
valid()
4:Display
display()
Information Technology
page 71
/2007
ckage::manager
main page login :controler
login()
delete controler
database
delete
activate()
initiate()
create()
username()
checke validity()
initiate()
password()
create()
fill information
validity()
press delete()
delete()
logout()
Information Technology
page 71
/2007
ckage::manager
main page
login :controler
login()
update:controler
update
custemer database
activate()
initiate()
create()
username()
checke validity()
initiate()
create()
password()
fill information
validity()
press update()
save()
logout()
page 71
/2007
login()
search:controler
activate()
initiate()
create()
username()
checke validity()
initiate()
password()
create()
fill information
chack valid()
press search()
search()
display()
logout()
Information Technology
page 71
/2007
login :controler
login()
record controler
record
customer database
activate()
initiate()
create()
username()
checke validity()
initiate()
password()
create()
fill information
checke validity()
save()
record seccefull
logout()
Information Technology
page 71
/2007
Information Technology
page 71
login :controler
login()
report controler
/2007
report
report database
activate()
initiate()
create()
username()
checke validity()
initiate()
password()
create()
fill information
check validity()
presss report()
save()
success()
logout()
Information Technology
page 71
/2007
view
view :controler
database
activate()
initiate()
create()
display()
Information Technology
page 71
/2007
-user
Login(uI 1)
-system
disploay login
weant to login
incorrect
username and password
ckeck
correct
display homepage
Information Technology
page 71
-user
/2007
Customer search(UI 5)
-system
disploay login
weant to login
incorrect
ckeck
return
Correct
fill information
went to search
incorrect
ckeck
Correct
save
Information Technology
page 71
Customer update(uI 2)
/2007
-system
disploay login
weant to login
ckeck
fill information
went to update
ckeck
save
Information Technology
page 71
-user
Customer delete(uI 3)
/2007
-system
disploay login
weant to login
incorrect
ckeck
return
Correct
fill information
went to delete
incorrect
ckeck
Correct
save
Information Technology
page 71
-user
Customer record(uI 7)
/2007
-system
disploay login
weant to login
ckeck
fill information
went to record
ckeck
save
Information Technology
page 71
-user
Customer view(UI 6)
/2007
-system
disploay view
weant to home
click view
display information
Information Technology
page 71
-user
Customer report(uI 4)
/2007
-system
disploay login
weant to login
incorrect
ckeck
return
Correct
fill information
went to report
incorrect
ckeck
Correct
save
Information Technology
page 71
/2007
This diagram shows the static structure of the manager, employee and customer, in
particular, the things that exist (such as classes and types), their internal structure, and their
relationships to other to one another.
This section discusses classes and their variations, including templates and instantiated
classes, and the relationships between classes association and the contents of classes .
Person
+f_name
+l_name
+id
+view()
+comment()
Employee
Manager
-m_username
-m_password
-update()
-delete()
+record()
+report()
+search()
-many
-one
*
*
-one
-phone
-address
+record()
+report()
+search()
many
-many
Customer
-acount_no
-email
-phone
-nationality
-sex
many
Information Technology
page 71
/2007
CHAPTER THREE
Design
3.1 Collaboration diagram
1:activate
manage
main page
4:username and
password
2::initiate
login controler
3:activate
8:fill info
5:Check
validity()
9:press update
database
12:you are
succesfullyupdated
login
11:save
13:logout
10:Check
validity()
6 initiate
update
7:create
update:controler
Information Technology
page 71
/2007
1:activate
manage
main page
4:username and
password
5:select and
Fill()
2::initiate
login controler
3:activate
8:fill info
5:Check
validity()
9:press delete
database
12:you are
successfully
deleted
11:delete
login
13:logout
10:Check delete
validity()
6 initiate
7:create
delete:controler
Information Technology
page 71
/2007
1:activate
main page
4:username and
password
2::initiate
login controler
3:activate
8:fill info
5:Check
validity()
9:press record
database
12:you are
successfully record
login
11:save
13:logout
10:Check record
validity()
6 initiate
7:create
record:controler
Information Technology
page 71
/2007
1:activate
main page
4:username and
password
2::initiate
login controler
3:activate
8:fill info
5:Check
validity()
9:press report
database
12:success
login
11:save
13:logout
10:Check report
validity()
6 initiate
7:create
report:controler
Information Technology
page 71
/2007
1:activate
main page
4:username and
password
2::initiate
login controler
3:activate
8:fill info
5:Check
validity()
9:press report
database
12:display
login
11:requst
13:logout
10:Check search
validity()
6 initiate
7:create
search:controler
Information Technology
page 71
/2007
1:activate
homepage
1:Went to login
3:username and
password
7:display
login controler
2:create
6:valid
4:Check
validity()
database
5:requst
login
Information Technology
page 71
manager,employee and
customer
/2007
1:activate
main page
2:iniated
3:create
6:check
database
5:requst
view
Information Technology
page 71
/2007
In this part the team used to model the behaviours of the objects by drawing the state
diagram. The state diagram depicts the state of objects as their attributes change from one
state to the other state. State chart modelling is used to show the sequence of states that an
object goes through, the events that cause the transition from one state to the other and the
actions that result from a state change. The following figure shows the modelling of the
system State chart diagram describes an object as it passes through different states The
management object has the following identified states as shown in figure below:-
login
record
fill information
ok
logout
Information Technology
page 71
login
update
fill information
/2007
ok
logout
login
delete
fill information
ok
logout
Information Technology
page 71
login
report
fill information
/2007
ok
logout
Information Technology
page 71
login
search
/2007
ok
fill information
logout
login to system
Information Technology
view
press view
page 71
/2007
login
press login
logout
Information Technology
page 71
/2007
person
+first_name : string
+last_name : string
+adress : string
+email : char
+phone : char
+password : char
+view()
+comment()
+exit()
+clear()
product
-id
-price
-product_name
-num_product
-level
-expried_date
Payment
-acount_no : String
-amout_mony : char
-product_type : char
+total()
+save()
*
1
Customer
-contact
-trnasaction_number
-product
-payable
*
-date
Manager
Employee
-manager_id :
char
-update() : char
-delete() : char
+record() : char
+report() : char
+search() : char
-employee_id : char
-record() : char
-report()
: char
*
-search() : char
*
*
*
*
*
1
1
*
*
customer_account
-account
-money
Home
-name
-description
-image
Contact
-name
-product
-email
-message
The component diagram main purpose is to show the structural relationships between
the components of a system. We use this component diagram to describe the relation of
physical Components in the Ambo university consumer cooperation supermarket.
Information Technology
page 71
manager
/2007
Access data
search customer data
-security
security
record customer
-backup data
backup
customer
Access view data
view information
Information Technology
page 71
/2007
:application server
:actors
http
record costomer
employee
generate report
ADO.NET
:database servver
view inforation
database
Every web website has two parts static and dynamic. Most of the pages are
documentations or static pages but there are also dynamics pages.in general this website
includes CSS, JavaScript, PHP, and MySQL the interface is no direct login page but one user
directly enters into the home page then if he or she wants to gather other information he/she
can login to secure part.
Main page
Information Technology
page 71
/2007
All user firstly can get the main page .This page consists of about as, comment, view
customer data page, login page and logout page .the user can see this pages and select their
needs and continues to next session
Code
<html>
<head>
<link rel="stylesheet" href="css/style.css" type="text/css" />
</head>
<body>
Information Technology
page 71
/2007
alt="ERROR
LOADING"
align="right"
alt="ERROR
LOADING"
align="left"
<header>
<hgroup>
<div id="menu" data-role="page" >
<ul id="nav">
<li><a href="home.php">home |</a></li>
<li><a href="about as.php">About us |</a>
<li><a href="index.php">login |</a></li>
<li><a href="contactas.php">contact as |</a></li>
<li><a href="payment1.php">payment|</a></li>
<tr>
<td id="right"width="5%"height='100%'>
</td>
<td>
<p align="right"> <h1>Ambo Uiniversity Consumer cooperation Supermarket </h1></p>
<?php
$db_username
= 'root';
$db_password
= '';
$db_name
= 'assignment';
$db_host
= 'localhost';
Information Technology
page 71
/2007
$items_per_group = 5;
$mysqli = new mysqli($db_host, $db_username, $db_password,$db_name);
$results = $mysqli->query("SELECT * FROM home ");
?>
<table width="800px;" cellpadding="5" cellspacing="5" style=" ">
<section class="container"
<?php
if ($results) {
while($obj = $results->fetch_object())
{
?>
<tr valign="top" style="padding-left:-40px;" >
<td width="150px" height="85" style=""><br />
<?php
echo "<img src='$obj->image' width='100' height='100' />";
?>
</td>
<td width="741" height="95" style=""><br />
<h1> <?php echo $obj->bookname; ?> </h1>
<br>
<?php echo $data= $obj->des;
}}
?> </p>
</td>
</tr>
</section>
Information Technology
page 71
/2007
</table>
</div>
<div id="left1"></br> <td id="image"width="10%"height='100'>
<img src="1.jpg" alt="map of asia">
<td id="normal" align="Center"> </td></div></p></tr>
<tr><td>
</td><td></td>
</tr>
<tr>
<td colspan="3"id="footer1">
<div id="footer" align="Center"> <b>ambo university consumer cooperation project done by
IT gradution student</div
</table>
</div>
</body>
</html>
Login page
This page is the manager and employee by entering username and password going to their
provided pages this page consists of about as, comment, view customer data page and logout
page .the user can see this pages and select their needs and continues to next session
Information Technology
page 71
/2007
Code
<?php
include_once 'connect_db.php';
if(isset($_POST['submit'])){
$username=$_POST['username'];
$password=$_POST['password'];
$position=$_POST['position'];
switch($position){
case 'manager':
$result=mysql_query("SELECT f_name,l_name, username FROM manager WHERE
username='$username' AND password='$password'");
$row=mysql_fetch_array($result);
if($row>0){
Information Technology
page 71
/2007
session_start();
$_SESSION['f_name']=$row[0];
$_SESSION['l_name']=$row[1];
$_SESSION['username']=$row[2];
header("location:http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/
managerrecord.php");
}else{
$message="<font color=red>Invalid login Try Again</font>";
}
break;
case 'employee':
$result=mysql_query("select f_name,l_name,username
username='$username' AND password='$password'");
FROM
employee
WHERE
$row=mysql_fetch_array($result);
if($row>0){
session_start();
$_SESSION['f_name']=$row[0];
$_SESSION['l_name']=$row[1];
$_SESSION['username']=$row[2];
header("location:http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/e
mployeerecord.php");
}else{
$message="<font color=red>Invalid login Try Again</font>";
}
break;
case 'Cashier':
$result=mysql_query("SELECT cashier_id, first_name,last_name,staff_id,username FROM
cashier WHERE username='$username' AND password='$password'");
Information Technology
page 71
/2007
$row=mysql_fetch_array($result);
if($row>0){
session_start();
$_SESSION['cashier_id']=$row[0];
$_SESSION['first_name']=$row[1];
$_SESSION['last_name']=$row[2];
$_SESSION['staff_id']=$row[3];
$_SESSION['username']=$row[4];
header("location:http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/c
ashier.php");
}else{
$message="<font color=red>Invalid login Try Again</font>";
}
break;
case 'Manager':
$result=mysql_query("SELECT manager_id, first_name,last_name,staff_id,username FROM
manager WHERE username='$username' AND password='$password'");
$row=mysql_fetch_array($result);
if($row>0){
session_start();
$_SESSION['manager_id']=$row[0];
$_SESSION['first_name']=$row[1];
$_SESSION['last_name']=$row[2];
$_SESSION['staff_id']=$row[3];
$_SESSION['username']=$row[4];
header("location:http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/
manager.php");
}else{
Information Technology
page 71
/2007
alt="ERROR
LOADING"
align="right"
alt="ERROR
LOADING"
align="left"
<header>
<hgroup>
<div id="menu" data-role="page" >
<ul id="nav">
<li><a href="home.php">home |</a></li>
<li><a href="about as.php">About us |</a>
Information Technology
page 71
/2007
type="text"
name="username"
type="password"
name="password"
required</p>
<p><tr><td>password</td><td><input
required</p>
<p><tr><td>privilage</td><td><p><select name="position">
<option>--Select position--</option>
<option>manager</option>
Information Technology
page 71
/2007
<option>employee</option>
</select></p>
<p class="submit"><input type="submit" name="submit" value="Login">
<input type="reset" name="Reset"value="clear"></td></p>
</tr></form></table>
</div>
</section>
</div>
</body>
</html>
LOGIN;
?>
Manager
This page is the manager by entering username and password going to their provided
pages this page consists of manager, employee, customer account, view report, logout and
home.
Information Technology
page 71
/2007
<?php
session_start();
//echo "User".$_SESSION['user'];
if(isset($_SESSION['username']))
{
$username=$_SESSION['username'];
//echo "User name :".$username;
} else {
?>
<script>
alert('You Are Not Logged In !! Please Login to access this page');
window.location='../../../awelehusen/index.php';
</script>
Information Technology
page 71
/2007
<?php
}
?><html>
<head>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<script language="javascript">
// function for comfirm box !!
function logoutcon() {
var conlog = confirm('Are you sure you want to log out !!');
if(conlog)
{
alert(window.location="logout.php");
}
else
{
return false;
}
}
function check()
{
if(document.getElementById('selpid').value
==
document.getElementById('seldate').value == 'seldate')
'selpid'
&&
{
alert('Select any option !!');
return false;
}}
</script>
Information Technology
page 71
/2007
</head>
<body>
<table id="table5" height="100%"><tr><td colspan="3"height="100%">
<img src="../../awelehusen/image/aw.GIF"
width="200" heigh="10"/>
alt="ERROR
LOADING"
align="right"
alt="ERROR
LOADING"
align="left"
<header>
<hgroup>
<div id="menu" data-role="page" >
<ul id="nav">
<li><a href="home.php">home </a>
</li>
<li><a href="logout.php">logout </a>
<li><a href="">view report </a>
<ul>
<li><a href="viewreport1.php">report for cash</a>
<li><a href="viewreport.php">report for credit card </a>
<li></ul>
</nav></td></tr>
<tr>
<td id="image"width="5%"height='120%'>
<script language="javascript" type="text/javascript">
var slideShowSpeed = 2000;
var crossFadeDuration = 3;
var Pic = new Array();
Information Technology
page 71
/2007
Pic[1] = '../../awelehusen/image/sup.PNG'
Pic[2] = '../../awelehusen/image/supe.PNG'
Pic[3] = '../../awelehusen/image/super.PNG'
Pic[4] = '../../awelehusen/image/photo5.PNG'
Pic[5] = '../../awelehusen/image/photo1.PNG'
Pic[6] = '../../awelehusen/image/photo2.PNG'
Pic[7] = '../../awelehusen/image/photo3.PNG'
Pic[8] = '../../awelehusen/image/photo4.PNG'
Pic[9] = '../../awelehusen/image/photo5.PNG'
Pic[10] = '../../awelehusen/image/photo6.PNG'
Pic[11] = '../../awelehusen/image/photo7.PNG'//// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=3)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
Information Technology
page 71
/2007
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
window.onload=runSlideShow;
// End -->
</script>
<img src="1.jpg" name='SlideShow' width=95% height=500></td>
<td id="table3"height="100%"width="10%"rowspan="1">
<div id=arsema>
<a href="manager.php" class="dashboard-module">
<img src="image/employee.jpg"" width="75" height="75" alt="edit" />
<span>manager</span>
</a>
<a href="employee.php" class="dashboard-module">
<img src="image/manager_icon.png" width="75" height="75" alt="edit" />
<span>employee</span></a>
<a href="customer.php" class="dashboard-module">
<img src="image/customer.gif" width="75" height="75" alt="edit" />
</td></tr>
<tr><td>
</td><td></td>
</tr>
<tr>
Information Technology
page 71
/2007
<td colspan="3"id="footer1">
<div id="footer" align="Center"> <b>ambo university consumer cooperation project done by
IT gradution student</div
</td></tr>
</table>
</div>
</body>
</html>
Recommendation
The team recommends the following points for the best implementation and instalment of this
project.
Employers who are working on this system get better performance and speed.
The organization should facilitate the system access to all employers of the
organization and support them to learn & use it.
Information Technology
page 71
/2007
The data and all things on the system that is used by customers and should be
updated must updated by the administrator.
The website should be promoted and advertised through websites that have
much opportunity to be visited so that many people become aware of its
existence and get the chance of using it.
Conclusion
To conclude the work in this project, the proposed solutions that are stated on the proposal
part of the project are more or less properly implemented. The development of web based
application for Ambo university consumer cooperation supermarket could be hindered due to
some constraint as time, money and mainly performance. These factors along with other
unspecified reasons have resisted the team from developing more efficient and rich
application.
Information Technology
page 71
/2007
Reference
Information Technology
page 71
/2007
Contents
CHAPTER ONE ..................................................................................................................................... 1
1. Introduction .................................................................................................................................... 1
Information Technology
page 71
/2007
1.1Background ................................................................................................................................ 1
1.2 Statement of the problem ........................................................................................................ 2
1.3 Objective of the project ............................................................................................................ 2
1.4 significance of the project ......................................................................................................... 3
1.5 Scope of the project and limitation .......................................................................................... 3
1.6 Methodology ............................................................................................................................. 4
1.7 project budgeting ...................................................................................................................... 5
1.8 project schedule ........................................................................................................................ 6
1.9. Project Organization ................................................................................................................ 6
CHAPTER TWO .................................................................................................................................... 7
System Analysis ................................................................................................................................... 7
2.1 Major function of the current system....................................................................................... 7
2.2 problem analysis /definition ..................................................................................................... 7
2.3 user needs ................................................................................................................................. 8
2.4 Requirement analysis of the existing system ............................................................................. 9
2.5 alternative solution ................................................................................................................. 10
2.6 feasibility study ....................................................................................................................... 13
2.7 Requirement analysis for new system .................................................................................... 14
2.8 use case diagram documentation and forms ......................................................................... 16
2.9 use case diagram ..................................................................................................................... 21
2.10 User interface identification ..................................................................................................... 22
2.11 sequence diagram ................................................................................................................. 23
2.12 Activity diagram .................................................................................................................... 32
2.13 Class diagram ........................................................................................................................ 39
CHAPTER THREE ................................................................................................................................ 40
Design................................................................................................................................................ 40
3.1 Collaboration diagram ............................................................................................................ 40
3.2 STATE CHART DIAGRAM.......................................................................................................... 47
3.3 Revised class diagram ............................................................................................................. 51
3.4 Component diagram ............................................................................................................... 52
3.5 Deployment diagram .............................................................................................................. 53
3.6 User interface diagram ........................................................................................................... 54
Information Technology
page 71
Information Technology
/2007
page 71