Final Report
Final Report
We would like to thank our internal Guide Mr.V.N.Patil (Principal of Pimpri Chinchwad
University) for providing his valuable assistance throughout the project. We would also like to
thank Prof. D.Saini (Head of Department) for providing facilities and resources for implementation
of the project. Finally, we would like to thank our Pimpri Chinchwad University for supporting us
in developing the idea and approach of implementation of our project.
(Computer Technology)
1
Abstract
The Dairy Product Management System application which deals with maintaining the inventory
details of dairy product like milk, ghee, curd, paneer etc. and the billing process with great ease.
The owners of the dairy shop can solely depend on this application. Many of us want the work
to be done at a faster rate. So, this application will help in reducing the pen paper transaction
to computerized transaction. Even this application can help the small enterprises also. The user
interface must be simple and easy to understand. This application will help in storing the products
records like the dairy product, employee records, and customer records, purchased information in an
easy and well-organized manner. This will be one of the projects that will help the owners of the
dairy shop to maintain the inventory and the billing process with great ease.
The aim of the project is to computerize the operations of collecting the sales details from the
dealer and to book order for their next dispatching. The system is an automated system which
han- dles all the process of the dairy product shop. This system facilitates the manufacturing
company to organize its production schedules depending on the orders that are received from its
recognized dealers
2
Contents
1 Introduction 5
1.1 PROJECT OVERVIEW.............................................................................................................5
1.2 ORGANIZATION PROFILE............................................................................................................6
2 SYSTEM SPECIFICATION 7
2.1 HARDWARE SPECIFICATION...............................................................................................7
2.2 SOFTWARE SPECIFICATION................................................................................................7
2.3 SOFTWARE OVERVIEW.........................................................................................................7
3 SYSTEM ANALYSIS 14
3.1 EXISTING SYSTEM.......................................................................................................................14
3.2 PROPOSED SYSTEM....................................................................................................................15
3.3 FEASIBILITY STUDY............................................................................................................15
4 SYSTEM DESIGN 16
4.1 DATAFLOW DIAGRAM...............................................................................................................16
4.2 INPUT DESIGN..............................................................................................................................19
4.3 OUTPUT DESIGN.........................................................................................................................20
4.4 DATABASE DESIGN.....................................................................................................................21
5 SYSTEM IMPLEMENTATION 23
5.1 IMPLEMENTATION PROCEDURE.....................................................................................23
5.2 USER TRAINING...........................................................................................................................23
5.3 OPERATIONAL DOCUMENTATION.........................................................................................23
6 SYSTEM TESTING 24
6.1 UNIT TESTING..............................................................................................................................24
6.1.1 PERFORMANCE TESTING......................................................................................24
6.1.2 STRESS TESTING.............................................................................................................24
6.2 SYSTEM TESTING........................................................................................................................24
6.3 ACCEPTANCE TESTING.....................................................................................................25
6.4 INTEGRATION TESTING....................................................................................................25
7 CONCLUSION 26
8 BIBLIOGRAPHY 27
8.1 BOOK REFERENCE..............................................................................................................27
8.2 WEBSITE REFERENCE..........................................................................................................27
9 APPENDIX 28
9.1 SCREENSHOTS.............................................................................................................................28
9.1.1 Login Form......................................................................................................................28
9.1.2 Dashboard.............................................................................................................................29
9.1.3 Manage Categories..............................................................................................................29
9.1.4 Add New Product...........................................................................................................30
9.1.5 Add Company Details..................................................................................................30
9.1.6 Manage Companies.............................................................................................................31
3
9.1.7 Add Product....................................................................................................................31
9.1.8 Manage Products...........................................................................................................32
9.1.9 Search Product...............................................................................................................32
9.1.10Shopping Cart.................................................................................................................33
9.1.11Invoices...................................................................................................................................33
9.1.12Reports (Between Dates).............................................................................................34
9.1.13Sales Reports..................................................................................................................34
9.2 SAMPLE SOURCE CODE....................................................................................................35
9.2.1 Index.php...............................................................................................................................35
9.2.2 Invoices.php..........................................................................................................................37
9.2.3 Addproduct.php...................................................................................................................39
4
Chapter 1
Introduction
The software is developed for these depots and the software takes care of stock transferred from
the Head Office to the depots, updating the stock, maintaining the stock, orders placed by the
cus- tomer, and the generation of invoice by the depots to the customer. Customer places his
order in any of these depots and thereafter the software takes care of the invoice generation.
Diary Product Management System is developed using PHP (PHP: Hypertext Preprocessor) and
MySQL. This web-based application works as a simple Dairy Software to maintain daily milk record
by registered account members and maintain reports. The Project is based on the concept of manag-
ing dairy products and their records. The main objective of this website is to automate the
complete operations of the Dairy Distributors office and bring ease between each dairy managers
and the system admin. They need to maintain hundreds of thousands of records. Also searching
should be very faster so they can find required details instantly.
The modules that can be included in mobile shop management system are as follows:
• Employee Module:
The details of the employees like name, address, salary and other details can be maintained
through this application.
• Customer Module:
The details of the customers like name, address, purchased items and many more details can
be maintained with great ease.
• Stocks Module:
The details of the stocks (airy products like Milk, Butter, Ghee, Paneer, Milk Beda etc.) that
are available in the shop can be updated through this application.
• Supplier Module:
The details related to the supplier (Dealers and Distributors) who has supplied the particular
items and products can be stored.
• Purchase Module:
The details of the items that is purchased by the customers and the discounts offered can be
updated through this application.
5
• Sales Module:
The details of the sales that have taken place on the particular day or the month can be
obtained with great ease.
• Report Module:
The reports can also be generated based on the sales records.
• Billing Module:
The billing of the purchased items can be done through this application.
GROUP
We have an enviable history of providing high quality services in the fields of R&D, Design
and Development, Training and HR Consulting in Sivaganga. Our organization has already
established its reputation in offering High quality education in the areas of Engineering, Arts,
Science, and Man- agement Courses.
We have a well-documented quality system, which helps us to monitor measure and analyze our
performance and also to improve our service and delivery standards. We have a dedicated team of
people for monitoring the quality norms.
SERVICES
We dedicate our trainees in Software Development, Human Resource Consulting, Academic As-
sistance and Training.
6
Chapter 2
SYSTEM SPECIFICATION
7
• A script is a set of programming instructions that is interpreted at runtime.
• A scripting language is a language that interprets scripts at runtime. Scripts are usually
embedded into other software environments.
• The purpose of the scripts is usually to enhance the performance or perform routine tasks
for an application.
• Server-side scripts are interpreted on the server while client-side scripts are interpreted by
the client application.
• PHP is a server-side script that is interpreted on the server while JavaScript is an example of
a client-side script that is interpreted by the client browser. Both PHP and JavaScript can be
embedded into HTML pages.
Programming Language Vs Scripting Language
Programming language Scripting language
Has all the features needed to de-
Mostly used for routine tasks.
velop complete applications.
The code has to be compiled before The code is usually, executed with-
it can be executed out compiling
Does not need to be embedded into Is usually embedded into other
other languages software environments.
A PHP file can also contain tags such as HTML and client-side scripts such as JavaScript.
• HTML is an added advantage when learning PHP Language. You can even learn PHP
without knowing HTML but it’s recommended you at least know the basics of HTML.
• Database management systems DBMS for database powered applications.
• For more advanced topics such as interactive applications and web services, you will need
JavaScript and XML.
Characteristics of PHP Five important characteristics make PHPś practical nature possible:
• Simplicity
• Efficiency
• Security
• Flexibility
• Familiarity
8
PHP : Environment Setup
In order to develop and run PHP Web pages three vital components need to be installed on
your computer system.
• Web Server: PHP will work with virtually all Web Server software, including Microsoftś
Internet Information Server (IIS) but then most often used is freely available Apache Server.
• Database: PHP will work with virtually all database software, including Oracle and
Sybase but most commonly used is freely available MySQL database.
• PHP Parser: In order to process PHP script instructions a parser must be installed to
generate HTML output that can be sent to the Web Browser. This tutorial will guide you how
to install PHP parser on your computer.
Database: MySQL
A database is a separate application that stores a collection of data. Each database has one or
more distinct APIs for creating, accessing, managing, searching and replicating the data it holds.
Other kinds of data stores can also be used, such as files on the file system or large hash tables in
memory but data fetching and writing would not be so fast and easy with those type of systems.
Nowadays, we use relational database management systems (RDBMS) to store and manage huge
volume of data. This is called relational database because all the data is stored into different tables
and relations are established using primary keys or other keys known as Foreign Keys.
RDBMS Terminology:
Before we proceed to explain the MySQL database system, let us revise a few definitions related to
the database.
9
• Referential Integrity: Referential Integrity makes sure that a foreign key value always points
to an existing row.
ADVANTAGES OF PHP
Following are the top 10 advantages of PHP which are as follows:
1. Open Source:
PHP is open-source and free of cost, which helps developers to install it quickly and readily
available for use. There are a lot of PHP frameworks and developer can choose any of
the frameworks to work. All the features and tools will be provided to the developer for
that framework easily. As it is open-source, it makes the system ready with PHP in quick
time and makes the web development faster with help of providing the tools and other
features easily.
2. Platform Independent:
PHP is mainly supported by all the operating systems like Windows, Unix, Linux etc. The PHP
based developed web applications can be easily run on any platform. It can be integrated
with other programming language and database easily and there is no requirement of re-
development. It helps in saving a lot of effort and cost.
3. Simple and Easy:
This advantage of PHP is simple and easy to learn and code. It is mainly organized code and
clean, which helps the new developers also. The command functions of PHP can easily learn
and understood. The one who knows any programming language can easily work on PHP. It
is simple to learn, as its learning curve is not large. The syntax is simple and flexible to use.
4. Database:
PHP is easily connected with the database and make the connection securely with databases.
It has a built-in module that is used to connect to the database easily. There are many web
applications, which require strong programming language with a good database
management system. PHP and its database connection solve the purpose for development of
web appli- cations. It reduces the time to connect to a database management system as well.
Multiple databases can be integrated with PHP.
5. Fast:
PHP is known as the fastest Programming language as compared to another. PHP applications
can be easily loaded over the slow Internet and data speed. Other applications take a lot of
time to connect the database and fetch the data after executing certain queries to the database.
PHP does not face this problem and it loads the website very easily and fast. The fast speed
of PHP provides the developer with an edge to develop the web applications in PHP
programming language.
6. Maintenance:
PHP framework is mainly used to make the web application development easier and maintain
the code automatically. The model view controller architecture in PHP framework helps the
code to be easily maintained and used. The MVC architecture helps the separation of a file
for different module separately.
7. Support:
This advantage of PHP has great online support and community, which helps the new devel-
opers to help in writing the code and developing the web applications. The documentation
provided at the official site helps in using the different features of PHP and its framework.
The latest updates are released timely by the PHP to make it better for the developer to
develop the web-based applications.
8. Testing:
PHP based web applications can be easily tested. PHP unit uses to perform the unit testing
quickly and easily. It also helps the programmers to write test cases and perform the testing
smoothly. For PHP based web applications, the developers do not need to write the additional
code. PHP frameworks help in automating the different tasks.
10
9. Security: PHP frameworks built-in feature and tools make it easier to protect the web
ap- plications from the outer attacks and security threats. The security threats can be
like SQL injection, data tampering, and forgery etc. To protect from these security threats,
developers used PHP frameworks for developing web applications.
10. Stable:
PHP is also stable as compared to other programming languages. It has been in existence for a
long time. The developers have worked on PHP to make it easy for the programmers to work
on developing the PHP web-based applications. They have fixed the issues and bugs over the
period of time for the different version of PHP and make it very stable.
HTML:
HTML stands for Hyper Text Markup Language, which is the most widely used language on Web to
develop web pages. HTML was created by Berners-Lee in late 1991 but "HTML 2.0" was the
first standard HTML specification which was published in 1995. HTML 4.01 was a major version of
HTML and it was published in late 1999. Though HTML 4.01 version is widely used but currently
we are having HTML-5 version which is an extension to HTML 4.01, and this version was published
in 2012.
Originally, HTML was developed with the intent of defining the structure of documents like headings,
paragraphs, lists, and so forth to facilitate the sharing of scientific information between
researchers. Now, HTML is being widely used to format web pages with the help of different
tags available in HTML language.
HTML is a MUST for students and working professionals to become a great Software Engineer
especially when they are working in Web Development Domain. We will list down some of the key
advantages of learning HTML:
• Create Web site - You can create a website or customize an existing web template if
you know HTML well.
• Become a web designer - If you want to start a carrer as a professional web designer, HTML
and CSS designing is a must kill.
• Understand web - If you want to optimize your website, to boost its speed and
performance, it is good to know HTML to yield best results.
• Learn other languages - Once you understand the basic of HTML then other related tech-
nologies like javascript, php, or angular are become easier to understand.
Applications of HTML:
As mentioned before, HTML is one of the most widely used languages over the web.
I’m going to list few of them here:
• Web pages development - HTML is used to create pages which are rendered over the web.
Almost every page of web is having html tags in it to render its details in browser.
• Internet Navigation - HTML provides tags which are used to navigate from one page to
another and is heavily used in internet navigation.
• Responsive UI - HTML pages now-a-days works well on all platform, mobile, tabs, desktop
or laptops owing to responsive design strategy.
• Offline support - HTML pages once loaded can be made available offline on the machine
without any need of internet.
• Game development - HTML5 has native support for rich experience and is now useful
in gaming development arena as well.
MySQL Database:
11
MySQL is a fast, easy-to-use RDBMS being used for many small and big businesses. MySQL
is developed, marketed and supported by MySQL AB, which is a Swedish company. MySQL is
becoming so popular because of many good reasons:
• MySQL is released under an open-source license. So you have nothing to pay to use it.
• MySQL is a very powerful program in its own right. It handles a large subset of the
functionality of the most expensive and powerful database packages.
• MySQL uses a standard form of the well-known SQL data language.
• MySQL works on many operating systems and with many languages including PHP, PERL,
C, C++, JAVA, etc.
• MySQL works very quickly and works well even with large data sets.
• MySQL is very friendly to PHP, the most appreciated language for web development.
• MySQL supports large databases, up to 50 million rows or more in a table. The default
file size limit for a table is 4GB, but you can increase this (if your operating system can
handle it) to a theoretical limit of 8 million terabytes (TB).
• MySQL is customizable. The open-source GPL license allows programmers to modify the
MySQL software to fit their own specific environments.
Like previous versions of Windows, Windows 7 has a graphical user interface (GUI) that allows
you to interact with items on the screen using a keyboard and mouse. However, Windows 7 is
also includes a feature called "Windows Touch" that supports touchscreen input and multitouch
functionality. For example, you can right-click a file by touching it with one finger and tapping it
with another. You can also zoom in on an image by touching it with two fingers, then spreading
your fingers apart. Windows 7 is bundled with several touch-ready programs that are designed for
touchscreen use.
Windows 7 also includes several new multimedia features. One example is "Play To," a
program that allows you to stream audio and video to different computers or devices within your
house. The "HomeGroup" feature makes it easy to share media files and other data between
computers. It also makes it possible to share printers on a home network. The "Remote Media
Streaming" feature allows you to access the music, video, and photo libraries on your computer
from remote locations.
The search feature in Windows 7, called "Windows Search," allows you to see results of
searches as soon as you start typing in the search box. Windows Search categorizes the results by
file type and displays text snippets that indicate where the search phrase was found in each result.
After the search results are returned, it is possible to narrow the results by filtering them by date, file
type, file size, and other parameters. You can search local drives, external hard drives, and
networked drives all using the standard Windows Search interface.
12
Features of Windows 7:
As a successor to Windows Vista, Windows 7 has made a major breakthrough in terms of ease of
use. The design of Windows 7 focuses on five key points: the unique design of notebook computers;
the design based on application services; the individuation of users; the optimization of audio-visual
entertainment; and the new engine of user usability.
Windows 7 simplifies many designs, such as fast maximization, half-screen display of windows, Jump
List, rapid system failure repair, etc. These new features make Windows 7 easier to use.
• Simple:
Windows 7 makes it easier to search and use information, including local, network and
Internet search functions. The intuitive user experience will be more advanced. It also
integrates automated application submission and cross-program data transparency.
• Efficiency:
In Windows 7, the search function of system integration is very powerful. As long as the user
opens the start menu and starts to input the search contents, the search function can run
au- tomatically regardless of the application, text documents, etc., which brings great
convenience to the user’s operation.
• Gadget:
Windows 7 gadgets don’t have sidebars like Windows Vista, and they are placed on the desktop
alone, which is convenient and easy to use. However, in September 2012, Microsoft stopped
technical support for downloading Windows 7 gadgets because of serious vulnerabilities in Win-
dows 7 and Windows Vista sidebar platforms. Microsoft has disabled this feature in Windows
8 and subsequent versions.
• Efficient search box:
The search box of Windows Explorer of Windows 7 is on the right side of the menu bar,
which can adjust the width flexible. It can quickly search documents, pictures, programs, etc.
in Windows. The search of the Windows 7 system is dynamic. When you enter the first
word in the search box, the search of Windows 7 has already started, which greatly improves
the search efficiency.
13
Chapter 3
SYSTEM ANALYSIS
A single-user application which is typically found on a desktop computer there is no need for any
access control - the user has access to every function within the application. However, in a multi-user
application which is deployed over numerous devices which are linked together in a network it is more
than likely that not all functionality will be available to all users.
In this situation a method is required to allocate a suitable person for the correct job at
correct time and maintain the authorized process at a place whereby functions within the
application can only be accessed by persons to whom permission has been granted.
It also takes much of time to retrieve particular information and some more man powers are
needed. Manage and maintain large amount of data by a single person is not possible. So many
problems raised, like storage space, maintenance etc. Much of time will be spent for to consolidate for a
group of data, which was needed by the user. Correction or modification of data makes a way for
malfunction.
The following are the reasons why the current system should be computerized:
• To increase efficiency with reduced cost.
• To reduce the burden of paper work.
• To save time management for recording details of each and every member and employee.
• To generate required reports easily.
1. The proposed system is highly secured, because for login the system it requires the
username and password which is different for each department therefore providing each
department a different view of the customer information.
2. It provides wide range of certain criteria in each window the client is working for better and
quicker solution.
3. It maintains report for all criteria and transactions.
4. Manages member information separately for all exercise and employee information
separately for considering the requirements of gym.
5. Stores information about regular products.
6. This system can run on any windows operating system.
All the problems which were denoted in the existing systems were overcome. The data will be
secured with authentication by providing passwords. The retrieval of data is much faster than the
manual process. The user can create their reports within a time. There is no data redundancy,
malfunction, data mismatching. Timely execution and concurrent updating are the advantages of
using this project.
15
Chapter 4
SYSTEM DESIGN
The design of the system is essentially a blue print or a plan for a solution for the system. At the
first level the focus is made which modules are needed for the system and how modules should be
interconnected. This is called system design.
In the second level, the internal design of the modules and how the specification of the module
can be satisfied is decide upon. Thus design level is called detailed design. Since the detailed design
delineates the major characteristics of the system and also its efficiency. A Design methodology is
a systematic approach to create a design by application of a set of techniques and guidelines.
ARCHITECTURAL DESIGN
16
files and data link.
DFD is used to represent the functional relationship of input, process and output values presented by
system. DFD shows how information moves through the system and how it is modified by series of
transformation that are applied as data moves from input to output. DFD may be used to represent
a system at any level of abstraction. A DFD also called context diagram represents entire system
as a single module with input to output data indicated by incoming and outgoing allows respectively.
LEVEL-0:
17
LEVEL-1:
18
LEVEL-2:
OBJECTIVES OF INPUT DESIGN: The quality of system input determines the quality of
system output. Input specification describes the manner in which data enter the system for process-
ing. Input design features can ensure the reliability of the system and produce results from
accurate data, or they can result in the production of erroneous information. The input design also
determines whether the user can interact efficiently with the system.
19
• Effectiveness:
This means that input forms and screens serve specific purposes.
• Accuracy:
Refers to design that assures proper completion.
• Easy to Use:
Means that forms and screens should are straight forward and require no extra time to under-
stand.
• Consistency:
Means that forms and screens should group data of similar nature together.
20
4.4 DATABASE DESIGN
Database Name: MYDB
Table Name: Bill
21
Table Name: Distributor
Field Name Data type Size Description
DbtrId Numeric 15 Distributor Id
Distributor
Dbtrname Varchar 15
Name
Addr Varchar 15 Address
City Varchar 15 City
Phno Numeric 15 Phone number
District Varchar 15 District
Climit Numeric 15 Credit limit
Status Varchar 15 Status
Email –Id Varchar 15 Email –Id
22
Chapter 5
SYSTEM IMPLEMENTATION
Implementation includes all the activity that takes place to convert the old system to the new. The
new system “Dairy Product Management System” is a totally new, replacing existing manual
system, proper implementation is essential to provide a reliable system to meet the organization
requirements.
23
Chapter 6
SYSTEM TESTING
The system “Dairy Product Management System” as a whole was deployed in the PHP and was
tested. The system was found to be working perfect and an end user has been asked to enter the
data, and further the connected systems has been tested with the sample.
In the project, the login details of the user are being verified by various conditions. All the conditions
are satisfied, then after the user go to visit the system project.
This testing was carried out during the programming stage itself.
• Performance Test
• Stress Test
The System testing does not test the module wise, but the integration of each module in the systems.
System testing helps to find in discrepancies between the original objectives of the system.
24
6.3 ACCEPTANCE TESTING
Acceptance testing is done with live data provided by the administrator to ensure that the software
works satisfactorily. Acceptance testing focuses on the external behavior of the system. Giving in-
puts from actual data tested the system and the results were found to be satisfactory.
The inputs are well verified by different conditions at different stages. Suppose the user may give
wrong username or password, then the system will inform the wrong entry. The ID will be
automat- ically generated for to avoid the redundancy and duplication.
Here dairy products are the base of the project. The customer information, other dairy products,
supplier information, sales and purchase information and employee information are maintained under
the same category.
25
Chapter 7
CONCLUSION
The “Dairy Product Management System” is successfully designed and developed to fulfilling the
necessary requirements, as identified in the requirements analysis phase, such as the system is
very much user friendly, form level validation and field level validation are performing very
efficiently.
The new computerized system was found to be much faster and reliable and user friendly then
the existing system, the system has been designed and developed step by step and tested
success- fully. It eliminates the human error that are likely to creep in the kind of working in
which a bulk quantity of data and calculations as to be processed.
The system results in quick retrieval of information that is very vital for the progress any orga-
nization. Cost is minimized in case of stationary. Burden of manual work is reduced as whenever
transaction takes place, there is a no need to record it in many places manually.
26
Chapter 8
BIBLIOGRAPHY
27
Chapter 9
APPENDIX
9.1 SCREENSHOTS
9.1.1 Login Form
28
9.1.2 Dashboard
29
9.1.4 Add New Product
30
9.1.6 Manage Products
31
9.1.8 Shopping Cart
9.1.9 Invoices
32
33
9.2 SAMPLE SOURCE CODE
9.2.1 Index.php
4 $adminuser=$_POST [ ’ username ’ ] ;
5 $password=md5($_POST [ ’ password ’ ] ) ;
10 else {
>" ;
echo "<s c r i p t >window . l o c a t i o n . h r e f =’ dashboard . php’</ s c r i p t >" ;
12 }
13 }
14 ?>
15 <!DOCTYPE html>
28 <body>
34
1 <div c l a s s=" fadeOut ␣item ␣auth−cover−img␣ overlay −wrap" s t y l e="
background−
␣image : u r l ( d i s t / img/ banner1 . png ) ; ">
2 <div c l a s s=" auth−cover−i n f o ␣py−xl −0␣pt −100␣pb−50">
3 <d i v c l a s s=" auth−cover −c o n t e n t ␣ t e x t −c e n t e r ␣w−x xl −75␣w−sm−90␣w−xs
−100">
4 </div>
5 </div>
8 </div>
9 </div>
24 </div>
25 </div>
26 <button c l a s s=" btn ␣btn−warning ␣btn−block " type=" submit " name=" l o g i n
30 </div>
49 </html>
35
9.2.2 Invoices.php
1 <?php session_start () ;
2 // e r r o r _ r e p o r t i n g ( 0 ) ; i n c l u d e ( ’ i n c l ud e s / c o n f i g . php ’) ;
3 i f ( strlen ($_SESSION [ ’ aid ’ ]==0) ) { header ( ’ l o c a t i o n : l og ou t . php ’ ) ;
4 } else {
5 // Code f or d e l e t i o n i f ( i s s e t ($_GET[ ’ de l ’ ] ) ){
6 $cmpid=substr ( base64_decode ($_GET[ ’ d e l ’ ] ) , 0 , −5) ;
’");
echo "<s c r i p t >a l e r t ( ’ Category ␣ rec ord ␣ d e l e t e d . ’ ) ; </ s c r i p t >" ;
8 echo "<s c r i p t >window . l o c a t i o n . h r e f =’manage−c a t e g o r i e s . php’</ s c r i p t
>" ;
9 }
10 ?>
11 <!DOCTYPE html>
35 <div c l a s s="row">
36 <div c l a s s=" col −xl −12">
37 <s e c t i o n c l a s s="hk−sec−wrapper ">
38 <div c l a s s="row">
39 <div c l a s s=" col −sm">
40 <div c l a s s=" table −wrap">
41 <t a b l e id=" datable_1 " c l a s s=" t a b l e ␣ table −hover ␣w−100␣ d i s p l a y
␣pb−30">
36
42 <thead>
43 <tr>
44 <th>#</t h>
45 <th>In v o c i e Number</th>
37
1 <th>Customer Name</th>
2 <th>Customer Contact no. </ th>
3 <th>Payment Mode</th>
4 <th>In v o i c e Gen . Date</th>
5 <th>Action </th>
10 {
11 ?>
12 <tr>
23 </tr>
24 <?php
25 $cnt++;
26 } ?>
27 </div>
29 </div>
. j s "></ s c r i p t >
38 <s c r i p t s r c=" vendors / d a t a t a b l e s . net−buttons−bs4 / j s / buttons .
38
1 <s c r i p t s r c=" vendors / d a t a t a b l e s . net−r e s p o n s i v e / j s / data Tables . r e s p o n
s i v e . min . j s "></ s c r i p t >
2 <s c r i p t s r c=" d i s t / j s / data Tables−data . j s "></ s c r i p t >
3 <s c r i p t s r c=" d i s t / j s / f e a t h e r . min . j s "></ s c r i p t >
4 <s c r i p t s r c=" d i s t / j s / dropdown−bootstrap −extended . j s "></ s c r i p t >
5 <s c r i p t s r c=" vendors / jquery−t o g g l e s / t o g g l e s . min . j s "></ s c r i p t >
6 <s c r i p t s r c=" d i s t / j s / toggle −data . j s "></ s c r i p t >
7 <s c r i p t s r c=" d i s t / j s / i n i t . j s "></ s c r i p t >
9.2.3 Addproduct.php
1 <?php session_start () ;
2 // e r r o r _ r e p o r t i n g ( 0 ) ; i n c l u d e ( ’ i n c l ud e s / c o n f i g . php ’) ;
3 i f ( strlen ($_SESSION [ ’ aid ’ ]==0) ) { header ( ’ l o c a t i o n : l og ou t . php ’ ) ;
4 } else {
5 // Add product Code i f ( i s s e t ($_POST[ ’ submit ’ ] ) )
6 {
9 $company=$_POST [ ’ company ’ ] ;
10 $pname=$_POST [ ’ productname ’ ] ;
11 $ p p r i c e=$_POST [ ’ p r o d u c t p r i c e ’ ] ;
18 }
19 ?>
20 <!DOCTYPE html>
30 <body>
39
1 <!−− Breadcrumb −−>
2 <nav c l a s s="hk−breadcrumb" aria −l a b e l=" breadcrumb">
3 <o l c l a s s=" breadcrumb␣breadcrumb−l i g h t ␣bg−tr a n s p a r e n t ">
4 < l i c l a s s=" breadcrumb−item "><a h r e f="#">Product</a></ l i >
5 < l i c l a s s=" breadcrumb−item ␣ a c t i v e " aria −current=" page ">Add</ l i >
6 <div c l a s s="row">
7 <div c l a s s=" col −sm">
8 <form c l a s s=" needs−v a l i d a t i o n " method=" post " n o v a l i d a t e >
9 <div c l a s s=" form−row">
10 <div c l a s s=" col −md−6␣mb−10">
11 <l a b e l for=" validation Custom 03 ">Category </ l a b e l >
12 < s e l e c t c l a s s=" form−c o n t r o l ␣ custom−s e l e c t " name=" c a t e g o r y " r e q u i r e d
>
13 <option value="">S e l e c t category </option>
14 <?php
while (
$row=my s q li _fetch _ array ( $ r e t ) )
16 {?>
19 <?php } ?>
20 </ s e l e c t >
23 </div>
34 <?php } ?>
35 </ s e l e c t >
38 </div>
45 </div>
41
1 <button c l a s s=" btn ␣btn−primary " type=" submit " name=" submit ">Submit</
button>
2 </form>
3 </div>
4 </div>
5 </ s e c t i o n >
8 <?php
9 include_once ( ’ i n c l u d e s / f o o t e r . php ’ ) ;
10 ?>
12 </div>
13 </div>
26 </html>
27 <?php
28 }
29 ?>
42