INTRODUCTION
And also it has more over the advantages. This project is done using by the languages are
PHP and MySQL. Here this PHP as a frontend and MySQL as a back end. These are
making a best connectivity of front end and back end.
1
1.2 OBJECTIVE OF THE PROJECT
Most of the Fruit Shops maintain their details in booklet vice only. These are the
most one of the disadvantage and drawback of the previous system. So, based that scope
this project has been created for rectify the problem of the existing system project.
Fruit Shop mainly created for calculate the final year accounting and calculate yearly
maintenance and data’s about the Sales market. Because the Fruit Shop are mostly
important in human life. Cause, need of the life things or any inventories is we want to
buy. So, that time we need a specific place for buy this all in a place. That facility is
provides by these Company (Fruit Shop).
2
2. SYSTEM CONFIGURATION
2.2 HARDWARECONFIGURATION
INTERNET : Modem
3
3. SYSTEM ANALYSIS
The Existing System is a time consuming process to find the information about
the different fields. It is difficult to communicate with the regarding sectors and
specifically for computer lab consumption based area, even then the students suffer a lot
to identify where to get an area of exact information and so.
After analysing the system studies, this existing system are has some features and
drawbacks. But this project reduced the drawbacks and adds some salient features.
4
3.2 PROPOSED SYSTEM
The aim of the proposed system is overcomes the existing system. In this project it
provides “better and efficient service to users. These online systems that can be operate
from anywhere and anytime.
5
3.3MODULE AND DISCRIPTION
ADMIN
PRODUCT PURCHASE
SUPPLIER
SALES
6
4.SYSTEM DESIGN
Item_name
User_name Password Stock_id
Amount
M
Admin 1 Stock
Item_name
Customer_id Purchase_id
Name
Purchase
Customer M Quantity
Ph_num has
M
Date
Mail-id Add
Supplier_id
Item_name Sales_id
Supplier Sup_name
M
M
Amount Sales
Phone_num
Quantity
7
4.2 DATA FLOW DIAGRAM
Level 0
Request
Admin Login
Fruit Shop
Admin Administration Database
Response
8
Level 1
Admin Login
Login
Admin Database
Sales Details
Sales Details
Product Details
Product Details
Stock Details
Stock Details
9
LEVEL 2
SaleDetails
Sale Details
ProductDetails
Product Details
Fruit Process
System
Database
Stock Details
Stock Details
SupplierDetails
Supplier Details
Customer Details
Customer Details
10
4.3 DATABASE DESIGN
11
TABLE NAME: SALES TABLE
12
TABLE NAME: CUSTOMER TABLE
13
4.4 INPUT DESIGN
Input design is the process of converting user-originated inputs format. Input design is
one of the most expensive phases of the operation of the major problem of a system.
Input facilities the entry of data into the computer system. Input design involves the
selection of the best strategy for getting data into the computer system at the right time
and as accurately as possible. This is because the most difficult aspect of input designs in
accuracy. The use of well- defined document can encourage used to record data
accurately without omission. Input design must capture all the data that the system needs,
without introducing any errors. Input errors can be greatly reduced when inputting
directly by using appropriate forms for data capture and well-designed computer screen
layout. . The input design is the part of overall system design, which requires very careful
attention. If the data going into the system is incorrect then the processing and output will
magnify the errors. The objectives considered during input design are:
14
4.5 OUTPUT DESIGN
Output design generally refers to the results and information that are generated by
the system for many end-users; output is the main reason for developing the system and
the basis on which they evaluate the usefulness of the application. In any system, the
output design determines the input to be given to the application.
Output design is the process which involves designing necessary output which
helps the user according to their requirement.
Efficient output design should improve the system relationship with the user and
helps in decision-making.
Since the reports are directly required by the management for taking decision and
to draw the conclusion must be simple, descriptive and clear to the user. Option for
outputs and forms are given in the system menus.
15
5. SYSTEM TESTING AND IMPLEMENTATION
The software which has been developed has to be tested to prove its validity. Testing is
considered to be the least creative phase of the whole cycle of system design. In real
sense it is the phase, which helps to bring out the creativity of the other phases, and
makes it shine.
Web portal for college administration management system was tested along the
following guidelines to prove its validity. It was tested using the following techniques of
software testing.
1. By using the technique it was tested that all the individual logical paths were
executed at least once.
2. All the logical decisions were tested on both their true and false sides.
3. All the loops were tested with the data in between the ranges and especially at
the boundary values.
1. By the use of these techniques the missing functions are identified and placed
in their positions.
2. The errors in the interfaces were identified and corrected.
3. This technique was also used to identify the initialization and termination
errors and correct them.
Any software has to be tested with pre-planned strategies. To carry out the testing
in an efficient manner certain amount of strategic planning has to be done. Any testing
16
strategy must incorporate test planning, test case design, test execution and the resultant
data collection and evaluation.
The system “Online College Admission” was tested with the help of the following
software testing strategies.
UNIT TESTING
In Unit testing, we have to test the programs making up the system. The software
units in a system are called modules and routines that are assembled and integrated to
perform a specific function. Unit testing focuses first on the modules, independently of
one another, to locate errors. This enables to detect errors in coding and logic that are
contained within the module. In the lines of this strategy all the individual functions and
modules were put to the test independently. This method was applied in combination with
white and black box testing techniques to find the errors in each module.
INTEGRATED TESTING
Again this software testing strategy has two different approaches namely the top-
down approach in which the integration is carried out from the top level module to the
bottom and the bottom-up approach in which the integration is carried out from the low
level modules to the top. The module was tested using the bottom up approach by
introducing stubs for the top level functions. This test was used to identify the errors in
the interfaces, the errors in passing the parameters between the functions and to correct
them.
VALIDATION TESTING
Software validation is achieved through a series of black box test that demonstrate
conformity with requirements. Both plan and procedure are designed to ensure that all
functional required area achieved. Using validation testing we have tested this project.
The user should not leave any input area blank and it is not allowed to enter improper
data. Many validations are needed for each and every file in the form like textbox
validations.
17
SYSTEM TESTING
The software and hardware are integrated and a full range of system tests are
conducted in an attempt to uncover error at the software and hardware interface. Before
the system is released to user, testing is the sole duty of the developer to see that the
system is free from all kinds of bugs. The main purpose of testing an information system
is to find out errors and correct them. Testing was done in two phases
1. Foreground testing
2. Background testing
The Foreground testing includes the testing of all kinds of bugs that would be
visible to the user on the screen.
The background testing includes, whether the database get updated as required. A
message such as “Record Stored Successfully” on the monitor may ensure that data has
really been updated in the required tables.
18
5.2 SYSTEM IMPLEMENTATION
System Implementation is the stage of the project when the theoretical design is
tuned into working system. If the implementation system stages is not carefully
controlled and planned, it can cause chaos. Thus it can be considered to be the most
critical stage in achieving a successful new system and in giving the user a confidence
that the system will work and be effective.
After the management has given the approval of the design phase, report for this
project, further the development activities are preceded.
The activities to be performed during the changeover plan have to be identified and the
responsibilities should be assigned to individuals in the organization.
19
6. SCOPE FOR FUTURE DEVELOPMENT
The project is designed in such a way that it is flexible for changes in future user
requirements. Further extensions in the system can be made to submit more reports to the
managements, this will give the management is clear picture of the process of the current
system. The existing system has good scope for further development and it can be
integrated with the major systems like hospital management system. The project is
designed as a webpage that we can further module in future. As this project is developed
in PHP and HTML languages, which is an open source language and to retrieve the
information stored in the database is because of MYSQL. The system is currently
developed and ready for implementation to include the system is highly feasible and user
friendly. To provide better facility regarding security, it uses security provider software.
It can have an enhancement on proper in the future according to the user’s requirements.
Since this project is developed in PHP and HTML, it can diametrically change current
project into ASP.NET platform by viewing the status of this system because most of the
controls used in this project can support in ASP.NETplatform.
20
7. CONCLUSION
Though the present system is a well performing one, performance will still increase if the
power consumption and office expenses are computerized. The various timely reports by this
project would be more useful for the users.
21
BIBILIOGRAPHY
REFERENCE BOOKS
REFERENCE WEBSITES
www.codeproject.com
www.w3school.com
www.sourcecode.com
www.wikipedia.com
www.php.com
22
APPENDICS
A.SCREEN SHOT
Dashboard
23
Sales
24
Products Available:
Add product
Existing Customer
25
Adding new customer
Existing Supplier
26
Adding Supplier
Sales report
27
B.SAMPLE CODING
<?php
//Start session
session_start();
//Unset the variables stored in session
unset($_SESSION['SESS_MEMBER_ID']);
unset($_SESSION['SESS_FIRST_NAME']);
unset($_SESSION['SESS_LAST_NAME']);
?>
<html>
<head>
<title>
FRUIT SHOP
</title>
<link rel="shortcut icon" href="main/images/pos.jpg">
<link href="main/css/bootstrap.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="main/css/DT_bootstrap.css">
<link rel="stylesheet" href="main/css/font-awesome.min.css">
<style type="text/css">
28
body {
padding-top: 60px;
padding-bottom: 40px;
}
.sidebar-nav {
padding: 9px 0;
}
</style>
<link href="main/css/bootstrap-responsive.css" rel="stylesheet">
<link href="style.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="container-fluid">
<div class="row-fluid">
<div class="span4">
</div>
</div>
<div id="login">
<?php
if( isset($_SESSION['ERRMSG_ARR']) &&is_array($_SESSION['ERRMSG_ARR']) &&
count($_SESSION['ERRMSG_ARR']) >0 ) {
foreach($_SESSION['ERRMSG_ARR'] as $msg) {
echo '<div style="color: red; text-align: center;">',$msg,'</div><br>';
}
unset($_SESSION['ERRMSG_ARR']);
}
?>
<form action="login.php" method="post">
<font style=" font:bold 44px 'Aleo'; text-shadow:1px 1px 15px #000;
color:#fff;"><center>FRUIT SHOP</center></font>
<br>
<div class="input-prepend">
29
<span style="height:30px; width:25px;" class="add-on"><i class="icon-user icon-
2x"></i></span><input style="height:40px;" type="text" name="username"
Placeholder="Username" required/><br>
</div>
<div class="input-prepend"><span style="height:30px; width:25px;" class="add-on"><i
class="icon-lock icon-2x"></i></span><input type="password" style="height:40px;"
name="password" Placeholder="Password" required/><br>
</div>
<div class="qwe">
<button class="btnbtn-large btn-primary btn-block pull-right" href="dashboard.html"
type="submit"><i class="icon-signin icon-large"></i> Login</button>
</div>
</form>
</div>
</div>
</div>
</div>
</body>
</html>
<?php
//Start session
session_start();
//Array to store validation errors
$errmsg_arr = array();
//Validation error flag
$errflag = false;
//Connect to mysql server
$link = mysql_connect('localhost','root',"");
if(!$link) {
die('Failed to connect to server: ' . mysql_error());
}
//Select database
$db = mysql_select_db('sales', $link);
30
if(!$db) {
die("Unable to select database");
}
//Function to sanitize values received from the form. Prevents SQL injection
function clean($str) {
$str = @trim($str);
if(get_magic_quotes_gpc()) {
$str = stripslashes($str);
}
return mysql_real_escape_string($str);
}
//Sanitize the POST values
$login = clean($_POST['username']);
$password = clean($_POST['password']);
//Input Validations
if($login == '') {$errmsg_arr[] = 'Username missing';
$errflag = true;
}
if($password == '') {$errmsg_arr[] = 'Password missing';
$errflag = true;
}
//If there are input validations, redirect back to the login form
if($errflag) {$_SESSION['ERRMSG_ARR'] = $errmsg_arr;
session_write_close();
header("location: index.php");
exit();
}
//Create query
$qry="SELECT * FROM user WHERE username='$login' AND password='$password'";
$result=mysql_query($qry);
//Check whether the query was successful or not
if($result) {if(mysql_num_rows($result) > 0) {
//Login Successful
31
session_regenerate_id();
$member = mysql_fetch_assoc($result);
$_SESSION['SESS_MEMBER_ID'] = $member['id'];
$_SESSION['SESS_FIRST_NAME'] = $member['name'];
$_SESSION['SESS_LAST_NAME'] = $member['position'];
//$_SESSION['SESS_PRO_PIC'] = $member['profImage'];
session_write_close();
header("location: main/index.php");
exit();
}
else {
//Login failed
header("location: index.php");
exit();
}
}else
{
die("Query failed");
}
?>
<?php
/* Database config */
$db_host= 'localhost';
$db_user= 'root';
$db_pass= '';
$db_database= 'sales';
/* End config */
$db = new PDO('mysql:host='.$db_host.';dbname='.$db_database, $db_user, $db_pass);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
?>
32