0% found this document useful (0 votes)
9 views

REPORT

The document outlines the 'Garments Automation System' project aimed at streamlining transactions in a garment company through a user-friendly interface and password protection for security. It details the hardware and software specifications, including the use of PHP and MySQL for development, and highlights the advantages of the proposed computerized system over the existing manual processes. The document also discusses system design aspects, including input and output design, emphasizing the importance of accurate data handling and user-friendly report generation.

Uploaded by

MANI KANDAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

REPORT

The document outlines the 'Garments Automation System' project aimed at streamlining transactions in a garment company through a user-friendly interface and password protection for security. It details the hardware and software specifications, including the use of PHP and MySQL for development, and highlights the advantages of the proposed computerized system over the existing manual processes. The document also discusses system design aspects, including input and output design, emphasizing the importance of accurate data handling and user-friendly report generation.

Uploaded by

MANI KANDAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 49

CHAPTER I

INTRODUCTION

1.1 ABOUT THE PROJECT

The “GARMENTS AUTOMATION SYSTEM” is to develop and maintain the


transactions performed in a Garment Company or a Shop in a easy manner by the use of
menus. The password production is used to avoid the entry of unauthorized users in the
system.

Once the access to the application has been granted the user can continue with his work
on the application selected, which is a very easy task as all module have been designed with
the common toolbar.
Each module has buttons attached by which the set of coding has been reduced, which
otherwise would have been a tedious process in designing has the same set of menu bar
attached with its corresponding shortcuts. The menu designed to include all the following
options where in each one provides certain functions to be carried out.

The end-user can take hard copy from reports. If the computer system has its printer, it
is very easy to take hard copy of the data in the reports.

1
1.2 SYSTEM SPECIFICATION

1.2.1 HARDWARE CONFIGURATION

PROCESSOR : PENTIUM I3 PROCESSOR


RAM : 4 GB
HARD DISK : 500 GB
MONITOR : 15” COLOR MONITOR
KEYBOARD : 104 KEY STANDARD KEYBOARD
MOUSE : LOGITECH OPTICAL MOUSE

1.2.2 SOFTWARE CONFIGURATION

OPERATING SYSTEM : WINDOWS 8


FRONT END : PHP
BACK END : My-SQL

2
1.2.3 SOFTWARE DESCRIPTION

FEATURES OF PHP

PHP is a widely-used, open source scripting language used for scripts that are
executed on the server and it is freeware. It is a server side scripting language used to develop
attractive and dynamic web pages. PHP is widely-used, free, and efficient alternative to
competitors such as Microsoft’s ASP. We make available with database used with PHP is
MYSQL – which is also an open source which is an added advantage. PHP’s simple
programming style, we attempt to design in a way that enables anyone with basic
programming knowledge to learn and shift to never-ending opportunity available.

PHP started out as a small open source project that evolved as more and more people
found out how useful it was Rasmus Lerdorf unleashed the first version of PHP way back in
1994.

 PHP is a recursive acronym for "PHP: Hypertext Preprocessor".

 PHP is a server side scripting language that is embedded in HTML. It is used to manage
dynamic content, databases, session tracking, even build entire ecommerce sites.

 It is integrated with a number of popular databases, including MySQL, PostgreSQL,


Oracle, Sybase, Informix, and Microsoft SQL Server.

 PHP is pleasingly zippy in its execution, especially when compiled as an Apache module on
the Unix side. The MySQL server, once started, executes even very complex queries with
huge result sets in record-setting time.

 PHP supports a large number of major protocols such as POP3, IMAP, and LDAP. PHP4
added support for Java and distributed object architectures (COM and CORBA), making n-
tier development a possibility for the first time.

 PHP is forgiving: PHP language tries to be as forgiving as possible.

 PHP Syntax is C-Like.

3
COMMONUSES OF PHP

 PHP performs system functions, i.e. from files on a system it can create, open, read,
write, and close them.
 PHP can handle forms, i.e. gather data from files, save data to a file, through email
you can send data, return data to the user.
 You add, delete, modify elements within your database through PHP.
 Access cookies variables and set cookies.
 Using PHP, you can restrict users to access some pages of your website.
 It can encrypt data.

CHARACTERISTICS OF PHP

Five important characteristics make PHP's practical nature possible −

 Simplicity
 Efficiency
 Security
 Flexibility
 Familiarity

In order to develop and run PHP Web pages three vital components need to be
installed on your computer system.

 Web Server − PHP will work with virtually all Web Server software, including
Microsoft's Internet Information Server (IIS) but then most often used is freely
available Apache Server.
 Database − PHP will work with virtually all database software, including Oracle
and Sybase but most commonly used is freely available MySQL database.
 PHP Parser − In order to process PHP script instructions a parser must be
installed to generate HTML output that can be sent to the Web Browser. This
tutorial will guide you how to install PHP parser on your computer.

4
PHP Parser Installation

Before you proceed, it is important to make sure that you have a proper environment
setup on your machine to develop your web programs using PHP. If this displays a page
showing your PHP installation related information, then it means you have PHP and
Webserver installed properly. Otherwise you have to follow given procedure to install PHP
on your computer.

Apache Configuration
If you are using Apache as a Web Server then this section will guide you to edit
Apache Configuration Files.

PHP.INI File Configuration


The PHP configuration file, php.ini, is the final and most immediate way to affect PHP's
functionality.

Windows IIS Configuration


To configure IIS on your Windows machine you can refer your IIS Reference Manual
shipped along with IIS.

Escaping to PHP
The PHP parsing engine needs a way to differentiate PHP code from other elements in
the page. The mechanism for doing so is known as 'escaping to PHP'.

What are HTML tags?


 HTML tags are used to mark-up HTML elements ƒ
 HTML tags are surrounded by the two characters < and > ƒ
 The surrounding characters are called angle brackets ƒ
 HTML tags normally come in pairs like ƒ
 The first tag in a pair is the start tag, the second tag is the end tag ƒ
 The text between the start and end tags is the element content
 HTML tags are not case sensitive.

5
CakePHP

CakePHP is an open-source web framework. It follows the model–view–controller


(MVC) approach and is written in PHP, modeled after the concepts of Ruby on Rails, and
distributed under the MIT License.

CakePHP uses well-known software engineering concepts and software design


patterns, such as convention over configuration, model–view–controller, active record,
association data mapping, and front controller.

FEATURES of PHP

It is most popular and frequently used worldwide scripting language, the main reason
of popularity is; It is open source and very simple.

 Simple

 Faster

 Interpreted

 Open Source

 Case Sensitive

 Simplicity

 Efficiency

 Platform Independent

 Security

 Flexibility

Simple

It is very simple and easy to use, compare to other scripting language it is very simple
and easy, this is widely used all over the world.

Interpreted

It is an interpreted language, i.e. there is no need for compilation.

Faster

It is faster than other scripting language e.g. asp and jsp.

6
Open Source

Open source means you no need to pay for use php, you can free download and use.

Platform Independent

PHP code will be run on every platform, Linux, Unix, Mac OS X, Windows.

Case Sensitive

PHP is case sensitive scripting language at time of variable declaration. In PHP, all
keywords (e.g. if, else, while, echo, etc.), classes, functions, and user-defined functions are
NOT case-sensitive.

Introduction of SQL

Introduction The Structured Query Language (SQL) is the language of databases.


SQL was, is, and will stay for the foreseeable future the database language for relational
database servers such as IBM DB2, Microsoft SQL Server, MySQL, Oracle, Progress, Sybase
Adaptive Server, and dozens of others. SQL supports a small but very powerful set of
statements for manipulating, managing, and protecting data stored in a database. This power
has resulted in its tremendous popularity. Almost every database server supports SQL or a
dialect of the language. Currently, SQL products are available for every kind of computer,
from a small handheld computer to a large server, and for every operating system, including
Microsoft Windows, Mac and many UNIX variations.

What is a Database?

A database is a structured collection of data that is used by the application systems of


some given enterprise, and that is managed by a database management system. For the
purpose of this course, think of a database as a collection of tables which are connected to
each other.
IT Learning Program (ITLP) in the University of Oxford offers a course on how to
design a database. This course is a pre-requisite to this course. However, if you did not attend
the database designing course, please read the following paragraphs. As we mentioned, a
database is a collection of tables. Each table is similar to a spreadsheet table in which each
row is called a record and each column is called a field.

7
What is SQL?

Structured Query Language (SQL) is a relational database language which allows you
to create, delete, access and manipulate databases. The following is a list of the main
operations that can be formulated with SQL:

 Creating new databases

 Deleting a database

 Creating new tables in a database

 Deleting tables from a database

 Creating and removing users (database access control)

 Executing queries against a database o retrieving data from a database o inserting records
in a database o updating records in a database o deleting records from a database

 Creating stored procedures in a database

 Setting permissions on tables and procedures

MySQL

MySQL is a Relational Database Management System (“RDBMS”). It is used by


most modern websites and web-based services as a convenient and fast-access storage and
retrieval solution for large volumes of data. A simple example of items which might be stored
in a MySQL database would be a site-registered user’s name with associated password
(encrypted for security),the user registration date, and number of times visited, etc.

MySQL can also be accessed using many tools. It can be easily communicated with
via PHP (PHP Hypertext Preprocessor), a scripting language whose primary focus is to
manipulate HTML for a webpage on the server before it is delivered to a client’s machine. A
user can submit
queries to a database via PHP, allowing insertion, retrieval and manipulation of information
into/from the database.

8
Installation Guide to use MySQL

MySQL can be downloaded from http://dev.mysql.com/downloads/. There are also


several MySQL management tools which can be downloaded and installed to allow the
manipulation of MySQL. These tools mainly provide an interface to operate on MySQL.
Many of these tools are free and provide an easy configuration of MySQL with PHP, e.g.,
XAMPP, Wamp Server, AMPPS
. Another free MySQL management system is MySQL workbench. It provides database
administrators and developers an integrated environment for database design and modelling,
SQL development, database administration, database migration. In this course we will be
using XAMPP because it is straightforward to install and use.

XAMPP

XAMPP is a freely available software package which integrates distributions for


Apache web server, MySQL, PHP and Perl into one easy installation. If you wish to set up a
web server on your home computer, this is the recommended route. We will be using XAMPP
for the purposes of this course. The teacher will guide through the process of installing
XAMPP in the class

9
CHAPTER II

SYSTEM STUDY

2.1 EXISTING SYSTEM

The existing system maintains all purchase and sales activities through manual work.
All ledgers have to be worked through manual entry and keep it in separate ledgers.

Normally the purchase and sales department contains many divisions such as Stock
section, sales counter, Cutting and Stitching section etc. All these details have to be
maintained under separate ledgers. Manpower is used for maintenance and processing of
details till the delivery of goods.

2.1.1 DRAWBACKS OF EXISTING SYSTEM

 All data processing and procedures are done manually. There may be a chance of
error occurrence at the time of entering the data.
 As it is done manually it becomes a time consuming process.
 Checking the stock level on each day is a difficult task.
 Maintenance of reports is a tough task because there may be chance for missing the data.
 Salary calculation is tedious

10
2.2 PROPOSED SYSTEM

In order to overcome the existing systems drawbacks, the whole system is planned to
computerize under one platform to solve the maintenance problem of spinning mill. In this
computerized system it is very easy to maintain all details and also retrieving any information
from any kind of details.

This software would be able to provide flexibility in accessing sales and purchase
information. User can access any type of information. The data is completely checked for
validity before storing in the database.

2.2.1 ADVANTAGES OF PROPOSED SYSTEM

 Details about stock of an item can be viewed quickly.


 Reduce time and manpower as most of the manual processes are automated
 Human errors are eliminated, since the machine does the calculation
 Easy to measure the performance in Cutting and Stitching sections
 Salary details are easily computed and maintained
 Generate reports dynamically based on the requirements of the user

11
CHAPTER III

SYSTEM DESIGN AND DEVELOPMENT

3.1 FILE DESIGN

A system analysis involved a detailed study of the current system, leading to


specifications of a new system. Analysis is a detailed study of various operations performed
by a system and their relationships within and outside the system. During analysis, data are
collected on the available files, decision points and transactions handled by the present
system. Interviews, on-site observation and questionnaire are the tools used for system
analysis. Using the following steps it becomes easy to draw the exact boundary of the new
system under consideration:

 Keeping in view the problems and new requirements


 Workout the pros and cons including new areas of the system

All procedures, requirements must be analyzed and documented in the form of


detailed data flow diagrams (DFDs), data dictionary, logical data structures and miniature
specifications. System Analysis also includes sub-dividing of complex process involving the
entire system, identification of data store and manual processes.

12
3.2 INPUT DESIGN

Input Design is one of the most expensive phases of the operation of computerized
system and is often the major problem of a system. A large number of problems with a system
can usually be tracked backs to fault input design and method.
Needless to say, therefore, that the input data is the lifeblood of a system and have to
be analyzed and designed with at most case and consideration.
The decisions made during the input design are
 To provide cost effective method of input
 To achieve the highest possible level of accuracy
 To ensure that input is understand by the user.

System analysis decide the following input design details like, what data to input,
what medium to use, how the data should be arranged or coded, data items and transaction
need validations to detect errors and at last the dialogue to guide user in providing input.

Input data of a system may not be necessarily is raw data captured in the system from
scratch. These can also be the output of another system or subsystem. The design of input
covers all phases of input from the creation of initial data to actual entering the data to the
system for processing. The design of input involves identifying the data needed, specifying the
characteristics of each data item, capturing & preparing data for computer processing and
ensuring correctness of data. The input has been designed as

 Purchase details
 Sales details
 Process details
 Employee details
 Customer details
 Stock details

13
3.3 OUTPUT DESIGN

Output Design generally refers to the result and information that are generated by the
system for many end-user, output is the main reason for developing the system and the basis
on which they evaluate the usefulness of the application.

The objective of a system finds its shape in terms of the output. The analysis of the
objective of a system leads to determination of output. Output of a system can face various
forms. The most common are report, screen display, printed forms, graphical drawing etc., the
output also vary in terms of their contents frequency, timing & format. The users of the output
from a system are the justification for its existence. If the outputs are inadequate in any way,
the system is itself is adequate. The basic requirement of output are that it should be accurate,
timely and appropriate, in terms of content, medium and layout for its intended purpose.
When designing output, system analysis most accomplish thing like, to determine
what information to be present, to decide whether to display or print the information and
select and output medium and to decide how to distribute the output to intended recipients.

External outputs are those destinations will be outside the organization and which
require special attention as they project the image of the organization.
Internal outputs are those whose destination is within the organization. It is to be
carefully designed, as they are the user main interface with the system.
The output has been formed as the reports. They are followed as

 Sales reports
 Purchase reports
 Suppliers information
 Employee information

14
3.4 DATA BASE DESIGN
The database design is a must for any application developed especially more for the
data store projects. The general theme behind a database is to handle information as an
integrated whole. A database is the collection of interrelated data stored with minimum
redundancy to serve many users quickly and efficiently. The general objective is to make
information PHP very easy, quick, inexpensive and flexible for the user.
A table is a collection of data about a specific topic. For example a table can contain
data about customers, suppliers and the products. Tables organize data into columns (called
fields) and rows (called records). Database is the storage media where the data given by the
user are stored as such or processed and stored. The system accepts data from the database
to generate required information for the user database determines the purpose and exact
application of the system. While designing decided which facts are to be stored in it and
divide the subjects & create tables for each subject and determine the relationship between
the data in each table to other data in the other table. Verify the data by entering the sample
records to produce the results. Data Integration Data integrity

DATA INTEGRATION
In a database, information from several files are coordinated, accessed operated
upon as through it is in a single file. Logically, the information are centralized, physically,
the data may be located on different devices, connected through data communication
facilities.

DATA INTEGRITY
Data integrity means storing all data in one place only how each application to
access it. This approach results in more consistent information, one update being sufficient
to achieve a new record status for all applications, which use it. This leads to less data
redundancy; data items need not be duplicated; a reduction in the direct access storage
requirement

15
3.5 SYSTEM DEVELOPMENT

3.5.1 MODULES DESCRIPTION

 Master Module

 Purchase Module

 Sales Module

 Process Module

 Reports Module

MASTER MODULE

The master menu is designed to collect details about Supplier master, employee
master, new stock master. The Supplier menu contains the adding new supplier details as like
supplier code, supplier name, supplier address and all other information about the supplier.
The supplier details containing the details of the all supplier for the company and having the
option for to add modify, delete the supplier details.

PURCHASE MODULE

This module takes care maintaining the Purchase and Purchase Return details of the
company. For Purchase, the details like Purchase No, No of thread Cones, Type of Fabric,
Rate per Piece, Color and Quantity are stored. Similarly, to manage details for purchase
return, purchase order no, Type of Fabric, Color, Quantity and Reason for Return are
collected.

16
SALES MODULE

This module takes care maintaining the Sales and Sales Return details of the company.
For Sales, the details like Sales No, Purchase No, Type of Fabric, Rate per Piece, Color,
Quantity, Amount, Tax and Total Amount are collected. Similarly, to manage details for sales
return, sales order no, Type of Fabric, Color, Quantity and Reason for Return are collected.

PROCESS MODULE

This is the main module designed to manage the main processes involved in the
garments. The transaction menu contains sub menu as Cutting, Stitching, Stock, and Salary
details. Separate forms will be designed to collect details for Cutting and Stitching. Stock will
be automatically updated based on the purchase and sales of respective items. Salary to
employees will be given based on their completed jobs in cutting and stitching section.

REPORTS MODULE

The system is designed to generate user friendly reports. Here the reports are created
by crystal format by using of crystal report structure in PHP. The following reports are to be
listing as

 Sales reports
 Purchase reports
 Suppliers information
 Employee information

17
CHAPTER IV

SYSTEM TESTING AND MAINTENANCE

SYSTEM TESTING

Testing is a process of executing a program with the intent of finding an error. So


system testing is a critical element of software quality assurance and represents the ultimate
reviews of specification, design and coding. This process involves testing in every phase of
the system development. During the requirements phase, the emphasis is upon validation to
determine that the defined requirements meet the needs of the company. Hence all the
requirements specified by the garments management are satisfied by system. It provides all
the necessary information needed for the department.

LEVELS OF TESTING

UNIT TESTING
In unit testing the user tests the programs making up a system. This test focuses on the
modules, independently of one another to locate errors. This enables the tester to deduct
errors in coding and logic that are contained within that module alone. Those resulting from
the interaction between modules are initially avoided.
In this system, demand of each query, customer entry and registration, employee
details, stock details are separate modules. They are checked with valid codes and their
response is studied. For invalid inputs they are terminated with messages that are easy to
identify.

INTEGRATION TESTING

All the modules in the system are combined a single system. It also tests to find
discrepancies between the system and its original objective, current specifications, system
documentation. The primary concern is the compatibility of individual modules.

18
OUTPUT TESTING
After performing the integration testing, the next step is output testing of the proposed
system. Since no system would be useful if it does not produce the required output in a
specified format. The output generated are displayed by the system under consideration are
tested by asking the users about the format required to them. Hence, the output format is
considered into two ways. One is on screen and another is printed format For the hard
copy also, the output comes out as the specified requirements by the user. Hence, output
testing does not result any correction in the system.

ACCEPTANCE TESTING
The users find no major problems with its accuracy the system passes through a final
acceptance test. This last test confirms that the system meets the original goals, objectives
and requirements established during design.
User acceptance of a system is the key factor for the success of any system. The
system under consideration is tested for user acceptance by constantly keeping in touch with
the prospective system users at the time of developing and making changes where ever
required.
The new system developed was tested by the acceptance testing method. Acceptance
test incorporates both unit testing and integration testing. The user provided test area. Thus the
system was successfully tested and it satisfies the user requirements. Afterwards it was
implemented successfully.

SOFTWARE TESTING

The system undergoes integrated testing before the users could use it. It provides a
means for assembling the software. All the related system has been corrected and each unit of
data has been given as inputs to the system and tested. By making slight changes in the units,
the overall system has been obtained with integration.

19
SYSTEM IMPLEMENTATION

Implementation means, “Converting a new system into operation”. This is the crucial
phase in the system development life cycle. This involves creating computer compatible
file, training the operating system development life cycle, training the operating staff and
installing the hardware before the system is setup on running. The success of the new
system can be measured during the implementation. This phase of the system consist of

 Testing the development programs with sample data.


 Correction of any errors identified.
 Performing a parallel run of the system and find out any errors of calculation present
and correct to them
 Training the user personal.

Each program is tested individually at the time of development using the data and has
verified that this program linked together in the way specified in the programs
specification, the computer system and its environment is tested to the satisfaction of the
user. The system that has been developed is accepted and proved tobe satisfactory for the
user. And so the system is going to be implemented very soon.

20
CHAPTER V

CONCLUSION

This project entitled GARMENTAUTOMATION SYSTEM is more efficient than the


existing system. This system provides some additional information regarding the employees
working in the company. Information can be stored and retrieved with accuracy and error-
free.

This project work is became success is because of the following reasons,

1. The Garments Management System can save money and time after
implementing this project.
2. Modification and maintenance can be made very easily since the software is very
much flexible.
3. Very large data can be stored and also can be retrieved very easily.
4. Speed and accuracy is maintained.
5. Data is entered in formatted manner.
6. The report can be taken in any format.
7. Elimination of manual processing in user department

21
FUTURE ENHANCEMENTS

Every application has its own merits and demerits. The project has covered almost all
the requirements. Further requirements and improvements can easily be done since the
coding is mainly structured or modular in nature. Changing the existing modules or adding
new modules can append improvements. The main objective of the business is the Customer
satisfaction. This system helps the clients to give their problems online at whatever point the
client needs, without any constraints implied on them. This system helps the clients to briefly
explain their complaint without any hesitation. Through this system the clients are helped with
some predefined objections and quick arrangements which spare the valuable time of the
clients. The clients get the answers for their protestation inside multi-day and the client can
likewise see the status of the complaint at any time utilizing the complaint no. Through this
system, the clients get the brief solution for their complaint.

The system has scope for future enhancement i.e. if in case the organization feels that
the changes to be made to this system it can be done through authorized people. This system
can be developed with more information by adding new modules to it.

Some of the new features that can be considered for future enhancements are:

1. Maintenance of company accounts


2. Maintenance of employee attendance
3. Employee salary calculation based on online attendance

22
BIBLIOGRAPHY

I. BOOK REFERENCE:

1. Elias M.Awad, “System Analysis and Design”, Galgotia Publications (p) Ltd, Second
Edition, 1996.
2. Gary Cornell, “Visual Basic 6.0”, TataMc Graw-Hill Publications, Fourth Edition, 1999.
3. Naveen Prakash, “Introduction To Database Management System”, Tata Mc Graw Hill
Publication, Second Edition 1995.
4. Rogers Pressman, “Software Engineering”, TataMc Graw-Hill Publications, Fourth
Edition, 1994.
5. Silberschatz, Korth, Sudharsan, “Database System Concept”, Tata McGraw-Hill, First
Edition, 2002.

II. WEBSITES:

 http://www.sourcecode.com
 http://download.ms-access.com
 http:/Visualbasicnetblogspot.com

23
APPENDICES

A. DATA FLOW DIAGRAM

Admin Products Category

Cust Details Maintain Stock


Product Details
Add item
User Purchase
Order

Ready for cutting

Sales Sales Details

Ready for Stitching

Garments management
Add
category CategoryDetails

Ready for Delivery

Delivery Sales Details

Ready for Shipment

Reports

24
B. TABLE STRUCTURE

Table name: CustomerMaster


Primarykey: CustId

FieldName Data Type Size


CustId Number 8
CustomerName Text 50
Address Text 250
Email Text 50
Contactno Text 50
Natureofcustomer Text 50

Table name: EmployeeDetails


Primarykey: Empid

FieldName Data Type Size


EmpId Number 8
EmpName Text 50
Address Text 250
Contactno Text 50
DOB Date/Time 8
DOJ Date/Time 8
Designation Text 50
Department Text 50
BasicSalary Number 8

25
Table name: StockItem
Primarykey: ItemId

FieldName Data Type Size


ItemId Number 8
ItemName Text 50
Price Number 8

Table name: SupplierMaster


Primarykey: Suppid

FieldName Data Type Size


Suppid Number 8
SupplierName Text 50
Address Text 250
Email Text 50
Contactno Text 50
MaterialSupplier Text 50

26
Table name: ProductionDetails
Primarykey: Pid

FieldName Data Type Size


Pid Number 8
ProId Number 8
Quantity Number 8
ProdSEc Text 50
DOPro Date/Time 8

Table name: Purchase


Primarykey: Billno

FieldName Data Type Size


Billno Number 8
Ordno Number 8
PurDate Date/Time 8
Amount Number 8
Clear Yes/No 1

27
Table name: PurchaseItems
Primarykey: Itemid

FieldName Data Type Size


Itemid Number 8
Ordno Number 8
Mcode Number 8
Quantity Number 8
Price Number 8

Table name: PurchaseOrder


Primarykey: Ordno

FieldName Data Type Size


Ordno Number 8
Supplierid Number 8
OrdDate Date/Time 8
DelReq Text 50
PaymentDet Text 50
Amount Number 8
Clear Yes/No 1

28
Table name: Sales
Primarykey: Billno

FieldName Data Type Size


Billno Number 8
Ordno Number 8
SaleDate Date/Time 8
Amount Number 8
Clear Yes/No 1

Table name: SalesItems


Primarykey: Itemid

FieldName Data Type Size


Itemid Number 8
Ordno Number 8
PCode Number 8
Quantity Number 8
Price Number 8

29
Table name: SalesOrder
Primarykey: Ordno

FieldName Data Type Size


Ordno Number 8
Custid Number 8
OrdDate Date/Time 8
DeliReq Text 50
PaymentDet Text 50
Amount Number 8
Clear Yes/No 1

30
C. SAMPLE CODING

<link href="../style.css" media="screen" rel="stylesheet" type="text/css" />


<form action="saveproduct.php" method="post">
<div id="ac">
<span>Product Code : </span><input type="text" name="code" /><br>
<span>Product Name : </span><input type="text" name="name" /><br>
<span>Cost : </span><input type="text" name="cost" /><br>
<span>Price : </span><input type="text" name="price" /><br>
<span>Supplier : </span>
<select name="supplier">
<?php include('../connect.ph p');
$result = $db->prepare("SELECT * FROM supliers");
$result->bindParam(':userid', $res);
$result->execute();
for($i=0; $row = $result->fetch(); $i++){
?>
<?php
}
?>
<option><?php echo $row['suplier_name']; ?></option>
</select><br>
<span>Qty : </span><input type="text" name="qty" /><br>
<span>&nbsp;</span><input id="btn" type="submit" value="save" />
</div>
</form>
<link href="../style.css" media="screen" rel="stylesheet"type="text/css" />
<form action="savesupplier.php" method="post">
<div id="ac">
<span>Supplier : </span><input type="text" name="name" /><br>
<span>Contact Person : </span><input type="text" name="cperson"
/><br>
<span>Address : </span><input type="text" name="address" /><br>
<span>Contact : </span><input type="text" name="contact" /><br>
<span>&nbsp;</span><input id="btn" type="submit" value="save" />
</div>
</form>
<html>
<head>
<tit le> PO S
31
</title>
<link href="../style.css" media="screen" rel="stylesheet"type="text/css" />
<!--sapoip up-->
<script src="argiepolicarpio.js" type="text/javascript" charset="utf-8"></script>
<script src="js/application.js" type="text/javascript" charset="utf-8"></script>
<link href="src/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<script src="lib/jquery.js" type="text/javascript"></script>
<script src="src/facebox.js" type="text/javascript"></script>
<script type="text/javascript"> jQuery(document).ready(function(
$) {
$('a[rel*=facebox]').facebo x({loadingImage :
'src/loading.gif', closeImage
:
'src/closelabel.png'
})
})
</script>
</head>
<body>
<div id="maintable"><div style="margin-top: -19px; margin- bottom:21px;">
<a id="addd" href="index.php" style="float: none;">Back</a>
</div>
<input type="text" name="filter" value="" id="filter" placeholder="Search
Customer..." autocomplete="off" /><a rel="facebox" id="addd"
href="addcustomer.php">Add Customer</a><br><br>
<table id="resultTable" data-responsive="table">
<thead>
<tr>
<th width="5%"> Name </th>
<th width="21%"> Address </th>
</tr>
</thead>
<tbody>
<th width="11%"> Contact </th>
<th width="11%"> Membership Number </th>
<th width="12%"> Action </th>
<?php
include('../connect.php');
$result = $db->prepare("SELECT * FROM
customer ORDER BY customer_id DESC");
$result->execute();
for($i=0; $row = $result->fetch(); $i++){
?></td>
?>
32
<tr class="record">
<td><?php echo $row['customer_name']; ?></td>
<td><?php echo $row['address']; ?></td>
<td><?php echo $row['contact']; ?></td>
<td><?php echo $row['membership_number'];
<td><a rel="facebox"
href="editcustomer.php?id=<?php echo $row['customer_id']; ?>"> Edit </a> | <a
href="#" id="<?php echo $row['customer_id']; ?>" class="delbutton"
title="Click To Delete">Delete</a></td>
</tr>
<?php
}
?>
</tbody>
</table>
<div class="clearfix"></div>
</div>
<scriptsrc="js/jquery.js"></script>
<script type="text/javascript">
$(function() {
$(".delbutton").click(function(){
//Save the link in a variable called elementvar element = $(this);
//Find the id of the link that was clickedvardel_id = element.attr("id");
//Built a url to send
var info = 'id=' + del_id;
if(confirm("Sure you want to delete this update? There is NO undo!"))
{
$.ajax({
type: "GET",
url: "deletecustomer.php",
data: info,
success: function(){
}
});
$(this).parents(".record").animate({ backgroundColor:
"#fbc7c7" }, "fast")
.animate({ opacity: "hide" }, "slow");
}
return false;
});
});
</script>
</body>
</html>
33
D.SAMPLE SCREENS

34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

You might also like