Cattle Ranch
Cattle Ranch
Cattle Ranch
Table of content i
CHAPTER ONE 1
Introduction 1
1.1 Introduction 1
1.2 Objective 1
1.3 Technical Feasibility 1
1.4 Methodology Development Model 1
1.5 Tools and Technique 3
CHAPTER TWO 8
Specification Requirement 8
2.1.1 External Interfaces 8
2.1.2 Software Product Features 9
CHAPTER THREE 11
Design 11
3.0 Data Design 11
3.1 TASK AND ACTIVITIES PERFORMED 13
3.1.1 Advantage 13
3.1.2 Structure of the project 13
3.2 Scope and Feasibility 13
CHAPTER FOUR 15
Implementation and Teting 15
4.1 System Analysis 15
4.3 Implementation 16
CHAPTER FIVE 17
5.0 CONCLUSION 17
5.1 DOCUMENTATION 17
5.2 SCREENSHOTS 17
5.3 SOURCE CODES 20
CHAPTER ONE
Introduction
1.1 Introduction
The aim of the project is to provide various services to the owners of cattle, also they
can sell any of their cattle on the website at the desirable selling price. Cattle Ranch
Management System is a web based application that allows the administrator to
handle all the ranch activities. Using Interactive GUI anyone can quickly learn to use
the complete system. Using this, the administrator doesn’t have to sit and manage the
entire activities on paper and at the same time, the head will feel comfortable to keep
check of the whole system just with the availability of internet. This system will give
him power and flexibility to manage the entire system from the single online portal.
1.2 Objective
1. The system should have a user registration process in order to get login into
the system.
2. The system should have a administrator login page .
3. The system will show cattle which available on web.
4. Administrator can display the request of user successful
1.3 Technical Feasibility
Technically, this project is very feasible because of use of current and latest
techniques.I have already done this project using latest technologies like making
front end in the Html5, CSS3, javascript and backend development will be done in
very efficient tool PHP & MySQL database. So this project is technically feasible.
1.4 Methodology Development Model
The sequential phases in Waterfall model are −
System Design − the requirement specifications from first phase are studied in this
phase and the system design is prepared. This system design helps in specifying
hardware and system requirements and helps in defining the overall system
architecture.
Implementation − With inputs from the system design, the system is first developed
in small programs called units, which are integrated in the next phase. Each unit is
developed and tested for its functionality, which is referred to as Unit Testing.
Integration and Testing − All the units developed in the implementation phase are
integrated into a system after testing of each unit. Post integration the entire system
is tested for any faults and failures.
Deployment of system − Once the functional and non-functional testing is done; the
product is deployed in the customer environment or released into the market.
Maintenance − There are some issues which come up in the client environment. To
fix those issues, patches are released. Also to enhance the product some better
versions are released. Maintenance is done to deliver these changes in the customer
environment.
XAMPP
MYSQL
HTML
Bootstrap
Sublime text
Java Script
CSS
PHP
XAMPP
XAMPP is a free and open source cross-platform web server solution stack package
developed by Apache Friends, consisting mainly of the Apache HTTP Server,
MariaDB database, and interpreters for scripts written in the PHP and Perl
programming languages. XAMPP stands for Cross-Platform (X), Apache (A),
MariaDB (M), PHP (P) and Perl (P). It is a simple, lightweight Apache distribution
that makes it extremely easy for developers to create a local web server for testing
and deployment purposes. Everything needed to set up a web server – server
application (Apache), database (MariaDB), and scripting language (PHP) – is
included in an extractable file. XAMPP is also cross-platform, which means it works
equally well on Linux, Mac and Windows. Since most actual web server
deployments use the same components as XAMPP, it makes transitioning from a
local test server to a live server extremely easy as well.
MYSQL
MySQL Workbench is a unified visual tool for database architects, developers, and
DBAs. MySQL Workbench provides data modeling, SQL development, and
comprehensive administration tools for server configuration, user administration,
backup, and much more. MySQL Workbench is available on Windows, Linux and
Mac OS X.
HTML
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.[4]
Web browsers receive HTML documents from a web server or from local storage
and render the documents into multimedia web pages. HTML describes the structure
of a web page semantically and originally included cues for the appearance of the
document.
HTML elements are the building blocks of HTML pages. With HTML constructs,
images and other objects such as interactive forms may be embedded into the
rendered page. HTML provides a means to
BOOTSTRAP
Bootstrap is a free and open-source front-end framework for designing websites and
web applications. It contains HTML- and CSS-based design templates for
typography, forms, buttons, navigation and other interface components, as well as
optional JavaScript extensions. Unlike many web frameworks, it concerns itself with
front-end development only.
JAVA SCRIPT
JavaScript often abbreviated as JS, is a high-level, interpreted programming
language. It is a language which is also characterized as dynamic, weakly typed,
prototype-based and multi-paradigm.
Alongside HTML and CSS, JavaScript is one of the three core technologies of the
World Wide
Web. JavaScript enables interactive web pages and thus is an essential part of web
applications. The vast majority of websites use it, and all major web browsers have a
dedicated JavaScript engine to execute it.
SUBLIME TEXT
CSS
Cascading Style Sheets (CSS) is a style sheet language used for describing the
presentation of a document written in a markup language like HTML. CSS is a
cornerstone technology of the World Wide Web, alongside HTML and JavaScript.
and fonts. This separation can improve content accessibility, provide more flexibility
and control in the specification of presentation characteristics, enable multiple web
pages to share formatting by specifying the relevant CSS in a separate css file, and
reduce complexity and repetition in the structural content.
CHAPTER TWO
Specification Requirement
2.1.1 External Interfaces
This interface will be actual interface through which the user will communication
with the application and perform the desired tasks.
Admin login
Failed end Condition: User has entered incorrect Username and Password or both
Conform
Sequencing information
Error Handling
If user doesn’t filled up validate information then the system display error message
for user and request to enter the validate information.
Performance required
Security
System should be Protected from unauthorized access Where the validate Username
and Password are required so no other can access.
Logical Database
CHAPTER THREE
Design
3.0 Data Design
Data Model: A database model is a type of data model that determines the logical
structure of a database and fundamentally determines in which manner data can be
stored, organized and manipulated.
Login
Manage Ranch
Manage Workers
Manage Cattles
An administrative body can access records and take necessary decisions on the act
of operations of the ranch practice.
Status
Staffs
Add Staff
Cows
Add cows
Inspect health
Sell cow
Print receipt
Logout
3.2 Scope and Feasibility
This activity is also known as the feasibility study.
System analysis is conducted for the purpose of studying a system or its parts in
order to identify its objectives. It is a problem solving technique that improves the
system and ensures that all the components of the system work efficiently to
accomplish their purpose.
The essential model may itself consist of multiple models, modeling different
aspect of the system. The data flow diagrams may model the data and there
relationships and the state transition diagram may model time dependent behavior
of the system. The essential model thus consists of the following.
Context diagram
Leveled data flow diagrams
Process specification for elementary bubbles
Data dictionary for the flow and stores on the DFDs.
System Design
System design involves transformation of the user implementation model into
software design. The design specification of the proposed system consists of the
following:
Database scheme
Flow Chart
4.3 Implementation
This activity includes programming, testing and integration of modules into a
progressively more complete system. Implementation is the process of collect all
the required parts and assembles them into a major product.
Test Generation
This activity generates a set of test data, which can be used to test the new system
before accepting it. In the test generation phase all the parts are come which are to
be tested to ensure that system does not produce any error. If there are some errors
then we remove them and further it goes for accepting.
CHAPTER FIVE
5.0 CONCLUSION
The Cattle Ranch Management system is concerned with enhanced, secure and authorized availability of Ghazi
Farm with the fully utilization of the internet (online connectivity) and combined talent and skills do entire
workforce of the Ranch Farm. Ranch Farm system must today reinvent itself to cope with the demands of a global
economy. In which buyer purchase the cattle but also the facility that is seller can also sale their cattle here.
5.1 DOCUMENTATION
All required source codes, files and database design are stored in a CD drive
attached to this work for reference purposes.
5.2 SCREENSHOTS
Login Page
Staff Page
?>
Login Code
<?php
session_start();
if(isset($_SESSION["user"]))
header("location:home.php");
} ?>
<?php
include('db.php');
if($_SERVER["REQUEST_METHOD"] == "POST") {
$myusername = mysqli_real_escape_string($con,$_POST['user']);
$mypassword = mysqli_real_escape_string($con,$_POST['pass']);
$row = mysqli_fetch_array($result,MYSQLI_ASSOC);
$active = $row['active'];
$count = mysqli_num_rows($result);
if($count == 1) {
$_SESSION['user'] = $myusername;
header("location: home.php");
}else {
} }
?>
Logout Code
<?php
session_start();
unset($_SESSION["user"]);
header("location:http://localhost/pms/index.php");
?>