0% found this document useful (0 votes)
19 views37 pages

DMS Report

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 37

Dairy management system

DAIRY MANAGEMENT SYSTEM


Chapter 1

1. Introduction
This chapter gives a brief theoretical preview upon the database information systems and goes
through the essence of the problem that should be resolved using this system.

1.1 Background
Most of the contemporary Information systems are based on the Database technology as a
collection of logically related data, and DBMS as a software system allowing the users to
define, create, maintain and control access to the database. The process of constructing such
kind of systems is not so simple. It involves a mutual development of application program and
database. The application program is actually the bridge between the users and the database,
where the data is stored. Thus, the well-developed application program and database are very
important for the reliability, flexibility and functionality of the system. The so defined systems
differentiate to each other and their development comprises a great variety of tasks to be
resolved and implemented.

Our system mainly involves two interfaces one for the admin that is one who handles the system
and a user interface for the customers, each of them are provided with their own set of
permissions.

Admin has a prime role and is allowed to access and modify all kinds of data where as user is
allowed only to view the data. This was made possible by connecting both Admin and User
interfaces to same database.

This dairy management system is a powerful software that helps farmers and dairy operators
to manage their dairy farm operations. It can be used to track and manage various aspects of
the dairy, such as categories of milk involved, companies listed, products available and
financial sales management. The system is great for financial management, mainly for record-
keeping, invoicing, and budgeting.

The basic idea can be depicted on Figure 1.1 below:

Department of computer science and Engineering, Nidasoshi Page 1


Dairy management system

Information system suggests a computer technology to be used in order to provide information


to users in an organization (for instance), as for the purposes of data transformation into useful
information; computer hardware and software are designed and used [2].
A particular case is the Human Resources Information System development. This kind of
system are responsible for storing data of the users and companies and generating reports upon
request. Such kind of system could be integrated with other Information systems or modules:
Accounting Information System (AIS) – designed to transform financial data into information,
or Management Information System (MIS) that provides decision-oriented information to
admins, and so on…
“Organizations depend on Information Systems in order to stay competitive.
Productivity, which is crucial to staying competitive, can be increased through better
Information Systems.” [2]

1.2 Problem Statement


This report’s documentation goes through the whole process of both application program and
database development. It also comprises the development tools have been utilized for these
purposes

Department of computer science and Engineering, Nidasoshi Page 2


Dairy management system

1.1 Problem Discussion


This system should consist of an application program, on one hand, and a database (repository
of data) on the other. The program should perform the basic operations upon the database as
retrieving, inserting, updating and deleting data. Any additional functionality is a goal of a
further module development.
It is a kind of strategy to start the development from designing and constructing the database,
as this structure will determine the further structure of the application program. The logical
database model (tables, their content and the relationships between them) should respond to the
given task and cover the basic requirements. The Interface of the program should be user-
friendly, and the program should be as easy for use as it is possible. Both controls and forms
should logically and functionally be related within the program and fully respond to the
structure of the database.

Another problem is establishing the connections with the database, every time, when a query
is needed to be performed upon it. Exception-handling should also be taken into an account
during the system’s development due to eventual exceptions that may occur.

1.1 Report Overview


The next chapter and its subsections will turn the attention to the method for resolving the
problem, the programming environments used for developing the system and the
implementation of the operations performed upon the database.

Department of computer science and Engineering, Nidasoshi Page 3


Dairy management system
Chapter 2

2. Problem’s Solution
This chapter involves some subsections that concern the basic scheme of resolving the given
task and comprise both the methods and tools of its development as well

2.1 Method
At the very commencement, I proceeded to a decision to carry out the development of my
task into the following steps:
1. Exploring the available development environments and techniques.
2. Database Analyzing.
3. Database design and Implementation.
4. Program’s Structure Analyzing.
5. GUI (Graphical User Interface) constructing.
6. Bringing all the stuff together (controls data binding and functions implementation).
7. Tests each one of these steps could be explained in some brief details as follows:
1. Exploring the available development environments and techniques
There is a lot of programming environments available to be used for such kind of elaborations.
The point is to choose such an environment that we will be able to operate with in a convenient
and easy way. This is more or less optional and individual process, that depends on the
developer’s experience as well.
2. Database Analyzing
It concerns all of the demands, put upon the database content and its functionality. The database
should be designed and implemented in a way that the user would expect it to be.
3. Database design and Implementation
This step is tightly related with the previous one as it is completely determined by the
requirements, analyzed and discussed in step2.
4. Program’s Structure Analyzing
The application program as an interface between the users and the database should be an
accurate “reflection” of the database on the screen; hence a well analyzed and defined structure
is needed.

Department of computer science and Engineering, Nidasoshi Page 4


Dairy management system

5. GUI Constructing
After analyzing the program’s structure and defining what it should consist of, a graphical
representation of this stuff is needed in order to enable the user to interact with the data.
6. Bringing all the stuff together
The next step that should be taken is connecting the program with the database and
performing the necessary functionality upon all of the controls.
7. Tests
To ensure that everything works properly and as it has been expected, test performance has to
be done upon the system’s functionality.

2.2 Programming Environments

• Database Environment: Access is a typical environment for constructing relational


databases. The database is the skeleton and the underlying framework of most of the
contemporary Information Systems. The evolution of the Database systems could be
divided into three phases: the Manual-filing System, the File-based systems, and the
Database and the Database Management systems (DBMS).
o The manual-filing system contains files of information, related to a project, product,
task, client, or employee and they are usually labeled and stored in one or more cabinets.
The cabinets may be located in the secure area of the building, for safety. To facilitate
the process of searching and to find out what we want, more quickly, the different types
of item can be put in separate folders and they remain logically related. Actually, the
needs of the contemporary industrial world could not be covered or satisfied by using
such kind of systems, and especially what concerns their reliability and efficiency.
o Thus, we historically reach to the second phase of the Database systems evolution –
the File-based systems. This kind of systems had been developed in response to the
needs and demands of industry for a more efficient data access [1]. The basic idea into
the development of this type of systems, is that each Department in an organization
(for instance) has an access to its own data (files) through application programs.

Department of computer science and Engineering, Nidasoshi Page 5


Dairy management system

• Proposed System

➢ User Friendly: The proposed system is user friendly because the retrieval and storing
of data is fast and data is maintained efficiently. Moreover, the graphical user interface
is provided in the proposed system, which provides user to deal with the system very
easily.

➢ Reports are easily generated: reports can be easily generated in the proposed system
so user can generate the report as per the requirement (monthly) or in the middle of the
session. User can give the notice to the students so he/she become regular.

➢ Very less paper work: The proposed system requires very less paper work. All the
data is feted into the computer immediately and reports can be generated through
computers. Moreover, work become very easy because there is no need to keep data on
papers.

➢ More secure: This is more secure because the Employee has their Login Id and
password.
The other advantages are:
• Availability of the information immediately after data captures.
• An integrated normalized relational database will be maintained for the process.
• Pre-defined queries for generation of any specific enquiry purposes.

Department of computer science and Engineering, Nidasoshi Page 6


Dairy management system

Chapter 3
3. SYSTEM REQUIREMENTS

3.1 FUNCTIONAL REQUIREMENTS:


▪ HARDWARE REQUIREMENTS:

PROCESSOR: Intel Pentium 4 or above


RAM: 512 MB Min
HARD DISK: 40 GB min

▪ SOFTWARE REQUIREMENTS:

OPERATING SYSTEM : Windows 7 or higher


LANGUAGE (Server Side): PHP
WEB TECHNOLOGY : HTML, CSS, JAVA SCRIPT
WEB SERVER : Apache
BACK END : MySQL

3.2 NON-FUNCTIONAL REQUIREMENTS:

The non-functional requirements arise through user needs, because of budget


constraints, because of organizational policies, with other software or hardware system. The
non-functional requirements come from required characteristics of the software, the
organization developing the software or the external sources.
Following are the non-functional requirements
1. Performance: It step by step procedure and Response time is high.

2. Scalability: The application is a high performance, energy efficient, reliable and secure
infrastructure.

3. Maintainability: Very low maintenance for this application as is built only for a particular
store. It works very faster with huge storage.

4. Availability: It supports all types of browsers and as it is online application, it is available


for users anywhere and at any time.

Department of computer science and Engineering, Nidasoshi Page 7


Dairy management system

Chapter 4

4.System overview
The Dairy Management System (DMS) provides a complete information system
for your milk. It can be used as a “stand alone” customer tracking system or it can be integrated
with other P&NP software such as Payroll. Unlike “off the shelf human resource software that
requires extensive setup time for nursing home use, DMS was specifically designed for milk
requirements. The Dairy Management System is a modular system. Its core is the Customer
Demographic Module. Once entered, all demographic and historical data are available to the
cow and buffalo fat rate, Staff Scheduling, In service Tracking, Time Clock System, and
Payroll modules. You may either buy just the modules you need or the entire package.

General Features: A comprehensive, expandable system that supports multiple companies at


once. Contains a Document Management and Imaging system for storing either digital
photographs or scanned images that can be stored in each employee's record. Allows for many
report configurations which can be pre-viewed on the screen, printed, saved to a file or exported
into a spreadsheet or word processing application. Configuring units, positions, training events,
tracking employee health, etc. is quick and easy. Allows a customer to be assigned to multiple
positions and jobs to accommodate all facility staffing requirements.

Default selection screens list only active customer with the option to also view those who have
been takes. Direct update from P&NP Payroll. We currently have an interface with Paychex,
Inc. to import employee demo-graphics into EMS and export time card data to their system for
processing. Other third-party payroll interfaces are available at extra cost.

Department of computer science and Engineering, Nidasoshi Page 8


Dairy management system

Chapter 5

Schema diagram:

Department of computer science and Engineering, Nidasoshi Page 9


Dairy management system

ER-DIAGRAM:

Department of computer science and Engineering, Nidasoshi Page 10


Dairy management system

4.1 TABLE DESCRIPTION

Database dms

Table structure for table tbluser

Column Type Null Default


ID int(5) No
UserName varchar(45) Yes NULL
Usename char(45) Yes NULL
MobileNumber bigint(11) Yes NULL
Email varchar(120) Yes NULL
Password varchar(120) Yes NULL
AdminRegdate timestamp Yes current_timestamp()
UpdationDate timestamp Yes NULL

Data in table tbluser

ADMI 2022-12-23
1 admin 1234567899 [email protected] f925916e2754e5e03f75dd58a5733251
N 00:00:00
2022-12-23
2 Suraj Suraj 8975624331 [email protected] f925916e2754e5e03f75dd58a5733251
00:00:00
2022-12-23
3 Sushil Sushil 9481544777 [email protected] 41edd4833f5892a500f53f7ae6761aed
00:00:00
2022-12-23
4 Sachin Sachin 9845673421 [email protected] f925916e2754e5e03f75dd58a5733251
00:00:00
2022-12-23
5 Mani Mani 8543534324 [email protected] f925916e2754e5e03f75dd58a5733251
00:00:00

Table structure for table tblcategory

Column Type Null Default


id int(11) No
CategoryName varchar(200) Yes NULL
CategoryCode varchar(50) Yes NULL
Quantity int(20) Yes NULL

Department of computer science and Engineering, Nidasoshi Page 14


Dairy management system

Data in table tblcategory

1 Buffalo Milk M01 60


2 Cow Milk M02 50
3 Goat Milk M03 38
4 Sheep Milk M04 29
8 Mixed Milk M05 25
9 Camel Milk M06 10

Table structure for table tblcompany

Column Type Null Default


id int(11) No
CompanyName varchar(150) Yes NULL
PriceOffered int(11) Yes NULL

Data in table tblcompany

1 Gokul Milk 45
2 Nandini Milk 45
3 Govind Milk 42
4 KMF 40
11 AMUL 50

Table structure for table tblorders

Column Type Null Default


id int(11) No
ProductId int(11) Yes NULL
Quantity int(11) Yes NULL
InvoiceNumber int(11) Yes NULL
CustomerName varchar(150) Yes NULL
CustomerContactNo int(30) Yes NULL
PaymentMode varchar(100) Yes NULL
InvoiceGenDate timestamp Yes current_timestamp()

Department of computer science and Engineering, Nidasoshi Page 15


Dairy management system

Data in table tblorders

1 4 2 753947547 Anuj 2147483647 cash 2023-01-17 14:02:47


2 1 1 979148350 Sanjeen 1234567890 card 2023-01-17 14:02:47
3 1 1 861354457 Rahul 2147483647 cash 2023-01-17 14:02:47
4 5 1 276794782 Sarita 1122334455 cash 2023-01-17 14:02:47
5 6 2 744608164 Babu 123458962 UPI 2023-01-17 14:02:47
6 5 1 139640585 Samarth 2147483647 cash 2023-01-17 14:02:47
7 8 1 466380948 SUSHIL 2147483647 card 2023-01-19 20:57:29
8 5 1 535090008 Vishal 2147483647 card 2023-01-21 00:50:25
9 5 1 766095921 Vishal 12345 card 2023-01-21 00:52:27
10 7 1 269439811 ruhitesh 2147483647 UPI 2023-01-21 00:52:43
11 8 1 179715420 sushil 2147483647 UPI 2023-01-21 00:53:39
12 2 5 352104410 shweta 2147483647 UPI 2023-01-21 11:23:34
13 2 5 384333879 sachin 2147483647 UPI 2023-01-21 11:29:38
14 2 1 192072316 mani 88767575 cash 2023-01-21 12:46:26
15 2 1 167713144 sachin 6226522 UPI 2023-01-21 12:50:05

Table structure for table tblproducts

Column Type Null Default


id int(11) No
CategoryName varchar(150) Yes NULL
ProductName varchar(150) Yes NULL
ProductPrice decimal(10,0) Yes current_timestamp()
UpdationDate timestamp Yes NULL

Data in table tblproducts

1 Buffalo Milk 500ml 28 2023-01-17 14:02:47


2 Buffalo Milk 1ltr 55 2023-01-17 12:02:47
3 Cow Milk 500ml 25 2023-01-17 13:02:47
4 Cow Milk 1ltr 50 2023-01-17 15:02:47
5 Goat Milk 500ml 23 2023-01-17 16:02:47
6 Goat Milk 1ltr 46 2023-01-17 18:02:47
7 Sheep Milk 500ml 23 2023-01-17 07:02:47
8 Sheep Milk 1ltr 45 2023-01-17 08:02:47
9 Mixed Milk 500ml 22 2023-01-17 09:02:47
10 Mixed Milk 1ltr 40 2023-01-17 11:02:47

Department of computer science and Engineering, Nidasoshi Page 16


Dairy management system

5.2 NORMALIZATION:

Normalization is a database technique that is used to organize tables in a manner that reduces redundancy
and dependency of data. Normalization is a scientific process of decomposing complex tables into smaller
and easily manageable tables. It is used to access data accurately from the database. Without
normalization, the database can be redundant, slow, inaccurate and inefficient. They might not produce
the expected data.
In the work, there exist such situation in table where the table accesses the cust_id from tables. This
situation leads to redundancy. This redundant data reduces the efficiency of the system and unnecessarily
wastes system memory to save the same data multiple times

Department of computer science and Engineering, Nidasoshi Page 17


Dairy management system

Chapter 6

5. DETAILS OF TECHNOLOGIES USED

5.1 APACHE WEB SERVER:

Apache HTTP Server, colloquially called Apache, is free and open-source cross-
platform web server software, released under the terms of Apache License 2.0. .......Originally
based on the NCSA HTTP server, development of Apache began in early 1995 after work on
the NCSA code stalled.

Apache is developed and maintained by an open community of developers under the


auspices of the Apache Software Foundation.

The Apache HTTP Server is cross-platform; as of 1 June 2017 92% of Apache HTTPS
Server copies run on Linux distributions. Version 2.0 improved support for non-Unix operating
systems such as Windows and OS/2.Old versions of Apache were ported to run on OpenVMS
and NetWare.

Originally based on the NCSA HTTP server, development of Apache began in early
1995 after work on the NCSA code stalled. Apache played a key role in the initial growth of
the World Wide Web, quickly overtaking NCSA HTTP as the dominant HTTP server, and has
remained most popular since April 1996. In 2009, it became the first web server software to
serve more than 100 million websites. As of July 2016, was estimated to serve 46% of all active
websites and 43% of the top million websites.

Instead of implementing a single architecture, Apache provides a variety of


Multiprocessing Modules (MPMs), which allow Apache to run in a process-based, hybrid.
(process and thread) or event-hybrid mode, to better match the demands of each particular
infrastructure. This implies that the choice of correct MPM and the correct configuration is
important. Where compromises in performance need to be made, the design of Apache is to
reduce latency and increase throughput, relative to simply handling more requests, thus
ensuring consistent and reliable processing of requests within reasonable time-frames.

Department of computer science and Engineering, Nidasoshi Page 18


Dairy management system

For delivery of static pages, Apache 2.2 series was considered significantly slower than
nginx and varnish. To address this issue, the Apache developers created the Event MPM, which
mixes the use of several processes and several threads per process in an asynchronous event-based
loop. This architecture, and the way it was implemented in the Apache 2.4 series, provides for
performance equivalent or slightly better than event-based web servers, as is cited by Jim Jagielski
and other independent sources. However, some independent, but significantly outdated,
benchmarks show that it still is half as fast as nginx.

MySQL:

MySQL is an open-source relational database management system(RDBMS). The


MySQL development project has made its source code available under the terms of the GNU
General Public License, as well as under a variety of proprietary agreements. MySQL was
owned and sponsored by a single for-profit firm, the Swedish company MySQL AB, now
owned by Oracle Corporation. For proprietary use, several paid editions are available, and offer
additional functionality.

Department of computer science and Engineering, Nidasoshi Page 19


Dairy management system

MySQL is a central component of the LAMP open-source web application software stack.
LAMP is an acronym for "Linux, Apache, MySQL, Perl/PHP/Python". Applications that use
the MySQL database include: TYPO3, MoD, Joomla, WordPress, phpBB, MyBB, and Drupal.
MySQL is also used in many high-profile, large-scale websites,

also used in many high-profile, large-scale websites,


including Google, Facebook, Twitter, Flickr, and YouTube.

MySQL is written in C and C++. Its SQL parser is written in yacc, but it uses a home
brewed lexical analyzer. MySQL works on many system platforms, including AIX, BSDi,
FreeBSD, HP-UX, eComStation, i5/OS, IRIX, Linux, macOS, Microsoft, Windows, NetBSD,
Novell Netware, OpenBSD, Open Solaris, OS/2 Wrap, QNX, Oracle Solaris, Symbian, Sun
OS, SCO OpenServer, SCO UnixWare, Sanos, Tru64. A port of MySQL to OpenVMS
also exists.

MySQL has received positive reviews, and reviewers noticed it "performs extremely
well in the average case" and that the "developer interfaces are there, and the documentation is
very, very good". It has also been tested to be a "fast, stable and true multi-user, multi- threaded
sql database server"

MySQL can be built and installed manually from source code, but it is more commonly
installed from a binary package unless special customizations are required. On most Linux
distributions, the package management system can download and install MySQL with minimal
effort, though further configuration is often required to adjust security and optimization
settings.

Though MySQL began as a low-end alternative to more powerful proprietary databases,


it has gradually evolved to support higher-scale needs as well. It is still most commonly used
in small to medium scale single-server deployments, either as a component in a LAMP-based
web application or as a standalone database server. Much of MySQL's appeal originates in its
relative simplicity and ease of use, which is enabled by an ecosystem of open source tools such
as phpMyAdmin. In the medium range, MySQL can be scaled by deploying it on more
powerful hardware, such as a multi-processor server with gigabytes of memory.

Department of computer science and Engineering, Nidasoshi Page 20


Dairy management system

PHP:

PHP is a general-purpose scripting language that is especially suited to server-side web


development, in which case PHP generally runs on a web server. Any PHPcode in a requested
file is executed by the PHP runtime, usually to create dynamic web page content or dynamic
images used on websites or elsewhere.

PHP originally stood for Personal Home Page, but it now stands for the recursive
acronym PHP: Hypertext Preprocessor.

PHP code may be embedded into HTML or HTML5 markup, or it can be used in
combination with various web template systems, web content management systems and web
frameworks. PHP code is usually processed by a PHP interpreter implemented as a module in
the web server or as a Common Gateway Interface (CGI) executable. The web server
software combines the results of the interpreted and executed PHP code, which may be any
type of data, including images, with the generated web page. PHP code may also be executed
with a command-line interface (CLI) and can be used to implement standalone
graphical applications.

The standard PHP interpreter, powered by the Zend Engine, is free software released
under the PHP License. PHP has been widely ported and can be deployed on most web servers
on almost every operating system and platform, free of charge

The PHP interpreter only executes PHP code within its delimiters. Anything outside its
delimiters is not processed by PHP, although non-PHP text is still subject to control structures
described in PHP code. The most common delimiters are <?php to open and ?> to close PHP
sections. The shortened form <? also exists. This short delimiter makes script files less portable,
since support for them can be disabled in the local PHP configuration and it is therefore
discouraged.

The first form of delimiters, <?php and ?>, in XHTML and other XML documents,
creates correctly formed XML processing instructions. This means that the resulting mixture
of PHP code and other markup in the server-side file is itself well-formed XML.

Variables are prefixed with a dollar symbol, and a type does not need to be specified in advance.
PHP 5 introduced type hinting that allows functions to force their parameters to be

Department of computer science and Engineering, Nidasoshi Page 21


Dairy management system

objects of a specific class, arrays, interfaces or callback functions. However, before PHP 7.0,
type hints could not be used with scalar types such as integer or string.[53]

Unlike function and class names, variable names are case sensitive. Both double-quoted ("")
and heredoc strings provide the ability to interpolate a variable's value into the string.[96]PHP
treats newlines as whitespace in the manner of a free-form language, and statements are
terminated by a semicolon. PHP has three types of comment syntax: /* */ marks block and
inline comments; // as well as # are used for one-line comments. The echo statement is one of
several facilities PHP provides to output text, e.g., to a web browser.

In terms of keywords and language syntax, PHP is similar to the C style syntax.
if conditions, for and while loops, and function returns are similar in syntax to languages such
as C, C++, C#, Java and Perl.

The following is an example of PHP for loop:

5.2 CASCADING STYLE SHEET: HTML:

Receive HTML documents from a web server or from local storage and render
Hypertext Markup Language (HTML) is the standard markup language for creating web pages
and web applications. With Cascading Style Sheets (CSS) and JavaScript it forms a triad of
cornerstone technologies for the World Wide Web. Web browsers them into multimedia web
pages. HTML describes the structure of a web page semantically and originally included cues
for the appearance of the document.

Department of computer science and Engineering, Nidasoshi Page 22


Dairy management system

HTML elements are the building blocks of HTML pages. With HTML constructs,
images and other objects, such as forms, may be embedded into the rendered page. It provides
a means to create structured documents by denoting structural semantics for text such as
headings, paragraphs, lists, links, quotes and other items. HTML elements are delineated by
tags, written using angle brackets. Tags such as <img>and<input >introduce content into the
page directly. Others such as<p> ... </p>surround and provide information about document text
and may include other tags as sub-elements. Browsers do not display the HTML tags, but use
them to interpret the content of the page.

HTML can embed programs written in a scripting language such as JavaScript which affect the
behavior and content of web pages. Inclusion of CSS defines the look and layout of content.
The World Wide Web Consortium (W3C),

maintainer of both the HTML and the CSS standards, has encouraged the use of CSS
over explicit presentational HTML.

The following is an example of the classic "Hello, World!" program, a common test
employed for comparing programming languages, scripting languages and markup languages.

Cascading Style Sheets (CSS) is a style sheet language used for describing the
presentation of a document written in a markup language. Although most often used to set the
visual style of web pages and user interfaces written in HTML and XHTML, the language can
be applied to any XML document, including plain XML, SVG and XUL, and is applicable to
rendering in speech, or on other media. Along with HTML and JavaScript, CSS is a cornerstone
technology used by most websites to create visually engaging webpages, user interfaces for
web applications, and user interfaces for many mobile applications.

Department of computer science and Engineering, Nidasoshi Page 23


Dairy management system

CSS is designed primarily to enable the separation of presentation and content,


including aspects such as the layout, colors, and fonts. This separation can improve content
accessibility, provide more flexibility and control in the specification of presentation
characteristics, enable multiple HTML pages to share formatting by specifying the relevant
CSS in a separate .CSS file, and reduce complexity and repetition in the structural content.

Separation of formatting and content makes it possible to present the same markup

Separation of formatting and content makes it possible to present the same markup page
in different styles for different rendering methods, such as on-screen, in print, by voice, and on
Braille-based tactile devices. It can also display the web page differently depending on the
screen size or viewing device. Readers can also specify a different style sheet, such as a CSS
file stored on their own computer, to override the one the author specified.

Changes to the graphic design of a document (or hundreds of documents) can be applied
quickly and easily, by editing a few lines in the CSS file they use, rather than by changing
markup in the documents.

The CSS specification describes a priority scheme to determine which style rules apply
if more than one rule matches against a particular element. In this so-called cascade, priorities
are calculated and assigned to rules, so that the results are predictable.

The following example shows the style element that gives red colour to fonts:

JAVASCRIPT:

JavaScript often abbreviated as JS, is a high-level, dynamic, weakly typed, prototype- based,
multi-paradigm, and interpreted programming language. Alongside HTML and CSS, JavaScript
is one of the three core technologies of World Wide Webcontent production. It is used to
make webpages interactive and provide online programs, including video games. The majority
of websites employ it, and all modern web browsers support it without the need for plug-ins
by means of a built-in JavaScript engine. Each of the many JavaScript engines represent a
different implementation of JavaScript, all based on

Department of computer science and Engineering, Nidasoshi Page 24


Dairy management system

the ECMAScript specification, with some engines not supporting the spec fully, and with
many engines supporting additional features beyond ECMA.

As a multi-paradigm language, JavaScript supports event-driven, functional, and


imperative programming styles. It has an API for working with text, arrays, dates, regular
expressions, and basic manipulation of the DOM, but the language itself does not include any
I/O, such as networking, storage, or graphics facilities, relying for these upon the host
environment in which it is embedded.

Initially only implemented client-side in web browsers, JavaScript engines are now
embedded in many other types of host software, including server-side in web servers and
databases, and in non-web programs such as word processors and PDF software, and in runtime
environments that make JavaScript available for writing mobile and desktop applications,
including desktop widgets.

Although there are strong outward similarities between JavaScript and Java, including
language name, syntax, and respective standard libraries, the two languages are distinct and
differ greatly in design; JavaScript was influenced by programming languages such as Self and
Scheme.

Pseudo Code
Pseudocode is an informal high-level description of the operating principle of a
computer program or other algorithm. It uses the structural conventions of a
normal programming language, but is intended for human reading rather than
machine reading.

Algorithm for
Admin login Step
1: BEGIN
Step 2: Enter username and password
Step 3: Verify the credentials
Step 4: If Data match, then proceed to the Admin List page Else show login
failed
Step 5: End if Step 6: END

Department of computer science and Engineering, Nidasoshi Page 25


Dairy management system

Algorithm for user

Sign-up

Steps 1: BEGIN

Step 2: Enter the user details

Step 3: If details are correct then create User Account Else

show invalid date failed to create account.

Step 4: End if

Step 5: END

Algorithm for Users


login

Step 1: BEGIN
Step 2: Enter username and password
Step 3: Verify the credentials from User Table
Step 4: If Credentials match, then proceed to the Customer
List page Else show login failed
Step 5: End if Step 6: END

Algorithm for Data fetching from


database
Step1: BEGIN
Step 2: Establish connection with the database using the username and password of the
database.
Step 3: Define Associative Array to return all the values from the
method passed. Step 4: Define the select query to retrieve all the values
from the DBMS
Step 5: Pass all the values into the associative array variable.
Step 6: Use php to extract the data from the associative array and display in appropriate
format. Step 7: END

Department of computer science and Engineering, Nidasoshi Page 26


Dairy management system

Algorithm for Insertion

Step 1: BEGIN
Step 2: Get all the necessary values required for insertion into variable defined in the method.
Step 3: Prepare the SQL statement using PDO. This is done to prevent SQL Injection attacks into
our system.
Step 4: Define the query for insertion as stated above.
Step 5: Execute the Query using the exucute() method provided by the
PDO object.

Step 6: END

Algorithm for updating


Step 1: BEGIN
Step 2: Get all the necessary values required for updating the values into the variable
defined in the method.
Step 3: Prepare the SQL statement using PDO. This is done to prevent SQL Injection
attacks into our system.
Step 4: Define the Query for Updating as stated above.
Step 5: Execute the Query using the exucute() method provided by the PDO
object.

Step 6: END

Algorithm for Deletion


Step 1: BEGIN
Step 2: Get the primary key of the item which is to be deleted into a variable defined in
the method.
Step 3: Define the Query for deleting as stated above.
Step 3: Prepare the SQL statement using PDO. This is done to prevent SQL Injection
attacks into our system.

Step 5: END

Department of computer science and Engineering, Nidasoshi Page 27


Dairy management system

Conclusion:
The Dairy organization information system has been developed for aim of dairy enterprise
people or to manage their Dairy basis or and business activities that is taking place in their
dairy routine, the system comprises of the programming languages VB. Net and SQL server
2005 in process of store data in tables which has been create in SQL server. In term of the
previous old system do use papers on writing information in that paper, but per now we have
get new technology that has come to assist us and make thing easily for dairy organization to
make their record on database procedure as save data on it and therefore, they should use
for memory use in future as for in monthly or as daily report to make think easy.

Department of computer science and Engineering, Nidasoshi Page 28


Dairy management system

Chapter 7

RESULTS:

WEB PAGE:

ADMIN LOGIN PAGE:

Department of computer science and Engineering, Nidasoshi Page 29


Dairy management system

ADMIN DASHBOARD:

ADDING CATEGORIES:

Department of computer science and Engineering, Nidasoshi Page 30


Dairy management system

MANAGING CATEGORIES:

ADDING COMPANY:

Department of computer science and Engineering, Nidasoshi Page 31


Dairy management system

MANAGING COMPANIES:

ADDING PRODUCTS:

Department of computer science and Engineering, Nidasoshi Page 32


Dairy management system

MANAGING PRODUCTS:

VIEWING INVOICES:

Department of computer science and Engineering, Nidasoshi Page 33


Dairy management system

REPORTS BETWEEN DATES:

SALES BETWEEN DATES:

Department of computer science and Engineering, Nidasoshi Page 34


Dairy management system

USER LOGIN:

USER DASHBOARD:

Department of computer science and Engineering, Nidasoshi Page 35


Dairy management system

USER VIEWING PRODUCTS:

SHOPPING:

Department of computer science and Engineering, Nidasoshi Page 36


Dairy management system

SHOPPING CART:

BUYING/GENERATION OF INVOICE:

Department of computer science and Engineering, Nidasoshi Page 37


Dairy management system

UPDATING PROFILE:

CHANGING PASSWORD:

Department of computer science and Engineering, Nidasoshi Page 38


Dairy management system

REFERENCES:

• Book referred Programming the world wide web- Robert W.sebesta, 4th Edition,
Pearson Education, 2008
• PHP – Writing PHP script and using variable R. Berdan.

WEB LINK :

1. http://php-guide-line.blogspot.in/
2. http://www.programmingfacts.com/
3. http://www.php.happycoding.com/
4. http://www.dreamincode.net

Department of computer science and Engineering, Nidasoshi Page 39


Dairy management system

Department of computer science and Engineering, Nidasoshi Page 40

You might also like