You are on page 1of 159

EXPORT SYSTEM

1













INTRODUCTION


EXPORT SYSTEM



2
INTRODUCTION


OM. Muruga Trader Export System is located in Tamil Nadu.
It was established in the year 2009
Proprietor name of Om Muruga Traders is Mr. Marimuthu Perumal.

Basically, this Export System is intermediate between small business which order goods from
cities and deliver. Different goods are distributed to different customers by Trucks. Then export
owner delivers goods in their city.

The business consists of coconut trading, there are approximate 50 worker working in this
business, but are not on permanent basis, the profit is gain on daily basis and the lower level
workers are paid on the daily basis.

This system needs to store all data regarding memos and bills for each and every day.



EXPORT SYSTEM



3








SYSTEM ANALYSIS









EXPORT SYSTEM



4

2.1 FEASIBILITY STUDY

A feasibility study is carried out to select the best system that meets performance requirements.
The main aim of the feasibility study ativity is to determine whether it would br financially and
technically feasibility to develop the product. The feasibility study activity involves the analysis
of the problem and collection of all relevant information relating to the product such as the
different data items which would be input to the system, the processing required to be carried out
on these data, the output data required to be produced by the system as well as various
constraints on the behavior of the system.

Technical feasibility

This is concerned with specifying equipment and software that will successfully satisfy the user
requirement. The technical needs of the system may vary considerably, but might include:
The feasibility to produce outputs in agiven time.
Response time under certain conditions.
Ability to process a certain volume of transaction at a particular speed.
Facility to communicate data to distant locations.
In examining technical feasibility, configuration of the system is given more importance than the
actual make of hardware. The configuration should give the complete picture about tha systems
requirements.
How many workstations are required, how these units are interconnected so that thay could
operate and communicate smoothly.
What speed of input and output should be achieved at particular quality of printing.

Economic feasibility

Economic analysis the most frequently used technique for evaluating the effectiveness of a
proposed system. More commonly known as Cost/Benefit analysis, the procedure is to determine
the benefits nad savings that are expected from a proposd system and compare them with costs.
If benefits outweigh costs, a decision is taken to design and implement the system. Otherwise,
further justification or alternative in the proposed system have to be made if it is to have a chance
of being approved. This is an outgoing effort that improves in accuracy at each phase of the
system cycle.

Operational feasibility

This is mainly related to human organizational and political aspects. The points to be considered
are:
What changes will be broungt with the system?
What organization structure is disturbed?
What new skills will be requird? Do the existing staff member have these skills? If not,
can they be trained in due course of time?
EXPORT SYSTEM



5
This feasibility study is carried out by a small group of people who are familiar with information
system technique and are skilled in system analysis and desin process. Proposed projects are
beneficial only if they can be turned into information system that will meet the operating
requirements of the organization. This test feasibility asks if the system will work when it is
developed and installed.



















EXPORT SYSTEM



6
2.2 PROJECT PLANNING

The project planning is the important phase of the software development. The objective of
software project planning is to provide a framework that enables us to make reasonable estimates
of resources, cost and schedules. Estimate should attempt to define best case and worst case
scenarios so that project outcome can be resulted successfully. To carry out a proper project
planning it was necessary it understand the objective of developing software. Hence the analysis
of the required information was carried out.

First we were finding the client.
We had approached 2-3 associations but there was no response.
After 2 days we got response from a particular client.
The entrepreneur of OM MURUGA TREDERS signed us for developing software.
In a meeting we asked the client their requirements and structure of the software and the
time period.
And the time period by the client was of 6 months.
Also we asked in which application he wants the software.
We were using laptop for making the software and according to the discussion of the
application we installed wampserver with the help of our sir and the database connected
to the wampserver,
After getting all the details we started the body of the project.
First we designed the database design and data dictionary.
We designed the data flow diagram and we explained our client the diagram and we
asked whether the software of the software is satisfying his needs or not.
Also we asked if he require any changes in the structure of the software then we designed
ER Diagram.
After completing above process coding part was started.
First we created the forms designing we confirmed with our client we asked whether any
changes are required.
After confirming the front end forms we proceeded with validations to the forms.
After completing overall coding we connected to the database.
When the software was completed we started with the documentation which is provided
by us in details is helpful to them in future for using software.
We completed the software before our deadline.
.


EXPORT SYSTEM



7

2.3 PROJECT SCHEDULING (GANTT CHART)
A timeline chart can be developed for the entire project. Alternatively, separate chart scan be
developed for each project function or for each individual working on the project. When multiple
bars occur at the same time on the calendar, task concurrency is implied. The diamonds indicate
milestones.
Once the information necessary for the generation of a timeline chart has been
input, the majority of software project scheduling tools produce project tables a tabular
listing of all project tasks, their planned and actual start- and end-dates, and a variety of related
information . Used in conjunction with the timeline chart, project tables enable the project
manager to track progress






EXPORT SYSTEM



8

2.4 SOFTWARE REQUIREMENT SPECIFICATION (SRS):

This concept deals with the requirements of the software as per the needs of our client.
The entrepreneur of the OM Muruga Treders is Mr. Marimuthu Perumal who is our live
project client. As we have already done a project with our client and whatever drawbacks our
client found from the previous project, we have covered in the new software with different
application on the basis of that the SOFTWARE REQUIRED SPECIFICATION (SRS) is being
developed.

The real time system consist hotel reservations performed manually the collection of all
details of Distributor, Product details, billing details when the whole process is completed. The
client was using the register before the software process. In that we found that all the details was
not so maintained were not in the sequential format only the personal details of the various
clients were entered and our client used to check regarding Product and order availability
manually. But what if all these manual data get lost? That would lead to the situation where
overall data would misplace or it can mislead the overall of storing of customer data.

Handling data manually was too much stressed for our client because there were many
registers maintained by the client. As per the Live Project the software required specifications
all the information is properly distributed, Take an instance as Client form the overall data was
jumbled up in the client form so user to get confused to enter such a huge amount of the data and
the data which were generated are not are much vast.

The current software has all the requirements of our client that has been changed in the
same forms and easy calculations then previous software. The overall forms which are in being
implemented in this Live Project as per our clients Software Requirements specification are as
follows:



LOGIN
PRODUCT DAETAIL
DISTRIBUTOR DETAIL
IMPORTER DETAILS
PURCHASE DETAILS
BILL DETAILS
PAYMENT DETAILS
ENQUIRY DETAILS
PACKING DETAILS
WORKERS DETAILS
PROFT AND LOSS GENARETION
EXPORT SYSTEM



9

1. LOGIN: In this form the client is logging in to the software.

2. PRODUCT DETAILS: In this form the client want all the detail of the product to be
entered in the form.

3. IMPORTER DETAILSIn this form client wants all the details of the iimporter to be
entered in the form.

4. DISTRIBUTOR DETAILS:In this form client wants all the details of the distributor to
be entered in the form.

5. PURCHASE DETAILS: In this form client wants all the details of the purchase to be
entered in the form.

6. BILL DETAILS: In this form client requires all the details of the product ,amount and
distributor details should be entered in the form and client use send the bill along with the
prouct to the disributerand which is going to be printed as a legal bill.

7. PAYMENT DETAILS:In this form client wants all the details of the payment to be
entered in the form.

8. ENQUIRY DETAILS: In this form client requires all the the details of the enquiry details to
be entered in the form.

9. PACKING DETAILS:In this form client wants all the details of the paking to be
entered in the form.
10. WORKER DETAILS:In this form client wants all the details of the workers to be
entered in the form.

11. PROFT AND LOSS (REPORT GENARETION):In this form client wants to make a
profit and loss to be calculated in the form.






EXPORT SYSTEM



10
Project Purpose/Objective


Export System is a software application to maintain the records related to Product,
Distributor,and all necessary requirement for the Product and Distributor to manage day-to-day
operations
The objective of the application is to automate the existing system of manually maintain the
records of the Product, Distributor to be computerized.So the Product id , Name, searching
Product details will be faster.
The main objectives of Export System are
To build a system that can receive input and generate automatically output in easy way
and short time.
To build a monitoring system that will be able to monitor and manage all Model
operations efficiently.
Give an opportunity to Admin to reduce the time spends and mistake that always happens
during manual method.
To store properly the Product Details in order to maintain their security.
To enter and preserve details of the various issues and keep the track on their Returns.

Functional Requirements:

The functional requirement is describing the behavior of the system as it relates to the system's
functionality. A functional requirement defines a function of a software system or its component.
A function is described as a set of inputs, the behavior, and outputs (see also software).
Functional requirements may be calculations, technical details, data manipulation and processing
and other specific functionality that define what a system is supposed to accomplish.
The main things that user expects from the software.
Example: If the application is the Model Details. The application should be able to enter Model
ID, Model Name, Model Category etc and should update, delete the Model Details if necessary.
Functional Requirement are detailed and specified in the System design.



Non- Functional Requirements:

Non functional requirements depend on the sort of system architecture, implementation
Strategy and operational scenario selected by the authority, which will be responsible for the
system. Specification of non functional requirements, before the new authority has been
appointed, is therefore problematic.
Typically non-functional requirements fall into areas such as:
EXPORT SYSTEM



11
Efficiency
Effectiveness
Maintainability
Portability
Quality
Security
Supportability
Non-functional acquirements are not straight forward requirement of the system rather it is
related to usability (in some way)

HARDWARE CONFIGURATION

System : Multimedia PC
Processor : Pentium IV
Hard Disk : 40GB
RAM : 256MB
Keyboard : 104 standards

Monitor : SVGA

Modem : Dial up/Broadband



SOFTWARE CONFIGURATION

Operating System : Windows 7/XP
User Interface : DreamWeavar,
Client-side Scripting : JavaScript
Programming Language : PHP
Database : PHPMyAdmin(MYSQL)


EXPORT SYSTEM



12
2.5SOFTWARE ENGINEERING PARADIGMS APPLIED

The Software engineering paradigm used in this system is THE INCREMENTAL
MODEL.

When an increment model is used, the first increment is often a core product. That is,
basic requirements are addressed; but many supplementary features remain undelivered.
The core product is used by the customer. As a result of use and/ or evaluation, a plan is
developed for the next increment. the plan addresses the modification of the core product
to better meet the needs of the customer and the delivery of additional features and
functionality. This process is repeated following the delivery of each increment, until the
complete product is produced.

We have already mentioned the approximate time duration taken for the particular
phases of the system development life cycle to be carried out.

but since our project is based on the Increment Model, the particular portion of the
software is created and then the required modification of the software is carried out.


The two main programming approaches are top-down approach and bottom-up approaches.
Here while doing the software for Export system; we use the bottom up approach. In bottom up
method, the sub modules are designed and developed and these are assembled together to get
the main system. The individual modules are coded and debugged with example data given
checks ready for the major project design. The individual module transaction processing can be
checked thoroughly so that minute mistakes and correction can be passed from one module to
other when required and these requisition are also considered at the development stage of code
module. These checked and corrected modules will be integrated to make the entire system. This
project also followed the bottom up design. The sub modules are prepared very keenly and
minute notations are made. In the online admission system, the sub modules are designed first,
these sub modules are integrated into main modules. Other modules also designed in the same
fashion. Each module is tested at the beginning when they are integrated with the sub-modules
These checked and corrected modules are integrated to make the main system, i.e. Export
System







EXPORT SYSTEM



13
2.5 DATA FLOW DIAGRAM

Data Flow Diagram (DFD):

Data flow diagram is way of expressing system requirements in graphical format. It is graphic
tool to describe and analyze the movement of the data through a system. It allows the individual
to see logical elements (what the system should do), apart from physical components (computer
terminals, storage space etc).
DFD overcome this through,
Partitioning the system into components.

Constructing the model of system.
A data flow diagram consists of series of symbols joint by lines. The symbol represents data
transformation and line represents data flow in the system.
The transformation of data from input to output through process may be described logically and
independently of the physical components associated with the system. They are termed logically
as data flow diagram. In contrast, physical data flow diagram shows the actual implementation
and the movement of data between people, department and workstations.




EXPORT SYSTEM



14

NOTATION FOR DFD

Process: A process transforms incoming data flow into outgoing data flow.









Process Notation
Data Store: data stores are repositories of data in the system. They are sometimes also referred
to as files.











Data Flow Notation





Dataflow: dataflow are pipelines through which packets of information flow. Label the arrow
with name of the data that moves through it.











Information Process
1
Process
1 1
EXPORT SYSTEM



15
Dataflow Notation
External Entity: External entities are objectsoutside the system,with which the system
communicates. External entities are sources and destinations of the systems input and output.






































External Entity
EXPORT SYSTEM



16

CONTEXT LEVEL

EXPORT SYSTEM



17

EXPORT SYSTEM



18
EXPORT SYSTEM



19
EXPORT SYSTEM



20
EXPORT SYSTEM



21
EXPORT SYSTEM



22
EXPORT SYSTEM



23
EXPORT SYSTEM



24
EXPORT SYSTEM



25
EXPORT SYSTEM



26
EXPORT SYSTEM



27
2.7 ENTITY RELATION DIAGRAM




EXPORT SYSTEM



28






SYSTEM DESIGN



















EXPORT SYSTEM



29
SYSTEM DESIGN

The system design develops the architectural detail required to build a system or product.
As in the case of any systematic approach, this software too has undergone the best possible
design phase fine tuning all efficiency, performance and accuracy levels. The first step in system
designing is to determine how the output is to be produced and in what format. Samples of the
output and input are also presented. In the second step, input data and master files are to be
designed to meet requirement of the proposed output. The processing phases are handled through
program construction and testing, including a list of the programs needed to meet the systems
objectives and complete documentation.

1 DESIGN METHODOLOGY

System design is the solution to the creation of a new system. This phase is composed of several
systems. This phase focuses on the detailed implementation of the feasible system. It emphasis
on translating design specifications to performance specification. System design has two phases
of development logical and physical design. During logical design phase the analyst describes
inputs (sources), out puts (destinations), databases (data sores) and procedures (data flows) all in
a format that meats the uses requirements. The analyst also specifies the user needs and at a level
that virtually determines the information flow into and out of the system and the data resources.
Here the logical design is done through data flow diagrams and database design. The physical
design is followed by physical design or coding. Physical design produces the working system
by defining the design specifications, which tell the programmers exactly what the candidate
system must do. The programmers write the necessary programs that accept input from the user,
perform necessary processing on accepted data through call and produce the required report on a
hard copy or display it on the screen.


A. LOGICAL DESIGN
Logical design of an information system shows the major features and also how they are
related to one another. The first step of the system design is to design logical design
elements. This is the most creative and challenging phase and important too. Design
of proposed system produces the details of the state how the system will meet the
requirements identified during the system analysis that is, in the design phase we have to
find how to solve the difficulties faced by the existing system. The logical design of the
proposed system should include the details that contain how the solutions can be
implemented. It also specifies how the database is to be built for storing and retrieving
data, what kind of reports are to be created and what are the inputs to be given to the
system. The logical design includes input design, output design, and database design and
physical design






EXPORT SYSTEM



30
B. PHYSICAL DESIGN

The process of developing the program software is referred to as physical design.
We have to design the process by identifying reports and the other outputs the system
will produce. Coding the program for each module with its logic is performed in this step.
Proper software specification is also done in this step.

C. MODULAR DESIGN

A software system is always divided into several sub systems that makes it
easier for the development. A software system that is structured into several subsystems
makes it easy for the development and testing. The different subsystems are known as the
modules and the process of dividing an entire system into subsystems is known as
modularization or decomposition. A system cannot be decomposed into several
subsystems in any way. There must some logical barrier, which facilitates the separation
of each module. The separation must be simple but yet must be effective so that the
development is not affected. The system under consideration has been divided into
several modules taking inconsideration the above mentioned criteria. The different
modules are :

1. User module

2. Administrator module


2. INPUT DESIGN

The input design is the link between the information system and the user. It
comprises the developing specification and procedures for data preparation and those
steps are necessary to put transaction data into a usable form for processing
data entry. The activity of putting data into computer for processing can be achieved by
inspecting the computer to read data from a written or printed document or it can occur
having people keying the data directly into the system. The design of input focuses on
controlling the amount of input required, controlling errors, avoiding delay, avoiding
extra steps and keeping the process simple.
The system needs the data regarding the asset items, depreciation rates, asset
transfer, physical verification for various validation, checking, calculation and report
generation.. The error raising method is also included in the software, which helps to
raise error message while wrong entry of input is done. So in input design the following
things are considered.

What data should be given as input?

How the data should be arranged or coded?

Methods for preparing input validations and steps to follow when error occur.
EXPORT SYSTEM



31

3.OUTPUT DESIGN

Computer output is the most important and direct information source to the user.
Output design is a process that involves designing necessary outputs in the form of reports that
should be given to the users according to the requirements. Efficient, intelligible output design
should improve the system's relationship with the user and help in decision making. Since the
reports are directing referred by the management for taking decisions and to draw conclusions
they must be designed with almost care and the details in the reports must be simple,
descriptive and clear to the user. So while designing output the following things are to be
considered.
Determine what information to present

Arrange the presentation of information in an acceptable format

Decide how to distribute the output to intended receipts Depending on the nature
and future use of output required, they can be displayed on the monitor for immediate need and
for obtaining the hardcopy.

4. DATABASE DESIGN

The overall objective in the development of database technology has been to treat
data as an organizational resource and as an integrated whole. DBMS allow data to be protected
and organized separately from other resources. Database is an integrated collection of data. The
most significant form of data as seen by the programmers is data as stored on the direct access
storage devices. This is the difference between logical and physical data. Database files are the
key source of information into the system. It is the process of designing database files, which are
the key source of information to the system. The files should be properly designed and planned
for collection, accumulation, editing and retrieving the required information. The organization
of data in database aims to achieve three major objectives:

Data integration.

Data integrity.

Data independence.

The proposed system stores the information relevant for processing in the
PHPMYADMIN(MSQL) database. This database contains tables, where each table corresponds
to one particular type of information. Each piece of information in table is called a field or
column. A table also contains records, which is a set of fields. All records in a table have the
same set of fields with different information. There are primary key fields that uniquely identify
a record in a table. There are also fields that contain primary key from another table called
foreign keys.

EXPORT SYSTEM



32

3.1 DATABASE NORMALISATION
Normalization is the process of organizing data into a related table; it also eliminates redundancy
and increase the integrity which improves performance of the query .to normalize a database,we
divide the database into tables and establish relationship between the tables.
Database normalization can essentially be defined as the practice of optimizing table structure.
Optimization is accomplished as a result of a thorough investigation of the various pieces of data
that will be stored within the database, in particular concentrating upon how this data is
interrelated.
Normalization Avoid:
Duplication of data The same data is listed in multiple lines of the database
Insert Anomaly- A record about an entity cannot be inserted into the table without a sales
order
Delete Anomaly- A record cannot be deleted without deleting a record about a related
entity. It cannot delete a sales order without deleting all of the customers information.
Update Anomaly-Cannot update information without changing information in many
places. To update customer information, it must be updated for each sales order the
customer has placed

First Normal form (1
st
NF)
Definition: An entity is in the first normal form if it contains no repeating groups. In
relation term, a table is in the first normal form if it conditions no repeating columns.
Repeating columns make your data less flexible, waste disk space, and make it more
difficult to search for data.



In 1
st
NF:

The table cells must be of single value.
Eliminate repeating group in individual tables.
Create a separate table for each set related data.
Identify each set of related data with a primary key.


Second Normal form(2
nd
NF)
Definition: A relation is in @NF if it is in! NF and every non-key attribute are fully dependent
on each candidate key of the relation.

In 2
nd
NF:
EXPORT SYSTEM



33

Remove partial dependencies.
Function Dependency: The value of one attribute in a table is determined entirely by the
value of another
Partial Dependency: A type of functional dependency where an attribute is functionally
dependent on only part of the primary key (primary key must be a composite key).
Create separate table with the functionally dependent data and the part of the key on
which it depends. Tables create at this step will usually contain descriptions of resources.
Third Normal Form (3
rd
NF)
A relation is in third normal form, if it is in 2NF and every non-key attribute of the
relation is non-transitively dependent on each candidate key of the relation.

In 3
rd
NF:
Remove transitive dependencies.

Transitive Dependency A type of functional dependency where an attribute is
functionally dependent on an attribute a there than the primary key. Thus its value
is only indirectly determined by the primary key.
Create a separate table containing the attribute and the fields that are functionally
dependent on it. Table create at this step will usually contain description of either
resource or agents. Keep a copy of the key attribute in the original file.












EXPORT SYSTEM



34

3.2DATABASEDESIGN


PRODUCT TABLE:


DISTRIBUTOR TABLE:




EXPORT SYSTEM



35

IMPORTER TABLE:





ORDER TABLE:




EXPORT SYSTEM



36
BILL TABLE:




PURCHASE TABLE:








EXPORT SYSTEM



37

PAYMENT TABLE:






ENQUIRY TABLE:






EXPORT SYSTEM



38

PACKING TABLE:




WORKERS TABLE:








EXPORT SYSTEM



39

DATA DESIGN

Login Table:
USER_ID USER_PASSWORD

Product Table:
P_ID P_NAME P_SIZE P_AMOUNT

Distributor Table:
D_ID P_ID P_QUANTITY P_RATE P_AMOUNT

Importer Table:
I_ID I_NAME I_ADDRESS I_PHONE

Order Table:
O_ID P_ID P_QUANTITY P_RATE P_AMOUNT O_DATE

Purchase Table:
PU_ID I_ID P_ID PU_QUANTITY PU_RATE PU_AMOUNT PU_DATE


Bill Table:
SR_NO BILL_NO BILL_DATE D_ID TOTAL_AMOUNT
DISCOUNT TAX GRAN_TOTAL PAID_AMOUNT BALANCE_AMOUNT

Payment Table:
PAY_NO BILL_NO PAID_AMOUNT PAID_DATE PAID_BY

Enquiry Table:


Packing Table:
PK_ID PK_ID PK_DATE PK_PERSON PK_NOS

Workers Table:
W_ID W_NAME W_WAGES W_PHONE_NO W_ADDRESS



E_ID E_BY P_ID P_AMOUNT
EXPORT SYSTEM



40
3.3DATA DICTIONARY


In database management system, a file that defines the basic organization of a database. A data
dictionary contains a list of all files in the database, the number of records in each file, and the
data dictionary hidden from user to prevent them from accidently destroying its contents.

From a general information technology technical perspective, a data dictionary is a set of
metadata which contains the definition and representation of data elements. From the perspective
of a database management system, data dictionary is a set of table and views which can only be
read and never altered. When implementing a data warehouse which is management by a
relational database management system, it is a requirement to have a data dictionary. The benefit
of having a data dictionary is that data item will always be consistent wherever tables within the
database enterprise they may be stored. For instance, several telephone number may be stored in
different tables in different locations.

It is a fact there telephone number are being written down in different way by different people.
With data dictionary, the format of the telephone number within the whole organization will
always be the same and hence consistency is maintained.

Most data dictionaries contain different information about the data used in the enterprise. In
terms of database representation of the data, the data table defines all schema objects including
views, tables, clusters, indexes, sequences, synonyms, procedures, packages, functions, trigger
and many more. This will ensure that all these things follow one standard defined in the
dictionary. The data dictionary also defines how much space has been allocated for and/or
currently in used by all the schema objects.

Other information defined in a typical data dictionary which is related to database
implementation also include default values for database columns, names of the database users,
the users privileges and limitations, database integrity constraints information, and many other
general information.

A data dictionary is in fact a database implementation as well as they contain data information
about data. It is typically structured in tables and views just like other data in a database. Most
data dictionaries are central to a database and are very important tool for kinds of users from the
data consumers to application designers to database developers and administrators.

A data dictionary is used when finding information about users, objects, schema and storage
structures. Every time a data definition language (DDL) statement is issued, the data dictionary
becomes modified. Organizations that are trying to develop an enterprise wide data dictionary
need to have representational definition for data elements and semantics. Semantics refer to the
aspects of meaning expressed in language.




EXPORT SYSTEM



41
DATA DICTIONARY



TABLE NAME: LOGIN_DETAIL
FIELD_ NAME DATA TYPE DESCRIPTION
USER_ID Varchar(10) Save the user name.
USER_PASSWORD Varchar(10) Save the user password.

TABLE NAME: PRODUCT_DETAIL
FIELD_NAME DATA TYPE DESCRIPTION
P_ID (PK) Number(10)
The Number Gives For Unique
Identification Of The Product.
P_NAME Text(20) The Name Of The Product.
P_SIZE Number(20) The Size Of The Product.
P_AMOUNT Number(20) The Total Amount Of The Product.


TABLE NAME: DISTRIBUTOR_DETAIL
FIELD_NAME DATA TYPE DISCRIPTION
D_ID(PK) Number(10)
The Number Gives For Unique
Identification Of The Distributor .
D_ADDRESS Varchar(50)
The Address Of The Distributor For
Maintaining The Records.
D_PHONE Number(10)
Phone Number Of The Distributor For
Contacting In Need.
D_NAME Text(10) The Name Of The Distributor.
D_EMAIL Varchar(20)
Email Of The Distributor For
Contacting In Need.

TABLE NAME: IMPORTER_DETAIL
FIELD_NAME DATA TYPE DISCRIPTION
I_ID(PK) Number(10)
The Number Given For Unique
Identification Of The Importer.
I_NAME Text(20) The Name Of The Importer
EXPORT SYSTEM



42
I_ADDRESS Varchar(50)
The Address Of The Importer For
Maintaining The Record.
I_PHONE Number(10)
The Phone Number Of The Importer
To Contact.


TABLE NAME : ORDER

TABLE NAME: PURCHASE_DETAIL
FIELD_NAME DATA TYPE DISCRIPTION
PU_ID(PK) Number(10) The Unique Number For Identification.
I_ID(FK) Number(10)
The Id Number Of The Importer Given
In The Record.
P_ID(FK) Number(10)
The Id Number Of The Product Given
In The Record.
PU_QUANTITY Varchar(10) Purchase Quantity Of The Product.
PU_RATE Currency The Rate Of The Product On Purchase.
PU_AMOUNT Currency
The Total Amount Of The Purchase
Product.
PU_DATE Date
The Date On Which Product Purchase
From Importers.


TABLE NAME: PAYMENT_DETAIL
FIELD_NAME DATA TYPE DISCRIPTION
PAY_ID(PK) Number(10)
The Number Associated With
Distributors Id.
BILL_NO(FK) Number(10) Bill Associated With Product.
PAID_AMT Currency Amount Paid By The Distributors.
FIELD_NAME DATA TYPE DISCRIPTION
O_ID(PK) Number(10) The Unique Number For Identification.
P_ID(FK) Number(10)
The Id Of The Product Given In The
Record.
P_QUANTITY Varchar(10) The Quantity Of The Product.
P_RATE Currency The Rate Of The Product.
P_AMOUNT Currency The Price Of The Product.
O_DATE Date The Date On Which Order Placed
EXPORT SYSTEM



43
PAID_DATE Date Time
The Date On Which Bill Is Paid By The
Distributor.
PAID _BY Text(20) Name Of The Distributor.


TABLE NAME: BILL
FIELD_ NAME DATA TYPE DISCRIPTION
SR_NO(PK) Number(10) The Unique Number For Identification.
BILL_NO(PK) Number(10) The Number For The Bill.
BILL_DATE Date Time
Date Of The Bill For Delivery Of The
Product.
D_ID(PK) Number(10)
The Id Number Of The Distributor
Given In The Record.
TOTAL_AMOUNT Currency Total Amount Incurred.
DISCOUNT Currency Discount From The Total Amount.
TAX Number Tax Amount.
GRAND_TOTAL Currency
The Amount Including The Tax
Amount And The Deduction Of
Discount.
PAID_AMOUNT Currency The amount Paid By The Distributor.
BALANCE_AMOUNT Currency
Remaining Balance Amount Of The
Distributor


TABLE NAME: ENQUIRY_DETAILS
FIELD_NAME DATA TYPE DISCRIPTION
E_ID(PK) Number(10)
The Unique Number For Identification.
E_BY Text(20)
Name Of The Person Whos Enquiring.
P_ID(FK) Number(10)
The Id Number Of The Product Given
In The Record.
P_AMOUNT Number(20)
The Total Price Of The Product.







EXPORT SYSTEM



44
TABLE NAME: PACKING_DETAILS

FIELD_NAME

DATA TYPE

DISCRIPTION

PK_ID(PK)


Number(10)
The Unique Number For Identification

PK_ID


Number(10)
The Id Of The Product Given In The
Record.

PK_DATE

Date/Time

Date of packing

PK_PERSON

Varchar(30)
Name of the person who packing

PK_NOS

Number(20)
Number of packing sacks

TABLE NAME: WORKERS_DETAILS

FIELD_NAME

DATA TYPE

DISCRIPTION

W_ID(PK)

Number(10)
The Unique Number For Identification

W_NAME

Varchar(30)
The name of the workers

W_WAGES

Float(20)
The amount Paid By The Workers

W_PHONE_NO

Number(10)
The Phone Number Of The WorkersTo
Contact

W_ADDRESS

Varchar(50)
The Address Of The Workers For
Maintaining The Record

WK_DATE

Date
Joined Date of Workers
















EXPORT SYSTEM



45
3.4 USER INTERFACE DESIGN

LOGIN PAGE:



HOME PAGE:




EXPORT SYSTEM



46




PRODUCT FORM:



PRODUCT LIST:



EXPORT SYSTEM



47



DISTRIBUTOR FORM:

LIST:

EXPORT SYSTEM



48
IMPORTER FORM:


LIST:

EXPORT SYSTEM



49
ORDER FORM:


LIST:


EXPORT SYSTEM



50

BILL FORM:
LIST:

EXPORT SYSTEM



51
PURCHASE FORM:

LIST:


EXPORT SYSTEM



52
PAYMENT FORM:


LIST:



EXPORT SYSTEM



53
ENQURIY FORM:


LIST:



EXPORT SYSTEM



54
PACKING FORM:

LIST:


EXPORT SYSTEM



55
WORKERS FORM:

LIST:



EXPORT SYSTEM



56
PROFIT AND LOSS:













EXPORT SYSTEM



57

3.5 TEST CASES
Testing an application or a program working is not black-and-white. A program may work in one
situation or condition, but may fail in another. It is up to the software tester, to ensure that a
program works correctly in all possible conditions.
Test case is a scenario made up of a sequence of steps and conditions or variables, where test
inputs are provided and the program is run using those inputs, to see how it performs. An
expected result is outlined and the actual result is compared to it. Certain working conditions are
also present in the test case, to see how the program handles the conditions.
White box testing method has carried out in this system. All independent paths module have
been exercised at least once. Exercise internal data structure to ensure their validity,
In this live project we have changed the format of project and chosen HTML and PHP language
using My SQL as database. In this project consists of seven forms out of which four are used
to store the overall information of the customer details and three forms are login, menu and
verifying information. The name of the forms is as follows:

LOGIN
PRODUCT DAETAIL
DISTRIBUTOR DETAIL
IMPORTER DETAILS
PURCHASE DETAILS
BILL DETAILS
PAYMENT DETAILS
ENQUIRY DETAILS
PACKING DETAILS
WORKERS DETAILS
PROFT AND LOSS GENARETION






EXPORT SYSTEM



58

Product Form
FIELD
NAME
TEST CASE TEST DATA STATE TEST
INPUT
VALUES
EXPECTED RESULT
Product
id
Field should not
be left Blank
Empty string in
Product id field
Invalid Message Product id Can
Not be left Blank is
displayed


Numbers
between 0-9
Valid 1000012 Input is accepted
Name Field should not
be left Blank
Empty string in
name field
Invalid Message Name Can Not
be left Blank is
displayed


Alphabets
between
A-Z & a-z

Valid

Ani

Input is accepted
Size Field should not
be left Blank
Empty string in
Size of the
product field
Invalid Message Product Size
Can Not be left Blank is
displayed


Numbers
between 0-9
Valid 538 Input is accepted
Amount Field should not
be left Blank
Empty string in
Product amt field
Invalid Message Product amt
Can Not be left Blank is
displayed


Numbers
between 0-9
Valid 123456 Input is accepted
Distributor Form:
FIELD
NAME
TEST CASE TEST DATA STATE TEST INPUT
VALUES
EXPECTED
RESULT
Distributor
id
Field should
not be left
Blank
Empty string in
model no field
Invalid Message Distributor
id Can Not be left
Blank is displayed


Numbers
between 0-9
Valid 10 Input is accepted
Name Field should
not be left
Blank
Empty string in
name field
Invalid Message Name Can
Not be left Blank is
displayed


Alphabets
between
A-Z & a-z

Valid

sanju

Input is accepted
Mobile No Field should
not be left
Blank
Empty string in
mobile number
field
Invalid Message Password
Can Not be left Blank
is displayed


Numbers
between 0-9
Valid 9898989898 Input is accepted
Address Field should Empty string in Invalid Message ADDRESS
EXPORT SYSTEM



59
not be left
Blank
Distributor
Address field
Can Not be left Blank
is displayed


Numbers
between 0-9
Valid airoli Input is accepted
Email Field should
not be left
Blank
Empty string in
Email field
Invalid Message Email Can
Not be left Blank is
displayed


Numbers
between
0-9
Valid Sanju@gmail.com Input is accepted

Importer Form:
FIELD
NAME
TEST CASE TEST DATA STATE TEST
INPUT
VALUES
EXPECTED RESULT
Importer
id
Field should not
be left Blank
Empty string in
model no field
Invalid Message Importer id
Can Not be left Blank is
displayed


Numbers
between 0-9
Valid 1 Input is accepted
Name Field should not
be left Blank
Empty string in
name field
Invalid Message Name Can Not
be left Blank is
displayed


Alphabets
between
A-Z & a-z

Valid

shiv

Input is accepted
Mobile
No
Field should not
be left Blank
Empty string in
mobile number
field
Invalid Message Mobail no Can
Not be left Blank is
displayed


Numbers
between 0-9
Valid 9898989898 Input is accepted
Address Field should not
be left Blank
Empty string in
Address field
Invalid Message Address Can
Not be left Blank is
displayed


Numbers
between 0-9
Valid thane Input is accepted

Order Form:
FIELD
NAME
TEST CASE TEST DATA STATE TEST
INPUT
VALUES
EXPECTED RESULT
Order id Field should not
be left Blank
Empty string in
Order id field
Invalid Message Order id Can
Not be left Blank is
displayed


Numbers
between 0-9
Valid 6 Input is accepted
EXPORT SYSTEM



60
P_id Field should not
be left Blank
Empty string in
p_id field
Invalid Message Product id Can
Not be left Blank is
displayed


Numbers
between 0-9

Valid

16

Input is accepted
P_quqntity Field should not
be left Blank
Empty string in
quantity field
Invalid Message Product
Quantity Can Not be left
Blank is displayed


Numbers
between 0-9
Valid 98 Input is accepted
P_rate Field should not
be left Blank
Empty string in
Product rate field
Invalid Message Product rate
Can Not be left Blank is
displayed


Numbers
between 0-9
Valid 123456 Input is accepted
Order date Field should not
be left Blank
Empty string in
date field
Invalid Message date Can Not
be left Blank is
displayed


Numbers
between
0-9
Valid 2003.03.04 Input is accepted
Purchase Form:
FIELD
NAME
TEST CASE TEST DATA STATE TEST
INPUT
VALUES
EXPECTED RESULT
Purchase
id
Field should not
be left Blank
Empty string in
Purchase id field
Invalid Message Purchase id
Can Not be left Blank is
displayed


Numbers
between 0-9
Valid 2 Input is accepted
Importer
id
Field should not
be left Blank
Empty string in
id field
Invalid Message Importer id
Can Not be left Blank is
displayed


Numbers
between 0-9

Valid

12

Input is accepted
Product
id
Field should not
be left Blank
Empty string in
Product id field
Invalid Message Product id Can
Not be left Blank is
displayed


Numbers
between 0-9
Valid 9 Input is accepted
Purchase
Quantity
Field should not
be left Blank
Empty string in
Purchase
quantity field
Invalid Message Purchase
quantity Can Not be left
Blank is displayed


Numbers
between 0-9
Valid 12 Input is accepted
Rate Field should not
be left Blank
Empty string in
rate field
Invalid Message Rate Can Not
be left Blank is
displayed
Numbers Valid 50000 Input is accepted
EXPORT SYSTEM



61
between
0-9
Amount Field should not
be left Blank
Empty string in
Amount field
Invalid Message Amount Can
Not be left Blank is
displayed
Numbers
between
0-9
Valid 5000000 Input is accepted
Date Field should not
be left Blank
Empty string in
Amount field
Invalid Message Date Can Not
be left Blank is
displayed
Numbers
between
0-9
Valid 2003.02.12 Input is accepted

Payment Form:
FIELD
NAME
TEST CASE TEST DATA STATE TEST
INPUT
VALUES
EXPECTED RESULT
Payment
id
Field should not
be left Blank
Empty string in
Payment id field
Invalid Message Payment id
Can Not be left Blank is
displayed


Numbers
between 0-9
Valid 11 Input is accepted
Bill id Field should not
be left Blank
Empty string in
Bill id field
Invalid Message Bill id Can Not
be left Blank is
displayed


Numbers
between 0-9

Valid

16

Input is accepted
Amount Field should not
be left Blank
Empty string in
amount field
Invalid Message Amount Can
Not be left Blank is
displayed


Numbers
between
0-9
Valid 50000 Input is accepted
Date Field should not
be left Blank
Empty string in
Date field
Invalid Message Date Can Not
be left Blank is
displayed


Numbers
between 0-9
Valid 2001.03.06 Input is accepted
Name Field should not
be left Blank
Empty string in
Name field
Invalid Message name Can Not
be left Blank is
displayed


Alphabets
between
A-Z & a-z
Valid raja Input is accepted

EXPORT SYSTEM



62

Enquiry form:
FIELD
NAME
TEST CASE TEST DATA STATE TEST
INPUT
VALUES
EXPECTED RESULT
Enquiry
id
Field should not
be left Blank
Empty string in
Enquiry id field
Invalid Message Enquiry id Can
Not be left Blank is
displayed


Numbers
between 0-9
Valid 1 Input is accepted
Name Field should not
be left Blank
Empty string in
name field
Invalid Message Name Can Not
be left Blank is
displayed


Alphabets
between
A-Z & a-z

Valid

123456

Input is accepted
Product
id
Field should not
be left Blank
Empty string in
Product id field
Invalid Message Product id Can
Not be left Blank is
displayed


Numbers
between 0-9
Valid 9 Input is accepted
Amount Field should not
be left Blank
Empty string in
amount field
Invalid Message Amount Can
Not be left Blank is
displayed


Numbers
between
0-9
Valid 50000 Input is accepted
Packing Form:
FIELD
NAME
TEST CASE TEST DATA STATE TEST
INPUT
VALUES
EXPECTED RESULT
Packing
id
Field should not
be left Blank
Empty string in
Packing id field
Invalid Message Packing id Can
Not be left Blank is
displayed


Numbers
between 0-9
Valid 1 Input is accepted
Name Field should not
be left Blank
Empty string in
name field
Invalid Message Name Can Not
be left Blank is
displayed


Alphabets
between
A-Z & a-z

Valid

sanju

Input is accepted
Product
id
Field should not
be left Blank
Empty string in
Product id field
Invalid Message Product id Can
Not be left Blank is
displayed
Numbers Valid 9 Input is accepted
EXPORT SYSTEM



63
between 0-9
Total
packing
Field should not
be left Blank
Empty string in
Total packing
field
Invalid Message Total packing
Can Not be left Blank is
displayed


Numbers
between 0-9
Valid 123456 Input is accepted
Packing
charge
Field should not
be left Blank
Empty string in
Packing charge
field
Invalid Message Packing charge
Can Not be left Blank is
displayed


Numbers
between
0-9
Valid 50000 Input is accepted
Workers Form:
FIELD
NAME
TEST CASE TEST DATA STATE TEST
INPUT
VALUES
EXPECTED RESULT
Workers
id
Field should not
be left Blank
Empty string in
Workers id field
Invalid Message Worker id Can
Not be left Blank is
displayed


Numbers
between 0-9
Valid 1000 Input is accepted
Name Field should not
be left Blank
Empty string in
name field
Invalid Message Name Can Not
be left Blank is
displayed


Alphabets
between
A-Z & a-z

Valid

123456

Input is accepted
Worker
wages
Field should not
be left Blank
Empty string in
workers wages
field
Invalid Message Workers
wages Can Not be left
Blank is displayed


Numbers
between 0-9
Valid 98 Input is accepted
Mobile
no
Field should not
be left Blank
Empty string in
Mobile no field
Invalid Message Mobile no Can
Not be left Blank is
displayed


Numbers
between 0-9
Valid 9895623421 Input is accepted
Address Field should not
be left Blank
Empty string in
address field
Invalid Message Address Can
Not be left Blank is
displayed


Alphabets
between
A-Z & a-z
Valid airoli Input is accepted

EXPORT SYSTEM



64







CODING







EXPORT SYSTEM



65

LOGIN PAGE CODING:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>login</title>
<style type="text/css">
<!--
.style1 {
font-family: "Times New Roman", Times, serif;
font-weight: bold;
font-size: 36px;
color: #0000FF;
}
.style11 {font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 18px; }
body {
background-image: url(../coconuts.jpg);
}
body,td,th {
font-size: 36px;
}
.style17 {font-family: "Times New Roman", Times, serif; font-size: 24px; color: #0000FF; font-
weight: bold; }
.style20 {font-family: Geneva, Arial, Helvetica, sans-serif}
.style21 {font-size: 24px}
.style22 {
font-size: 24px;
color: #95ADA8;
font-family: "Times New Roman", Times, serif;
}
.style24 {color: #0000FF}
.style25 {color: #0000FF; font-weight: bold;}
.style2 {color: #CCCC33}
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}

#full-screen-background-image {
z-index: -999;
min-height: 100%;
min-width: 1024px;
EXPORT SYSTEM



66
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}

#wrapper {
position: relative;
width: 800px;
min-height: 400px;
margin: 100px auto;
color: #333;
}
body {
background-image: url(coconuts.jpg);
center center fixed no-repeat;
-moz-background-size: cover;
background-size: cover;
}@media only all and (max-width: 1000px) and (max-height: 7oopx) {
body {
-moz-background-size: 1000px 700px;
background-size: 1000px 700px;
}
}
}
-->
</style>
</head>
<body>
<FORM NAME="frmLogin" ID="frmLogin" ACTION="login_add.php" METHOD="POST">
<p>&nbsp;</p>
<img alt="" src="file:///cocounts.jpg" id="full-screen-background-image" />

<table width="441" height="369">
<tr>
<td width="433"><div align="center" class="style1">Om Muruga Traders </div></td>
</tr>
</table>
<span class="style21">
<table width="446" border="0" align="right">
<span class="style24"></span></span><tr>
<td width="169" class="style22"><span class="style25">User Name</span></td>
<td width="144" class="style21"><input name="txtUid"type="text" class="style20" id="txtUid"
/></td>
</tr>
EXPORT SYSTEM



67
<tr>
<td valign="bottom"><div align="left" class="style17">User Password</div></td>
<td><div align="left">
<input name="txtUname" id="txtUname" type="password" class="style20" />
</div></td>
</tr>
<tr>
<td height="26"><form action="" method="post" name="form1" class="style11" id="form1">
<label>
<input name="Submit" type="submit" class="style11" value="Login" />
</label>
</form></td>
<td><form action="" method="post" name="form2" class="style11" id="form2">
<label>
<input name="Submit2" type="submit" class="style11" value="Reset" />
</label>
</form></td>
</tr>
</table>
</body>
</html>

LOGIN ADD PAGE:
<?php
if ( $_REQUEST["txtUid"]=="ani" and $_REQUEST["txtUname"]=="123")
{
header('Location: home.php');
}
else
{
echo "Password is not matching";
header('Location: login.php');
}
?>
HOME PAGE CODING:
<!DOCTYPE html>
<html>
<head>
<style>
ul
{
float:center;
width:100%;
padding:0;
margin:0;
list-style-type:none;
EXPORT SYSTEM



68
}
a
{
float:center;
width:6em;
text-decoration:none;
color:white;
background-color:purple;
padding:0.2em 0.6em;
border-right:1px solid white;
}
a:hover {background-color:#FF99CC;}
li {display:inline;}
.style4 {
font-size: 36px;
font-family: "Times New Roman", Times, serif;
color: #33CC33;
font-weight: bold;
}
.style5 {font-family: "Times New Roman", Times, serif}
</style>
<body>
<div align="center">
<table width="1209" height="445" border="0">
<tr>
<td width="232" rowspan="2"><img src="coconuts.jpg" width="232" height="159" /></td>
<td width="918" height="112"><div align="center" class="style4">Om Muruga Traders
</div></td>
</tr>
<tr>
<td height="327"><ul class="style5" id="menu">
<li><a href="PRODUCT_LIST.php">PRODUCT</a></li>
<li><a href="Distributor_List.php">DISTRIBUTOR</a></li>
<li><a href="IMPORTER_detail_LIST.php">IMPORTER</a></li>
<li><a href="ORDER_LIST.php">ORDER</a></li>
<li><a href="BILL_LIST.php">BILL</a></li>
<li><a href="PURCHASE_DETAIL_LIST.php">PURCHASE</a></li>
<li><a href="payament_list.php">PAYMENT</a></li>
<li><a href="ENQUIRY_DETAIL_LIST.php">ENQUIRY</a></li>
<li><a href="Packing_List.php">PACKING</a></li>
<li><a href="Workers_LIST.php">WORKERS</a></li>
<div align="justify"></div>
<img src="coconut_logo_by_g9studios-d51dd2z.jpg" width="900" height="494">
</ul></td>
</tr>
</table>
EXPORT SYSTEM



69
</div>
</body>
</html>
PRODUCT FORM CODING:
<?php

$P_id="";
$P_name="";
$P_size="";
$P_amount="";


if (ISSET($_REQUEST["P_id"]))
{
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from product where P_id=".$_REQUEST["P_id"]);
while($row=mysql_fetch_array($rs))
{
$P_id=$row["P_id"];
$P_name=$row["P_name"];
$P_size=$row["P_size"];
$P_amount=$row["P_amount"];
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style2 {font-size: 24px}
.style5 {font-size: 18px; font-family: "Times New Roman", Times, serif; }
.style10 {font-size: 14px}
.style12 {font-size: 14px; font-family: "Times New Roman", Times, serif; }
.style4 {
font-size: 36px;
font-family: "Times New Roman", Times, serif;
color: #33CC33;
font-weight: bold;
}

.style14 {color: #990000}
EXPORT SYSTEM



70
.style15 {font-weight: bold; font-size: 24px;}
.style22 {font-size: 18px; font-family: "Times New Roman", Times, serif; font-weight: bold;
color: #990000; }
.style23 {font-size: 24px; color: #990000; }
.style24 {font-weight: bold}
.style25 {font-size: 24px; color: #990000; font-weight: bold; }
-->
</style>
<script >
function Redirect()
{
window.location="Home.php";
}
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode;
if (charCode != 46 && charCode > 31
&& (charCode < 48 || charCode > 57))
return false;

return true;
}
function checkNum(evt)
{

var charCode = (evt.which) ? evt.which : event.keyCode;
if(charCode !=46 && charCode>31 && (charCode < 48 || charCode >57))
return true;

return false;

}
function validateForm(evt)
{
var a=document.forms["frmPRODUCT"]["txtId"].value;
var b=document.forms["frmPRODUCT"]["txtPName"].value;
var c=document.forms["frmPRODUCT"]["txtSize"].value;
var d=document.forms["frmPRODUCT"]["txtAmount"].value;
if (a==null || a=="")
{
alert("Please Enter Product Id");
return false;
}

if (b==null || b=="")
{
EXPORT SYSTEM



71
alert("Please Enter Product Name");
return false;
}

if (c==null || c=="")
{
alert("Please Enter Product Size");
return false;
}
if (d==null || d=="")
{
alert("Please Enter Product Amount");
return false;
}

}

</script>
</head>

<body>
<FORM NAME="frmPRODUCT" ID="frmPRODUCT" ACTION="PRODUCT_ADD.php"
METHOD="POST"
onsubmit="return validateForm(event);" >
<div align="center">
<table width="787" height="536" border="0">
<tr>
<td width="232" rowspan="2"><img src="coconuts.jpg" width="232" height="159" /></td>
<td width="545" height="112"><div align="center"><span class="style4">Om Muruga Traders
</span></div></td>
</tr>
<tr>
<td height="418"><div align="center">
<table width="492" height="290" border="0" align="right" bgcolor="">
<tr bgcolor="">
<td height="42" colspan="2" class="style5"><div align="center" class="style14"><span
class="style15">PRODUCT DETAILS</span></div></td>
</tr>
<tr>
<td height="45" class="style5"><span class="style22">PRODUCT ID</span></td>
<td class="style2"><div align="center" class="style23 style24">

<div align="center">
<input name="txtId" id="txtId" type="text" value="<?php echo $P_id ; ?>"
onkeypress="return isNumberKey(event);">
</div>
EXPORT SYSTEM



72
</div></td>
</tr>
<tr>
<td height="45" class="style5"><span class="style22">PRODUCT NAME</span></td>
<td class="style2"><div align="center" class="style25">

<div align="center">
<input name="txtPName" id="txtPName" type="text" value="<?php echo $P_name ; ?>"
onkeypress="return checkNum(event,this);">
</div>
</div></td>
</tr>
<tr>
<td height="45" class="style5"><span class="style22">PRODUCT SIZE</span></td>
<td class="style2"><div align="center" class="style25">

<div align="center">
<input name="txtSize" id="txtSize" type="text" value="<?php echo $P_size ; ?>"/>
</div>
</div></td>
</tr>
<tr>
<td height="37" class="style5"><span class="style22">PRODUCT AMOUNT</span></td>
<td class="style25"><div align="center" class="style2">

<div align="center">
<input type="text" name="txtAmount" id="txtAmount" value="<?php echo $P_amount ; ?>"
onkeypress="return isNumberKey(event);"/>
</div></td>
</tr>
<tr class="style12">
<td width="239" height="62"><label>
<div align="center" class="style10">
<input name="Submit2" type="submit" class="style22" value="ADD" onsubmit="
validateForm()"/>
</div>
</label></td>
<td width="243"><label>
<div align="center" class="style10">
<input name="Submit4" type="button" class="style22" value="HOME" onclick="Redirect()" />
</div>
</label></td>
</tr>
</table>
</div></td>
</tr>
EXPORT SYSTEM



73
</table>
</div>
<p>&nbsp;</p>
</form>
</body>
</html>
PRODUCT ADD CODING:
<?php
$con=mysql_connect("localhost","root","","omt");

// Check connection
if (mysqli_connect_errno($con))
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysql_select_db("omt");

$DelStr="DELETE FROM PRODUCT WHERE P_id=".$_REQUEST['txtId'];
//echo $DelStr;die();
if (!mysql_query($DelStr,$con))
{
echo mysql_error();
die();
}
$sql="INSERT INTO product VALUES
(".$_REQUEST['txtId'].",'".$_REQUEST['txtPName']."',".$_REQUEST['txtSize'].",".$_REQUE
ST['txtAmount'].");";
//echo $sql;
//die();
if (!mysql_query($sql,$con))
{
echo mysql_error();
}
header('Location: PRODUCT_LIST.php');
?>
PRODUCT DELETE CODING:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("DELETE FROM product WHERE P_id=".$_REQUEST["P_id"]);
header('Location: PRODUCT_LIST.php');?>
PRODUCT LIST:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from product");
EXPORT SYSTEM



74
if (ISSET($_REQUEST["txtPName"]))
{
$rs=mysql_query("select * from product WHERE P_name like
'%".$_REQUEST["txtPName"]."%'");
}
?>
<html>
<style type="text/css">
<!--
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}

#full-screen-background-image {
z-index: -999;
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}

#wrapper {
position: relative;
width: 800px;
min-height: 400px;
margin: 100px auto;
color: #333;
}
body {
background-image: url(coconuts.jpg);
center center fixed no-repeat;
-moz-background-size: cover;
background-size: cover;
}@media only all and (max-width: 1000px) and (max-height: 7oopx) {
body {
-moz-background-size: 1000px 700px;
background-size: 1000px 700px;
}
}
}
EXPORT SYSTEM



75
.style5 {color: #CC3366; font-weight: bold; }

-->
</style>

<body>
<form action="PRODUCT_LIST.php" METHOD="GET">
<img alt="" src="file:///cocounts.jpg" id="full-screen-background-image" />
<div id="wrapper">
<div align="center">
<table border=1 align='center'>
<tr>
<td colspan="5">
<input type="text" id="txtPName" name="txtPName" value="" />
<span class="style5">Search by Name</span></td>
<td colspan="" align="center"><a href='PRODUCT.php'><b>Add
Product</b></a></td>
</tr>
<tr>
<td><span class="style5">ID</span></td>
<td><span class="style5">Pro. Name</span></td>
<td><span class="style5">Pro.size</span></td>
<td><span class="style5">Pro.amount</span></td>
<td><span class="style5">Edit</span></td>
<td><span class="style5">Delete</span></td>
</tr>
<?php
$tot=0;
while($row=mysql_fetch_array($rs))
{
?>
<tr>
<td><span class="style5"><?php echo $row["P_id"]; ?></span></td>
<td><span class="style5"><?php echo $row["P_name"]; ?></span></td>
<td><span class="style5"><?php echo $row["P_size"]; ?></span></td>
<td><span class="style5"><?php echo $row["P_amount"]; ?></span></td>
<?php
$tot=$tot+$row["P_amount"];
?>
<td>
<a href='PRODUCT.php?P_id=<?php echo $row['P_id']; ?>'>Edit </a>
</td>
<td>
<a href='PRODUCT_DELETE.php?P_id=<?php echo $row['P_id'];
?>'>Delete </a> </td>
</tr>
EXPORT SYSTEM



76
<?php
}
?>
<tr>

<td colspan="3" align="right">Total Amount</td>
<td colspan="3" align="left"><?php echo $tot; ?></td>
</tr>
</table>
</div>
</form>
</body>
</html>

DISTRIBUTOR FORM CODING:
<?php

$D_id="";
$D_name="";
$D_address="";
$D_phone="";
$D_email="";
if (ISSET($_REQUEST["D_id"]))
{
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from distributor where
D_id=".$_REQUEST["D_id"]);
while($row=mysql_fetch_array($rs))
{
$D_id=$row["D_id"];
$D_name=$row["D_name"];
$D_address=$row["D_address"];
$D_phone=$row["D_phone"];
$D_email=$row["D_email"];
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>cssfile</title>
<style type="text/css">
<!--
EXPORT SYSTEM



77
.style3 {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 24px;
color: #CC3333;
}
.style10 {color: #990000; font-size: 18; }
.style16 {color: #000000; font-size: 18px; font-family: "Times New Roman", Times, serif; }
.style22 {font-family: "Times New Roman", Times, serif}
.style25 {font-family: "Times New Roman", Times, serif; font-weight: bold; font-size: 24px;
color: #990000; }
.style25 {color: #990000; font-size: 18px; font-family: "Times New Roman", Times, serif; }
.style4 {
font-size: 36px;
font-family: "Times New Roman", Times, serif;
color: #33CC33;
font-weight: bold;
}
.style27 {font-family: "Times New Roman", Times, serif; color: #990000; }
-->
</style>
<script type="text/javascript">
<!--
function MM_validateForm() { //v4.0
if (document.getElementById){
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and
'+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
} }
//-->
</script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script><script
language="javascript">
function isNumberKey(evt)
{
EXPORT SYSTEM



78
var charCode = (evt.which) ? evt.which : event.keyCode;
if (charCode != 46 && charCode > 31
&& (charCode < 48 || charCode > 57))
return false;

return true;
}

function checkNum(evt)
{

var charCode = (evt.which) ? evt.which : event.keyCode;
if(charCode !=46 && charCode>31 && (charCode < 48 || charCode >57))
return true;

return false;


}

function validateForm(evt)
{
var a=document.forms["frmDistributor"]["txtD_id2"].value;
var b=document.forms["frmDistributor"]["txtD_name2"].value;
var c=document.forms["frmDistributor"]["txtD_address2"].value;
var d=document.forms["frmDistributor"]["txtD_phone2"].value;
var e=document.forms["frmDistributor"]["txtD_email2"].value;
if (a==null || a=="")
{
alert("Please Enter Distributer Id");
return false;
}

if (b==null || b=="")
{
alert("Please Enter Destributor Name");
return false;
}

if (c==null || c=="")
{
alert("Please Enter Destributor Address");
return false;
}
if (d==null || d=="")
{
EXPORT SYSTEM



79
alert("Please Enter Destributor Phone");
return false;
}
if (e==null || e=="")
{
alert("Please Enter Destributor Email_id");
return false;
}
}
</script>
</head>

<body>
<FORM NAME="frmDistributor" ID="frmDistributor" ACTION="Distributor_add.php"
METHOD="POST" onsubmit="return validateForm(event);">
<div align="center">
<table width="782" border="0">
<tr>
<td width="228" rowspan="2"><img src="coconuts.jpg" width="232" height="159" /></td>
<td width="560" height="125"><div align="center"><span class="style4"> Om Muruga Traders
</span></div></td>
</tr>
<tr>
<td><table width="474" height="380" border="0" align="center" class="style3" >
<tr>
<td height="48" colspan="3" class="style3"><div align="center"
class="style27">DISTRIBUTOR DETAILS </div></td>
</tr>
<tr>
<td width="235" height="40" class="style10"><span class="style25">DISTRIBUTOR
ID</span></td>
<td colspan="2"><div align="center">
<input name="txtD_id2"type="text" class="style16" id="txtD_id2" value="<?php echo $D_id ;
?>" onkeypress="return isNumberKey(event);" />
</div></td>
</tr>
<tr>
<td height="44" class="style10"><span class="style25">DISTRIBUTOR NAME</span></td>
<td colspan="2"><div align="center">
<input name="txtD_name2" type="text" class="style16" id="txtD_name2" value="<?php echo
$D_name ; ?>" onkeypress="return checkNum(event);" />
</div></td>
</tr>
<tr>
<td height="46" class="style10"><span class="style25">DISTRIBUTOR
ADDRESS</span></td>
EXPORT SYSTEM



80
<td colspan="2"><div align="center">
<input name="txtD_address2" type="text" class="style16" id="txtD_address2" value="<?php
echo $D_address ; ?>" />
</div></td>
</tr>
<tr>
<td height="42" class="style10"><span class="style25">DISTRIBUTOR PHONE
NO</span></td>
<td colspan="2"><div align="center">
<input name="txtD_phone2" id="txtD_phone2"type="text" value="<?php echo $D_phone ; ?>"
class="style16" onkeypress="return isNumberKey(event);"/>
</div></td>
</tr>
<tr>
<td height="56" class="style10"><span class="style25">DISTRIBUTOR EMAIL
ID</span></td>
<td colspan="2"><div align="center">
<input name="txtD_email2" id="txtD_email2" type="text" value="<?php echo $D_email ; ?>"
class="style16"
onblur="MM_validateForm('email','','NisEmail');return
document.MM_returnValue" />
</div></td>
</tr>
<tr>
<td height="88" colspan="2"><label>
<label>
<div align="center">
<input name="Submit3" type="submit" class="style25" value="ADD" onsubmit="
validateForm()" />
</div>
</label>
</label>
<div align="center"></div>
<div align="center" class="style22"></div>
<div align="center" class="style22"></div></td>
<td width="228"><label>
<div align="center">
<input name="Submit22" type="button" class="style25" value="HOME"
onclick="javascript:window.location='Home.php';"/>
</div>
</label></td>
</tr>
</table></td>
</tr>
</table>
</div>
EXPORT SYSTEM



81
<div align="left"></div>
</form>
</body>
</html>
DISTRIBUTOR ADD :
<?php
$con=mysql_connect("localhost","root","","omt");
// Check connection
if (mysqli_connect_errno($con))
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysql_select_db("omt");

$DelStr="DELETE FROM DISTRIBUTOR WHERE D_id=".$_REQUEST['txtD_id2'];
//echo $DelStr;die();
if (!mysql_query($DelStr,$con))
{
echo mysql_error();
die();
}
$sql="INSERT INTO distributor VALUES
(".$_REQUEST['txtD_id2'].",'".$_REQUEST['txtD_name2']."','".$_REQUEST['txtD_address2'].
"',".$_REQUEST['txtD_phone2'].",'".$_REQUEST['txtD_email2']."');";
//echo $sql;
//die();
if (!mysql_query($sql,$con))
{
echo mysql_error();
}
header('Location: Distributor_List.php');
?>
DISTRIBUTOR DELETE:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("DELETE FROM distributor WHERE D_id=".$_REQUEST["D_id"]);
header('Location: Distributor_List.php');
?>
DISTRIBUTOR LIST:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from distributor");
if (ISSET($_REQUEST["txtD_name"]))
{
EXPORT SYSTEM



82
$rs=mysql_query("select * from distributor WHERE D_name like
'%".$_REQUEST["txtD_name"]."%'");
}
?>
<html>
<style type="text/css">
<!--
.style2 {color: #CCCC33}
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}

#full-screen-background-image {
z-index: -999;
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}

#wrapper {
position: relative;
width: 800px;
min-height: 400px;
margin: 100px auto;
color: #333;
}
body {
background-image: url(coconuts.jpg);
center center fixed no-repeat;
-moz-background-size: cover;
background-size: cover;
}@media only all and (max-width: 1000px) and (max-height: 7oopx) {
body {
-moz-background-size: 1000px 700px;
background-size: 1000px 700px;
}
}
}

EXPORT SYSTEM



83
-->
</style>
<body>
<form action="Distributor_List.php" METHOD="GET">
<img alt="" src="file:///cocounts.jpg" id="full-screen-background-image" />
<div id="wrapper">
<div align="center">
<table border=1 align='center'>
<tr>
<td colspan="4">
<input type="text" id="txtD_name" name="txtD_name" value="" />
<b>Search by Name</b>
</td>
<td colspan="3" align="center"><a href='Distributor.php'><b>Add
Distributor</a></td>
</tr>
<tr>
<td><b>ID</td>
<td><b>Dist. Name</td>
<td><b>Dist.address</td>
<td><b>Dist.phone</td>
<td><b>Dist.email</td>
<td><b>Edit</td>
<td><b>Delete</td>
</tr>
<?php

while($row=mysql_fetch_array($rs))
{
?>
<tr>
<td><?php echo $row["D_id"]; ?></td>
<td><?php echo $row["D_name"]; ?></td>
<td><?php echo $row["D_address"]; ?></td>
<td><?php echo $row["D_phone"]; ?></td>
<td><?php echo $row["D_email"]; ?></td>


<td>
<a href='Distributor.php?D_id=<?php echo $row['D_id']; ?>'>Edit </a>
</td>
<td>
<a href='Distributor_detele.php?D_id=<?php echo $row['D_id'];
?>'>Delete </a>
</td>
</tr>
EXPORT SYSTEM



84
<?php
}
?>
</table>
</div>
</form>
</body>
</html>

IMPORTER FORMSCODING:
<?php
$I_id="";
$I_name="";
$I_address="";
$I_phone="";

if (ISSET($_REQUEST["I_id"]))
{
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from importer where I_id=".$_REQUEST["I_id"]);
while($row=mysql_fetch_array($rs))
{
$I_id=$row["I_id"];
$I_name=$row["I_name"];
$I_address=$row["I_address"];
$I_phone=$row["I_phone"];
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>IMPORTER</title>
<style type="text/css">
<!--
.style3 {
color: #999999;
font-weight: bold;
}
.style4 {
font-size: 24px;
font-family: "Times New Roman", Times, serif;
color: #990000;
EXPORT SYSTEM



85
}
.style11 {font-family: "Times New Roman", Times, serif; font-weight: bold; font-size: 18px; }
.style13 {font-family: "Times New Roman", Times, serif; font-weight: bold; font-size: 18px;
color: #990000; }
.style14 {
font-size: 36px;
font-family: "Times New Roman", Times, serif;
color: #33CC33;
font-weight: bold;
}
-->
</style>
<script>
function Redirect()
{
window.location="Home.php";
}
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode;
if (charCode != 46 && charCode > 31
&& (charCode < 48 || charCode > 57))
return false;

return true;
}
function checkNum(evt)
{

var charCode = (evt.which) ? evt.which : event.keyCode;
if(charCode !=46 && charCode>31 && (charCode < 48 || charCode >57))
return true;

return false;

}
function validateForm(evt)
{
var a=document.forms["frmIMPORTER_detail"]["txtI_id"].value;
var b=document.forms["frmIMPORTER_detail"]["txtI_name"].value;
var c=document.forms["frmIMPORTER_detail"]["txtI_address"].value;
var d=document.forms["frmIMPORTER_detail"]["txtI_phone"].value;
if (a==null || a=="")
{
alert("Please Enter Impoter Id");
return false;
EXPORT SYSTEM



86
}

if (b==null || b=="")
{
alert("Please Enter Impoter Name");
return false;
}

if (c==null || c=="")
{
alert("Please Enter Impoter Address");
return false;
}
if (d==null || d=="")
{
alert("Please Enter Importer Phone");
return false;
}
}
</script>
</head>

<body>
<FORM NAME="frmIMPORTER_detail" ID="frmIMPORTER_detail"
ACTION="IMPORTER_detail_ADD.php" METHOD="POST" onsubmit="return
validateForm(event);">
<div align="center">
<table width="787" border="0">
<tr>
<td height="88" colspan="2"><div align="center"><span class="style14">Om Muruga Traders
</span></div></td>
</tr>
<tr>
<td width="211" height="373"><img src="coconuts.jpg" width="232" height="159" /></td>
<td width="628"><table width="437" height="343" border="0" align="center"
bordercolor="#000000">
<tr >
<td height="60" colspan="3"><div align="center" class="style3"><span
class="style4">IMPORTER DETAILS</span></div></td>
</tr>
<tr>
<td width="220" height="50"><span class="style13">IMPORTER ID</span></td>
<td colspan="2"><input name="txtI_id" type="text" class="style11" id="txtI_id" value="<?php
echo $I_id ; ?>" width="200pt" onkeypress="return isNumberKey(event);"/></td>
</tr>
<tr>
EXPORT SYSTEM



87
<td height="46"><span class="style13">IMPORTER NAME</span></td>
<td colspan="2"><input name="txtI_name" type="text" class="style11" id="txtI_name"
value="<?php echo $I_name ; ?>" width="200pt" onkeypress="return checkNum(event);"></td>
</tr>
<tr>
<td height="50"><span class="style13">IMPORTER ADDRESS</span></td>
<td colspan="2"><input name="txtI_address" type="text" class="style11" id="txtI_address"
value="<?php echo $I_address ; ?>" width="200pt"/></td>
</tr>
<tr>
<td height="55"><span class="style13">IMPORTER PHONE NO</span></td>
<td colspan="2"><input name="txtI_phone" type="text" class="style11" id="txtI_phone"
value="<?php echo $I_phone ; ?>" width="200pt" onkeypress="return
isNumberKey(event);"/></td>
</tr>
<tr>
<td height="60" colspan="2"><strong>
<label></label>
</strong>
<label>
<label>
<div align="center">
<input name="Submit" type="submit" class="style13" value="ADD" onsubmit="
validateForm()"/>
</div>
</td>
<td width="206" height="60"><label>
<div align="center">
<input name="Submit2" type="button" class="style13" value="HOME" onclick="Redirect()" />
</div>
</label></td>
</tr>
</table></td>
</tr>
</table>
</div>
<p>&nbsp;</p>
<p>&nbsp; </p>
</form>
</body>
</html>
IMPORTER ADD CODING:
<?php
$con=mysql_connect("localhost","root","","omt");

// Check connection
EXPORT SYSTEM



88
if (mysqli_connect_errno($con))
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysql_select_db("omt");

$DelStr="DELETE FROM IMPORTER WHERE I_id=".$_REQUEST['txtI_id'];
//echo $DelStr;die();
if (!mysql_query($DelStr,$con))
{
echo mysql_error();
die();
}


$sql="INSERT INTO importer VALUES
(".$_REQUEST['txtI_id'].",'".$_REQUEST['txtI_name']."','".$_REQUEST['txtI_address']."',".$_
REQUEST['txtI_phone'].");";
//echo $sql;
//die();
if (!mysql_query($sql,$con))
{
echo mysql_error();
}
header('Location: IMPORTER_detail_LIST.php');
?>

IMPORTER DELETE CODING:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("DELETE FROM IMPORTER WHERE I_id=".$_REQUEST["I_id"]);
header('Location: IMPORTER_detail_LIST.php');
?>

IMPORTER LIST:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from importer");
if (ISSET($_REQUEST["txtname"]))
{
$rs=mysql_query("select * from importer WHERE I_name like
'%".$_REQUEST["txtname"]."%'");
}

EXPORT SYSTEM



89
//echo "<a href='IMPORTER_DETAIL.php'>Add IMPORTER</a>";
//echo "<table border=1 align='center'>";

?>
<html>
<style type="text/css">
<!--
.style1 {color: #6666FF}
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}

#full-screen-background-image {
z-index: -999;
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}

#wrapper {
position: relative;
width: 800px;
min-height: 400px;
margin: 100px auto;
color: #333;
}
body {
background-image: url(coconuts.jpg);
center center fixed no-repeat;
-moz-background-size: cover;
background-size: cover;
}@media only all and (max-width: 1000px) and (max-height: 7oopx) {
body {
-moz-background-size: 1000px 700px;
background-size: 1000px 700px;
}
}
}

EXPORT SYSTEM



90
-->
</style>
<body>
<form action="IMPORTER_detail_LIST.php" METHOD="GET">
<img alt="" src="file:///cocounts.jpg" id="full-screen-background-image" />
<div id="wrapper">
<div align="center">
<table border=1 align='center'>
<tr>
<td colspan="5">
<input type="text" id="txtname" name="txtname" value="" />
<b>Search By Name</b>
</td>
<td align="center"><a href='IMPORTER_DETAIL.php'><b>Add
Importer</b></a></td>
</tr>
<tr>
<td><b>ID</b></td>
<td><b>Impoter Name</b></td>
<td><b>Impoter Address</b></td>
<td><b>Impoter phone</b></td>
<td><b>Edit</b></td>
<td><b>Delete</b></td>
</tr>
<?php
while($row=mysql_fetch_array($rs))
{
?>
<tr>
<td><?php echo $row["I_id"]; ?></td>
<td><?php echo $row["I_name"]; ?></td>
<td><?php echo $row["I_address"]; ?></td>
<td><?php echo $row["I_phone"]; ?></td>
<td>
<a href='IMPORTER_detail.php?I_id=<?php echo $row['I_id']; ?>'>Edit
</a>
</td>
<td>
<a href='IMPORTER_DETAIL_DELETE.php?I_id=<?php echo
$row['I_id']; ?>'>Delete </a>
</td>
</tr>
<?php
}
?>

EXPORT SYSTEM



91
</table>
</div>
</form>
</body></html>
ORDER FORM CODING:
<?php
$O_id="";
$P_id="";
$P_quantity="";
$P_rate="";
$P_amount="";
$O_date="";
if (ISSET($_REQUEST["O_id"]))
{
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from porder where O_id=".$_REQUEST["O_id"]);
while($row=mysql_fetch_array($rs))
{
$O_id=$row["O_id"];
$P_id=$row["P_id"];
$P_quantity=$row["P_quantity"];
$P_rate=$row["P_rate"];
$P_amount=$row["P_amount"];
$O_date=$row["O_date"];
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
font-family: "Times New Roman", Times, serif;
font-size: 24px;
}
.style11 {
font-family: "Times New Roman", Times, serif;
font-size: 24px;
font-weight: bold;
color: #990000;
}
EXPORT SYSTEM



92
.style13 {font-family: "Times New Roman", Times, serif; font-size: 18px; font-weight: bold;
color: #990000; }
.style15 {font-size: 18px; font-family: "Times New Roman", Times, serif;}
.style14 {
font-size: 36px;
font-family: "Times New Roman", Times, serif;
color: #33CC33;
font-weight: bold;
}
-->
</style>
<script>
function Redirect()
{
window.location="Home.php";
}
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode;
if (charCode != 46 && charCode > 31
&& (charCode < 48 || charCode > 57))
return false;

return true;
}

function checkNum(evt)
{

var charCode = (evt.which) ? evt.which : event.keyCode;
if(charCode !=46 && charCode>31 && (charCode < 48 || charCode >57))
return true;

return false;

}
function validateForm(evt)
{
var a=document.forms["frmORDER"]["txtO_id"].value;
var b=document.forms["frmORDER"]["txtP_id"].value;
var c=document.forms["frmORDER"]["txtP_quantity"].value;
var d=document.forms["frmORDER"]["txtP_rate"].value;
var e=document.forms["frmORDER"]["txtP_amount"].value;
var f=document.forms["frmORDER"]["txtO_date"].value;
if (a==null || a=="")
{
EXPORT SYSTEM



93
alert("Please Enter Order Id");
return false;
}

if (b==null || b=="")
{
alert("Please Enter Product Name");
return false;
}

if (c==null || c=="")
{
alert("Please Enter Product Quantity");
return false;
}
if (d==null || d=="")
{
alert("Please Enter Product Rate");
return false;
}
if (e==null || e=="")
{
alert("Please Enter Product Amount");
return false;
}
if (f==null || f=="")
{
alert("Please Enter Order date");
return false;
}

}
</script>
</head>

<body>
<FORM NAME="frmORDER" ID="frmORDER" ACTION="ORDER_ADD.php"
METHOD="POST"
onsubmit="return validateForm(event);">
<table width="877" height="454" border="0" align="center">
<tr>
<td width="233" rowspan="2"><img src="coconuts.jpg" width="232" height="159" /></td>
<td width="634" height="70"><div align="center"><span class="style14">Om Muruga Traders
</span></div></td>
</tr>
<tr>
EXPORT SYSTEM



94
<td><table width="521" height="396" border="0" align="center" >
<tr>
<td height="62" colspan="3"><div align="center" class="style11">ORDER</div></td>
</tr>
<tr>
<td width="245" height="42" class="style1"><span class="style13">ORDER ID </span></td>
<td colspan="2"><div align="center"><strong>
<input name="txtO_id" type="text" class="style15" id="txtO_id" value="<?php echo $O_id ;
?>" width="200PT" onkeypress="return isNumberKey(event);"/>
</strong></div></td>
</tr>
<tr>
<td height="38" class="style13">PRODUCT ID</td>
<td colspan="2"><div align="center"><strong>
<input name="txtP_id" type="text" class="style15" id="txtP_id" value="<?php echo $P_id ; ?>"
width="200PT" onkeypress="return isNumberKey(event);"/>
</strong></div></td>
</tr>
<tr>
<td height="42" class="style13">PRODUCT QUANTITY </td>
<td colspan="2"><div align="center"><strong>
<input name="txtP_quantity" type="text" class="style15" id="txtP_quantity" value="<?php echo
$P_quantity ; ?>" width="200PT" onkeypress="return isNumberKey(event);"/>
</strong></div></td>
</tr>
<tr>
<td height="37" class="style13">PRODUCT RATE </td>
<td colspan="2"><div align="center"><strong>
<input name="txtP_rate" type="text" class="style15" id="txtP_rate" value="<?php echo $P_rate
; ?>" width="200PT" onkeypress="return isNumberKey(event);" />
</strong></div></td>
</tr>
<tr>
<td height="46" class="style13">PRODUCT TOTAL AMOUNT </td>
<td colspan="2"><div align="center"><strong>
<input name="txtP_amount" type="text" class="style15" id="txtP_amount" value="<?php echo
$P_amount ; ?>" width="200PT" onkeypress="return isNumberKey(event);"/>
</strong></div></td>
</tr>
<tr>
<td height="43" colspan="2"><span class="style13">ORDER DATE </span></td>
<td><label>
<div align="center">
<input name="txtO_date" id="txtO_date" type="date" class="style15" value="<?php echo
$O_date ; ?>" />
</div>
EXPORT SYSTEM



95
</label></td>
</tr>
<tr>
<td height="68" colspan="2"><label></label>
<label>
<div align="center">
<input name="Submit2" type="submit" class="style13" value="ADD" onsubmit="
validateForm()" />
</div>
</label>
<label></label>
<label></label></td>
<td width="264"><label>
<div align="center">
<input name="Submit3" type="button" class="style13" value="HOME" onclick="Redirect()" />
</div>
</label></td>
</tr>
</table></td>
</tr>
</table>
<label>

</label>
<p>&nbsp;</p>
</form>
</body>
</html>
ORDER ADD CODING:
<?php
$con=mysql_connect("localhost","root","","omt");
// Check connection
if (mysqli_connect_errno($con))
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysql_select_db("omt");

$DelStr="DELETE FROM PORDER WHERE O_id=".$_REQUEST['txtO_id'];
//echo $DelStr;die();
if (!mysql_query($DelStr,$con))
{
echo mysql_error();
die();
}

EXPORT SYSTEM



96
$sql="INSERT INTO porder VALUES
(".$_REQUEST['txtO_id'].",".$_REQUEST['txtP_id'].",'".$_REQUEST['txtP_quantity']."',".$_R
EQUEST['txtP_rate'].",".$_REQUEST['txtP_amount'].",'".$_REQUEST['txtO_date']."');";
//echo $sql;
//die();
if (!mysql_query($sql,$con))
{
echo mysql_error();
}
header('Location:ORDER_LIST.php');
?>
ORDER DELETE CODING:
<?php

//echo $_REQUEST["I_id"];
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("DELETE FROM PORDER WHERE O_id=".$_REQUEST["O_id"]);
header('Location: ORDER_LIST.php');
//mysql_query("DELETE FROM IMPORTER WHERE I_id=".$_REQUEST["I_id"]);

?>
ORDER LIST:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from porder");
if (ISSET($_REQUEST["txtO_id"]))
{
$rs=mysql_query("select * from porder WHERE ".$_REQUEST["optO"]." like
'%".$_REQUEST["txtO_id"]."%'");
}
?>
<html>
<style type="text/css">
<!--
.style2 {color: #CCCC33}
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}

#full-screen-background-image {
z-index: -999;
EXPORT SYSTEM



97
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}

#wrapper {
position: relative;
width: 800px;
min-height: 400px;
margin: 100px auto;
color: #333;
}
body {
background-image: url(coconuts.jpg);
center center fixed no-repeat;
-moz-background-size: cover;
background-size: cover;
}@media only all and (max-width: 1000px) and (max-height: 7oopx) {
body {
-moz-background-size: 1000px 700px;
background-size: 1000px 700px;
}
}
}

-->
</style>

<body>
<form action="ORDER_LIST.php" METHOD="GET">
<img alt="" src="file:///cocounts.jpg" id="full-screen-background-image" />
<div id="wrapper">
<div align="center">
<td colspan="4"><table border=1 align='center'>
<tr>
<td colspan="5"><input type="text" id="txtO_id" name="txtO_id" value="" />
<select id="optO" name="optO">
<option value="O_id">Order Id
<option>
<option value="P_id">Product Id
<option>
</select></td>
EXPORT SYSTEM



98
<td colspan="3" align="center"><a href='ORDER.php'><b>Add Order</b></a></td>
</tr>
<tr>
<td><b>ID</b></td>
<td><b>Product id</b></td>
<td><b>Product quantity</b></td>
<td><b>Product rate</b></td>
<td><b>Product amount</b></td>
<td><b>Order date</b></td>
<td><b>Edit</b></td>
<td><b>Delete</b></td>
</tr>
<?php
$tot=0;
while($row=mysql_fetch_array($rs))
{
?>
<tr>
<td><?php echo $row["O_id"]; ?></td>
<td><?php echo $row["P_id"]; ?></td>
<td><?php echo $row["P_quantity"]; ?></td>
<td><?php echo $row["P_rate"]; ?></td>
<td><?php echo $row["P_amount"]; ?></td>
<td><?php echo $row["O_date"]; ?></td>
<?php

$tot=$tot+$row["P_amount"];
?>
<td><a href='ORDER.php?O_id=<?php echo $row['O_id']; ?>'>Edit </a></td>
<td><a href='ORDER_DELETE.php?O_id=<?php echo $row['O_id']; ?>'>Delete </a></td>
</tr>
<?php
}
?>
<tr>
<td colspan="4" align="right">Total Amount</td>
<td colspan="4" align="left"><?php echo $tot; ?></td>
</tr>
</table></td>
</tr>
</table>
</div>
</form>
</body>
</html>
BILL CODING:
EXPORT SYSTEM



99
<?php
$SR_no="";
$Bill_id="";
$bill_date="";
$D_id="";
$Total_amt="";
$discount="";
$B_tax="";
$Grand_total="";
$Paid_amt="";
$Balance_amt="";

if (ISSET($_REQUEST["SR_no"]))
{
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from bill where SR_no=".$_REQUEST["SR_no"]);
// echo "select * from bill where SR_no=".$_REQUEST["SR_no"];
// die;
while($row=mysql_fetch_array($rs))
{
$SR_no=$row["SR_no"];
$Bill_id=$row["Bill_id"];
$bill_date=$row["bill_date"];
$D_id=$row["D_id"];
$Total_amt=$row["Total_amt"];
$discount=$row["discount"];
$B_tax=$row["B_tax"];
$Grand_total=$row["Grand_total"];
$Paid_amt=$row["Paid_amt"];
$Balance_amt=$row["Balance_amt"];

}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
font-size: 24px;
font-weight: bold;
EXPORT SYSTEM



100
color: #990000;
font-family: "Times New Roman", Times, serif;
}
.style6 {font-family: "Times New Roman", Times, serif; font-size: 18px; font-weight: bold; }
.style8 {font-family: "Times New Roman", Times, serif; font-size: 18px; font-weight: bold;
color: #990000; }
.style14 {
font-size: 36px;
font-family: "Times New Roman", Times, serif;
color: #33CC33;
font-weight: bold;
}
.style18 {font-family: "Times New Roman", Times, serif; color: #F0F0F0;}
.style21 {font-size: 18px; font-weight: bold; }
-->
</style>
<script>
function Redirect()
{
window.location="Home.php";
}
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode;
if (charCode != 46 && charCode > 31
&& (charCode < 48 || charCode > 57))
return false;

return true;
}
function validateForm(evt)
{
var a=document.forms["frmBILL"]["txtSR_no"].value;
var b=document.forms["frmBILL"]["txtBill_id"].value;
var c=document.forms["frmBILL"]["txtbill_date"].value;
var d=document.forms["frmBILL"]["txtD_id"].value;
var e=document.forms["frmBILL"]["txtTotal_amt"].value;
var f=document.forms["frmBILL"]["txtdiscount"].value;
var g=document.forms["frmBILL"]["txtGrand_total"].value;
var h=document.forms["frmBILL"]["txtPaid_amt"].value;
var i=document.forms["frmBILL"]["txtBalance_amt"].value;
if (a==null || a=="")
{
alert("Please Enter Sr no");
return false;
}
EXPORT SYSTEM



101

if (b==null || b=="")
{
alert("Please Enter bill id Name");
return false;
}

if (c==null || c=="")
{
alert("Please Enter bill date");
return false;
}
if (d==null || d=="")
{
alert("Please Enter Distributor");
return false;
}

if (e==null || e=="")
{
alert("Please Enter total amount");
return false;
}

if (f==null || f=="")
{
alert("Please Enter Discount");
return false;
}

if (g==null || g=="")
{
alert("Please Enter Grand tOtal");
return false;
}
if (h==null || h=="")
{
alert("Please Enter Paid Amount");
return false;
}
if (i==null || i=="")
{
alert("Please Enter Balance Amount");
return false;


EXPORT SYSTEM



102
}

</script>
</head>

<body>
<FORM NAME="frmBILL" ID="frmBILL" ACTION="BILL_ADD.php" METHOD="POST"
onsubmit="return validateForm(event);">
<table width="770" height="570" border="0" align="center">
<tr>
<td width="222" rowspan="2"><img src="coconuts.jpg" width="195" height="159" /></td>
<td width="538" height="89"><div align="center"><span class="style14">Om Muruga Traders
</span></div></td>
</tr>
<tr>
<td height="60"><table width="469" height="438" border="0" align="center" >
<tr bgcolor="">
<td height="64" colspan="3"><div align="center"><span
class="style1">BILL</span></div></td>
</tr>
<tr>
<td class="style6"><span class="style8">SR NO </span></td>
<td colspan="2"><div align="center" class="style21">
<div align="left">
<input name="txtSR_no" type="text" id="txtSR_no" value="<?php echo $SR_no ; ?>"
onkeypress="return isNumberKey(event);" />
</div>
</div></td>
</tr>
<tr>
<td class="style6"><span class="style8">BILL NO </span></td>
<td colspan="2"><div align="center" class="style21">
<div align="left">
<input name="txtBill_id" type="text" id="txtBill_id" value="<?php echo $Bill_id ; ?>"
onkeypress="return isNumberKey(event);" />
</div>
</div></td>
</tr>
<tr>
<td class="style6"><span class="style8">BILL DATE </span></td>
<td colspan="2"><div align="center" class="style21">
<div align="left">
<input name="txtbill_date" type="date" id="txtbill_date" value="<?php echo $bill_date ; ?>"
onkeypress="return isNumberKey(event);" />
</div>
</div></td>
EXPORT SYSTEM



103
</tr>
<tr>
<td class="style6"><span class="style8">DISTRIBUTOR ID </span></td>
<td colspan="2"><div align="center" class="style21">
<div align="left">
<input name="txtD_id" type="text" id="txtD_id" value="<?php echo $D_id ; ?>"
onkeypress="return isNumberKey(event);" />
</div>
</div></td>
</tr>
<tr>
<td class="style6"><span class="style8">TOTAL AMOUNT </span></td>
<td colspan="2"><div align="center" class="style21">
<div align="left">
<input name="txtTotal_amt" type="text" id="txtTotal_amt" value="<?php echo $Total_amt ;
?>" onkeypress="return isNumberKey(event);" />
</div>
</div></td>
</tr>
<tr>
<td class="style6"><span class="style8">DISCOUNT</span></td>
<td colspan="2"><div align="center" class="style21">
<div align="left">
<input name="txtdiscount" type="text" id="txtdiscount" value="<?php echo $discount ; ?>"
onkeypress="return isNumberKey(event);" />
</div>
</div></td>
</tr>
<tr>
<td height="28" class="style6"><span class="style8">TAX</span></td>
<td colspan="2"><div align="left"><span class="style20">
<label>
</span>
<strong>
<span class="style18">
<select name="optTax" id="optTax" value="<?php echo $B_tax ; ?>" width="20">
<option value="1">1% </option>
<option></option>
<option value="2">2% </option>
<option></option>
<option value="3">3% </option>
<option></option>
</select>
</span></strong><span class="style20"></label>
</span></div></td>
</tr>
EXPORT SYSTEM



104
<tr>
<td class="style6"><span class="style8">GRAND TOTAL </span></td>
<td colspan="2"><div align="center" class="style21">
<div align="left">
<input name="txtGrand_total" type="text" id="txtGrand_total" value="<?php echo $Grand_total
; ?>" onkeypress="return isNumberKey(event);" />
</div>
</div></td>
</tr>
<tr>
<td class="style6"><span class="style8">PAID AMOUNT </span></td>
<td colspan="2"><div align="center" class="style21">
<div align="left">
<input name="txtPaid_amt" type="text" id="txtPaid_amt" value="<?php echo $Paid_amt ; ?>"
onkeypress="return isNumberKey(event);" />
</div>
</div></td>
</tr>
<tr>
<td class="style6"><span class="style8">BALANCE AMOUNT </span></td>
<td colspan="2"><div align="center" class="style21">
<div align="left">
<input name="txtBalance_amt" type="text" id="txtBalance_amt" value="<?php echo
$Balance_amt ; ?>" onkeypress="return isNumberKey(event);" />
</div>
</div></td>
</tr>
<tr>
<td width="218" height="68"><label>
<div align="center">
<input name="Submit" type="submit" class="style8" dir="ltr" value="ADD" onsubmit="
validateForm()" />
</div>
</label></td>
<td width="241"><label>
<div align="center">
<input name="Submit4" type="button" class="style8" value="HOME" onclick="Redirect()" />
</div>
</label></td>
</tr>
</table></td>
</tr>
</table>
<label></label>
<p>&nbsp;</p>
</FORM>
EXPORT SYSTEM



105
</body>
</html>

BILL ADD CODING:
<?php
$con=mysql_connect("localhost","root","","omt");

// Check connection
if (mysqli_connect_errno($con))
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysql_select_db("omt");

$DelStr="DELETE FROM BILL WHERE SR_no=".$_REQUEST['txtSR_no'];
//echo $DelStr;die();
if (!mysql_query($DelStr,$con))
{
echo mysql_error();
die();
}
$sql="INSERT INTO bill VALUES
(".$_REQUEST['txtSR_no'].",'".$_REQUEST['txtBill_id']."','".$_REQUEST['txtbill_date']."','".$
_REQUEST['txtD_id']."','".$_REQUEST['txtTotal_amt']."',".$_REQUEST['txtdiscount'].",".$_R
EQUEST['optTax'].",'".$_REQUEST['txtGrand_total']."','".$_REQUEST['txtPaid_amt']."','".$_R
EQUEST['txtBalance_amt']."');";
//echo $sql;
//die();
if (!mysql_query($sql,$con))
{
echo mysql_error();
}
header('Location: BILL_LIST.php');
?>
BILL DELETE CODING:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("DELETE FROM bill WHERE SR_no=".$_REQUEST["SR_no"]);
header('Location: BILL_LIST.php');
?>
BILL LIST:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from bill");
EXPORT SYSTEM



106
if (ISSET($_REQUEST["txtSR_no"]))
{
$rs=mysql_query("select * from bill WHERE ".$_REQUEST["optO02"]." like
'%".$_REQUEST["txtSR_no"]."%'");
}
//echo "<a href='IMPORTER_DETAIL.php'>Add IMPORTER</a>";
//echo "<table border=1 align='center'>";

?>
<html>
<style type="text/css">
<!--
.style1 {color: #CCCCCC}
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}

#full-screen-background-image {
z-index: -999;
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}

#wrapper {
position: relative;
width: 800px;
min-height: 400px;
margin: 100px auto;
color: #333;
}
body {
background-image: url(coconuts.jpg);
center center fixed no-repeat;
-moz-background-size: cover;
background-size: cover;
}@media only all and (max-width: 1000px) and (max-height: 7oopx) {
body {
-moz-background-size: 1000px 700px;
EXPORT SYSTEM



107
background-size: 1000px 700px;
}
}
}
-->
</style>
<body>
<form action="BILL_LIST.php" METHOD="GET">
<img alt="" src="file:///cocounts.jpg" id="full-screen-background-image" />
<div id="wrapper">

<div align="center">
<td colspan="4"><table width="870" border=1 align='center'>
<tr>
<td colspan="12"><input type="text" id="txtSR_no" name="txtSR_no" value="" />
<select id="opt002" name="optO02">
<option value="Bill_id">BILL ID
<option>
<option value="D_id">Distributor Id
<option>
</select></td>
<td colspan="2" align="center"><a href='BILL.php'><b>Add Bill</b></a></td>
</tr>
<tr>
<td><b>SrNo</b></td>
<td><b>Bill id</b></td>
<td><b>Bill Date</b></td>
<td ><b>Distributor Id</b></td>
<td ><b>Total</b></td>
<td><b>Discount</b></td>
<td><b>Tax</b></td>
<td><b>Garand total</b></td>
<td><b>Paid amt</b></td>
<td><b>Balance amt</b></td>
<td><b>Edit</b></td>
<td><b>Delete</b></td>
<td><b>Print</b></td>
<td><b>Balance</b></td>
</tr>
<?php
while($row=mysql_fetch_array($rs))
{
?>
<tr>
<td><?php echo $row["SR_no"]; ?></td>
<td><?php echo $row["Bill_id"]; ?></td>
EXPORT SYSTEM



108
<td><?php echo $row["bill_date"]; ?></td>
<td><?php echo $row["D_id"]; ?></td>
<td><?php echo $row["Total_amt"]; ?></td>
<td><?php echo $row["discount"]; ?></td>
<td><?php echo $row["B_tax"]; ?></td>
<td><?php echo $row["Grand_total"]; ?></td>
<td><?php echo $row["Paid_amt"]; ?></td>
<td><?php echo $row["Balance_amt"]; ?></td>
<td><a href='BILL.php?SR_no=<?php echo $row['SR_no']; ?>'>Edit </a></td>
<td><a href='BILL_DELETE.php?SR_no=<?php echo $row['SR_no']; ?>'>Delete </a></td>
<td><a href='BILL_print.php?SR_no=<?php echo $row['SR_no']; ?>'>Print </a></td>
<td><a href='Bill_balance_list.php?SR_no=<?php echo $row['SR_no']; ?>'>Balance</a></td>
</tr>
<?php
}
?>
</table></td>
</tr>
</table>
</div>
</div></form>
</body>
</html>
PURCHASE FORM CODING:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$PU_id="";
$I_id="";
$P_id="";
$PU_quantity="";
$PU_rate="";
$PU_amount="";
$PU_date="";
$new_PU_id=1;
$rs1=mysql_query("select max(PU_id)+1 from purchase ");
//echo $rs1;die();
while($row1=mysql_fetch_array($rs1))
{
$new_PU_id=$row1[0];
}


if (ISSET($_REQUEST["PU_id"]))
{
$con= mysql_connect("localhost","root","","omt");
EXPORT SYSTEM



109
mysql_select_db("omt");
$rs=mysql_query("select * from purchase where
PU_id=".$_REQUEST["PU_id"]);
while($row=mysql_fetch_array($rs))
{
$PU_id=$row["PU_id"];
$I_id=$row["I_id"];
$P_id=$row["P_id"];
$PU_quantity=$row["PU_quantity"];
$PU_rate=$row["PU_rate"];
$PU_amount=$row["PU_amount"];
$PU_date=$row["PU_date"];
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
font-size: 36px;
font-family: "Times New Roman", Times, serif;
font-weight: bold;
}
.style16 {color: #FFFFFF}
.style17 {
color: #990000;
font-size: 24px;
}
.style21 {font-family: "Times New Roman", Times, serif; font-weight: bold; font-size: 18px;
color: #990000; }
.style4 {
font-size: 36px;
font-family: "Times New Roman", Times, serif;
color: #33CC33;
font-weight: bold;
}
-->
</style>
<script>
function Redirect()
{
EXPORT SYSTEM



110
window.location="Home.php";
}
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode;
if (charCode != 46 && charCode > 31
&& (charCode < 48 || charCode > 57))
return false;

return true;
}
function checkNum(evt)
{

var charCode = (evt.which) ? evt.which : event.keyCode;
if(charCode !=46 && charCode>31 && (charCode < 48 || charCode >57))
return true;
else
{
alert("please enter only char");
return false;
}
return false;

}

/*function checkNum()
{
if ((event.keyCode > 64 && event.keyCode < 91) || (event.keyCode > 96 && event.keyCode <
123) || event.keyCode == 8)
return true;
else
{
alert("please enter only char");
return false;
}
}*/
function validateForm(evt)
{
var a=document.forms["frmPURCHASE_DETAIL"]["txtPU_id"].value;
var b=document.forms["frmPURCHASE_DETAIL"]["txtI_id"].value;
var c=document.forms["frmPURCHASE_DETAIL"]["txtP_id"].value;
var d=document.forms["frmPURCHASE_DETAIL"]["txtPU_quantity"].value;
var e=document.forms["frmPURCHASE_DETAIL"]["txtPU_rate"].value;
var f=document.forms["frmPURCHASE_DETAIL"]["txtPU_amount"].value;
var g=document.forms["frmPURCHASE_DETAIL"]["txtPU_date"].value;
EXPORT SYSTEM



111
if (a==null || a=="")
{
alert("Please Enter Purchase Id");
return false;
}

if (b==null || b=="")
{
alert("Please Enter Impoter id");
return false;
}

if (c==null || c=="")
{
alert("Please Enter Product id");
return false;
}
if (d==null || d=="")
{
alert("Please Enter Product Quantity");
return false;
}
if (e==null || e=="")
{
alert("Please Enter Purchase Rate");
return false;
}
if (f==null || f=="")
{
alert("Please Enter Purchase Amount");
return false;
}
if (g==null || g=="")
{
alert("Please Enter Purchase Date");
return false;
}
}


</script>
</head>

<body>
EXPORT SYSTEM



112
<FORM NAME="frmPURCHASE_DETAIL" ID="frmPURCHASE_DETAIL"
ACTION="PURCHASE_DETAIL_ADD.php" METHOD="POST" onsubmit="return
validateForm(event);">
<table width="844" height="544" border="0" align="center">
<tr>
<td width="222" rowspan="2"><img src="coconuts.jpg" width="232" height="159" /></td>
<td width="569" height="94"><div align="center"><span class="style4">Om Muruga
Traders</span></div></td>
</tr>
<tr>
<td><table width="469" height="390" border="0" align="center" >
<tr>
<td height="68" colspan="2"><div align="center" class="style2 style1 style16"><span
class="style17">PURCHASE DETAILS</span>L</div></td>
</tr>
<tr>
<td><span class="style21">PURCHASE ID </span></td>
<td><div align="center"><strong>
<input type="text" name="txtPU_id" id="txtPU_id" value="<?php echo $PU_id ; ?>"
width="200pt" onkeypress="return isNumberKey(event);" />
</strong></div></td>
</tr>
<tr>
<td><span class="style21">IMPORTER ID </span></td>
<td><div align="center"><strong>
<input type="text" name="txtI_id" id="txtI_id" value="<?php echo $I_id ; ?>"width="200PT"
onkeypress="return isNumberKey(event);"/>
</strong></div></td>
</tr>
<tr>
<td><span class="style21">PRODUCT ID </span></td>
<td><div align="center"><strong>
<input type="text" name="txtP_id" id="txtP_id" value="<?php echo $P_id ; ?>" width="200PT"
onkeypress="return isNumberKey(event);"/>
</strong></div></td>
</tr>
<tr>
<td><span class="style21">PUARCHASH QUANTITY </span></td>
<td><div align="center"><strong>
<input type="text" name="txtPU_quantity" id="txtPu_quantity" value="<?php echo
$PU_quantity ; ?>" width="200PT" onkeypress="return isNumberKey(event);"/>
</strong></div></td>
</tr>
<tr>
<td><span class="style21">PURCHASE RATE </span></td>
<td><div align="center"><strong>
EXPORT SYSTEM



113
<input type="text" name="txtPU_rate" id="txtPU_rate" value="<?php echo $PU_rate ;
?>"width="200PT" onkeypress="return isNumberKey(event);" />
</strong></div></td>
</tr>
<tr>
<td><span class="style21">PURCHSE TOTAL AMOUNT </span></td>
<td><div align="center"><strong>
<input type="text" name="txtPU_amount" id="txtPU_amount" value="<?php echo $PU_amount
; ?>" width="200PT" onkeypress="return isNumberKey(event);"/>
</strong></div></td>
</tr>
<tr>
<td height="43"><span class="style21">PURCHASE DATE </span></td>
<td><label>
<div align="center">
<input type="date" name="txtPU_date" id="txtPU_date" width="200PT" value="<?php echo
$PU_date ; ?>" />
</div>
</label></td>
</tr>
<tr>
<td width="244"><label>
<div align="center">
<input name="Submit2" type="submit" class="style21" value="ADD" />
</label>
</div></td>
<td width="215"><label>
<div align="center">
<input name="Submit4" type="button" class="style21" value="HOME" onclick="Redirect()"/>
</label>
</div></td>
</tr>
</table></td>
</tr>
</table>
<p>&nbsp;</p>
</form>
</body>
</html>
PURCHASE ADD CODING:
<?php
$con=mysql_connect("localhost","root","","omt");

// Check connection
if (mysqli_connect_errno($con))
{
EXPORT SYSTEM



114
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysql_select_db("omt");

$DelStr="DELETE FROM PURCHASE WHERE PU_id=".$_REQUEST['txtPU_id'];
//echo $DelStr;die();
if (!mysql_query($DelStr,$con))
{
echo mysql_error();
die();
}
$sql="INSERT INTO purchase VALUES
(".$_REQUEST['txtPU_id'].",".$_REQUEST['txtI_id'].",".$_REQUEST['txtP_id'].",".$_REQUE
ST['txtPU_quantity'].",".$_REQUEST['txtPU_rate'].",".$_REQUEST['txtPU_amount'].",'".$_RE
QUEST['txtPU_date']."');";
//echo $sql;
//die();
if (!mysql_query($sql,$con))
{
echo mysql_error();
}
header('Location: PURCHASE_DETAIL_LIST.php');
?>

PURCHASE DELETES CODING:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("DELETE FROM PURCHASE WHERE PU_id=".$_REQUEST["PU_id"]);
header('Location: PURCHASE_DETAIL_LIST.php');
?>
PURCHASE LIST:

<?php
$con= mysql_connect("localhost","root","","omt");mysql_select_db("omt");
$rs=mysql_query("select * from purchase");
if (ISSET($_REQUEST["txtPU_id"]))
{
$rs=mysql_query("select * from purchase WHERE ".$_REQUEST["optO0"]." like
'%".$_REQUEST["txtPU_id"]."%'");
}
?>
<html>
<style type="text/css">
<!--
.style1 {color: #6666FF}
EXPORT SYSTEM



115
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}

#full-screen-background-image {
z-index: -999;
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}

#wrapper {
position: relative;
width: 800px;
min-height: 400px;
margin: 100px auto;
color: #333;
}
body {
background-image: url(coconuts.jpg);
center center fixed no-repeat;
-moz-background-size: cover;
background-size: cover;
}@media only all and (max-width: 900px) and (max-height: 600px) {
body {
-moz-background-size: 900px 600px;
background-size: 900px 600px;
}
}
}

-->
</style>
<body>
<form action="PURCHASE_DETAIL_LIST.php" METHOD="GET">
<img alt="" src="file:///cocounts.jpg" id="full-screen-background-image" />
<div id="wrapper">
<div align="center">
<table border=1 align='center'>
EXPORT SYSTEM



116
<tr>
<td colspan="5">
<input type="text" id="txtPU_id" name="txtPU_id" value="" />
<select id="opt00" name="optO0">
<option value="PU_id">Purchase Id<option>
<option value="I_id">Importer Id<option>
<option value="P_id">Product Id<option>
</select>

</td>
<td colspan="4" align="center"><a href='PURCHASE_DETAIL.php'><b>Add
Purchase Detail</b></a></td>
</tr>
<tr>
<td><b>Purchase ID</b></td>
<td><b>Importer.id</b></td>
<td><b>Product.id</b></td>
<td><b>Purchase.quantity</b></td>
<td><b>Purchase.rate</b></td>
<td><b>Purchase.amount</b></td>
<td><b>Purchase.Date</b></td>
<td><b>Edit</b></td>
<td><b>Delete</b></td>
</tr>
<?php
$tot=0;
while($row=mysql_fetch_array($rs))
{
?>
<tr>
<td><?php echo $row["PU_id"]; ?></td>
<td><?php echo $row["I_id"]; ?></td>
<td><?php echo $row["P_id"]; ?></td>
<td><?php echo $row["PU_quantity"]; ?></td>
<td><?php echo $row["PU_rate"]; ?></td>
<td><?php echo $row["PU_amount"]; ?></td>
<td><?php echo $row["PU_date"]; ?></td>
<?php
$tot=$tot+$row["PU_amount"];
?>
<td>
<a href='PURCHASE_DETAIL.php?PU_id=<?php echo $row['PU_id'];
?>'>Edit </a>
</td>
<td>
EXPORT SYSTEM



117
<a href='PURCHASE_DETAIL_DELETE.php?PU_id=<?php echo
$row['PU_id']; ?>'>Delete </a>
</td>
</tr>
<?php
}
?>
<tr>
<td colspan="5" align="right">Total Amount</td>
<td colspan="4" align="left"><?php echo $tot; ?></td>
</tr>
</table>
</div>
</form>
</body>
</html>

PAYMENT FORM CODING:
<?php
$PAY_id="";
$Bill_id="";
$Paid_amt="";
$Paid_date="";
$Paid_by="";
if (ISSET($_REQUEST["PAY_id"]))
{
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from payment where
PAY_id=".$_REQUEST["PAY_id"]);
while($row=mysql_fetch_array($rs))
{
$PAY_id=$row["PAY_id"];
$Bill_id=$row["Bill_id"];
$Paid_amt=$row["Paid_amt"];
$Paid_date=$row["Paid_date"];
$Paid_by=$row["Paid_by"];
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
EXPORT SYSTEM



118
<style type="text/css">
<!--
.style8 {font-size: 18px; font-family: "Times New Roman", Times, serif;}
.style11 {color: #990000; font-weight: bold; }
.style13 {font-family: "Times New Roman", Times, serif}
.style14 {font-size: 18px; font-weight: bold; }
.style15 {color: #990000; font-weight: bold; font-size: 24px; }
.style10 {font-size: 14px}
.style22 {font-size: 18px; font-family: "Times New Roman", Times, serif; font-weight: bold;
color: #990000; }
.style4 {
font-size: 36px;
font-family: "Times New Roman", Times, serif;
color: #33CC33;
font-weight: bold;
}
-->
</style>
<script>
function Redirect()
{
window.location="Home.php";
}
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode;
if (charCode != 46 && charCode > 31
&& (charCode < 48 || charCode > 57))
return false;

return true;
}
function checkNum(evt)
{

var charCode = (evt.which) ? evt.which : event.keyCode;
if(charCode !=46 && charCode>31 && (charCode < 48 || charCode >57))
return true;

return false;

}
function validateForm(evt)
{
var a=document.forms["frmpayment"]["txtPAY_id"].value;
var b=document.forms["frmpayment"]["txtBill_id"].value;
EXPORT SYSTEM



119
var c=document.forms["frmpayment"]["txtPaid_amt"].value;
var d=document.forms["frmpayment"]["txtPaid_date"].value;
var e=document.forms["frmpayment"]["txtPaid_by"].value;

if (a==null || a=="")
{
alert("Please Enter Paymente Id");
return false;
}

if (b==null || b=="")
{
alert("Please Enter Bill id");
return false;
}

if (c==null || c=="")
{
alert("Please Enter Paid Amount");
return false;
}
if (d==null || d=="")
{
alert("Please Enter Paid Date");
return false;
}
if (e==null || e=="")
{
alert("Please Enter Paid by");
return false;
}
}
</script>
</head>

<body>
<FORM NAME="frmpayment" ID="frmpayment" ACTION="payament_add.php"
METHOD="POST" onsubmit="return validateForm(event);">
<table width="748" border="0" align="center">
<tr>
<td width="222" rowspan="2"><img src="coconuts.jpg" width="232" height="159" /></td>
<td width="609" height="106"><div align="center"><span class="style4">Om Muruga Traders
</span></div></td>
</tr>
<tr>
<td height="380"><table width="385" height="352" border="0" align="center" >
EXPORT SYSTEM



120
<tr>
<td height="67" colspan="3"><div align="center" class="style15">PAYMENT
DETAILS</div></td>
</tr>
<tr>
<td width="167" height="43" class="style22"><div align="left" class="style11"><span
class="style8">PAYMENT ID </span></div></td>
<td colspan="2" class="style11"><div align="center" class="style14">
<input name="txtPAY_id" type="text" class="style13" id="txtPAY_id" value="<?php echo
$PAY_id ; ?>" width="200pt" onkeypress="return isNumberKey(event);" />
</div></td>
</tr>
<tr>
<td class="style22"><div align="left" class="style11"><span class="style8">BILL NO
</span></div></td>
<td colspan="2" class="style11"><div align="center" class="style14">
<input name="txtBill_id" type="text" class="style13" id="txtBill_id " value="<?php echo
$Bill_id ; ?>"width="200pt" onkeypress="return isNumberKey(event);">
</div></td>
</tr>
<tr>
<td height="43" class="style22"><div align="left" class="style11"><span class="style8">PAID
AMOUNT </span></div></td>
<td colspan="2" class="style11"><div align="center" class="style14">
<input name="txtPaid_amt" type="text" class="style13" id="txtPaid_amt" value="<?php echo
$Paid_amt ; ?>"width="200pt" onkeypress="return isNumberKey(event);">
</div></td>
</tr>
<tr>
<td class="style22"><div align="left" class="style11"><span class="style8">PAID DATE
</span></div></td>
<td colspan="2" class="style11"><div align="center" class="style14">
<input name="txtPaid_date" type="Date" class="style13" id="txtPaid_date" value="<?php echo
$Paid_date ; ?>" width="200pt" onkeypress="return isNumberKey(event);" >
</div></td>
</tr>
<tr>
<td height="44" class="style22"><div align="left" class="style11"><span class="style8">PAID
BY </span></div></td>
<td colspan="2" class="style11"><div align="center" class="style14">
<input name="txtPaid_by" type="text" class="style13" id="txtPaid_by" value="<?php echo
$Paid_by ; ?>" width="200pt" onkeypress="return checkNum(event);">
</div></td>
</tr>
<tr>
<td height="68" colspan="2"><label>
EXPORT SYSTEM



121
<div align="center"><span class="style10">
<input name="Submit22" type="submit" class="style22" value="ADD" />
</span></div>
</label>
<label></label>
<label></label>
<label></label>
</td>
<td width="183"><label>
<div align="center"><span class="style10">
<input name="Submit4" type="button" class="style22" value="HOME" onclick="Redirect()" />
</span></div>
</label></td>
</tr>
</table></td>
</tr>
</table>
<p align="center">&nbsp;</p>
</form>
</body>
</html>

PAYMENT ADD:
<?php
$con=mysql_connect("localhost","root","","omt");

// Check connection
if (mysqli_connect_errno($con))
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysql_select_db("omt");

$DelStr="DELETE FROM PAYMENT WHERE PAY_id=".$_REQUEST['txtPAY_id'];
//echo $DelStr;die();
if (!mysql_query($DelStr,$con))
{
echo mysql_error();
die();
}
$sql="INSERT INTO payment VALUES
(".$_REQUEST['txtPAY_id'].",'".$_REQUEST['txtBill_id']."',".$_REQUEST['txtPaid_amt'].",'".
$_REQUEST['txtPaid_date']."','".$_REQUEST['txtPaid_by']."');";
//echo $sql;
//die();
if (!mysql_query($sql,$con))
EXPORT SYSTEM



122
{
echo mysql_error();
}
header('Location: payament_list.php');
?>
PAYMENT DELETE :
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("DELETE FROM product WHERE P_id=".$_REQUEST["P_id"]);
header('Location: PRODUCT_LIST.php');
?>
PAYMENT LIST:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from payment");

if (ISSET($_REQUEST["txtPAY_id"]))
{
$rs=mysql_query("select * from payment WHERE ".$_REQUEST["optO00"]." like
'%".$_REQUEST["txtPAY_id"]."%'");
}
?>
<html>
<style type="text/css">
<!--
.style1 {color: #FFFF99}
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}

#full-screen-background-image {
z-index: -999;
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}

EXPORT SYSTEM



123
#wrapper {
position: relative;
width: 800px;
min-height: 400px;
margin: 100px auto;
color: #333;
}
body {
background-image: url(coconuts.jpg);
center center fixed no-repeat;
-moz-background-size: cover;
background-size: cover;
}@media only all and (max-width: 1000px) and (max-height: 7oopx) {
body {
-moz-background-size: 1000px 700px;
background-size: 1000px 700px;
}
}
}
-->
</style>
<body>
<form action="payament_list.php" METHOD="GET">
<img alt="" src="file:///cocounts.jpg" id="full-screen-background-image" />
<div id="wrapper">
<div align="center">
<table border=1 align='center'>
<tr>
<td colspan="4">
<input type="text" id="txtPAY_id" name="txtPAY_id" value="" />
<select id="opt000" name="optO00">
<option value="PAY_id"><b>Payament Id</b><option>
<option value="Bill_id"><b>Bill Id</b><option>
</select>

</td>
<td colspan="3" align="center"><a href='payment.php'><b>Add Payment
Detail</b></a></td>
</tr>
<tr>
<td><b>Payment ID</b></td>
<td><b>Bill.id</b></td>
<td><b>Paid Amount</b></td>
<td><b>Paid date</b></td>
<td><b>Paid by</b></td>
<td><b>Edit</b></td>
EXPORT SYSTEM



124
<td><b>Delete</b></td>
</tr>
<?php
$tot=0;
while($row=mysql_fetch_array($rs))
{
?><tr>
<td><?php echo $row["PAY_id"]; ?></td>
<td><?php echo $row["Bill_id"]; ?></td>
<td><?php echo $row["Paid_amt"]; ?></td>
<td><?php echo $row["Paid_date"]; ?></td>
<td><?php echo $row["Paid_by"]; ?></td>
<?php

$tot=$tot+$row["Paid_amt"];
?>
<td>
<a href='payment.php?PAY_id=<?php echo $row['PAY_id']; ?>'>Edit
</a>
</td>
<td>
<a href='payament_delete.php?PAY_id=<?php echo $row['PAY_id'];
?>'>Delete </a>
</td>
</tr>
<?php
}
?>
<tr><td colspan="2" align="right">Total Amount</td>
<td colspan="5" align="left"><?php echo $tot; ?></td>
</tr>
</table>
</div>
</form>
</body>
</html>
ENQUIRY FORMS CODING:<?php
$E_id="";
$E_by="";
$P_id="";
$P_amount="";
if (ISSET($_REQUEST["E_id"]))
{
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from enquiry where E_id=".$_REQUEST["E_id"]);
EXPORT SYSTEM



125
while($row=mysql_fetch_array($rs))
{
$E_id=$row["E_id"];
$E_by=$row["E_by"];
$P_id=$row["P_id"];
$P_amount=$row["P_amount"];
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>enquiry</title>
<style type="text/css">
<!--
.style1 {
font-size: 24px;
font-weight: bold;
font-family: "Times New Roman", Times, serif;
}
.style4 {font-family: "Times New Roman", Times, serif; font-size: 18px; }
.style5 {font-size: 24px; font-weight: bold; font-family: "Times New Roman", Times, serif;
color: #FFFFFF; }
.style6 {color: #990000}
.style9 {font-family: "Times New Roman", Times, serif; font-size: 18px; color: #990000; }
.style10 {font-size: 14px}
.style22 {font-size: 18px; font-family: "Times New Roman", Times, serif; font-weight: bold;
color: #990000; }
.style12 {
font-family: "Times New Roman", Times, serif;
color: #33CC33;
font-size: 36px;
font-weight: bold;
}
-->
</style>
<script>
function Redirect()
{
window.location="Home.php";
}
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode;
EXPORT SYSTEM



126
if (charCode != 46 && charCode > 31
&& (charCode < 48 || charCode > 57))
return false;

return true;
}
function checkNum(evt)
{

var charCode = (evt.which) ? evt.which : event.keyCode;
if(charCode !=46 && charCode>31 && (charCode < 48 || charCode >57))
return true;

return false;

}

function validateForm(evt)
{
var a=document.forms["frmENQUIRY_DETAILS"]["txtE_id"].value;
var b=document.forms["frmENQUIRY_DETAILS"]["txtE_by"].value;
var c=document.forms["frmENQUIRY_DETAILS"]["txtP_id"].value;
var d=document.forms["frmENQUIRY_DETAILS"]["txtP_amount"].value;

if (a==null || a=="")
{
alert("Please Enter Enquiry Id");
return false;
}

if (b==null || b=="")
{
alert("Please Enter Enquiry by");
return false;
}

if (c==null || c=="")
{
alert("Please Enter Product id");
return false;
}
if (d==null || d=="")
{
alert("Please Enter Product Amount");
return false;
}
EXPORT SYSTEM



127
}
</script>
</head>

<body>
<FORM NAME="frmENQUIRY_DETAILS" ID="frmENQUIRY_DETAILS"
ACTION="ENQURIY_DETAIL_ADD.php" METHOD="POST" ONSUBMIT="return
validateForm(event);">
<div align="center">
<table width="760" height="472" border="0">
<tr>
<td width="222" rowspan="2"><img src="coconuts.jpg" width="232" height="159" /></td>
<td width="558" height="108"><div align="center" class="style12">Om Muruga Traders
</div></td>
</tr>
<tr>
<td><table width="428" height="351" border="0" align="center"
>
<tr>
<td height="85" colspan="2"><div align="center" class="style5 style6">ENQUIRY DETAILS
</div></td>
</tr>
<tr>
<td height="41" class="style1"><span class="style9">ENQUIRY ID </span></td>
<td><label>
<div align="center">
<input name="txtE_id" type="text" class="style4" id="txtE_id" value="<?php echo $E_id ; ?>"
onkeypress="return isNumberKey(event);"/>
</div>
</label></td>
</tr>
<tr>
<td height="33" class="style1"><span class="style9">ENQUIRY BY </span></td>
<td><label>
<div align="center">
<input name="txtE_by" type="text" class="style4" id="txtE_by" value="<?php echo $E_by ;
?>" onkeypress="return checkNum(event);"/>
</div>
</label></td>
</tr>
<tr>
<td height="34" class="style1"><span class="style9">PRODUCT ID </span></td>
<td><label>
<div align="center">
<input name="txtP_id" type="text" class="style4" id="txtP_id" value="<?php echo $P_id ; ?>"
onkeypress="return isNumberKey(event);"/>
EXPORT SYSTEM



128
</div>
</label></td>
</tr>
<tr>
<td height="35" class="style1"><span class="style9">PRODUCT AMOUNT </span></td>
<td><label>
<div align="center">
<input name="txtP_amount" type="text" class="style4" id="txtP_amount" value="<?php echo
$P_amount ; ?>" onkeypress="return isNumberKey(event);"/>
</div>
</label></td>
</tr>
<tr>
<td width="204" height="68"><label>
<div align="center"><span class="style10">
<input name="Submit22" type="submit" class="style22" value="ADD" onsubmit="
validateForm()" />
</span></div>
</label></td>
<td width="214"><label></label>
<label>
<div align="center"><span class="style10">
<input name="Submit4" type="button" class="style22" value="HOME" onclick="Redirect()" />
</span></div>
</label></td>
</tr>
</table></td>
</tr>
</table>
</div>
<p>&nbsp;</p>
</form>
</body>
</html>
ENQUIRY ADD :

<?php
$con=mysql_connect("localhost","root","","omt");

// Check connection

if (mysqli_connect_errno($con))
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysql_select_db("omt");
EXPORT SYSTEM



129

$DelStr="DELETE FROM ENQUIRY WHERE E_id=".$_REQUEST['txtE_id'];
//echo $DelStr;die();
if (!mysql_query($DelStr,$con))
{
echo mysql_error();
die();
}


$sql="INSERT INTO enquiry VALUES
('".$_REQUEST['txtE_id']."','".$_REQUEST['txtE_by']."','".$_REQUEST['txtP_id']."','".$_REQ
UEST['txtP_amount']."');";
//echo $sql;
//die();
if (!mysql_query($sql,$con))
{
echo mysql_error();
}
header('Location: ENQUIRY_DETAIL_LIST.php');
?>
ENQUIRY DELETE:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("DELETE FROM enquiry WHERE E_id=".$_REQUEST["E_id"]);
header('Location: ENQUIRY_DETAIL_LIST.php');?>

ENQUIRY LIST:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from enquiry");

if (ISSET($_REQUEST["txtE_id"]))
{
$rs=mysql_query("select * from enquiry WHERE ".$_REQUEST["optO01"]." like
'%".$_REQUEST["txtE_id"]."%'");
}
?>
<html>
<style type="text/css">
<!--
.style1 {color: #FFFF99}
html, body {
height: 100%;
EXPORT SYSTEM



130
width: 100%;
padding: 0;
margin: 0;
}

#full-screen-background-image {
z-index: -999;
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}

#wrapper {
position: relative;
width: 800px;
min-height: 400px;
margin: 100px auto;
color: #333;
}
body {
background-image: url(coconuts.jpg);
center center fixed no-repeat;
-moz-background-size: cover;
background-size: cover;
}@media only all and (max-width: 1000px) and (max-height: 7oopx) {
body {
-moz-background-size: 1000px 700px;
background-size: 1000px 700px;
}
}
}
-->
</style>

<body>
<form action="ENQUIRY_DETAIL_LIST.php" METHOD="GET">
<img alt="" src="file:///cocounts.jpg" id="full-screen-background-image" />
<div id="wrapper">
<div align="center">
<table border=1 align='center'>
<tr>
<td colspan="5">
EXPORT SYSTEM



131
<input type="text" id="txtE_id" name="txtE_id" value="" />
<select id="opt001" name="optO01">
<option value="E_id">Enquiry Id<option>
<option value="P_id">Product Id<option>
</select>

</td>
<td><a href='ENQUIRY _DETAILS.php'><b>Add Enquiry Detail</b></a></td>
</tr>
<tr>
<td><b>Enquiry ID</b></td>
<td><b>Enquiry By</b></td>
<td><b>Product Id</b></td>
<td><b>Product Amt</b></td>
<td><b>Edit</b></td>
<td><b>Delete</b></td>
</tr>
<?php
$tot=0;
while($row=mysql_fetch_array($rs))
{
?>
<tr>
<td><?php echo $row["E_id"]; ?></td>
<td><?php echo $row["E_by"]; ?></td>
<td><?php echo $row["P_id"]; ?></td>
<td><?php echo $row["P_amount"]; ?></td>
<?php
$tot=$tot+$row["P_amount"];
?>
<td>
<a href='ENQUIRY _DETAILS.php?E_id=<?php echo $row['E_id'];
?>'>Edit </a>
</td>
<td>
<a href='ENQUIRY_DETAIL_DELETE.php?E_id=<?php echo
$row['E_id']; ?>'>Delete </a>
</td>
</tr>
<?php
}
?>
<tr>
<td colspan="3" align="right">Total Amount </td>
<td colspan="3" align="left"><?php echo $tot; ?></td>
</tr>
EXPORT SYSTEM



132
</table>
</div>
</form>
</body>
</html>
PACKING FORM CODING:
<?php
$PK_id="";
$P_id="";
$PK_date="";
$PK_p_name="";
$PK_no="";
$PK_charge="";

if (ISSET($_REQUEST["PK_id"]))
{
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from packing where
PK_id=".$_REQUEST["PK_id"]);
while($row=mysql_fetch_array($rs))
{
$PK_id=$row["PK_id"];
$P_id=$row["P_id"];
$PK_date=$row["PK_date"];
$PK_p_name=$row["PK_p_name"];
$PK_no=$row["PK_no"];
$PK_charge=$row["PK_charge"];
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style6 {
font-size: 36px;
font-family: "Times New Roman", Times, serif;
color: #33CC33;
font-weight: bold;
}
.style8 {
EXPORT SYSTEM



133
font-family: "Times New Roman", Times, serif;
font-weight: bold;
font-size: 24px;
color: #990000;
}
.style12 {font-family: "Times New Roman", Times, serif; font-weight: bold; font-size: 18px;
color: #990000; }
.style13 {
color: #990000;
font-weight: bold;
}
-->
</style>
<script>
function Redirect()
{
window.location="Home.php";
}
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode;
if (charCode != 46 && charCode > 31
&& (charCode < 48 || charCode > 57))
return false;

return true;
}
function checkNum(evt)
{

var charCode = (evt.which) ? evt.which : event.keyCode;
if(charCode !=46 && charCode>31 && (charCode < 48 || charCode >57))
return true;

return false;

}
function validateForm(evt)
{
var a=document.forms["frmPacking"]["txtPac_id"].value;
var b=document.forms["frmPacking"]["txtP_id"].value;
var c=document.forms["frmPacking"]["txtPac_date"].value;
var d=document.forms["frmPacking"]["txtPac_name"].value;
var e=document.forms["frmPacking"]["txtPac_total"].value;
var f=document.forms["frmPacking"]["txtPac_charge"].value;
if (a==null || a=="")
EXPORT SYSTEM



134
{
alert("Please Enter Packing Id");
return false;
}

if (b==null || b=="")
{
alert("Please Enter Product id");
return false;
}

if (c==null || c=="")
{
alert("Please Enter Packing Date");
return false;
}
if (d==null || d=="")
{
alert("Please Enter Name");
return false;
}
if (e==null || e=="")
{
alert("Please Enter Total");
return false;
}
if (f==null || f=="")
{
alert("Please Enter Packing Charge");
return false;
}
}
</script>
</head>

<body>
<FORM NAME="frmPacking" ID="frmPacking" ACTION="packing_add.php"
METHOD="post" onsubmit="return validateForm(event);">
<div align="center">

<div align="center">
<table width="717" height="485" border="0">
<tr>
<td width="234" rowspan="2"><img src="coconuts.jpg" width="232" height="159" /></td>
<td width="473" height="114"><div align="center"><span class="style6">Om Muruga Traders
</span></div></td>
EXPORT SYSTEM



135
</tr>
<tr>
<td>
<div align="center">
<table width="401" height="391" border="0">
<tr>
<td height="55" colspan="2"><div align="center"><span class="style8">PACKING DETAILS
</span></div></td>
</tr>
<tr>
<td width="228"><span class="style12">PACKING ID </span></td>
<td width="144"><label>
<div align="center">
<input type="text" name="txtPac_id" id="txtPac_id" value="<?php echo $PK_id ; ?>"
onkeypress="return isNumberKey(event);" />
</div>
</label></td>
</tr>
<tr>
<td><span class="style12">PRODUCT ID </span></td>
<td><label>
<div align="center">
<input type="text" name="txtP_id" value="<?php echo $P_id ; ?>" onkeypress="return
isNumberKey(event);" />
</div>
</label></td>
</tr>
<tr>
<td><span class="style12">PACKING DATE </span></td>
<td><label>
<div align="center">
<input type="date" name="txtPac_date" value="<?php echo $PK_date ; ?>" onkeypress="return
isNumberKey(event);" />
</div>
</label></td>
</tr>
<tr>
<td><span class="style12">PACKING PERSON NAME </span></td>
<td><label>
<div align="center">
<input type="text" name="txtPac_name" value="<?php echo $PK_p_name ; ?>"
onkeypress="return checkNum(event);" />
</div>
</label></td>
</tr>
<tr>
EXPORT SYSTEM



136
<td height="40"><span class="style12">TOTAL NO_ OF PACKING </span></td>
<td><div align="center">
<input type="text" name="txtPac_total" value="<?php echo $PK_no ; ?>" onkeypress="return
isNumberKey(event);" />
</div></td>
</tr>
<tr>
<td height="41"><span class="style12">PACKING CHARGE </span></td>
<td><label>
<div align="center">
<input type="text" name="txtPac_charge" value="<?php echo $PK_charge ; ?>"
onkeypress="return isNumberKey(event);" />
</div>
</label></td>
</tr>
<tr>
<td height="45"><label>
<div align="center">
<input name="Submit" type="submit" class="style12" value="ADD" onsubmit="
validateForm()" />
</div>
</label></td>
<td><label>
<div align="center">
<input name="Submit2" type="button" class="style12" value="HOME" onclick="Redirect();"/>
</div>
</label></td>
</tr>
</table>
</div></td>
</tr>
</table>
</div>
</div>
</FORM>
</body>
</html>
PACKING ADD :
<?php
$con=mysql_connect("localhost","root","","omt");

// Check connection
if (mysqli_connect_errno($con))
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
EXPORT SYSTEM



137
mysql_select_db("omt");

$DelStr="DELETE FROM PACKING WHERE PK_id=".$_REQUEST['txtPac_id'];
//echo $DelStr;die();
if (!mysql_query($DelStr,$con))
{
echo mysql_error();
die();
}
$sql="INSERT INTO packing VALUES
(".$_REQUEST['txtPac_id'].",".$_REQUEST['txtP_id'].",'".$_REQUEST['txtPac_date']."','".$_R
EQUEST['txtPac_name']."',".$_REQUEST['txtPac_total'].",".$_REQUEST['txtPac_charge'].");";
//echo $sql;
//die();
if (!mysql_query($sql,$con))
{
echo mysql_error();
}
header('Location: Packing_List.php');
?>
PACKING DELETE:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("DELETE FROM packing WHERE PK_id=".$_REQUEST["PK_id"]);
header('Location: Packing_List.php');
?>
PACKING LIST:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from packing");
if (ISSET($_REQUEST["txtPac_name"]))
{
$rs=mysql_query("select * from packing WHERE PK_p_name like
'%".$_REQUEST["txtPac_name"]."%'");
}
?>
<html>
<style type="text/css">
<!--
.style2 {color: #CCCC33}
html, body {
height: 100%;
width: 100%;
padding: 0;
EXPORT SYSTEM



138
margin: 0;
}

#full-screen-background-image {
z-index: -999;
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}

#wrapper {
position: relative;
width: 800px;
min-height: 400px;
margin: 100px auto;
color: #333;
}
body {
background-image: url(coconuts.jpg);
center center fixed no-repeat;
-moz-background-size: cover;
background-size: cover;
}@media only all and (max-width: 1000px) and (max-height: 7oopx) {
body {
-moz-background-size: 1000px 700px;
background-size: 1000px 700px;
}
}
}
-->
</style>
<body>
<form action="Packing_List.php" METHOD="GET">
<img alt="" src="file:///cocounts.jpg" id="full-screen-background-image" />
<div id="wrapper">
<div align="center">

<table border=1 align='center'>
<tr>
<td colspan="5">
<input type="text" id="txtPac_name" name="txtPac_name" value="" />
<b>Enter Name</b>
EXPORT SYSTEM



139
</td>
<td colspan="3" align="center"><a href='Packing.php'><b>Add Packing
Detail</b></a></td>
</tr>
<tr>
<td><b>ID</b></td>
<td><b>Product_id</b></td>
<td><b>Packing Date</b></td>
<td><b>Packing Person Name</b></td>
<td><b>Total Packing</b></td>
<td><b>Packing Charge</b></td>
<td><b>Edit</b></td>
<td><b>Delete</b></td>
</tr>
<?php
$tot=0;
while($row=mysql_fetch_array($rs))
{
?>
<tr>
<td><?php echo $row["PK_id"]; ?></td>
<td><?php echo $row["P_id"]; ?></td>
<td><?php echo $row["PK_date"]; ?></td>
<td><?php echo $row["PK_p_name"]; ?></td>
<td><?php echo $row["PK_no"]; ?></td>
<td><?php echo $row["PK_charge"]; ?></td>
<?php

$tot=$tot+$row["PK_charge"];
?>
<td>

<a href='Packing.php?PK_id=<?php echo $row['PK_id']; ?>'>Edit </a>
</td>
<td>
<a href='Packing_delete.php?PK_id=<?php echo $row['PK_id'];
?>'>Delete </a>
</td>
</tr>
<?php
}
?>

<tr>

<td colspan="5" align="right">Total Amount</td>
EXPORT SYSTEM



140
<td colspan="3" align="left"><?php echo $tot; ?></td>
</tr>

</table>
</form>
</body>
</html>
WORKERS FORM CODING:
<?php

$WK_id="";
$WK_name="";
$WK_wages="";
$WK_phone="";
$WK_add="";
$WK_date="";



if (ISSET($_REQUEST["WK_id"]))
{

$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from workers where
WK_id=".$_REQUEST["WK_id"]);
while($row=mysql_fetch_array($rs))
{
$WK_id=$row["WK_id"];
$WK_name=$row["WK_name"];
$WK_wages=$row["WK_wages"];
$WK_phone=$row["WK_phone"];
$WK_add=$row["WK_add"];
$WK_date=$row["WK_date"];

}

}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
EXPORT SYSTEM



141
<!--
.style15 {
font-weight: bold;
font-size: 24px;
color: #990000;
}
.style4 { font-size: 36px;
font-family: "Times New Roman", Times, serif;
color: #33CC33;
font-weight: bold;
}
.style10 {font-size: 14px}
.style22 {font-size: 18px; font-family: "Times New Roman", Times, serif; font-weight: bold;
color: #990000; }
.style16 {font-size: 24px; font-family: "Times New Roman", Times, serif; font-weight: bold;
color: #990000; }
-->
</style>
</head>
<script >
function Redirect()
{
window.location="Home.php";
}
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode;
if (charCode != 46 && charCode > 31
&& (charCode < 48 || charCode > 57))
return false;

return true;
}
function checkNum(evt)
{

var charCode = (evt.which) ? evt.which : event.keyCode;
if(charCode !=46 && charCode>31 && (charCode < 48 || charCode >57))
return true;

return false;

}
function validateForm(evt)
{
var a=document.forms["frmWorkers"]["txtWK_id"].value;
EXPORT SYSTEM



142
var b=document.forms["frmWorkers"]["txtWK_name"].value;
var c=document.forms["frmWorkers"]["txtWK_wages"].value;
var d=document.forms["frmWorkers"]["txtWK_phone"].value;
var e=document.forms["frmWorkers"]["txtWK_add"].value;
var f=document.forms["frmWorkers"]["txtWK_date"].value;
if (a==null || a=="")
{
alert("Please Enter Worker Id");
return false;
}

if (b==null || b=="")
{
alert("Please Enter Worker Name");
return false;
}

if (c==null || c=="")
{
alert("Please Enter Worker Wages");
return false;
}
if (d==null || d=="")
{
alert("Please Enter Worker Phone");
return false;
}
if (e==null || e=="")
{
alert("Please Enter Worker Address");
return false;
}
if (f==null || f=="")
{
alert("Please Enter Date");
return false;
}
}

</script>
<body>
<div align="center">
<form name="frmWorkers" id="frmWorkers" action="Workers_add.php" method="post">
<div align="center">
<table width="785" height="581" border="0">
<tr>
EXPORT SYSTEM



143
<td width="232" rowspan="2"><img src="coconuts.jpg" width="232" height="159" /></td>
<td width="537" height="93"><div align="center"><span class="style4">Om Muruga
Traders</span></div></td>
</tr>
<tr>
<td><div align="center">
<p>&nbsp;</p>
<table width="492" border="0">
<tr>
<td height="66" colspan="2"><div align="center"><span class="style15">WORKER DETAILS
</span></div></td>
</tr>
<tr>
<td width="239" height="56"><span class="style22">WORKERS ID </span></td>
<td width="421" class="style16">
<label>
<div align="center">
<input name="txtWK_id" id="txtWK_id" type="text" value="<?php echo $WK_id; ?>"
onkeypress="return isNumberKey(event);" />
</label>
</div></td>
</tr>
<tr>
<td><span class="style22">WORKERS NAME </span></td>
<td class="style16">
<label>

<div align="center">
<input type="text" name="txtWK_name" id="WK_name" value="<?php echo $WK_name; ?>"
onkeypress="return checkNum(event,this);" />
</div></label></td>
</tr>
<tr>
<td height="62"><span class="style22">WORKERS WAGES </span></td>
<td class="style16">
<label>

<div align="center">
<input type="text" name="txtWK_wages" id="WK_wages"value="<?php echo $WK_wages;
?>" onkeypress="return isNumberKey(event);"/>
</div></label></td>
</tr>
<tr>
<td><span class="style22">WORKERS_PHONE</span></td>
<td class="style16">
<label>
EXPORT SYSTEM



144

<div align="center">
<input type="text" name="txtWK_phone" id="txtWK_phone" value="<?php echo $WK_phone;
?>" />
</div></label></td>
</tr>
<tr>
<td><span class="style22">WORKERS ADDRESS </span></td>
<td class="style16">
<label>

<div align="center">

<textarea name="txtWK_add" id="txtWK_add" ><?php echo $WK_add; ?></textarea>
</div></label></td>
</tr>
<tr>
<td><span class="style22">DATE </span></td>
<td class="style16">
<label>

<div align="center">
<input type="date" name="txtWK_date" id="txtWK_date" value="<?php echo $WK_date; ?>"
/>
</div></label></td>
</tr>
<tr>
<td height="64"><label>
<div align="center"><span class="style10">
<input name="Submit2" type="submit" class="style22" value="ADD" onsubmit="
validateForm()"/>
</span></div>
</label></td>
<td><label>
<div align="center"><span class="style10">
<input name="Submit4" type="button" class="style22" value="HOME" onclick="Redirect()" />
</span></div>
</label></td>
</tr>
</table>
</div></td>
</tr>
</table>
</div>
</form>
</body>
EXPORT SYSTEM



145
</html>
WORKER ADD:
<?php
$con=mysql_connect("localhost","root","","omt");

// Check connection
if (mysqli_connect_errno($con))
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysql_select_db("omt");

$DelStr="DELETE FROM WORKERS WHERE WK_id=".$_REQUEST['txtWK_id'];
//echo $DelStr;die();
if (!mysql_query($DelStr,$con))
{
echo mysql_error();
die();
}

$sql="INSERT INTO workers VALUES
(".$_REQUEST['txtWK_id'].",'".$_REQUEST['txtWK_name']."',".$_REQUEST['txtWK_wages'
].",".$_REQUEST['txtWK_phone'].",'".$_REQUEST['txtWK_add']."','".$_REQUEST['txtWK_d
ate']."');";
//echo $sql;
//die();
if (!mysql_query($sql,$con))
{
echo mysql_error();
}
header('Location: Workers_LIST.php');
?>
WORKERS DELETE:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("DELETE FROM workers WHERE WK_id=".$_REQUEST["WK_id"]);
header('Location: Workers_LIST.php');
//mysql_query("DELETE FROM IMPORTER WHERE I_id=".$_REQUEST["I_id"]);
?>
WORKERS LIST:
<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");
$rs=mysql_query("select * from workers");
if (ISSET($_REQUEST["txtWK_name"]))
EXPORT SYSTEM



146
{
$rs=mysql_query("select * from workers WHERE WK_name like
'%".$_REQUEST["txtWK_name"]."%'");
}
?>
<html>
<style type="text/css">
<!--
.style1 {color: #6666FF}
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}

#full-screen-background-image {
z-index: -999;
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}

#wrapper {
position: relative;
width: 800px;
min-height: 400px;
margin: 100px auto;
color: #333;
}
body {
background-image: url(coconuts.jpg);
center center fixed no-repeat;
-moz-background-size: cover;
background-size: cover;
}@media only all and (max-width: 1000px) and (max-height: 7oopx) {
body {
-moz-background-size: 1000px 700px;
background-size: 1000px 700px;
}
}
}
EXPORT SYSTEM



147

-->
</style>
<body>
<form action="Workers_LIST.php" METHOD="GET">
<img alt="" src="file:///cocounts.jpg" id="full-screen-background-image" />
<div id="wrapper">
<div align="center">

<table border=1 align='center'>
<tr>
<td colspan="4">
<input type="text" id="txtWK_name" name="txtWK_name" value="" />
<b>Search by Name</b>
</td>
<td colspan="4" align="center"><a href='Workers.php'><b>Add Workers
Details</b></a></td>
</tr>
<tr>
<td><b>ID</td>
<td><b>Workers. Name</b></td>
<td><b>Workers wages</b></td>
<td><b>Workers Phone</b></td>
<td><b>Workers Address</b></td>
<td><b>Date</b></td>
<td><b>Edit</b></td>
<td><b>Delete</b></td>
</tr>
<?php
$tot=0;
while($row=mysql_fetch_array($rs))
{
?>
<tr>
<td><?php echo $row["WK_id"]; ?></td>
<td><?php echo $row["WK_name"]; ?></td>
<td><?php echo $row["WK_wages"]; ?></td>
<td><?php echo $row["WK_phone"]; ?></td>
<td><?php echo $row["WK_add"]; ?></td>
<td><?php echo $row["WK_date"]; ?></td>
<?php
$tot=$tot+$row["WK_wages"];
?>
<td>
<a href='Workers.php?WK_id=<?php echo $row['WK_id']; ?>'>Edit </a>
</td>
EXPORT SYSTEM



148
<td>
<a href='Workers_delete.php?WK_id=<?php echo $row['WK_id'];
?>'>Delete </a>
</td>
</tr>
<?php
}
?>
<tr>

<td colspan="2" align="right">Total Amount</td>
<td colspan="5" align="left"><?php echo $tot; ?></td>
</tr>
</table>
</div>
</form>
</body>
</html>
PROFIT AND LOSS FORM CODING:

<?php
$con= mysql_connect("localhost","root","","omt");
mysql_select_db("omt");

$exp=0;
$inc=0;
$total=0;
$fdt=0;

$rsqry="select * from porder";
$rspyqry="select * from payment ";
$rs1qry="select * from packing ";
$rspdqry="select * from purchase ";
$rspwqry="select * from workers ";

$rs=mysql_query($rsqry);
$rspy=mysql_query($rspyqry);
$rs1=mysql_query($rs1qry);
$rspd=mysql_query($rspdqry);
$rspw=mysql_query($rspwqry);


if(isset($_GET['txtf_date']) && isset($_REQUEST['txtt_date']))
{
$fdt=$_REQUEST['txtf_date'];
$tdt=$_REQUEST['txtt_date'];
EXPORT SYSTEM



149
$rs=mysql_query($rsqry." where O_date BETWEEN '".$fdt."' AND '".$tdt."'");
$rspy=mysql_query($rspyqry." where Paid_date BETWEEN '".$fdt."' AND '".$tdt."'" );
$rs1=mysql_query($rs1qry." where PK_date BETWEEN '".$fdt."' AND '".$tdt."'");
$rspd=mysql_query($rspdqry." where PU_date BETWEEN '".$fdt."' AND '".$tdt."'");
$rspw=mysql_query($rspwqry." where WK_date BETWEEN '".$fdt."' AND '".$tdt."'");

}
if(isset($_REQUEST['txtt_date']))
{

}
//echo "select * from porder where O_date='".$fdt."'";die();
?>
<html>
<style type="text/css">
<!--
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}

#full-screen-background-image {
z-index: -999;
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}

#wrapper {
position: relative;
width: 800px;
min-height: 400px;
margin: 100px auto;
color: #333;
}
body {
background-image: url(coconuts.jpg);
center center fixed no-repeat;
-moz-background-size: cover;
background-size: cover;
EXPORT SYSTEM



150
}@media only all and (max-width: 1000px) and (max-height: 7oopx) {
body {
-moz-background-size: 1000px 700px;
background-size: 1000px 700px;
}
}
}
body,td,th {
color:#FF00FF ;
}
.style8 {color: #FF00FF}

-->
</style>
<head>
<script>
function setStyle(x)
{
document.getElementById(x).style.background="yellow"
}
</script>
</head>

<body>
<form name="form1" method="get" action="P_l.php">
<img alt="" src="file:///cocounts.jpg" id="full-screen-background-image" />
<div id="wrapper">
<div align="center">
<table width="482" border="0"><span class="style8">
<tr>
<td width="77"><span class="style8">From Date:</span></td>
<td width="157"><label>
<div align="center">
<input name="txtf_date" type="date" >
</div>
</label></td>
<td width="56"><span class="style8">To Date:</span></td>
<td width="164"><label>
<div align="center">

<input name="txtt_date" type="date">
</div>
</label></td>
</tr>
<tr>
<td colspan="4"><label>
EXPORT SYSTEM



151
<div align="center">
<input type="submit" name="Submit" value="Submit">
</div>
</label></td>
</tr>
<tr>
<td colspan="4">
<table align="center" border="1">
<tr>
<td><span class="style8"> Income </span></td>
<td><span class="style8">Expenses </span></td>
</tr>
<tr>
<td><U><span class="style8"> ORDER</span></U>
<table width="200" border="0">
<?php
while($row=mysql_fetch_array($rs))
{
?>
<tr>
<td><span class="style8"><?php
echo $row["P_amount"];
$inc=$inc+$row["P_amount"];
?></span></td>
</tr>
<?php
}
?>
</table >
<br>
<U><span class="style8"> PAYMENT DETAILS</span></U>
<table width="200" border="0">
<?php
while($row=mysql_fetch_array($rspy))
{
?>
<tr>
<td><span class="style8"><?php
echo $row["Paid_amt"];
$inc=$inc+$row["Paid_amt"];
?></span></td>
</tr>
<?php
}
?>
</table ></td>
EXPORT SYSTEM



152
<td><U><span class="style8"> packing</span></U>
<table width="200" border="0">
<?php
while($row=mysql_fetch_array($rs1))
{
?>
<tr>
<td><span class="style8"><?php echo $row["PK_charge"];
$exp=$exp+$row["PK_charge"];
?></span></td>
</tr>
<?php
}
?>
</table>
<br>
<U><span class="style8">PURCHASE DETAILS</span></U>
<table width="200" border="0">
<?php
while($row=mysql_fetch_array($rspd))
{
?>
<tr>
<td><span class="style8"><?php
echo $row["PU_amount"];
$exp=$exp+$row["PU_amount"];
?></span></td>
</tr>
<?php
}
?>
</table >
<br>
<U><span class="style8"> WORKERS DETAILS</span></U>
<table width="200" border="0">
<?php
while($row=mysql_fetch_array($rspw))
{
?>
<tr>
<td><span class="style8"><?php
echo $row["WK_wages"];
$exp=$exp+$row["WK_wages"];
?></span></td>
</tr>
<?php
EXPORT SYSTEM



153
}
?>
</table ></td>
</tr>
<tr>
<td><span class="style8"><?php echo $inc ;?></span></td>
<td><span class="style8"><?php echo $exp ;?></span></td>
</tr>
<tr>
<td colspan="2" align="right"><span class="style8"><?php $total=$inc-$exp;
if ($total>($inc))
{
echo 'Profit'.":"." " .$total;
}
else
{
echo 'loss'.":"." ".$total;
}
?></span></td>
</tr>
</table></td>
</tr>
</table></span>
</div>
</form>
</body>
</html>










EXPORT SYSTEM



154











FUTURE SCOPE AND
FURTHER
ENHANCEMENT OF THE
PROJECT



EXPORT SYSTEM



155








FUTURE SCOPE

This project was developed to fulfill user requirement; however there are lot of scope to improve
the performance of the EXPORT SYSTEM in the area of user interface, database performance,
and query processing time, etc.

So there are many things for future enhancement of this project. The future enhancements that
are possible in the project are as follows:
Web based interface for generate reports, model details for system administrator
Integration with database through Web Services.
Connection to third-party OLAP applications.
In the area of data security and system security.
Provide more online tips and help.
To optimize the query which is embedded in the system


















EXPORT SYSTEM



156

































CONCLUSION







EXPORT SYSTEM



157












CONCLUSION


After completing the project successfully in six months time, we conclude the following:

The main advantage of our project is that it is very user friendly; any users who have
basic computer knowledge can operate it.

Our system is very flexible as there is free flow of data from one form to another.

Cancellation, modification and searching of records can be done easily.

It is an operator interface designed for maximum productivity.





EXPORT SYSTEM



158









REFERENCES




EXPORT SYSTEM



159



REFERENCES

Information provided by Mr. Marimuthu Perumal.

http://en.wikipedia.org/wiki/Software_requirements_specification


http://en.wikipedia.org/wiki/Feasibility_study


http://www.indiamart.com/peripheral-connexions/other-services.html


http://en.wikipedia.org/wiki/Test_case

You might also like