0% found this document useful (0 votes)
455 views149 pages

Prakash Major Project Report

This document describes a major project submitted by Prakash Singh towards the partial fulfillment of a Master's degree in Computer Applications. The project is titled "Logistics and Cargo Tracking System" and was completed under the supervision of Mrs. Swarnalata Pati. The project aims to develop a software system to efficiently manage logistics and cargo services.

Uploaded by

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

Prakash Major Project Report

This document describes a major project submitted by Prakash Singh towards the partial fulfillment of a Master's degree in Computer Applications. The project is titled "Logistics and Cargo Tracking System" and was completed under the supervision of Mrs. Swarnalata Pati. The project aims to develop a software system to efficiently manage logistics and cargo services.

Uploaded by

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

A

Major project on
“Logistics and cargo tracking system”

Submitted towards the partial fullfillment of the Academic requirement for the
award of Degree of

Master in Computer Applications


(Academic Year 2019-20 )

SUBMITTED BY:
Prakash Singh (1705106003)

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS


COLLEGE OF ENGINEERING AND TECHNOLOGY
(Accredited with grade ’A’ by NAAC and NBA & Affiliated To Biju Patnaik
University Of Technology )
TECHNO-CAMPUS , GHATIKIA , DIST – BHUBANESWAR , 751029
DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS
COLLEGE OF ENGINEERING AND TECHNOLOGY
TECHNO CAMPUS, GHATIKIA, BHUBANESWAR, 751029

CERTIFICATE

This is to certify that the project entitled, “Logistics and Cargo tracking system for Devesh
logistics ” is a bonafide work done and submitted by Mr. Prakash Singh, bearing the Registration
No.–1705106003 in partial fulfillment of the requirement for the award “ Master In Computer
Applications ” Degree is an authentic record of the work done by him under my supervision and
guidance .The matter embodied in the project has not been submitted to any other University for
the award of any Degree or Diploma to the best of my knowledge .The work carried out by him
during the project period is original and performance during the compilation of project was
appreciable.

INTERNAL GUIDE HOD


Mrs.Swarnalata Pati Dr. Jibitesh Mishra
(Assistant Professor)
DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS
COLLEGE OF ENGINEERING AND TECHNOLOGY
TECHNO CAMPUS, GHATIKIA, BHUBANESWAR, 751029

DECLARATION

I, hereby declare that this written submission represents My ideas in My own words or words
have been included. I have adequately cited and referenced the original sources. I also declare
that I have adhered to all principals of the academics honestly and integrity and have not
misrepresented or fabricated any idea in my submission.
I understand that any violation of the above will cause for disciplinary action by the
institute and can also evoke penal action from the sources which have thus not been properly
cited or from whom proper has not been taken when needed.

Prakash Singh (1705106003)


DEPARTMENT OF COMPUTER SCIENCE AND APPLICATIONS
COLLEGE OF ENGINEERING AND TECHNOLOGY
TECHNO-CAMPUS, GHATIKIA, BHUBANESWAR, 751029

ACKNOWLEDGEMENT

I take this opportunity to express my sincere thanks and deep gratitude to all those people
who extended their wholehearted co-operation and helped me in completing this Project
successfully.

I express My deep and sincere gratitude to Dr. Jibitesh Mishra (H.O. D Dept.Of.CSA ,) who
provided Me an opportunity, inspiration and requisite facility by giving me a chance to show
my capabilities in this esteemed organization and also for making me feel comfortable in the
strictly professional environment of the office premises.

I are highly obliged to Mrs.Swarnalata Pati madam (Project Guide) for providing me
continuous and invaluable guidance throughout the Project in spite of her busy schedule and
patiently solving my rather amateurish queries. Her kind and elderly advice always inspired
me in putting best effort to develop an efficient system.

Finally, I would like to thank all the members of the (Dept.Of.CSA) and for their help and
valuable suggestions during the course of the project.

DATE:
PLACE:
Prakash Singh (1705106003)
ABSTRACT

The project entitled as “LOGISTICS AND CARGO TRACKING SYSTEM” is developed to


transfer the some important and personal Logistics (Product / Goods / services/ messages)
from one place to another. So this is used for global connections. Immediate processing will
be done. The important notification of this project is to maintain a high level of trading.

Today the world is a truly global place, where we use petrol from Saudi Arabia, fruits from
Philippines, cars from South Korea, mobile phones from China, clothes from Bangladesh,
tools from Germany and more. In the midst of all this globalization, the management of all
this cargo plays a key role in ensuring that the right product reaches the right customer.

Shipping is a multi – billion dollar enterprise which is kept in check by government systems
to manage foreign trade deficits and to prevent the entry of illegal contraband. This project
aims to build a portal that will make the process simple for the consignor, the consignee and
all the government officials in between.

The portal can be used by different shippers, importers, exporters, suppliers, etc. The
process begins with a client placing an order. The stocks on the client end can be tracked by
the shipper and automatic orders can be placed by the system when stocks drop below a
particular value. When a new consignment is created it is logged in the system and all the
specific details such as value of goods, dimensions, quantity, category of goods, etc will be
entered as well. Funds can be made available in an escrow account to make the payments of
taxes, shipping costs, etc

When the shipment is nearing its destination, the system will notify the consignee to
arrange transportation. The tax payments and port release formalities can be handled when
the ship is still off shore so as to reduce the time period spent by the shipment at the port.
Depending on the nature of the shipment officials may or may not require to personally
inspect it. The system works on the assumption that the customs officials trust the integrity of
the consignor as long as there is no cause for suspicion, surprise raids may be conducted to
scare people from smuggling shipments in
LIST OF FIGURES

Figure 6.1.1.1 Three Tier Architecture

Figure 6.2.1.1 Use Case diagram

Figure 6.2.2.1 Sequence diagram for System

Figure 6.2.2.2 Sequence diagram for new User

Figure 6.2.2.3 Sequence diagram for delivery charges

Figure 6.2.2.4 Sequence diagram for status

Figure 6.2.2.5 Sequence diagram for cancel order

Figure 6.2.2.6 Sequence diagram for Record details

Figure 6.2.3.1 Collaboration Diagram for System

Figure 6.2.3.2 Collaboration Diagram for new user

Figure 6..2.3.3 Collaboration Diagram for delivery

Figure 6.2.3.4 Collaboration Diagram for stauts

Figure 6.2.3.5 Collaboration Diagram for cancel order

Figure 6.2.3.6 Collaboration Diagram for record details

Figure 6.2.4.1 class diagram for Admin


Figure 6.2.4.2 class diagram for Staff

Figure 6.2.4.3 class diagram for User

Figure 6.2.5.1 DFD for Database

Figure 6.2.6.1 State Chart Diagram

Figure 6.2.6.2 DFD for user registration

Figure 6.2.6.3 DFD for booking cargo

Figure 6.2.7.1 ER Diagram

Figure 6.2.8.1 Component Diagram

Figure 6.2.9.1 Deployment Diagram

Figure 8.2.2.1 No of test case pass/failed

Figure 8.2.3.1 Defect severity


TABLE OF CONTENTS

TITLE
CERTIFICATE
DECLARATION
ACKNOWLEDGEMENT
ABSTRACT
ACKNOWLEDGEMENTS
TABLE OF CONTENTS
CHAPTER
I INTRODUCTION
1.1 Purpose
1.2 Scope
1.3 Existing system
1.4 Proposed system
1.5 Definition

II SOFTWARE REQUIREMENT
2.1 Product perspective
2.2 Software requirement
2.3 Hardware Requirement
III LITERATURE REVIEW AND PROJECT SCHEDULING
3.1 Literature Review
3.2 Project Scheduling
IV SOFTWARE REQUIREMENT SPECIFICTION
4.1 Functional Requirement
4.2 Non- Functional Requirement
4.3 User Characteristics
4.4 Constraints.
V PROJECT MODULES
VI SOFTWARE DESIGN
6.1 System Architecture
6.2 UML Diagrams
6.3 Database Design
VII CODING
7.1 Backend Coding
7.2 Frontend Coding
VIII TESTING
8.1 Testing Scope
8.2 Metrics
IX OUTPUT SCREEN
CONCLUSION AND SUMMARY
REFERENCES
CHAPTER 1
INTRODUCTION
1. INTRODUCTION
Today’s world is very fast and competitive. To achieve the success in this
competitive world, one should be aware of the computer and the information related to the
concerned business because computer and the information plays an important weeks
manually. Right information available at the right place makes the decision process efficient.
Hence the identification of the current and future requirement becomes a basic need of any
flexible information system

Logistics and cargo tracking system is software which is used manage the work
regarding the services of the Logistics and cargo in an effective & efficient manner. Basically
it stores the information regarding the customer and his material, which has to be Shipped /
couriered.

1.1 PURPOSE

This project deals with the ‘Logistics and Cargo Tracking System’. The
system will be used for day to day activities like out return, company details, hub rates
,booking, non delivery, and pickup centers. Actually It is not easy to do this process manually
because it would become very hectic. Hence it is recommended to automate the process by
developing the relevant software as the world is moving from manual working to information
and technology era where computerization becomes important in all walks of life.
Logistics and Cargo Tracking System is a web-based Courier Management System which
supports the high accessibility of courier services to the corporate and to the customer. The
system is being used for day to day activities such as booking a courier, maintain hub details,
maintain company details, process data of businesses and many other things.

1.2 SCOPE

 Logistics and Cargo Tracking process computerization is “the incorporate of


appropriate technology to help administrator manage information. Technology is considered
appropriate, when it utilizes the most abundant domestic resources and conserves capital and
skilled personnel ”.The main aim of this project is to computerize the maintenance of courier
management.
This project provides the facility to all users to send and receive the courier. They can get the
information of the status of the courier. System development is also considered as a process
backed by engineering approach. Courier agency is considered as an expansion of business
relations. It contributes a lot by providing quick & fast services of sending documents letters
(formal & informal both) to business as it enables any business to flourish.

This project is for only Domestic Courier Management. In this project we only focus on
Client Management and partially Employee Management .

This system can be implemented to any Device in any locality or to multinational


Logistics and cargo Company having retail outlet chains. The system recommends a facility
to accept the orders 24*7 and a Tracking system which can allow customers to Track their
Shipments.

1.3 Existing System

The existing system requires a lot of paperwork. In most cases shipping companies
maintain offices in many countries so as to be able to conduct the shipping formalities
locally. Consignors and consignees also require a local representative to ensure that
all the documents are in order before and after shipping. The whole process is
redundant in this age of computers and wastes a lot of time.

The logistics and cargo tracking system involves a lot of the employees at the office.
The data for a particular logistics and cargo maintained in a proper file. A person
summarizes all the data of the cargo in a register, this work require a high-level of attention
since it has to be taken care that no wring entry goes into the register. This repetitive work
may lead to errors in the entry thus resulting in the wrong entry of logistics and cargo packed
data.
Since the data is maintained in the registers, the modification of data cannot done
easily. The previous information has to be erased and overwritten or a new page has to be
allocated so that both the old and new information can be written on the same page.
The summarizing of the data i.e. preparation of an up to data report is very complex,
it require a lot of hard work and searching through the different register so as to condense the
data for presentation.

LIMITATION

From the client site, the entire work was achieved manually and they manage all their billing
and services manually. Because of the manual system there are so many problems occurred
in the existing system: -

 It involves managing a huge number of data each having separate data items.
 All the work is done at a very large volume, so we have a possibility of loosing the
data.
 To look for a particular problem the entire system is searched, so the process becomes
more time consuming.

1.4Proposed System

The proposed system will make the process faster. It will make it easy for all the
stakeholders involved to share information and will make the system more accountable.
Shipment orders can be placed smoothly and terms negotiated swiftly. Customs officials will
be able to maintain searchable digitized records in lieu of the mountains of paperwork
popular to this day.

After a detailed study of the existing system, it is evident that is does not fulfill the
objective of the organization. To make the objective possible for the organisaton, it is
required to have a computerized information system with the help of which all tasks can
be processed more accurately and quickly. To achieve this, it is necessary to design and
develop a new system. Proposed system is being designed in such a way that many users
can have a view with the system simultaneously. it makes effective and perfect utilization
of man power and resources.
ADVANTAGES

 Easy in maintaining information: As new information is being added to and released


from their respective courses every year, it will be highly user friendly to track and
maintain the presentation of all students.
 User satisfaction: The system is such that is stands up to the user expectations like
easy and faster retrieval of information.
 Safety: The system will be accessible by only the authorized users. As information
being the most crucial for the organization, then the safety of information is
importation.
 Highly accurate: resources being used by the system will be compatible with the latest
technologies available in the market, as proposed system uses highly technically
compatible resources, there will be very very lass wear and tear.
 . Less time consuming: work carried out by the staff at various stages will be less time
consuming

1.5 Definition, Acronyms, Abbreviation:

• DDR -> Digital Departmental repository


• DFD -> Data Flow Diagram
• CFD -> Context Flow Diagram
• ER -> Entity Relationship
• IDE -> Integrated Development Environment
• SRS -> Software Requirement Specification
CHAPTER 2

SOFTWARE REQUIREMENT
2. SOFTWARE REQUIREMENT

2.1 Product Perspective

The proposed Logistics and Cargo Tracking System will take care of the
current Logistics and Cargo Details at any point of time. The central
concept of the application is to allow the customer to track virtually using
the Internet and allow customers to ship/courrier their items and articles of
their desire from one place to another.

2.2 SOFTWARE REQUIREMENT

• Front end:
• Html

• Css

• Js

• php

• Back end:

 Sql
 PhpmyAdmin
 Xampp server

2.3 HARDWARE REQUIREMENT

• Sublime text
• 2GB ram
• 1.2 GHz processor
• Intel i5
• Windows 7/8/8.1/10
CHAPTER 3
LITERATURE REVIEW AND PROJECT SCHEDULING
3 . LITERATURE REVIEW AND PROJECT SCHEDULING

3.1 LITERATURE REVIEW

Html :

Hypertext Markup Language (HTML) is the standard markup language for documents


designed to be displayed in a web browser. It can be assisted by technologies such
as Cascading Style Sheets (CSS) and scripting languages such as JavaScript.

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 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 />  directly introduce content into the page. Other tags such

as  <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 affects
the behavior and content of web pages. Inclusion of CSS defines the look and layout of
content. The World Wide Web Consortium (W3C), former maintainer of the HTML and
current maintainer of the CSS standards, has encouraged the use of CSS over explicit
presentational HTML since 1997.

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.
CSS is designed to enable the separation of presentation and content, including layout, colors,
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.

Separation of formatting and content also makes it feasible to present the same markup page
in different styles for different rendering methods, such as on-screen, in print, by voice (via
speech-based browser ), and on Braille-based tactile devices. CSS also has rules for alternate
formatting if the content is accessed on a mobile device.

The name cascading comes from the specified priority scheme to determine which style rule
applies if more than one rule matches a particular element. This cascading priority scheme is
predictable.

The CSS specifications are maintained by the World Wide Web Consortium (W3C).

JS :

JavaScript often abbreviated as JS, is a high-level, just-in-time compiled, object-oriented


programming language that conforms to the ECMAScript specification. JavaScript has curly-
bracket syntax, dynamic typing, prototype-based object-orientation, and first-class functions.

Alongside HTML and CSS, JavaScript is one of the core technologies of the web JavaScript


enables interactive web pages and is an essential part of web applications. The vast majority
of website use it and major web browsers have a dedicated JavaScript engine to execute it.

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


and imperative (including object-oriented and prototype-based) programming styles. It
has APIs for working with text, arrays, dates, regular expressions, and the DOM, but the
language itself does not include any I/O, such as networking, storage, or graphics facilities. It
relies upon the host environment in which it is embedded to provide these features.

Initially only implemented client side in web browsers, JavaScript engines are now
embedded in many other types of host software, includinserver 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.

The terms Vanilla JavaScript and Vanilla JS refer to JavaScript not extended by any


frameworks or additional libraries. Scripts written in Vanilla JS are plain JavaScript code.

PHP:

PHP is a general-purpose programming language originally designed for web development. It


was originally created by Rasmus Lerdorf in 1994 the PHP reference implementation is now
produced by The PHP Group. PHP originally stood for Personal Home Page, but it now
stands for the recursive initialism PHP: Hypertext Preprocessor.

PHP code may be executed with a command line interface (CLI), embedded


into HTML code, or 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 a web server or as a Common Gateway
Interface (CGI) executable. The web server outputs the results of the interpreted and executed
PHP code, which may be any type of data, such as generated HTML code or binary image
data. PHP can be used for many programming tasks outside of the web context, such
as standalone graphical applications and robotic drone control.

The standard PHP interpreter, powered by the Zend Engine, is free software released under
the PHP License.

The PHP language evolved without a written formal specification or standard until 2014,
with the original implementation aimed to follow. Since 2014, work has gone on to create a
formal PHP specification.

PhpmyAdmin:

phpMyAdmin is a free and open source administration tool for MySQL and MariaDB. As a


portable web application written primarily in PHP, it has become one of the most popular
MySQL administration tools, especially for web hosting services.
Feature’s:

1. Web interface
2. MySQL and MariaDB database management
3. Import data from CSV and SQL
4. Export data to various formats: CSV, SQL, XML, PDF ISO/IEC 26300 -
OpenDocument Text and Spreadsheet, Word, Excel and others
5. Administering multiple servers
6. Creating PDF graphics of the database layout
7. Creating complex queries using query-by-example (QBE)
8. Searching globally in a database or a subset of it
9. Transforming stored data into any format using a set of predefined functions, like
displaying BLOB-data as image or download-link
10.Live charts to monitor MySQL server activity like connections, processes,
CPU/memory usage, etc.
11.Working with different operating systems.
12.Make complex SQL queries easier.

PROJECT SCHEDULING

Schedule Representation

Description Estimated Days Date


From To
System Study 15 12-Jan-2020 27-Jan-2020
Requirement 6 27- Jan-2020 3- Feb-2020
Gathering
Analysis 7 3- Feb-2020 10- Feb-2020
System Design 20 10- Feb-2020 1- March-2020
Development 32 1- March-2020 3-April-2020

Testing 4 3-April-2020 7-April-2020

Documentation 3 7April-2020 10-April-2020


CHAPTER 4
SOFTWARE REQUIREMENT SPECIFICATIONS
4 SOFTWARE REQUIREMENT SPECIFICATIONS

4.1 Initial functional requirements will be: -

 Secure registration and profile management facilities for Customers

 Browsing through the System to Book /manage the shipment that are there in
each category of shipment(normal/express).

 Adequate searching mechanisms for easy and quick access to particular


Service .

 Creating a Tracking number so that customers can track ‘n’ no. of Shipment .

 Regular updates to registered customers of the website about Shipment.

 Maintaining database of regular customers of different needs / new Services.

 Company employees are responsible for internal affairs like processing orders,
assure correct delivery, getting customer's delivery-time feedback, updating
shipments's status and answering client's queries online.

 Adequate payment mechanism and gateway for all popular credit cards,
cheques and other relevant payment options, as available from time to time.

4.2 Initial Non functional requirements:


Secure access of confidential data (user’s details). SSL can be used.
 24 X 7 availability

 Better component design to get better performance at peak time

 Advertisement space where it will effectively catch the customer’s attention


and as a source of revenue.

 In addition to the above mentioned points, due to the highly evolving nature of
the project, the following are planned to be delivered if deemed necessary:

 Warehousing within the very ambits of the project


 More payment gateways.

 Dynamic price model by which prices can be changed based on demand and
supply

 Dynamic Storefront: Each customer will have a web page personalized based
on his or her recent purchases. This is the equivalent of having a unique
storefront for each customer in hopes of drawing in as many return customers
as possible.

 Technology and programming languages used:

 HTML, XML: Hyper Text Markup Language and Extensible markup


Language are the predominant markup languages for web pages. It provides a
means to describe the structure of text-based information in a document and to
supplement that text with interactive forms, embedded images, and other
objects.

 JavaScript: A client side scripting language used to create dynamic web


content and user interface.

 Tools used in the development:

Feasibility Study
Every software project begins with a judgment as to whether the project is worthwhile or not.
This is called a feasibility study. Sometimes this assessment is carried out in a detailed and
systematic fashion.
Software feasibility has three solid dimensions:
 Technical Feasibility
 Operational feasibility
 Cost-benefit analysis(Economic Feasibility)
Before beginning a project, there is a crucial decision that must be made: Is the proposal
technically feasible? That is, will the technology actually work?

The answer of the above question is: “This project is technically feasible. It successfully
satisfies the users’ basic requirements. The tools and application software’s used in this
project are very popular and easily available across the world”.
PHP provides a complete environment for building, deploying and running PhP Web
Applications.

Safety Requirements:

New system is safe to use. Its usage will not provide any damage or any type of loss to the
systems already in use. In addition, the security model is prepared regarding the safety of
Database so that data is not lost in case of any damage to the system.

Security Requirements:
Security of the system shall be definitely be maintained through the password system. Each
employee of every branch office will need to be authenticated with a login id and password.
Any employee cannot change the system date to make proxy presentation of yourself.

Operational feasibility:
The system will have easy to understand interface for different modules. It does not require
any programming skill to use the system. After a little training, the users will be able to work
with it at ease.

Cost-benefit analysis (Economic Feasibility):


Money provides the ready-made metric for measuring value. This kind of investigation is
called investment appraisal or a cost-benefit analysis. The organization expects a return on
investment. In this approach, two quantities are calculated:
1. The cost of providing the system
2. The money saved or created by using the system – the benefit
 Usability Requirement

The system shall allow the users to access the system from the phone using
android application. The system uses a android application as an interface.
Since all users are familiar with the general usage of mobile app, no special
training is required. The system is user friendly which makes the system easy.

 Availability Requirement

The system is available 100% for the user and is used 24 hrs a day and 365
days a year. The system shall be operational 24 hours a day and 7 days a
week.

 Efficiency Requirement

Mean Time to Repair (MTTR) - Even if the system fails, the system will be
recovered back up within an hour or less.

 Accuracy

The system should accurately provide real time information taking into
consideration various concurrency issues. The system shall provide 100%
access reliability.

 Performance Requirement

The information is refreshed depending upon whether some updates have


occurred or not in the application. The system shall respond to the member in
not less than two seconds from the time of the request submittal. The system
shall be allowed to take more time when doing large processing jobs.
Responses to view information shall take no longer than 5 seconds to appear
on the screen.
 Reliability Requirement

The system has to be 100% reliable due to the importance of data and the
damages that can be caused by incorrect or incomplete data. The system will
run 7 days a week, 24 hours a day.

4.3 USER CHARACTERSTICS

 The user should be familiar with the Logistic and Cargo related terminology
like Shipment/Checking out/Transaction etc.

 The user should be familiar with the Internet.

4.4 CONSTRAINTS

Any update regarding the Shipment (type/mode) ,Users ,payments from the
system is to be recorded to have update & correct values, and any fine on a
member should be notified as soon as possible and should be correctly
calculated.

 There is no maintainability of back up so availability will get affected.

 Limited to HTTP/HTTPS.

 No multilingual support.

 Real-life credit card validation and Banking system is not implemented.


CHAPTER - 5
PROJECT MODULES

MODULES:

There are three modules in this Project


 ADMINISTRATOR MODULE

 STAFF MODULE

 USER MODULE

MODULE DESCRIPTION

 ADMINISTRATOR MODULE :

system requires as input details of the cargo items forming the load and of the available
container / containers (or truck, trailer, frame pallet etc.) which might be used for the load.
Much of this information relates to dimensions and weights, and additional information can
optionally be provided on the characteristics of each cargo item type (fragility, layering
constraints etc).
Dashboard: In this section, admin can see all detail in brief like total courier, Total Courier
Pickup, Total Shipped, Total In-transit, Total Courier arrived at the destination, Total courier
out for delivery and Total delivered courier.
Office/Branches: In this section, admin can manage branches(add and update).
Staffs: In this section, admin can manage Staffs(add, update and delete).
Cargo/Courier: In this section, admin can view courier status and check the courier detail
which is filling by the staff of different branches.
Reports: In this section admin can view courier details, courier counts and sales report
according to dates.

View/update user details:


Only admin has right to change the user details.
Update policy details:
Only admin has right to change the policy details.
Track the courier details:
Like any other user, admin can also track and instruct his team to manage the consignment.
Update offers:
Admin can update the offer details

 STAFF MODULE :
This module will provide Registration, forgot password, change password pages to the user.

Dashboard: In this section, staffs can see all detail in brief like total courier, Total Cargo
Pickup, Total Shipped, Total In-transit, Total Cargo arrived at the destination, Total cargo out
for delivery and Total delivered courier.
Add shipment: In this section, staffs fill the cargo detail of parcel.
Status: In this section, staffs can view the cargo details and them have also right to change
courier status according to current status.
Search Cargo: In this section, staffs can search particular cargo with the help of tracking
number/reference number.

 USER MODULE :

This module will provide inbox for the user to view the messages from the administrator. It
also provides to view the status of your cargo. This module also provides to cancel the cargo.
new registration:

New registration:
The user can register himself in the system. This is fully automated process assign
verification using admin.
View /update login details:
Users can view their details and update his details if required.
View tracking information:
The user can view the information about courier tracking.
View offers:
The user also can view the offer related to him
CHAPTER 6
SOFTWARE DESIGN

6 SOFTWARE DESIGN
6 .1 System Architecture for DDRS
6.1.1 Three Tier Architecture

Figure.6.1.1

6.2 UML Diagrams:

Actor:
A coherent set of roles that users of use cases play when interacting with the use
`cases.

Use case:
A description of sequence of actions, including variants, that a system
performs that yields an observable result of value of an actor.

UML stands for Unified Modeling Language. UML is a language for specifying, visualizing
and documenting the system. This is the step while developing any product after analysis.
The goal from this is to produce a model of the entities involved in the project which later
need to be built. The representation of the entities that are to be used in the product being
developed need to be designed.
There are various kinds of methods in software design:

They are as follows:


Use case Diagram
Sequence Diagram
Collaboration Diagram
Activity Diagram
State chat Diagram

USECASE DIAGRAMS:

Use case diagrams model behavior within a system and helps the developers
understand of what the user require. The stick man represents what’s called an actor.
Use case diagram can be useful for getting an overall view of
the system and clarifying that can do and more importantly what they can’t do.

Use case diagram consists of use cases and actors and shows
the interaction between the use case and actors.

The purpose is to show the interactions between the use case and actor.
To represent the system requirements from user’s perspective.
An actor could be the end-user of the system or an external system.

6.2.1 USECASE DIAGRAM:

A Use case is a description of set of sequence of actions. Graphically it is


rendered as an ellipse with solid line including only its name. Use case diagram is a
behavioral diagram that shows a set of use cases and actors and their relationship. It is an
association between the use cases and actors. An actor represents a real-world object
Figure 6.2 .1

6..2.2 SEQUENCE DIAGRAM:

Sequence diagram and collaboration diagram are called INTERACTION DIAGRAMS. An


interaction diagram shows an interaction, consisting of set of objects and their relationship
including the messages that may be dispatched among them.
A sequence diagram is an introduction that empathizes the time ordering of messages.
Graphically a sequence diagram is a table that shows objects arranged along the X-axis and
messages ordered in increasing time along the Y-axis.
Figure 6.2.2.1

Sequence Diagram for Create New Order

Figure 6.2.2.2
Sequence Diagram for Delivery Charges
Figure 6.2.2.3
Sequence Diagram for Status

Figure 6.2.2.4

Sequence Diagram for Cancel Order


Figure 6.2.2.5
Sequence Diagram for Record Details

Figure 6.2.2.6

6.2.3 COLLABORATION DIAGRAM:

A collaboration diagram is an introduction diagram that emphasizes the structural


organization of the objects that send and receive messages. Graphically a collaboration
diagram is a collection of vertices and arcs.
Figure 6.2.3.1

Collaboration Diagram for Create New Order

Figure 6.2.3.2
Collaboration Diagram for Delivery Charges
Figure 6.2.3.3
Collaboration Diagram for Cancel Order

Figure 6.2.3.4
Collaboration Diagram for Status
Figure 6.2.3.5

Collaboration Diagram for Record Details

Figure 6.2.3.6

6.2.4 CLASS DIAGRAM:

Class is nothing but a structure that contains both variables and methods. The Class
Diagram shows a set of classes, interfaces, and collaborations and their relating ships. There
is most common diagram in modeling the object oriented systems and are used to give the
static view of a system. It shows the dependency between the classes that can be used in our
system.
The interactions between the modules or classes of our projects are shown below. Each
block contains Class Name, Variables and Methods.

CLASS:
A description of set of objects that share the same attributes, operations, relationships, and
semantics

Figure 6.2.4.1

Figure 6.2.4.2
Figure 6.2.4.1

6.2.5 State Chart Diagram

Figure 6.2.5.1
6.2.6 DATA FLOW DIAGRAMS:

The DFD takes an input-process-output view of a system i.e. data objects flow into the
software, are transformed by processing elements, and resultant data objects flow out of the
software
Data objects represented by labeled arrows and transformation are represented by
circles also called as bubbles. DFD is presented in a hierarchical fashion i.e. the first data
flow model represents the system as a whole. Subsequent DFD refine the context diagram
(level 0 DFD), providing increasing details with each subsequent level.

A context-level DFD for the system the primary external entities produce information
for use by the system and consume information generated by the system. The labeled arrow
represents data objects or object hierarchy.

Database:

User
registrationn
Booking
cargo

Status

Customer id

Figure 6.2.6.1
user registration

User
details
User registration

Register user Update user Search for unregister view user


details user details user details

Figure 6.2.6.2

Booking cargo

User
details
Booking cargo

Booking Update Search for View details View Status


cargo booking cargo

Figure 6.2.6.3

6.2.7 E-R Diagrams:


The Entity-Relationship (ER) model was originally proposed by Peter in 1976
[Chen76] as a way to unify the network and relational database views. Simply stated the ER
model is a conceptual data model that views the real world as entities and relationships. A
basic component of the model is the Entity-Relationship diagram which is used to visually
represents data objects. Since Chen wrote his paper the model has been extended and today it
is commonly used for database design For the database designer, the utility of the ER model
is:
it maps well to the relational model. The constructs used in the ER model can easily be
transformed into relational tables.
it is simple and easy to understand with a minimum of training. Therefore, the model can be
used by the database designer to communicate the design to the end user.
In addition, the model can be used as a design plan by the database developer to implement a
data model in a specific database management software.
Connectivity and Cardinality
The basic types of connectivity for relations are: one-to-one, one-to-many,
and many-to-many. A one-to-one (1:1) relationship is when at most one instance of a entity A
is associated with one instance of entity B. For example, "employees in the company are each
assigned their own office. For each employee there exists a unique office and for each office
there exists a unique employee.
A one-to-many (1:N) relationships is when for one instance of entity A,
there are zero, one, or many instances of entity B, but for one instance of entity B, there is
only one instance of entity A. An example of a 1:N relationships is
a department has many employees
each employee is assigned to one department
A many-to-many (M:N) relationship, sometimes called non-specific, is when for one instance
of entity A, there are zero, one, or many instances of entity B and for one instance of entity B
there are zero, one, or many instances of entity A. The connectivity of a relationship
describes the mapping of associated

ER Notation
There is no standard for representing data objects in ER diagrams. Each modeling
methodology uses its own notation. The original notation used by Chen is widely used in
academics texts and journals but rarely seen in either CASE tools or publications by non-
academics. Today, there are a number of notations used, among the more common are
Bachman, crow's foot, and IDEFIX.
All notational styles represent entities as rectangular boxes and relationships as lines
connecting boxes. Each style uses a special set of symbols to represent the cardinality of a
connection. The notation used in this document is from Martin. The symbols used for the
basic ER constructs are:
entities are represented by labeled rectangles. The label is the name of the entity. Entity
names should be singular nouns.
relationships are represented by a solid line connecting two entities. The name of the
relationship is written above the line. Relationship names should be verbs
attributes, when included, are listed inside the entity rectangle. Attributes which are
identifiers are underlined. Attribute names should be singular nouns.
cardinality of many is represented by a line ending in a crow's foot. If the crow's foot is
omitted, the cardinality is one.
existence is represented by placing a circle or a perpendicular bar on the line. Mandatory
existence is shown by the bar (looks like a 1) next to the entity for an instance is required.
Optional existence is shown by placing a circle next to the entity that is optional

Admin:

COURIER:

Client:
Login:

Office:

Shipments:
Complete Er Diagram:

Figure 6.2.7.1
6.2.8 COMPONENT Diagram Logistics and cargo tracking System

6.2.9 Deployment Diagram Logistics and cargo tracking System


6.3 DataBase design :

All Tables in Database

Table Calculator:
TableClient:

Table Company:

Table courier:
Table courier-Office:

Table Courier_Paid:
Table Courier_track:

Table Manager-Admin
Table Manager- User

Table Mode_bookings

Table Offices:
Table Online-Booking

Table Scheduled Pickup:

Table Sub_imagen

Table Type shipment:


Table Upload Image:
CHAPTER 7
CODING
7.1 Backend-Database Coding:

-- Table structure for table `calculator`

CREATE TABLE `calculator` (


`id` int(10) NOT NULL,
`currency` varchar(100) NOT NULL,
`normal` varchar(100) NOT NULL,
`express` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Table structure for table `company`

CREATE TABLE `company` (


`id` int(10) NOT NULL,
`cname` varchar(500) NOT NULL,
`nit` varchar(255) NOT NULL,
`cemail` varchar(500) NOT NULL,
`cphone` varchar(100) NOT NULL,
`caddress` varchar(1000) NOT NULL,
`country` varchar(255) NOT NULL,
`city` varchar(255) NOT NULL,
`website` varchar(1000) NOT NULL,
`footer_website` varchar(255) NOT NULL,
`currency` varchar(255) NOT NULL,
`cons_no` int(11) NOT NULL,
`bemail` varchar(100) NOT NULL,
`date` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- Table structure for table `courier`

CREATE TABLE `courier` (


`cid` int(6) NOT NULL,
`cons_no` varchar(20) NOT NULL,
`ship_name` varchar(100) NOT NULL,
`phone` varchar(12) NOT NULL,
`s_add` varchar(200) NOT NULL,
`cc` varchar(12) NOT NULL,
`rev_name` varchar(100) NOT NULL,
`r_phone` varchar(12) NOT NULL,
`r_add` varchar(200) NOT NULL,
`cc_r` varchar(12) NOT NULL,
`email` varchar(255) NOT NULL,
`type` varchar(40) NOT NULL,
`weight` double NOT NULL,
`variable` varchar(255) NOT NULL,
`shipping_subtotal` varchar(255) NOT NULL,
`invice_no` varchar(20) NOT NULL,
`qty` int(10) NOT NULL,
`book_mode` varchar(20) NOT NULL,
`declarate` double NOT NULL,
`freight` double NOT NULL,
`mode` varchar(20) NOT NULL,
`pick_date` varchar(250) NOT NULL,
`schedule` varchar(250) NOT NULL,
`pick_time` varchar(10) NOT NULL,
`status` varchar(20) NOT NULL,
`comments` varchar(250) NOT NULL,
`book_date` date NOT NULL,
`status_delivered` varchar(10) NOT NULL,
`officename` varchar(255) NOT NULL,
`user` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

-- Table structure for table `courier_online`

CREATE TABLE `courier_online` (


`cid` int(10) NOT NULL,
`deliveryboy` varchar(100) NOT NULL,
`receivedby` varchar(100) NOT NULL,
`drs` varchar(100) NOT NULL,
`cons_no` varchar(20) NOT NULL,
`ship_name` varchar(100) NOT NULL,
`s_phone` varchar(12) NOT NULL,
`s_add` varchar(200) NOT NULL,
`fromcity` varchar(200) NOT NULL,
`rev_name` varchar(100) NOT NULL,
`r_phone` varchar(12) NOT NULL,
`r_add` varchar(200) NOT NULL,
`tocity` varchar(200) NOT NULL,
`type` varchar(40) NOT NULL,
`note` varchar(255) NOT NULL,
`weight` varchar(100) NOT NULL,
`book_mode` varchar(20) NOT NULL,
`freight` double NOT NULL,
`Qnty` varchar(255) NOT NULL,
`variable` varchar(255) NOT NULL,
`shipping_subtotal` varchar(255) NOT NULL,
`mode` varchar(20) NOT NULL,
`date` date NOT NULL,
`deliverydate` varchar(100) NOT NULL,
`time` varchar(10) NOT NULL,
`status` varchar(20) NOT NULL,
`payment` varchar(255) NOT NULL,
`paymode` varchar(255) NOT NULL,
`comments` varchar(250) NOT NULL,
`office` varchar(100) NOT NULL,
`user` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

-- Table structure for table `courier_paid`

CREATE TABLE `courier_paid` (


`id` int(10) NOT NULL,
`cid` int(10) NOT NULL,
`cons_no` varchar(20) NOT NULL,
`book_mode` varchar(30) NOT NULL,
`on_delivery` varchar(255) NOT NULL,
`date` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `courier_track`

CREATE TABLE `courier_track` (


`id` int(10) NOT NULL,
`cid` int(10) NOT NULL,
`cons_no` varchar(20) NOT NULL,
`pick_time` varchar(100) NOT NULL,
`status` varchar(30) NOT NULL,
`comments` varchar(255) NOT NULL,
`bk_time` datetime NOT NULL,
`user` varchar(25) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- Table structure for table `manager_admin`

CREATE TABLE `manager_admin` (


`cid` int(11) NOT NULL,
`name_parson` varchar(255) NOT NULL,
`name` varchar(20) NOT NULL,
`pwd` varchar(200) NOT NULL,
`phone` varchar(20) NOT NULL,
`email` varchar(20) NOT NULL,
`office` varchar(20) NOT NULL,
`estado` tinyint(1) NOT NULL,
`type` varchar(255) NOT NULL,
`role` varchar(25) NOT NULL,
`date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Table structure for table `manager_user`

CREATE TABLE `manager_user` (


`cid` int(11) NOT NULL,
`name_parson` varchar(255) NOT NULL,
`name` varchar(20) NOT NULL,
`pwd` varchar(200) NOT NULL,
`phone` varchar(20) NOT NULL,
`email` varchar(20) NOT NULL,
`office` varchar(20) NOT NULL,
`estado` tinyint(1) NOT NULL,
`type` varchar(255) NOT NULL,
`role` varchar(25) NOT NULL,
`date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Table structure for table `mode_bookings`

CREATE TABLE `mode_bookings` (


`id` int(5) NOT NULL,
`name` varchar(45) NOT NULL,
`services` varchar(15) NOT NULL,
`deliverytime` varchar(12) NOT NULL,
`observations` text NOT NULL,
`estado` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Table structure for table `offices`

CREATE TABLE `offices` (


`id` int(10) NOT NULL,
`off_name` varchar(100) NOT NULL,
`address` varchar(230) NOT NULL,
`city` varchar(100) NOT NULL,
`ph_no` varchar(20) NOT NULL,
`office_time` varchar(100) NOT NULL,
`contact_person` varchar(100) NOT NULL,
`estado` tinyint(1) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- Table structure for table `online_booking`

CREATE TABLE `online_booking` (


`id` int(100) NOT NULL,
`name` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`phone` varchar(100) NOT NULL,
`address` varchar(200) NOT NULL,
`note` varchar(200) NOT NULL,
`name_delivery` varchar(200) NOT NULL,
`email_delivery` varchar(200) NOT NULL,
`phone_delivery` varchar(200) NOT NULL,
`company_delivery` varchar(200) NOT NULL,
`address_delivery` varchar(200) NOT NULL,
`scountry` varchar(100) NOT NULL,
`sstate` varchar(100) NOT NULL,
`dcountry` varchar(100) NOT NULL,
`dstate` varchar(100) NOT NULL,
`type` varchar(100) NOT NULL,
`service` varchar(200) NOT NULL,
`courier_name` varchar(200) NOT NULL,
`freight` varchar(20) NOT NULL,
`Qnty` varchar(255) NOT NULL,
`width` varchar(100) NOT NULL,
`height` varchar(100) NOT NULL,
`weight` varchar(100) NOT NULL,
`length` varchar(100) NOT NULL,
`booking_date` date NOT NULL,
`collection_date` varchar(100) NOT NULL,
`status` varchar(100) NOT NULL,
`reasons` varchar(255) NOT NULL,
`delivery` varchar(255) NOT NULL,
`tracking` varchar(100) NOT NULL,
`officename` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

-- Table structure for table `scheduledpickup`

CREATE TABLE `scheduledpickup` (


`cid` int(11) NOT NULL,
`name_courier` varchar(20) NOT NULL,
`courier` varchar(255) NOT NULL,
`rate` varchar(200) NOT NULL,
`services` varchar(20) NOT NULL,
`Length` varchar(20) NOT NULL,
`Width` varchar(20) NOT NULL,
`Height` varchar(20) NOT NULL,
`Weight` int(20) NOT NULL,
`WeightType` varchar(25) NOT NULL,
`date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Table structure for table `subir_imagen`

CREATE TABLE `subir_imagen` (


`id` int(11) NOT NULL,
`nombre_imagen` text NOT NULL,
`imagen` mediumblob NOT NULL,
`tipo` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- Table structure for table `tbl_clients`

CREATE TABLE `tbl_clients` (


`id` int(10) NOT NULL,
`name` varchar(50) NOT NULL,
`address` varchar(500) NOT NULL,
`email` varchar(50) NOT NULL,
`phone` varchar(15) NOT NULL,
`password` varchar(100) NOT NULL,
`company` varchar(100) NOT NULL,
`country` varchar(100) NOT NULL,
`state` varchar(100) NOT NULL,
`zipcode` varchar(100) NOT NULL,
`estado` tinyint(1) NOT NULL,
`date` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- Table structure for table `type_shipments`

CREATE TABLE `type_shipments` (


`id` int(5) NOT NULL,
`name` varchar(45) NOT NULL,
`packaging` varchar(15) NOT NULL,
`dimensions` varchar(12) NOT NULL,
`estado` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Table structure for table `upload_image_bank`


CREATE TABLE `upload_image_bank` (
`cid` int(11) NOT NULL,
`cons_no` varchar(150) NOT NULL,
`nombre_imagen` text NOT NULL,
`imagen` mediumblob NOT NULL,
`tipo` text NOT NULL,
`office` varchar(255) NOT NULL,
`date` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- Indexes for dumped tables

-- Indexes for table `calculator`

ALTER TABLE `calculator`


ADD PRIMARY KEY (`id`);

-- Indexes for table `company`

ALTER TABLE `company`


ADD PRIMARY KEY (`id`);

-- Indexes for table `courier`

ALTER TABLE `courier`


ADD PRIMARY KEY (`cid`);

-- Indexes for table `courier_online`

ALTER TABLE `courier_online`


ADD PRIMARY KEY (`cid`);

-- Indexes for table `courier_paid`

ALTER TABLE `courier_paid`


ADD PRIMARY KEY (`id`);

-- Indexes for table `courier_track`

ALTER TABLE `courier_track`


ADD PRIMARY KEY (`id`);
-- Indexes for table `manager_admin`
--
ALTER TABLE `manager_admin`
ADD PRIMARY KEY (`cid`);

-- Indexes for table `manager_user`

ALTER TABLE `manager_user`


ADD PRIMARY KEY (`cid`);

-- Indexes for table `mode_bookings`

ALTER TABLE `mode_bookings`


ADD PRIMARY KEY (`id`);

-- Indexes for table `offices`

ALTER TABLE `offices`


ADD PRIMARY KEY (`id`);

-- Indexes for table `online_booking`

ALTER TABLE `online_booking`


ADD PRIMARY KEY (`id`);

-- Indexes for table `scheduledpickup`

ALTER TABLE `scheduledpickup`


ADD PRIMARY KEY (`cid`);

-- Indexes for table `subir_imagen`

ALTER TABLE `subir_imagen`


ADD PRIMARY KEY (`id`);

-- Indexes for table `tbl_clients`

ALTER TABLE `tbl_clients`


ADD PRIMARY KEY (`id`);
-- Indexes for table `type_shipments`

ALTER TABLE `type_shipments`


ADD PRIMARY KEY (`id`);

-- Indexes for table `upload_image_bank`

ALTER TABLE `upload_image_bank`


ADD PRIMARY KEY (`cid`);

-- AUTO_INCREMENT for dumped tables

-- AUTO_INCREMENT for table `calculator`

ALTER TABLE `calculator`


MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

-- AUTO_INCREMENT for table `company`

ALTER TABLE `company`


MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

-- AUTO_INCREMENT for table `courier`

ALTER TABLE `courier`


MODIFY `cid` int(6) NOT NULL AUTO_INCREMENT;

-- AUTO_INCREMENT for table `courier_online`

ALTER TABLE `courier_online`


MODIFY `cid` int(10) NOT NULL AUTO_INCREMENT;

-- AUTO_INCREMENT for table `courier_paid`

ALTER TABLE `courier_paid`


MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;

-- AUTO_INCREMENT for table `courier_track`

ALTER TABLE `courier_track`


MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

-- AUTO_INCREMENT for table `manager_admin`

ALTER TABLE `manager_admin`


MODIFY `cid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
-- AUTO_INCREMENT for table `manager_user`

ALTER TABLE `manager_user`


MODIFY `cid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

-- AUTO_INCREMENT for table `mode_bookings`

ALTER TABLE `mode_bookings`


MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

-- AUTO_INCREMENT for table `offices`

ALTER TABLE `offices`


MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=54;

-- AUTO_INCREMENT for table `online_booking`

ALTER TABLE `online_booking`


MODIFY `id` int(100) NOT NULL AUTO_INCREMENT;

-- AUTO_INCREMENT for table `scheduledpickup`

ALTER TABLE `scheduledpickup`


MODIFY `cid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

-- AUTO_INCREMENT for table `subir_imagen`

ALTER TABLE `subir_imagen`


MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

-- AUTO_INCREMENT for table `tbl_clients`

ALTER TABLE `tbl_clients`


MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

-- AUTO_INCREMENT for table `type_shipments`

ALTER TABLE `type_shipments`


MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

-- AUTO_INCREMENT for table `upload_image_bank`

ALTER TABLE `upload_image_bank`


MODIFY `cid` int(11) NOT NULL AUTO_INCREMENT;COMMIT;

7.2 Front-End Coding:


Database.php

<?php

// database connection config


$dbHost = 'localhost';
$dbUser = 'root';
$dbPass = '';
$dbName = 'deprixa25';

$dbConn = mysql_connect ($dbHost, $dbUser, $dbPass) or die ('MySQL connect failed. ' .
mysql_error());
mysql_select_db($dbName) or die('Cannot select database. ' . mysql_error());

function dbQuery($sql)
{
$result = mysql_query($sql) or die(mysql_error());

return $result;
}

function dbAffectedRows()
{
global $dbConn;

return mysql_affected_rows($dbConn);
}

function dbFetchArray($result, $resultType = MYSQL_NUM) {


return mysql_fetch_array($result, $resultType);
}

function dbFetchAssoc($result)
{
return mysql_fetch_assoc($result);
}

function dbFetchRow($result)
{
return mysql_fetch_row($result);
}

function dbFreeResult($result)
{
return mysql_free_result($result);
}
function dbNumRows($result)
{
return mysql_num_rows($result);
}

function dbSelect($dbName)
{
return mysql_select_db($dbName);
}

function dbInsertId()
{
return mysql_insert_id();
}

function fechaNormal($fecha){
$nfecha = date('d/m/Y',strtotime($fecha));
return $nfecha;
}
function limpiar($tags){
$tags = strip_tags($tags);
$tags = stripslashes($tags);
$tags = htmlentities($tags, ENT_QUOTES, 'UTF-8');
$tags = trim($tags);
return $tags;
}

?>

Database-settings.php
<?php

function conexion()
{
// ** MySQL ** //
global $DB_HOST;
global $DB_USER;
global $DB_PASSWORD;
global $DB_NAME;

$DB_HOST = 'localhost';
$DB_USER = 'deprixa25';
$DB_PASSWORD = 'Mega@09731';
$DB_NAME = 'deprixa25';

$mysqli = @new mysqli($DB_HOST, $DB_USER, $DB_PASSWORD, $DB_NAME);


if (mysqli_connect_errno()) {
printf(error_db_connect());
exit();
}
return $mysqli;
}

?>
Index.PhP

<!DOCTYPE html>

<html>
<head>
<meta charset="utf-8" />
<title>Devesh Logistics Software</title>
<meta name="description" content=""/>
<meta name="keywords" content="" />
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-
scale=1" />
<!--html5 ie include-->
<!--[if lt IE 9]><script
src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if lt IE 9]><script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-
mediaqueries.js"></script><![endif]-->

<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />


<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
<link rel="canonical" href="tracking.php" />

<!-- style -->


<link href="deprixa_components/content/cssefe4.css" rel="stylesheet"/>
<link href="deprixa_components/styles/track-order.css" rel="stylesheet" />
<script src="deprixa_components/hub/scripts/bootstrap.min.js"></script>
<script src="deprixa_components/hub/scripts/jquery-validate.min.js"></script>
<script src="deprixa_components/hub/scripts/jquery-validate-
unobtrusive.min.js"></script>
<script type="text/javascript" src="process/countries.js"></script>
<link rel="stylesheet" href="deprixa_components/hub/css/global.css" />
<link rel="stylesheet" href="deprixa_components/hub/css/services.css" />
<link rel="stylesheet" href="deprixa_components/hub/css/dSwiper.css" />
<link rel="stylesheet" href="deprixa_components/hub/css/bootstrap-mpd.css" />

<!-- style -->


<link href="deprixa_components/styles/home1d2d.css" rel="stylesheet"/>
<link href="deprixa_components/styles/nivo-slider.css" rel="stylesheet"/>
<link rel="stylesheet" href="deprixa_components/styles/default.css" />
</head>
<!-- Menu -->
<?php include_once "menu.php"; ?>
<!-- /Menu -->

<!--SLIDER -->
<div class="slider-wrapper theme-default">
<div id="slider" class="nivoSlider">
<img src="deprixa_components/images/slider/1.png" data-
thumb="deprixa_components/images/demo/news/1.jpg" alt="" title="#caption1" />
<a href="#"><img src="deprixa_components/images/slider/2.png" data-
thumb="deprixa_components/images/demo/news/2.jpg" alt="" title="#caption2" /></a>
</div>

</div>
<main class="slide">

<div class="fw grey-bg">


<section class="history">
<div id="TrackingEventsContainer">

</div>
</section>

<section class="trackorder-boxes">
<div class="col-sm-6">
<div class="pod">
<div class="media-body">
<span class="track-icon-close40 mpdLightBlue"></span>
<h3>FREE SHIPPING</h3>
<p><img src="deprixa_components/images/freeshipping.png" alt="DPD"
/></p>
<br><br>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="pod">
<div class="media-body">
<span class="track-icon-back3 mpdRed"></span>
<h3>HOW IT WORKS</h3>
<p><img src="deprixa_components/images/dropshipping.png" alt="DPD"
/></p>
<br><br>
<a href="contact-us.php" class="btn btn-primary">Contact us</a>
</div>
</div>
</div>
</section>

</div>
<section class="mpd-couriers">
<header>
<h2>Compare Our Couriers</h2>
</header>
<ul class="col-sm-12">

<li class="mpd-dpd"><img src="deprixa_components/images/global/courier-logos/dpd-


logo.png" alt="DPD" /></li>
<li class="mpd-hermes"><img src="deprixa_components/images/global/courier-
logos/hermes-logo.png" alt="Hermes" /></li>
<li class="mpd-parcel-force"><img src="deprixa_components/images/global/courier-
logos/parcelforce-logo.png" alt="Parcel Force" /></li>
<li class="mpd-mpd"><img src="deprixa_components/images/global/courier-
logos/mpd-logo.png" alt="MPD" /></li>
<li class="mpd-collect-plus"><img src="deprixa_components/images/global/courier-
logos/collectplus-logo.png" alt="Collect+" /></li>
<li class="mpd-dx"><img src="deprixa_components/images/global/courier-logos/dx-
logo.png" alt="DX" /></li>
<li class="mpd-ups"><img src="deprixa_components/images/global/courier-logos/ups-
logo.png" alt="UPS" /></li>
<li class="mpd-ajg"><img src="deprixa_components/images/global/courier-logos/ajg-
logo.png" alt="AJG" /></li>

</ul>
</section>
</main>

<?php include_once "footer.php"; ?>

</div>

<script src="deprixa_components/bundles/jquery"></script>
<script src="deprixa_components/bundles/bootstrap"></script>
<script src="deprixa_components/bundles/modernizr"></script>
<script src="deprixa_components/scripts/CookieManager.js"></script>
<script src="deprixa_components/scripts/MPD/Common/ga-events.js"></script>
<script src="deprixa_components/bundles/jqueryval"></script>
<script src="deprixa_components/scripts/tracking.js"></script>
<script src="deprixa_components/scripts/placeholder-shim.js"></script>
<script src="deprixa_components/scripts/trimFields.js"></script>
<script src="deprixa_components/scripts/trimFields.js"></script>
<script type="text/javascript"
src="deprixa_components/scripts/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript"
src="deprixa_components/hub/script/jquery.nivo.slider.pack.js"></script>
<script>
/*jshint jquery:true */
jQuery.noConflict();

jQuery(window).load(function() {
"use strict";
jQuery('#slider').nivoSlider({ controlNav: false});
});
jQuery(document).ready(function() {
"use strict";
jQuery('input.datepicker').Zebra_DatePicker();
// Carousel
jQuery("#carousel-type1").carouFredSel({
responsive: true,
width: '100%',
auto: false,
circular : false,
infinite : false,
items: {visible: {min: 1,max: 4},
},
scroll: {
items: 1,
pauseOnHover: true
},
prev: {
button: "#prev2",
key: "left"
},
next: {
button: "#next2",
key: "right"
},
swipe: true
});
jQuery(".work_slide ul").carouFredSel({
circular: false,
infinite: true,
auto: false,
scroll:{items:1},
items: {visible: {min: 3,max: 3}},
prev: { button: "#slide_prev", key: "left"},
next: { button: "#slide_next",key: "right"}
});
jQuery("#testimonial_slide").carouFredSel({
circular: false,
infinite: true,
auto: false,
scroll:{items:1},
prev: { button: "#slide_prev1", key: "left"},
next: { button: "#slide_next1",key: "right"}
});
});
</script>

</body>
</html>

Sign-Up.PhP

<!DOCTYPE html>

<html>

<head>
<meta charset="utf-8" />
<meta name="description" content=""/>
<meta name="keywords" content="" />
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-
scale=1" />
<!--html5 ie include-->
<!--[if lt IE 9]><script
src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if lt IE 9]><script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-
mediaqueries.js"></script><![endif]-->

<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />


<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="/Styles/ie-fixes.css" />
<![endif]-->

<!-- style -->


<link href="deprixa_components/content/cssefe4.css" rel="stylesheet"/>
<script type="text/javascript" src="panel/js/jquery.min.js"></script>
<script type="text/javascript" src="process/countries.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<link type="text/css" rel="stylesheet" href="custom.css">
<link type="text/css"
href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"
rel="stylesheet" />
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.css"
rel="stylesheet" />

<link href="deprixa_components/styles/address-details.css" rel="stylesheet" />


<link href="deprixa_components/styles/signup.css" rel="stylesheet" />

</head>

<!-- Menu -->


<?php include_once "menu.php"; ?>
<!-- /Menu -->

<div class="slide">
</div>
<main class="slide">
<section class="signup">
<h2>Sign up</h2>
<div class="well">
<form action="process/registration.php" method="post">
<div class="col-md-4 form-col details">
<div class="form-horizontal">

<div id="personal-details" class="form-horizontal">


<h4>Personal Details </h4>
<div class="form-group">
<label class="control-label col-md-4" for="PersonalDetails_Title">Title</label>
<div class="col-md-8">
<select class="form-control" id="PersonalDetails_Title" name="estado"><option
value="1">Mr</option>
<option value="1">Ms</option>
<option value="1">Mrs</option>
<option value="1">Other</option>
</select>
<span class="field-validation-valid text-danger" data-valmsg-for="PersonalDetails.Title"
data-valmsg-replace="true"></span>
</div>
</div>

<div class="form-group required">


<label class="control-label col-md-4" for="PersonalDetails_FirstName">First Name</label>
<div class="col-md-8">
<input class="form-control text-box single-line" data-val="true" data-val-required="The First
Name field is required." name="fname" required type="text" placeholder="First Name" />
<span class="field-validation-valid text-danger" data-valmsg-
for="PersonalDetails.FirstName" data-valmsg-replace="true"></span>
</div>
</div>

<div class="form-group required">


<label class="control-label col-md-4" for="PersonalDetails_Surname">Surname</label>
<div class="col-md-8">
<input class="form-control text-box single-line" data-val="true" data-val-required="The
Surname field is required." id="PersonalDetails_Surname" name="lname" type="text"
required placeholder="Last Name" />
<span class="field-validation-valid text-danger" data-valmsg-for="PersonalDetails.Surname"
data-valmsg-replace="true"></span>
</div>
</div>

<div class="form-group required">


<label class="control-label col-md-4" for="PersonalDetails_Email">Email</label>
<div class="col-md-8">
<input class="form-control text-box single-line" data-val="true" data-val-email="The Email
field is not a valid e-mail address." data-val-required="The Email field is required."
id="PersonalDetails_Email" name="email" id="email" required type="email"
placeholder="[email protected]" />
<span class="field-validation-valid text-danger" data-valmsg-for="PersonalDetails.Email"
data-valmsg-replace="true"></span>
</div>
</div>

</div>
</div>
</div>
<div class="email-not-in-use">
<div class="col-md-4 form-col">
<div class="form-horizontal">
<div id="personal-contact-details" class="form-horizontal simple-address">
<h4>Contact Details</h4>

<div class="form-group required">


<label class="control-label col-md-4"
for="PersonalContactDetails_Telephone">Telephone</label>
<div class="col-md-8">
<input class="form-control text-box single-line" data-val="true" data-val-regex="Please enter
a valid telephone number." data-val-regex-pattern="^(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*$" data-
val-requiredphone="Please enter a landline or a mobile number." data-val-requiredphone-
alt="Mobile" data-val-requiredphone-condition="" id="PersonalContactDetails_Telephone"
name="phone" type="text" placeholder="0-9" />
<span class="field-validation-valid text-danger" data-valmsg-
for="PersonalContactDetails.Telephone" data-valmsg-replace="true"></span>
</div>
</div>

<div class="form-group">
<label class="control-label col-md-4" for="PersonalContactDetails_Mobile">Company
Name</label>
<div class="col-md-8">
<input class="form-control text-box single-line" name="company" required type="text"
placeholder="Name of the business" />
<span class="field-validation-valid text-danger"></span>
</div>
</div>

<div class="form-horizontal address-entry-element">

<div class="address-entry-address-fields ">


<div class="form-group address-entry-extended-view">
<label class="control-label col-md-3 col-xs-3"
for="PersonalContactDetails_Address_Company">Address</label>
<div class="col-md-8 col-sm-8">
<input class="form-control address-entry-company text-box single-line"
id="PersonalContactDetails_Address_Company" name="address" required type="address"
rows="2" placeholder="Address" />
<span class="field-validation-valid text-danger" data-valmsg-
for="PersonalContactDetails.Address.Company" data-valmsg-replace="true"></span>
</div>
</div>
<div class="residentialAddressMessage"></div>
<div class="form-group required">
<label class="control-label col-md-3 col-xs-3"
for="PersonalContactDetails_Address_FirstLine">Country</label>
<div class="col-md-8 col-sm-8">
<span id="inter_origin" style="display: block;">
<select onchange="print_state('state', this.selectedIndex);" id="country" required name
="country" class="fa-glass booking_form_dropdown form-control"/></select> </span>
<script language="javascript">print_country("country");</script>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-xs-3"
for="PersonalContactDetails_Address_SecondLine">State</label>
<div class="col-md-8 col-sm-8">
<select name ="state" required id ="state" class="fa-glass booking_form_dropdown form-
control"><option value="">Select state</option></select>
<span class="field-validation-valid text-danger" ></span>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-xs-3"
for="PersonalContactDetails_Address_ThirdLine">Zipcode</label>
<div class="col-md-8 col-sm-8">
<input class="form-control address-entry-line3 text-box single-line"
id="PersonalContactDetails_Address_ThirdLine" name="zipcode" placeholder="0-9"/>
<span class="field-validation-valid text-danger" data-valmsg-
for="PersonalContactDetails.Address.ThirdLine" data-valmsg-replace="true"></span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4 form-col">
<div class="form-horizontal">

<div id="personall-account-details" class="form-horizontal">


<h4>Account Details</h4>
<input id="PersonalAccountDetails_Currency" name="PersonalAccountDetails.Currency"
type="hidden" value="GBP" />

<div class="form-group required">


<label class="control-label col-md-5"
for="PersonalAccountDetails_Password">Password</label>
<div class="col-md-7">
<input class="form-control text-box single-line password" data-val="true" data-val-
regex="Password must be at least 6 characters (letters, numbers and basic punctuation)."
data-val-regex-pattern="^[\u00c0-\u01ffa-zA-Z0-9&#39;-@%\+\\/!#\$\^\?:,\(\)\{\}\[\]~_]
{6,30}$" data-val-required="The Password field is required."
id="PersonalAccountDetails_Password" name="password" type="password"
placeholder="Password" />
<span class="field-validation-valid text-danger" data-valmsg-
for="PersonalAccountDetails.Password" data-valmsg-replace="true"></span>
</div>
</div>

<div class="form-group required">


<label class="control-label col-md-5"
for="PersonalAccountDetails_ConfirmPassword">Confirm Password</label>
<div class="col-md-7">
<input class="form-control text-box single-line password" data-val="true" data-val-
equalto="The passwords do not match" data-val-equalto-other="*.Password" data-val-
required="The Confirm Password field is required."
id="PersonalAccountDetails_ConfirmPassword" name="password" type="password"
placeholder="Confirm Password" />
<span class="field-validation-valid text-danger" data-valmsg-
for="PersonalAccountDetails.ConfirmPassword" data-valmsg-replace="true"></span>
</div>
</div>

<div class="form-group">

<div class="col-md-12 terms-check">


<p>By continuing your are accepting our <a href="terms-and-conditions.php"
target="_blank">terms &amp; conditions.</a></p>
</div>
</div>

<div class="form-group">
<div class="col-md-12">
<input type="submit" value="Sign up" class="btn btn-primary pull-right signup-btn" />
</div>
</div>

</div>
</div>
</div>
</div>
</form> <div class="clearfix"></div>
</div>
</section>
</main>
<!-- Footer -->
<?php include_once "footer.php"; ?>
<!-- /Footer -->
</div>
<script src="deprixa_components/bundles/jquery"></script>
<script src="deprixa_components/bundles/bootstrap"></script>
<script src="deprixa_components/bundles/modernizr"></script>
<script src="deprixa_components/scripts/CookieManager.js"></script>
<script src="deprixa_components/scripts/MPD/Common/ga-events.js"></script>
<script src="deprixa_components/bundles/jqueryval"></script>
<script src="deprixa_components/scripts/postcode-validation.js"></script>
<script src="deprixa_components/scripts/required-phone-validation.js"></script>
<script src="deprixa_components/scripts/address-entry.js"></script>
<script src="deprixa_components/scripts/signup.js"></script>
<script src="deprixa_components/scripts/pop-up-window.js"></script>
<script src="deprixa_components/scripts/placeholder-shim.js"></script>
<script src="deprixa_components/scripts/trimFields.js"></script>
</body>

</html>

Login.Php

<?php

error_reporting(E_ERROR | E_WARNING | E_PARSE);


session_start();
require_once('deprixa/database-settings.php');
require_once('deprixa/library.php');

?>
<!DOCTYPE html>

<html>
<head>
<meta charset="utf-8" />
<title>Tam Courier Software</title>
<meta name="description" content=""/>
<meta name="keywords" content="" />
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-
scale=1" />
<!--html5 ie include-->
<!--[if lt IE 9]><script
src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if lt IE 9]><script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-
mediaqueries.js"></script><![endif]-->

<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />


<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="/Styles/ie-fixes.css" />
<![endif]-->
<!-- style -->
<link href="deprixa_components/content/cssefe4.css" rel="stylesheet"/>
<link href="deprixa_components/styles/login.css" rel="stylesheet" />

</head>

<!-- Menu -->


<?php include_once "menu.php"; ?>
<!-- /Menu -->

<div class="slide">
</div>
<main class="slide">
<section class="login">
<div class="col-xs-12 cf fl col-sm-6 col-md-6 login-col">
<h2>Log in</h2>
<div class="col-md-12 well">
<form name="form1" autocomplete="off" method="post" />

<div class="form-horizontal">
<div class="panel-heading">

<?php
if(isset($_POST['user'])){
$error =
verify_users($_POST['user'],$_POST['password']);

}else{

echo '<div class="form-group">


<label
class="control-label col-md-3 col-md-offset-1" for="Email">Email</label>
<div class="col-
md-8">
<input
class="form-control text-box single-line" data-val="true" data-val-required="Please enter an
email" name="user"id="user" type="text" value="" />
<span
class="field-validation-valid text-danger" data-valmsg-for="Email" data-valmsg-
replace="true"></span>
</div>
</div>

<div class="form-
group">
<label
class="control-label col-md-3 col-md-offset-1" for="Password">Password</label>
<div class="col-
md-8">
<input
class="form-control text-box single-line password" data-val="true" data-val-
required="Please enter a password" name="password" id="password" type="password"
value="" />
<span
class="field-validation-valid text-danger" data-valmsg-for="Password" data-valmsg-
replace="true"></span>
</div>
</div>
<div class="form-
group">
<div class="col-md-10
col-md-offset-1 form-inline">
<input
type="submit" value="Log in" class="btn btn-primary pull-right" />
</div>
</div>';
}
?>

</div>
</div>
</div>
</div>
<div class="col-xs-12 fl col-sm-6 col-md-6 signup-col">
<h2>Sign up</h2>
<div class="col-md-12 well cf">
<div class="col-md-12">
<p>Sign up with us and enjoy some great benefits.</p>
<ul class="signup-benefits">
<li>Plenty of choice with dozens of services.</li>
<li>Delivery updates and offers, especially for you.</li>
<li>Extra benefits + including cashback for future bookings.</li>
</ul>
<a href='signup.php' class="btn btn-primary pull-right" role="button">
Sign up
</a>
</div>
</div>
</div>
</section>
</main>
<?php include_once "footer.php"; ?>

<script src="deprixa_components/bundles/jquery"></script>
<script src="deprixa_components/bundles/bootstrap"></script>
<script src="deprixa_components/bundles/modernizr"></script>
<script src="deprixa_components/scripts/CookieManager.js"></script>
<script src="deprixa_components/scripts/MPD/Common/ga-events.js"></script>
<script src="deprixa_components/bundles/jqueryval"></script>
<script src="deprixa_components/scripts/trimFields.js"></script>

</body>
</html>

Menu.php

<body>
<div id="container">
<div class="fw mpHeader slide">
<header class="mpdHeader">
<a href='index.php' class="mpd-logo" tabindex="-1">
<div><span class=""></span></div>
<div class="mpd-logo-text"><img src="deprixa/image_logo.php?id=1"/></div>
</a><!-- logo -->

<div class="login-status">
<a class="ga-trackevent" data-gacat="MainNav" data-galab="Login"
href="login.php">Log in to My Account</a>
</div><!-- log in / out -->
<!-- Nav -->
<nav class="mpdNavigation">
<div class="mobile-menu-header">Menu</div>
<ul>
<li class="index.php"><a href="index.php" class="MainNav" data-
gacat="index" data-galab="GetAQuote" tabindex="-1">Get a Quote</a></li>
<li><a href="signup.php" class="ga-trackevent" data-gacat="MainNav" data-
galab="Signup" tabindex="-1">SIGNUP</a></li>
<li><a href="tracking.php" class="ga-trackevent" data-gacat="MainNav" data-
galab="Tracking" tabindex="-1">Track My Parcel</a></li>
<li><a href="about-us.php" class="ga-trackevent" data-gacat="MainNav" data-
galab="UsefulStuff" tabindex="-1">About us<span class="caret"></span></a></li>
<li><a href="contact-us.php" class="ga-trackevent" data-gacat="MainNav"
data-galab="Help" tabindex="-1">Contact us</a></li>
<li class="deskHide last-mob-link"><a href="javascript:void(0)" class="close-mob-
menu fl pad-top-10">Close &raquo;</a></li>
</ul>
</nav>

</header>
</div>

Footer.php

<?php

error_reporting(E_ERROR | E_WARNING | E_PARSE);


session_start();
require_once('database.php');
require_once('library.php');
$company=mysql_fetch_array(mysql_query("SELECT * FROM company"));

isUser();
?>
<!-- Footer -->
<footer class="footer text-right">
<div class="container">
<div class="row">
<div class="col-xs-12">
<?php echo $company['footer_website']; ?>
</div>
</div>
</div>
</footer>
<!-- End Footer -->

Header.php

<?php

error_reporting(E_ERROR | E_WARNING | E_PARSE);


session_start();
require_once('database.php');
require_once('library.php');
isUser();
?>
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Page Description and Author -->
<meta name="description" content=""/>
<meta name="keywords" content="" />
<meta name="author" content="">
<!-- App Favicon -->
<link rel="shortcut icon" href="assets/images/favicon.ico">

<!-- App title -->


<title>Devesh Logistics Software</title>

<!--Morris Chart CSS -->


<link rel="stylesheet" href="assets/plugins/morris/morris.css">

<!-- Switchery css -->


<link href="assets/plugins/switchery/switchery.min.css" rel="stylesheet" />

<!-- App CSS -->


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

<!-- HTML5 Shiv and Respond.js IE8 support of HTML5 elements and media queries
-->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<!-- Modernizr js -->
<script src="assets/js/modernizr.min.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)
[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','../../../www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-79190402-1', 'auto');


ga('send', 'pageview');

</script>

</head>

<body>

<!-- Navigation Bar-->


<header id="topnav">
<div class="topbar-main">
<div class="container">

<!-- LOGO -->


<div class="topbar-left">
<a href="admin.php" class="logo">
<span><img src="image_logo.php?id=1"></span>
</a>
</div>
<!-- End Logo container-->

<div class="menu-extras">

<ul class="nav navbar-nav pull-right">

<li class="nav-item">
<!-- Mobile menu toggle-->
<a class="navbar-toggle">
<div class="lines">
<span></span>
<span></span>
<span></span>
</div>
</a>
<!-- End mobile menu toggle-->
</li>

<li class="nav-item dropdown notification-list">


<a class="nav-link dropdown-toggle arrow-none waves-effect waves-
light nav-user" data-toggle="dropdown" href="#" role="button"
aria-haspopup="false" aria-expanded="false">
<img src="assets/images/users/avatar-1.jpg" alt="user" class="img-
circle">
</a>
<div class="dropdown-menu dropdown-menu-right dropdown-arrow
profile-dropdown " aria-labelledby="Preview">
<!-- item-->
<div class="dropdown-item noti-title">
<h5 class="text-overflow"><small>Welcome ! <?php echo
$_SESSION['user_type']; ?></small> </h5>
</div>
<?php

if(isset($_SESSION['user_type']) && $_SESSION['user_type'] == 'Administrator') {


?>
<!-- item-->
<a href="preferences.php" class="dropdown-item notify-item">
<i class="zmdi zmdi-settings"></i> <span>Settings</span>
</a>
<?php } ?>
<?php

if(isset($_SESSION['user_type']) && $_SESSION['user_type'] == 'Employee') {


?>
<!-- item-->
<a href="preferences_user.php" class="dropdown-item notify-item">
<i class="zmdi zmdi-settings"></i> <span>Settings</span>
</a>
<?php } ?>
<!-- item-->
<a href="process.php?action=logOut" class="dropdown-item notify-
item">
<i class="zmdi zmdi-power"></i> <span>Logout</span>
</a>

</div>
</li>

</ul>

</div> <!-- end menu-extras -->


<div class="clearfix"></div>

</div> <!-- end container -->


</div>
<!-- end topbar-main -->

<div class="navbar-custom">
<div class="container">
<div id="navigation">
<!-- Navigation Menu-->
<ul class="navigation-menu">
<li>
<a href="admin.php"><i class="zmdi zmdi-view-dashboard"></i>
<span> Dashboard </span> </a>
</li>
<?php
if(isset($_SESSION['user_type'])
&& $_SESSION['user_type'] == 'Administrator') {
?>
<li class="has-submenu">
<a href="#"><i class="fa fa-users"></i> <span> MANAGEMENT OF
ACCOUNTS </span> </a>
<ul class="submenu">
<li><a href="add-new-
users-admin.php"><i class="fa fa-users"></i>&nbsp;&nbsp;Account administrator</a></li>
<li><a href="add-new-
users.php"><i class="fa fa-users"></i>&nbsp;&nbsp;Account Employee</a></li>
<li><a
href="customer.php"><i class="fa fa-user-plus"></i>&nbsp;&nbsp;Account
Customers</a></li>
</ul>
</li>
<li class="has-submenu">
<a href="#"><i class="fa fa-gear (alias)"></i> <span> SETTINGS
</span> </a>
<ul class="submenu">
<li><a href="service_mode.php"><i class="fa fa-
gift"></i>&nbsp;&nbsp;Product Types</a></li>
<li><a href="type-of-
shipments.php"><i class="fa fa-truck"></i>&nbsp;&nbsp;Type of Shipments</a></li>
<li><a href="add-
office.php"><i class="fa fa-map-marker"></i>&nbsp;&nbsp;Location</a></li>
</ul>
</li>
<?php } ?>
<li class="has-submenu">
<a href="add-courier.php"><i class="fa fa-cubes"></i> <span> ADD
SHIPPING </span> </a>
</li>
<?php
isUser();

if($_SESSION['user_type']=='client'){ header('Location: customer'); }


$result0 =
mysql_query("SELECT * FROM online_booking WHERE status='Pending'");
$nobookings =
dbNumRows($result0);
?>
<li class="has-submenu">
<a href="online-bookings.php"><i class="fa fa-
envelope">&nbsp;&nbsp;<font color="#FF0000"><strong><?php echo $nobookings; ?
></strong></font></i> <span> ONLINE BOOKINGS </span> </a>
<ul class="submenu">

<li><a href="transfer-bank.php"><i class="fa fa-


money"></i>&nbsp;&nbsp;List of payments, bank transfer</a></li>

</ul>
</li>
<li class="has-submenu">
<a href="#"><i class="zmdi zmdi-collection-text"></i> <span>
REPORTS </span> </a>
<ul class="submenu">
<li><a href="shipping-
list.php"><i class="fa fa-file-text-o"></i>&nbsp;&nbsp;List of Shipments</a></li>
<li><a href="delivered-list.php"><i class="fa fa-
truck"></i>&nbsp;&nbsp;List of delivered Shipments</a></li>
<li><a href="delivered-
list-online.php"><i class="fa fa-truck"></i>&nbsp;&nbsp;List of delivered Shipments
Online</a></li>
<li><a href="list-of-
shipping-paid.php"><i class="fa fa-money"></i>&nbsp;&nbsp;List of Shipping
Paid</a></li>
<li><a href="list-of-
shipping-topaid.php"><i class="fa fa-credit-card"></i>&nbsp;&nbsp;List of Shipping
ToPay</a></li>
<li><a href="list-of-
shipping-cash-on-delivery.php"><i class="fa fa-usd"></i>&nbsp;&nbsp;List of Shipping
Cash on Delivery</a></li>
</ul>
</li>
<?php
if(isset($_SESSION['user_type'])
&& $_SESSION['user_type'] == 'Administrator') {
?>
<li class="has-submenu">
<a> <span> | </span> </a>
</li>
<li class="has-submenu">
<a href="preferences.php"><i class="fa fa-briefcase"></i> <span>
COMPANY </span> </a>
</li>
<?php } ?>
</ul>
<!-- End navigation menu -->
</div>
</div>
</div>
</header>
<!-- End Navigation Bar-->

Tracking.php
<!DOCTYPE html>

<html>

<head>
<meta charset="utf-8" />
<title>Devesh Logistics Software</title>
<meta name="description" content=""/>
<meta name="keywords" content="" />
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-
scale=1" />
<!--html5 ie include-->
<!--[if lt IE 9]><script
src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if lt IE 9]><script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-
mediaqueries.js"></script><![endif]-->
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="/Styles/ie-fixes.css" />
<![endif]-->
<link rel="canonical" href="tracking.php" />
<!-- style -->
<link href="deprixa_components/content/cssefe4.css" rel="stylesheet"/>
<link href="deprixa_components/styles/track-order.css" rel="stylesheet" />

</head>

<!-- Menu -->


<?php include_once "menu.php"; ?>
<!-- /Menu -->

<div class="slide">
</div>
<main class="slide">
<div class="fw">
<section class="title">
<header>
<h1><img src="deprixa_components/images/global/tracking-search.png" />Is it
nearly there yet?</h1>

<p class="mobHide">
The pick-up and delivery is easy with us, and doing so Could not be simpler.
Once your delivery You have booked through us, a tracking number is assigned example
something like <strong>AWB-472304198</strong> Just input This unique number into the
box below and, ta-dah, you can find out exactly Where it is!
</p>
</header>
<div class="media-left">

</div>
</section>
</div>
<div class="fw green-bg">
<section class="track-num">
<h3>Enter your Booking Reference</h3>
<div class="search-bar">
<form action="tracking-result.php" method="post"
name="form" id="form" >
<div class="form-group mob-track">
<div class="input-group">
<!--<div class="input-group-addon">MPD</div>-->
<input type="text" class="form-control" name="Consignment"
id="Consignment" placeholder="Example AWB-472304198">
</div>
</div>
<button type="submit" class="btn btn-primary" name="Submit"
onClick="MM_validateForm('Consignment','','R');return document.MM_returnValue"><img
src="deprixa/images/Tracking.png" alt="x" />Track my parcel</button>
<div class="wait-message" style="text-align:center; display:none;">
<img src="deprixa_components/images/global/loading-green.gif" />
Searching... Please wait.
</div>
</div>
</form>
</section>
</div>

<div class="fw grey-bg">


<section class="history">
<div id="TrackingEventsContainer">

</div>
</section>

<section class="trackorder-boxes">
<div class="col-sm-6">
<div class="pod">
<div class="media-body">
<span class="track-icon-close40 mpdLightBlue"></span>
<h3>Parcel not yet collected?</h3>
<p>Sorry, this doesn’t happen often, we’re sure there’s a good reason. If it’s
after 6pm on the booked collection day, then reschedule a collection here.</p>
<a href="login.php" class="btn btn-primary">Reschedule collection</a>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="pod">
<div class="media-body">
<span class="track-icon-back3 mpdRed"></span>
<h3>Need a fast answer?</h3>
<p>If you’ve any questions at all about your delivery, then don’t hesitate to
get in touch with our UK based customer service team. But first check out our FAQ's
page</a> as the answer you’re looking for will probably be there.</p>
<a href="contact-us.php" class="btn btn-primary">Contact us</a>
</div>
</div>
</div>
</section>

</div>
</main>

<!-- Footer -->


<?php include_once "footer.php"; ?>
<!-- /Footer -->
</div>

<script src="deprixa_components/bundles/jquery"></script>
<script src="deprixa_components/bundles/bootstrap"></script>
<script src="deprixa_components/bundles/modernizr"></script>
<script src="deprixa_components/scripts/CookieManager.js"></script>
<script src="deprixa_components/Scripts/MPD/Common/ga-events.js"></script>
<script src="deprixa_components/bundles/jqueryval"></script>
<script src="deprixa_components/scripts/tracking.js"></script>
<script src="deprixa_components/scripts/placeholder-shim.js"></script>
<script src="deprixa_components/scripts/trimFields.js"></script>

</body>
</html>

Tracking-result.Php
<?php

error_reporting(E_ERROR | E_WARNING | E_PARSE);


require_once('deprixa/database.php');

$cons= $_POST['Consignment'];

$sql = "SELECT * FROM courier WHERE cons_no = '$cons'";


$result = dbQuery($sql);
$no = dbNumRows($result);
if($no == 1){

while($data = dbFetchAssoc($result)) {
extract($data);

?>

<!DOCTYPE html>

<html>

<head>
<meta charset="utf-8" />
<title>Tam Courier Software</title>
<meta name="description" content="Courier Deprixa V2.5 "/>
<meta name="keywords" content="" />
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-
scale=1" />
<!--html5 ie include-->
<!--[if lt IE 9]><script
src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if lt IE 9]><script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-
mediaqueries.js"></script><![endif]-->

<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />


<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="/Styles/ie-fixes.css" />
<![endif]-->
<!-- Font Awesome CSS -->
<link rel="stylesheet" href="deprixa/asset1/css/font-awesome.min.css" type="text/css"
media="screen">
<link rel="canonical" href="tracking.php" />

<!-- style -->


<link href="deprixa_components/content/cssefe4.css" rel="stylesheet"/>
<link rel="stylesheet" href="deprixa/css/tracking.css" type="text/css" />
<link href="deprixa_components/styles/track-order.css" rel="stylesheet" />
<link href="deprixa/css/style.css" rel="stylesheet" media="all">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600' rel='stylesheet'
type='text/css'>

<style> .Finished { background: #363C56; } .Delayed { background: #F76063; } .On-Hold


{ background: #4ECCDB; } .Landed { background: #FF8A4B; } .label{padding: 6px;} .In-
Transit { background:#00D96D; } .Delivered { background:#FFBF00; }</style>

</head>

<!-- Menu -->


<?php include_once "menu.php"; ?>
<!-- /Menu -->

<div class="slide">
</div>
<main class="slide">
<div class="fw">
<section class="title">
<header>
<h1><img src="deprixa_components/images/global/tracking-search.png" />Parcel
Tracking</h1>
</header>
<div class="media-left">

</div>
</section>
</div>

<div class="container">

<div>
<table border="0" align="center" width="100%">

<div class="row">
<div class="col-md-6">

<h3><i class="fa fa-barcode" style="width: 25px; font-size: 35px; float: left;"


></i>&nbsp;<font color="#FF4000"><strong><?php echo $cons_no; ?
></strong></font></span></h3>

</div>
<div class="col-md-6">
<h3><font color="Black" face="arial,verdana"><strong>Current
Status</strong></font>:&nbsp;<span class="label <?php echo $status; ?> label-large"><font
size=2 color="White" face="arial,verdana"><?php echo $status; ?
></font></span>&nbsp;&nbsp;&nbsp;
<font color="Black" face="arial,verdana"><strong>Booking
Mode</strong></font>:&nbsp;<span class="label label-danger"><i class="fa fa-
money"></i><font size=2 color="White" face="arial,verdana"> <?php echo $book_mode; ?
></font></span></h3>

</div>
</div>
<div class="col-md-6">
<table class="table table-striped">
<tr> </tr>
</table>
</div>
<hr />
<div class="row">
<div class="col-md-4"> <font size=3 color="Black" face="arial,verdana"><strong>Schedule
Delivery</strong></font><br />
<?php echo $schedule; ?>, By End Of Day
</div>
</div>
<hr />
<div class="row">
<div class="col-md-12">
<h2>Additional Information</h2>
</div>
<br/>
<div class="col-md-4"> <font size=2 color="Black"
face="arial,verdana"><strong>Origin:</strong></font> <?php echo $invice_no; ?><br />
<font size=2 color="Black" face="arial,verdana"><strong>Destination:</strong></font> <?
php echo $pick_time; ?><br />
<font size=2 color="Black" face="arial,verdana"><strong>Services:</strong></font> <?php
echo $mode; ?><br />
<font size=2 color="Black" face="arial,verdana"><strong>Type:</strong></font> <?php
echo $type; ?><br />
<font size=2 color="Black" face="arial,verdana"><strong>Weight:</strong></font> <?php
echo $weight; ?>&nbsp;kg<br />
<font size=2 color="Black" face="arial,verdana"><strong>Pickup
Date/Time:</strong></font> <?php echo $pick_date; ?><br/>
<font size=2 color="Black" face="arial,verdana"><strong>Descripcion:</strong></font> <?
php echo $comments; ?>
</div>
<div class="col-md-4"> <font size=3 color="Black" face="arial,verdana"><strong>Shipper
info</strong></font><br />
<font size=2 color="Black" face="arial,verdana"><strong>Name:</strong></font> <?php
echo $ship_name; ?><br />
<font size=2 color="Black" face="arial,verdana"><strong>Phone:</strong></font> <?php
echo $phone; ?><br />
<font size=2 color="Black" face="arial,verdana"><strong>Address:</strong></font> <?php
echo $s_add; ?>
</div>
<div class="col-md-4"> <font size=3 color="Black"
face="arial,verdana"><strong>Consignee Information</strong></font><br />
<font size=2 color="Black" face="arial,verdana"><strong>Name:</strong></font> <?php
echo $rev_name; ?><br />
<font size=2 color="Black" face="arial,verdana"><strong>Phone:</strong></font> <?php
echo $r_phone; ?><br />
<font size=2 color="Black" face="arial,verdana"><strong>Address:</strong></font> <?php
echo $r_add; ?>
</div>

</div>
<hr />
<div class="row">
<div class="col-md-12">
<h2>Travel History</h2>
<br/>
<?php
require_once('deprixa/database.php');

//EJECUTAMOS LA CONSULTA DE BUSQUEDA

$result = mysql_query("SELECT * FROM courier_track WHERE cid = $cid AND


cons_no = '$cons_no' ORDER BY bk_time");

//CREAMOS NUESTRA VISTA Y LA DEVOLVEMOS AL AJAX

echo ' <table class="table table-bordered table-striped table-hover" >


<tr class="car_bold col_dark_bold" align="center">
<td><font color="Black" face="arial,verdana"><strong>Tracking No</strong></font></td>
<td><font color="Black" face="arial,verdana"><strong>Last Location
</strong></font></td>
<td><font color="Black" face="arial,verdana"><strong>Status</strong></font></td>
<td><font color="Black" face="arial,verdana"><strong>Date / Time</strong></font></td>
<td><font color="Black" face="arial,verdana"><strong>Remarks</strong></font></td>
</tr>';
if(mysql_num_rows($result)>0){
while($row = mysql_fetch_array($result)){
echo '<tr align="center">
<td>'.$row['cons_no'].'</td>
<td>'.$row['pick_time'].'</td>
<td>'.$row['status'].'</td>
<td>'.$row['bk_time'].'</td>
<td>'.$row['comments'].'</td>
</tr>';
}
}else{
echo '<tr>
<td colspan="5" >No results found</td>
</tr>';
}
echo '</table>';
?>
</div>
</div><!-- .container -->
</div>

</div>

</main>

<!-- Footer -->


<?php include_once "footer.php"; ?>
<!-- /Footer -->
</div>

<script src="deprixa_components/bundles/jquery"></script>
<script src="deprixa_components/bundles/bootstrap"></script>
<script src="deprixa_components/bundles/modernizr"></script>
<script src="deprixa_components/Scripts/CookieManager.js"></script>
<script src="deprixa_components/Scripts/MPD/Common/ga-events.js"></script>
<script src="deprixa_components/bundles/jqueryval"></script>
<script src="deprixa_components/Scripts/tracking.js"></script>

</body>
</html>

<?php

}//while

}//if
else {
echo '';
?>

<!doctype html>
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><html lang="en" class="no-js"> <![endif]-->
<html>

<head>
<meta charset="utf-8" />
<title>Tam Courier Software</title>
<meta name="description" content=""/>
<meta name="keywords" content="" />
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-
scale=1" />

<link rel="stylesheet" href="deprixa/asset1/css/font-awesome.min.css" type="text/css"


media="screen">
<link rel="canonical" href="tracking.php" />

<!-- style -->


<link href="deprixa_components/content/cssefe4.css" rel="stylesheet"/>
<link rel="stylesheet" href="deprixa/css/tracking.css" type="text/css" />
<link href="deprixa_components/styles/track-order.css" rel="stylesheet" />
<link href="deprixa/css/style.css" rel="stylesheet" media="all">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600' rel='stylesheet'
type='text/css'>

</head>

<!-- Menu -->


<?php include_once "menu.php"; ?>
<!-- /Menu -->

<div class="slide">
</div>
<main class="slide">
<div class="fw">
<section class="title">
<header>
<h1><img src="deprixa_components/images/global/tracking-search.png" />Parcel
Tracking</h1>
</header>
<div class="media-left">

</div>
</section>
</div>
<div class="container">
<div class="page-content">

<div class="text-center">
<h1><img src="deprixa_components/images/error.png" /></h1>
<h3>Tracking number not found,</h3>
<p><font color="#FF0000"><?php echo $cons; ?></font> check the number or Contact
Us.</p>
<div class="text-center"><a href="index.php" class="btn-system btn-small">Back To
Home</a></div>
</div>
</div>
</div>
</div>
<!-- End Content -->

<!-- Footer -->


<?php include_once "footer.php"; ?>
<!-- /Footer -->
</div>

<script src="deprixa_components/bundles/jquery"></script>
<script src="deprixa_components/bundles/bootstrap"></script>
<script src="deprixa_components/bundles/modernizr"></script>
<script src="deprixa_components/scripts/CookieManager.js"></script>
<script src="deprixa_components/scripts/MPD/Common/ga-events.js"></script>
<script src="deprixa_components/bundles/jqueryval"></script>
<script src="deprixa_components/scripts/tracking.js"></script>
<script>
function myFunction() {
window.print();
}
</script>
</body>
<?php
}//else

?>
</html>

About-us.php

<!DOCTYPE html>

<html>
<head>
<title>Find out all About Us | Deprixa pro </title>
<meta name="description" content="Courier Deprixa V2.5 "/>
<meta name="keywords" content="Courier DEPRIXA-Integral Web System" />
<meta name="author" content="Jaomweb">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-
scale=1" />

<link rel="stylesheet" href="deprixa_components/hub/css/about-us.css" />


<link rel="stylesheet" href="deprixa_components/hub/css/dSwiper.css" />
<link rel="stylesheet" href="deprixa_components/hub/css/global.css" />
<link rel="stylesheet" href="deprixa_components/hub/css/bootstrap-mpd.css" />

<link rel="canonical" href="tracking.php" />

<!-- style -->


<link href="deprixa_components/content/cssefe4.css" rel="stylesheet"/>
<link href="deprixa_components/styles/track-order.css" rel="stylesheet" />

</head>
<!-- Menu -->
<?php include_once "menu.php"; ?>
<!-- /Menu -->

<div class="slider-wrapper theme-default">


<div id="slider" class="nivoSlider">
<img src="deprixa_components/images/slider/about-us.png" alt="" />
</div>
</div>
<main class="slide">

<div class="fw about-header-bg">


</div>

<div class="fw">
<section class="about-us-features">
<div class="col-md-6 col-sm-12 noPadLeft industryLeading"><header>
<h2>Industry Leading Technology</h2>
</header>
<p><img src="deprixa_components/images/industry-leading.png" align="left" alt=""></p>
<p>"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque
laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto
beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur
aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi
nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur,
adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam
aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam
corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum
iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum
qui dolorem eum fugiat quo voluptas nulla pariatur?"</p>
</div>
<div class="col-md-6">
<img src="deprixa_components/images/about-us.png" alt="">
</div>
</section>
</div>

</main>
<!-- Footer -->
<?php include_once "footer.php"; ?>
<!-- /Footer -->
</div>
<script src="deprixa_components/hub/scripts/services/services.js"></script>
<script src="deprixa_components/hub/scripts/dSwiper.min.js"></script>
<script type='text/javascript'
src='deprixa_components/scripts/MPD/integration.js'></script>
<script type='text/javascript' src='deprixa_components/scripts/MPD/Common/ga-
events.js'></script>
<script src="deprixa_components/bundles/jquery"></script>
<script src="deprixa_components/bundles/bootstrap"></script>
<script src="deprixa_components/bundles/modernizr"></script>
<script src="deprixa_components/scripts/CookieManager.js"></script>
<script src="deprixa_components/scripts/MPD/Common/ga-events.js"></script>
<script src="deprixa_components/bundles/jqueryval"></script>
<script src="deprixa_components/scripts/tracking.js"></script>
<script src="deprixa_components/scripts/placeholder-shim.js"></script>
<script src="deprixa_components/scripts/trimFields.js"></script>

</body>

</html>

Contact-us.Php

<!DOCTYPE html>

<html>

<head>
<meta charset="utf-8">
<title>Tam Courier Software</title>
<meta name="description" content=""/>
<meta name="keywords" content="" />
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-
scale=1" />

<!-- style -->


<link href="deprixa_components/content/cssefe4.css?v=635906170601831033"
rel="stylesheet"/>

<link href="deprixa_components/styles/track-order.css" rel="stylesheet" />


<script src="deprixa_components/hub/js/jquery.min.js"></script>
<script src="deprixa_components/hub/scripts/global.js"></script>
<script src="deprixa_components/hub/scripts/bootstrap.min.js"></script>

<link rel="stylesheet" href="deprixa_components/hub/css/contact.css" />


<link rel="stylesheet" href="deprixa_components/hub/css/global.css" />
<link rel="stylesheet" href="deprixa_components/hub/css/bootstrap-mpd.css" />
<link rel="stylesheet"
href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" >
<link rel="stylesheet" href="deprixa_components/css/style-email.css" />
<style>
.container {
width: auto;
max-width: 800px;
}
.form-group {
margin-bottom: 8px;
}

</style>

<!--[if lte IE 9]><link rel="stylesheet" href="/hub/css/ie9.css" /><![endif]-->


<!--[if lte IE 8]><script src="/hub/js/html5shiv.js"></script><link rel="stylesheet"
href="/hub/css/ie8.css" /><![endif]-->
<!--[if lte IE 7]><link rel="stylesheet" href="/hub/css/ie7.css" /><![endif]-->

<link rel="icon" type="image/png" href="../favicon-32x32.png" sizes="32x32" />


<link rel="icon" type="image/png" href="../favicon-16x16.png" sizes="16x16" />

</head>
<!-- Menu -->
<?php include_once "menu.php"; ?>
<!-- /Menu -->

<div class="slide">
</div>
<main class="slide">
<div class="fw grey-bg">
<section class="get-in-touch"><header>
<h1>Get in touch</h1>
</header>
<div class="col-lg-4 col-sm-4 col-sm-offset-2">
<div class="iconbox"><span class="contact-icon-chat55"></span>
<p>Live chat</p>
<p class="info">Chat to us live now, it's the fastest way to get in touch. We're online 8am-
6pm, Monday to Friday. Simply click the orange button in the bottom right of your
screen.</p>
</div>
</div>
<!--<div class="mobOnly col-lg-4 col-sm-4"><div class="iconbox"><span class="contact-
icon-chat55"></span><p>Live chat</p><p class="info">Chat to us live right here, it’s the
fastest way to get in touch. We’re online 8am-6pm, Monday to Thursday, 8am-6pm
Friday.</p><a href="#" class="primaryButtonSmall">Click here</a></div></div>-->
<div class="mobHide col-lg-4 col-sm-4" style="display: none;">
<div class="iconbox"><span class="contact-icon-call10"></span>
<p>Phone us</p>
<p class="info">Give us a call on 1223456789 and we'll be happy to help. We're on the
phone 8.30am - 5.30pm. Monday to Friday</p>
</div>
</div>
<div class="mobHide col-lg-4 col-sm-4">
<div class="iconbox"><span class="help-icon-email20"></span>
<p>Send a message</p>
<p class="info">If you can't stay online for your answer, simply send us a message. We'll do
our best to reply to all message within 2 business hours.</p>
<button type="button" class="btn btn-primary primaryButtonSmall" data-toggle="modal"
data-target=".zenDesk">Click here</button>
<div class="modal fade zenDesk">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-
label="Close"><span class="closeModal" aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myLargeModalLabel">Send a message</h4>
</div>
<div class="container">

<div class="page-header">
<h3>write your questions and concerns and will respond soon. Thank you.</h3>
</div>

<div class="email-form">

<form action="prose-form.php" method="post" class="contact-form"


onsubmit="return validar(this);">
<div class="formulario">
<div class="column">
<label for="Name">Name </label>
<input type="text" name="name" class="form-input"
onblur="revisar(this);"/>

<label for="email">Email </label>


<input type="email" name="email" class="form-input"
onblur="revisar(this); revisaremail(this);"/>
<label for="Message Subject">Message Subject
</label>
<input type="text" name="subject" class="form-input"
onblur="revisar(this);"/>
</div>

<div class="column">
<label for="Comment">Comment </label>
<textarea name="comment" class="form-input"
></textarea>
</div>

<input class="form-btn" type="submit" value="Send


Message"/>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="mobOnly col-lg-4 col-sm-4">
<div class="iconbox"><span class="help-icon-email20"></span>
<p>Send a message</p>
<!--<p class="info">If you can’t stay online for your answer, simply <a
href="mailto:[email protected]">click here</a> to send us a message. We’ll do our
best to reply to all messages within 2 business hours.</p>--> <a href="mailto:[email protected]"
class="primaryButtonSmall">Click here</a></div>
</div>
</section>
</div>
<div class="fw">
<section class="find-us"><header>
<h1>Where to find us</h1>
</header>
<div class="col-lg-4 col-xs-12 details">
<div class="mpd-address col-lg-12 col-sm-6 col-xs-12">
<h2><span class="contact-icon-place4"></span>Address</h2>
<address>
<p><strong>Devesh Logistics ,</strong> <br /> Behera-Sahi, <br /> NayaPalli , <br />
Bhubaneswar, Odisha, <br />751003,751029 <br /> india, <br /> C31</p>
</address></div>
<div class="companyinfo-container col-lg-12 col-sm-6 col-xs-12">
<h2 class="companyinfo"><span class="contact-icon-information38"></span>Company
Information</h2>
<p><strong>Company Number:</strong> +91 8249530072, <br /> Registered in Odisha and
Sambalpur</p>
<p><strong>VAT Number:</strong> +91 8249530072</p>
</div>
</div>
<div class="col-lg-8 col-xs-12">
<div id="map-container"><iframe src="https://www.google.com/maps/embed?pb=!1m18!
1m12!1m3!1d126912.11113816842!2d-75.56172991760408!3d6.263271374416086!2m3!
1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8e4428ef4e52dddb
%3A0x722fd6c39270ac72!2sMedell%C3%ADn%2C+Antioquia!5e0!3m2!1ses!2sco!
4v1468552001805" frameborder="0" style="border: 0;"></iframe></div>
</div>
</section>
</div>

</main>

<!-- Footer -->


<?php include_once "footer.php"; ?>
<!-- /Footer -->
</div>
<script type='text/javascript'
src='deprixa_components/scripts/MPD/integration.js'></script>
<script type='text/javascript' src='deprixa_components/scripts/MPD/Common/ga-
events.js'></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="contact/assets/vender/intl-tel-input/js/intlTelInput.min.js"></script>
<script type='text/javascript' src='deprixa_components/js/form.js'></script>
</body>

</html>

Registration.php

<?php

error_reporting(E_ERROR | E_WARNING | E_PARSE);


require_once('../deprixa/database.php');

$fname = $_POST['fname'];
$lname = $_POST['lname'];
$name = $fname.' '.$lname;
$company = $_POST['company'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$address=$_POST['address'];
$country = $_POST['country'];
$state = $_POST['state'];
$zipcode = $_POST['zipcode'];
$estado = $_POST['estado'];
$password = $_POST['password'];
$sql1 =mysql_query("SELECT email FROM tbl_clients WHERE email='$email'");
if($row=mysql_fetch_array($sql1)){

echo "<script type=\"text/javascript\">


alert(\"$email This is
registered as Mail, enter a different email, thanks.\");
window.location
= \"http://deprixa-en.jaom.info/login.php\"
</script>";

}else{
$sql1="INSERT INTO tbl_clients
(name,email,phone,address,password,country,state,zipcode,estado,company,date) VALUES

('$name','$email','$phone','$address','$password','$country','$state','$zipcode','$estado','$comp
any',curdate())";
}
dbQuery($sql1);

$result1 = mysql_query("SELECT * FROM company");


while($row = mysql_fetch_array($result1)) {

$to = $row["bemail"];
$address = $row["caddress"];
$namecompany = $row["cname"];
// subject

$subject = 'Welcome to '.$row["cname"].'';


$from = $row["bemail"];

// message
$text_message = "Hi ".$name." this is our address, <br /><br /> <strong> ".
$address." Please consider your environmental responsibility. Before printing this e-mail
message, ask yourself whether you really need a hard copy.</strong><br /><br />
IMPORTANT:</strong> The contents of this email and any attachments are confidential.
They are intended for the named recipient(s) only. If you have received this email by
mistake, please notify the sender immediately and do not disclose the contents to anyone or
make copies thereof.";

// HTML email starts here

$message = "<html><body>";
$message .= "<table width='100%' bgcolor='#e0e0e0' cellpadding='0' cellspacing='0'
border='0'>";
$message .= "<tr><td>";
$message .= "<table align='center' width='100%' border='0' cellpadding='0'
cellspacing='0' style='max-width:800px; background-color:#fff; font-family:Verdana,
Geneva, sans-serif;'>";
$message .= "<thead>
<tr height='80'>
<th colspan='4' style='background-color:#f5f5f5;
border-bottom:solid 1px #bdbdbd; font-family:Verdana, Geneva, sans-serif; color:#333; font-
size:23px;' >".$namecompany."</th>
</tr>
</thead>";

$message .= "<tbody>

<tr>
<td colspan='4' style='padding:15px;'>
<p><img src='".
$row['website']."deprixa/image_logo.php?id=1'></p>
<br><br>
<p style='font-size:14px;'>Customer Name:
<strong>".$name."</strong></p>
<hr/>
<p style='font-size:14px;'>Username: <strong>
".$email."</strong></p>
<p style='font-size:14px;'>Password: <strong>
".$password."</strong></p>
<br><br>
<p><a
style='background:#eee;color:#333;padding:10px;' href='".$row["website"]."login.php'
>Customer Login</a></p>
<br><br>
<p style='font-size:13px; font-family:Verdana,
Geneva, sans-serif;'>".$text_message.".</p>
</td>
</tr>

</tbody>";
$message .= "</table>";
$message .= "</td></tr>";
$message .= "</table>";
$message .= "</body></html>";

// To send HTML mail, the Content-type header must be set

$headers = 'MIME-Version: 1.0' . "\r\n";


$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From: '.$from."\r\n";
// this line checks that we have a valid email address
mail($to, $subject, $message, $headers); //This method sends the mail.
mail($email, $subject, $message, $headers); //This method sends the mail.

echo "<script type=\"text/javascript\">


alert(\"$name Thank you very much for
registering.\");
window.location = \"http://deprixa-
en.jaom.info/login.php\"
</script>";

?>

Library.php

<?php

error_reporting(E_ERROR | E_WARNING | E_PARSE);

require_once('database.php');
require_once('funciones.php');
function verify_users($user,$pwd) {

$sql = "SELECT * FROM manager_admin WHERE name = '$user' AND pwd = '$pwd' ";
$result = dbQuery($sql);
$no = dbNumRows($result);
if($no >= 1) {
$_SESSION['user_name']= $user;
$_SESSION['user_type']= 'Administrator';
echo '<div class="alert alert-succes" role="alert" align="center">
<strong>Welcome<br><br>'.$user.'</strong></div>';
echo '<center><img src="deprixa/images/balls.gif"></center><br>';
echo '<meta http-equiv="refresh" content="2;url=deprixa/admin.php">';

} else {
$sql = "SELECT name_parson FROM manager_user WHERE name = '$user' AND
pwd = '$pwd' AND estado = '1'";
$result = dbQuery($sql);
$no = dbNumRows($result);
if($no >= 1) {

$_SESSION['user_name']= $user;
$_SESSION['user_type']= 'Employee';
echo '<div class="alert alert-succes" role="alert" align="center">
<strong>Welcome<br><br>'.$user.'</strong></div>';
echo '<center><img src="deprixa/images/balls.gif"></center><br>';
echo '<meta http-equiv="refresh" content="2;url=deprixa/admin.php">';

} else {

$sql = "SELECT name FROM tbl_clients WHERE email = '$user' AND password =
'$pwd' AND estado = '1'";
$result = dbQuery($sql);
$no = dbNumRows($result);
if($no >= 1) {
$_SESSION['user_name']= $user;
$_SESSION['user_type']= 'client';
echo '<div class="alert alert-succes" role="alert" align="center">
<strong>Welcome<br><br>'.$user.'</strong></div>';
echo '<center><img src="deprixa/images/balls.gif"></center><br>';
echo '<meta http-equiv="refresh" content="2;url=deprixa/panel-customer/customer.php">';
} else {
echo mensajes('Username and password incorrect<br>','rojo');
echo '<center><a href="login.php" class="btn btn-success"><strong>Try
again</strong></a></center>';
}
}//else
}

function isUser(){
if(!isset($_SESSION['user_name'])){
header('Location: deprixa/admin.php');
}

}
?>

Customer.php

<?php

error_reporting(E_ERROR | E_WARNING | E_PARSE);


session_start();
require_once('database-settings.php');
require_once('database.php');
require_once('library.php');

$sql = "SELECT *
FROM offices";
$result = dbQuery($sql);
isUser();
?>
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Page Description and Author -->
<meta name="description" content=""/>
<meta name="keywords" content="" />
<meta name="author" content="">

<!-- App Favicon -->


<link rel="shortcut icon" href="assets/images/favicon.ico">

<!-- App title -->


<title>Tam Courier Software </title>

<!-- Switchery css -->


<link href="assets/plugins/switchery/switchery.min.css" rel="stylesheet" />

<!-- App CSS -->


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

<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"


type="text/css" />
<link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css"
type="text/css" />
<link rel="stylesheet" href="bower_components/simple-line-icons/css/simple-line-icons.css"
type="text/css" />
<link rel="stylesheet" href="css/font.css" type="text/css" />
<link href="css/estilos.css" rel="stylesheet">
<link href="js/css/dataTables.bootstrap.css" rel="stylesheet">
<link href="js/plugins/sweetalert/css/sweetalert.css" rel="stylesheet">
<script type="text/javascript" src="../process/countries.js"></script>

</head>
<body>
<?php include("header.php"); ?>

<!-- ==============================================================
-->
<!-- Start right Content here -->
<!-- ==============================================================
-->
<div class="wrapper">
<div class="container">
<!-- Page-Title -->
<?php
include("icon_settings.php");
?>

<div class="row">
<div class="col-sm-12">
<div class="card-box table-responsive">
<table border="0" align="center" width="100%">
<tr>
<td class="TrackTitle" valign="top"><div align=""><h3 class="classic-
title1"><span><strong></strong></span></h3>
</tr>
<div class="row">
<div class="col-xs-12" align="center">
<h2>Manage New Clients</h2>
<br>
</div>
</div>

<div class="row">
<div class="col-xs-12">
<!--Botones principales-->
<button type="button" class="btn btn-md btn-success" data-toggle="modal" data-
target="#nuevo"><i class="fa fa-user-plus"></i>
New Client</button>
<button type="button" class="btn btn-md btn-info" id="recarga"><i class="fa fa-
refresh"></i>
To Update</button>
</div>
<div class="col-xs-12">
<div class="table">
<br>
<!--Inicio de tabla usuarios-->
<table id="tabla-usuarios" class="table table-striped table-bordered" cellspacing="0"
width="100%">
<!--encabezado tabla-->
<thead>
<tr>
<th>Customer Name</th>
<th>Address</th>
<th>Phone Number</th>
<th>Email</th>
<th>User</th>
<th>Password</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
</table>
<!--fin de tabla-->

</div>
</div>
</div>

<!-- Modal nuevo usuario -->


<div class="modal fade" id="nuevo" tabindex="-1" role="dialog" aria-
labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-
hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel"><i class="fa fa-user-plus"></i> New
Client</h4>
</div>
<div class="modal-body">
<!--Cuerpo del modal aquí el formulario-->
<form action="settings/add-new-clients/agregar.php" class="form-horizontal"
method="post">
<div class="form-group " id="gnombre">
<label for="office" class="col-sm-2 control-label">Customer Name </label>
<div class="col-sm-10">
<input type="text" class="form-control office" name="name" placeholder="Customer
Name">
</div>
</div>
<div class="form-group" id="gapellido">
<label for="address" class="col-sm-2 control-label">Address </label>
<div class="col-sm-5">
<input type="text" class="form-control address" name="address" placeholder="Address ">
</div>
<div class="col-sm-5">
<input class="form-control ph_no" name="phone" placeholder="Phone Number">
</div>
</div>
<div class="form-group" id="gusuario">
<label for="officer_name" class="col-sm-2 control-label">User</label>
<div class="col-sm-5">
<input type="text" class="form-control officer_name" name="email"
placeholder="EMAIL">
</div>
<div class="col-sm-5">
<input type="text" class="form-control off_pwd" name="password"
placeholder="Password">
</div>
</div>
<div class="form-group" id="gusuario">
<label for="officer_name" class="col-sm-2 control-label">Country</label>
<div class="col-sm-5">
<span id="inter_origin" style="display: block;">
<select onchange="print_state('state', this.selectedIndex);" id="country" required name
="country" class="fa-glass booking_form_dropdown form-control"/></select> </span>
<script language="javascript">print_country("country");</script>
</div>
<div class="col-sm-5">
<select name ="state" required id ="state" class="fa-glass booking_form_dropdown form-
control"><option value="">Select state</option></select>
<span class="field-validation-valid text-danger" ></span>
</div>
</div>
<div class="form-group" id="gusuario">
<label for="officer_name" class="col-sm-2 control-label">Company</label>
<div class="col-sm-5">
<input type="text" class="form-control officer_name" name="company"
placeholder="Company name">
</div>
<div class="col-sm-5">
<input type="text" class="form-control off_pwd" name="zipcode" placeholder="zipcode">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="checkbox checkbox-success">
<input id="checkbox3" type="checkbox" name="estado" value="1" checked>
<label for="checkbox3">
Status
</label>
</div>
<div class="checkbox checkbox-inline" >
<input type="checkbox" name="type" value="c" disabled checked>
<label for="inlineCheckbox3"> Type of user </label>
</div>
</div>
</div>

<!--Fin del cuerpo del modal-->


</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-
times"></i>
Close</button>
<input class="btn btn-success" name="Submit" type="submit" id="submit" value="Save">
</div>
</form>
</div>
</div>
</div>
<!--fin de modal nuevo usuario-->

<!-- Modal para editar Usuario -->


<div class="modal fade" id="editar" tabindex="-1" role="dialog" aria-
labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-
hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel"><i class="fa fa-pencil-square-o"></i>
Edit Client</h4>
</div>
<div class="modal-body">
<!--Cuerpo del modal aquí el formulario-->
<form class="form-horizontal" id="formularioEditar">
<div class="form-group" id="Enombre">
<label for="office" class="col-sm-2 control-label">Name </label>
<div class="col-sm-10">
<input type="text" class="form-control" name="name" placeholder="Name Client">
</div>
</div>
<div class="form-group" id="Eapellido">
<label for="address" class="col-sm-2 control-label">Address </label>
<div class="col-sm-10">
<input type="text" class="form-control" name="address" placeholder="Address ">
</div>
</div>
<div class="form-group" id="Etelefono">
<label for="ph_no" class="col-sm-2 control-label">Phone Number</label>
<div class="col-sm-10">
<input class="form-control" name="phone" placeholder="Phone Number">
</div>
</div>
<div class="form-group" id="Eemail">
<label for="email" class="col-sm-2 control-label">Email</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="email" placeholder="Email">
</div>
</div>
<div class="form-group" id="Eusuario">
<label for="officer_name" class="col-sm-2 control-label">User</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="email" placeholder="User">
</div>
</div>
<div class="form-group">
<label for="off_pwd" class="col-sm-2 control-label">Password</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="password" placeholder="Password">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="checkbox checkbox-success">
<input id="checkbox3" type="checkbox" name="estado" value="1" >
<label for="checkbox3">
Success
</label>
</div>
</div>
</div>
<!--campo oculto-->
<input type="hidden" name="id" id="id_user">
</form>
<!--Fin del cuerpo del modal-->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" id="actualizar" class="btn btn-primary">Save</button>
</div>
</div>
</div>
</div>
<!--fin de modal nuevo usuario-->

</div>
</div>
</div>
<!-- end row -->

<!-- Footer -->


<?php
include("footer.php");
?>
<!-- End Footer -->

</div> <!-- container -->


</div> <!-- End wrapper -->

<script type='text/javascript' src="js/jquery.js"></script>


<script type='text/javascript' src="js/bootstrap.min.js"></script>
<script type='text/javascript' src="plugins/DataTables/js/jquery.dataTables.js"></script>
<script type='text/javascript'
src="plugins/DataTables/extensions/TableTools/js/dataTables.tableTools.min.js"></script>
<script type='text/javascript' src="js/dataTables.bootstrap.js"></script>
<script type='text/javascript' src="plugins/bootstrap-notify/bootstrap-notify.min.js"></script>
<script type='text/javascript' src="plugins/sweetalert/js/sweetalert.min.js"></script>

<script type='text/javascript' src="js/add-new-client.js"></script>

<!-- App js -->


<script src="assets/js/jquery.core.js"></script>
<script src="assets/js/jquery.app.js"></script>

</body></html>

Admin.php

<?php

error_reporting(E_ERROR | E_WARNING | E_PARSE);


session_start();
require_once('database.php');
require_once('library.php');

$company=mysql_fetch_array(mysql_query("SELECT * FROM company"));

isUser();
?>
<!DOCname html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Page Description and Author -->
<meta name="description" content=""/>
<meta name="keywords" content="" />
<meta name="author" content="">

<!-- App Favicon -->


<link rel="shortcut icon" href="assets/images/favicon.ico">

<!-- App title -->


<title>Tam Courier</title>

<!-- Switchery css -->


<link href="assets/plugins/switchery/switchery.min.css" rel="stylesheet" />

<!-- Sweet Alert css -->


<link href="assets/plugins/bootstrap-sweetalert/sweet-alert.css" rel="stylesheet"
type="text/css" />

<!-- DataTables -->


<link href="assets/plugins/datatables/dataTables.bootstrap4.min.css" rel="stylesheet"
name="text/css" />
<link href="assets/plugins/datatables/buttons.bootstrap4.min.css" rel="stylesheet"
name="text/css" />
<!-- Responsive datatable examples -->
<link href="assets/plugins/datatables/responsive.bootstrap4.min.css" rel="stylesheet"
name="text/css" />

<!-- App CSS -->


<link href="assets/css/style.css" rel="stylesheet" name="text/css" />
<style> .delivered { background: #363C56; } .Delayed { background: #F76063; } .On-Hold {
background: #4ECCDB; } .Landed { background: #FF8A4B; } .Finished { background:
#333333; } .label{padding: 5px;} .In-Transit { background:#00D96D; } .OK
{ background:#00D96D; } .&nbsp;&nbsp; { background:#F1B53D; }</style>
<style> .Paid { background: #675F99; } .ToPay { background: #FF8441; } .Cash-on-
Delivery { background: #F6565A; } .Shipment-arrived { background: #FFC734; } .Returned
{ background: #F76063; } .Pending { background: #FF5D48; } .Bank { background:
#999; } .Paypal { background: #4DD2FF; }</style>

</head>
<body>
<?php
include("header.php");
?>

<!-- ==============================================================
-->
<!-- Start right Content here -->
<!-- ==============================================================
-->
<div class="wrapper">
<div class="container">

<!-- Page-Title -->


<?php
include("icon_settings.php");
?>

<!-- star row Administrator-->

<div class="row">
<?php
if(isset($_SESSION['user_type']) && $_SESSION['user_type'] == 'Administrator') {
?>
<?php
// Always first connect to the database mysql
$sql = "SELECT * FROM courier WHERE status='In-Transit' "; // sentence sql
$result = mysql_query($sql);
$numero1 = mysql_num_rows($result); // get the number of rows
?>
<div class="col-xs-6 col-md-3 col-lg-3 col-xl-2">
<div class="card-box tilebox-one">
<i class="icon-plane pull-xs-right text-muted"></i>
<h6 class="text-muted text-uppercase m-b-20">Shipping In Transit</h6>
<h2 class="m-b-20" data-plugin="counterup"><?php echo $numero1; ?></h2>
<span class="label label-success">
<?php
$sql_1 = mysql_query("SELECT concat(round(count( * ) *100 /(SELECT count( * ) FROM
courier)) , \"%\") AS percent
FROM courier WHERE status = 'In-Transit' GROUP BY status");
while ($rr = mysql_fetch_array($sql_1))

for ($i=0; $i<mysql_num_fields($sql_1); $i++)


echo $rr[$i] . " ";
echo "<br>";

?> </span> <span class="text-muted">Shipments In Transit</span>


</div>
</div>

<?php
// Always first connect to the database mysql
$sql = "SELECT * FROM courier_online WHERE status='In-Transit' "; // sentence sql
$result = mysql_query($sql);
$numero2 = mysql_num_rows($result); // get the number of rows
?>
<div class="col-xs-6 col-md-3 col-lg-3 col-xl-2">
<div class="card-box tilebox-one">
<i class="icon-envelope-open pull-xs-right text-muted"></i>
<h6 class="text-muted text-uppercase m-b-15 m-t-10">Online Bookings</h6>
<h2 class="text-danger text-uppercase m-b-20" data-plugin="counterup"><?php echo
$numero2; ?></h2>
<span>
</span> <span class="text-muted">Online Bookings In Transit</span>
</div>
</div>

<div class="col-xs-12 col-md-6 col-lg-6 col-xl-2">


<div class="card-box tilebox-one">
<i class="icon-paypal pull-xs-right text-muted"></i>
<h6 class="text-muted text-uppercase m-b-20">Shipping Paid</h6>
<h2 class="m-b-20"><?php echo $company['currency']; ?><span data-
plugin="counterup"><?php
$result = mysql_query("SELECT SUM(shipping_subtotal ) as total FROM courier WHERE
book_mode='Paid'");
$row = mysql_fetch_array($result, MYSQL_ASSOC);
echo $s.formato($row["total"]);

?></span></h2>
<span class="label label-danger">
<?php
$sql = mysql_query("SELECT concat(round(count( * ) *100 /(SELECT count( * ) FROM
courier)) , \"%\") AS percent
FROM courier WHERE book_mode='Paid' GROUP BY book_mode");
while ($rr = mysql_fetch_array($sql))

for ($i=0; $i<mysql_num_fields($sql); $i++)


echo $rr[$i] . " ";
echo "<br>";

?></span> <span class="text-muted">Percentage shipping paid</span>


</div>
</div>

<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">


<div class="card-box tilebox-one">
<i class="icon-credit-card pull-xs-right text-muted"></i>
<h6 class="text-muted text-uppercase m-b-20">Shipping TO PAY</h6>
<h2 class="m-b-20"><?php echo $company['currency']; ?><span data-
plugin="counterup"><?php
$result = mysql_query("SELECT SUM(shipping_subtotal ) as total FROM courier WHERE
book_mode='ToPay'");
$row = mysql_fetch_array($result, MYSQL_ASSOC);
echo $s.formato($row["total"]);

?></span></h2>
<span class="label label-pink">
<?php
$sql = mysql_query("SELECT concat(round(count( * ) *100 /(SELECT count( * ) FROM
courier)) , \"%\") AS percent
FROM courier WHERE book_mode='ToPay' GROUP BY book_mode");
while ($rr = mysql_fetch_array($sql))

for ($i=0; $i<mysql_num_fields($sql); $i++)


echo $rr[$i] . " ";
echo "<br>";

?> </span> <span class="text-muted">Percentage shipments by Cash</span>


</div>
</div>

<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">


<div class="card-box tilebox-one">
<i class="icon-rocket pull-xs-right text-muted"></i>
<h6 class="text-muted text-uppercase m-b-20">Shipments on Delivery</h6>
<h2 class="m-b-20"><?php echo $company['currency']; ?><span data-
plugin="counterup"><?php
$result = mysql_query("SELECT SUM(shipping_subtotal ) as total FROM courier WHERE
book_mode='Cash-on-Delivery'");
$row = mysql_fetch_array($result, MYSQL_ASSOC);
echo $s.formato($row["total"]);

?></span></h2>
<span class="label label-warning">
<?php
$sql = mysql_query("SELECT concat(round(count( * ) *100 /(SELECT count( * ) FROM
courier)) , \"%\") AS percent
FROM courier WHERE book_mode='Cash-on-Delivery' GROUP BY book_mode");
while ($rr = mysql_fetch_array($sql))

for ($i=0; $i<mysql_num_fields($sql); $i++)


echo $rr[$i] . " ";
echo "<br>";

?> </span> <span class="text-muted">Percentage Shipments Against Delivery</span>


</div>
</div>
<?php } ?>
</div>
<!-- end row Administrator---->

<!-- star row Employee-->


<div class="row">
<?php
if(isset($_SESSION['user_type']) && $_SESSION['user_type'] == 'Employee') {
?>
<?php
// Always first connect to the database mysql
$sql = "SELECT * FROM courier WHERE status='In-Transit' AND user='".
$_SESSION["user_type"]."' "; // sentence sql
$result = mysql_query($sql);
$numero1 = mysql_num_rows($result); // get the number of rows
?>
<div class="col-xs-6 col-md-3 col-lg-3 col-xl-2">
<div class="card-box tilebox-one">
<i class="icon-plane pull-xs-right text-muted"></i>
<h6 class="text-muted text-uppercase m-b-20">Shipping In Transit</h6>
<h2 class="m-b-20" data-plugin="counterup"><?php echo $numero1; ?></h2>
<span class="label label-success">
<?php
$sql_1 = mysql_query("SELECT concat(round(count( * ) *100 /(SELECT count( * ) FROM
courier)) , \"%\") AS percent
FROM courier WHERE status = 'In-Transit' AND user='".$_SESSION["user_type"]."'
GROUP BY status");
while ($rr = mysql_fetch_array($sql_1))

for ($i=0; $i<mysql_num_fields($sql_1); $i++)


echo $rr[$i] . " ";
echo "<br>";

?> </span> <span class="text-muted">Shipments In Transit</span>


</div>
</div>

<?php
// Always first connect to the database mysql
$sql = "SELECT * FROM courier_online WHERE status='In-Transit' "; // sentence sql
$result = mysql_query($sql);
$numero2 = mysql_num_rows($result); // get the number of rows
?>
<div class="col-xs-6 col-md-3 col-lg-3 col-xl-2">
<div class="card-box tilebox-one">
<i class="icon-envelope-open pull-xs-right text-muted"></i>
<h6 class="text-primary text-uppercase m-b-15 m-t-10">Online Bookings</h6>
<h2 class="m-b-20" data-plugin="counterup"><?php echo $numero2; ?></h2>
<span>
</span> <span class="text-muted">Online Bookings In Transit</span>
</div>
</div>

<div class="col-xs-12 col-md-6 col-lg-6 col-xl-2">


<div class="card-box tilebox-one">
<i class="icon-paypal pull-xs-right text-muted"></i>
<h6 class="text-muted text-uppercase m-b-20">Shipping Paid</h6>
<h2 class="m-b-20"><?php echo $company['currency']; ?><span data-
plugin="counterup"><?php
$result = mysql_query("SELECT SUM(shipping_subtotal ) as total FROM courier WHERE
book_mode='Paid' AND user='".$_SESSION["user_type"]."'");
$row = mysql_fetch_array($result, MYSQL_ASSOC);
echo $s.formato($row["total"]);

?></span></h2>
<span class="label label-danger">
<?php
$sql = mysql_query("SELECT concat(round(count( * ) *100 /(SELECT count( * ) FROM
courier)) , \"%\") AS percent
FROM courier WHERE book_mode='Paid' AND user='".$_SESSION["user_type"]."'
GROUP BY book_mode");
while ($rr = mysql_fetch_array($sql))

for ($i=0; $i<mysql_num_fields($sql); $i++)


echo $rr[$i] . " ";
echo "<br>";

?></span> <span class="text-muted">Percentage shipping paid</span>


</div>
</div>
<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">
<div class="card-box tilebox-one">
<i class="icon-credit-card pull-xs-right text-muted"></i>
<h6 class="text-muted text-uppercase m-b-20">Shipping TO PAY</h6>
<h2 class="m-b-20"><?php echo $company['currency']; ?><span data-
plugin="counterup"><?php
$result = mysql_query("SELECT SUM(shipping_subtotal ) as total FROM courier WHERE
book_mode='ToPay' AND user='".$_SESSION["user_type"]."'");
$row = mysql_fetch_array($result, MYSQL_ASSOC);
echo $s.formato($row["total"]);

?></span></h2>
<span class="label label-pink">
<?php
$sql = mysql_query("SELECT concat(round(count( * ) *100 /(SELECT count( * ) FROM
courier)) , \"%\") AS percent
FROM courier WHERE book_mode='ToPay' AND user='".$_SESSION["user_type"]."'
GROUP BY book_mode");
while ($rr = mysql_fetch_array($sql))

for ($i=0; $i<mysql_num_fields($sql); $i++)


echo $rr[$i] . " ";
echo "<br>";

?> </span> <span class="text-muted">Percentage shipments by Cash</span>


</div>
</div>

<div class="col-xs-12 col-md-6 col-lg-6 col-xl-3">


<div class="card-box tilebox-one">
<i class="icon-rocket pull-xs-right text-muted"></i>
<h6 class="text-muted text-uppercase m-b-20">Shipments on Delivery</h6>
<h2 class="m-b-20"><?php echo $company['currency']; ?><span data-
plugin="counterup"><?php
$result = mysql_query("SELECT SUM(shipping_subtotal ) as total FROM courier WHERE
book_mode='Cash-on-Delivery' AND user='".$_SESSION["user_type"]."'");
$row = mysql_fetch_array($result, MYSQL_ASSOC);
echo $s.formato($row["total"]);

?></span></h2>
<span class="label label-warning">
<?php
$sql = mysql_query("SELECT concat(round(count( * ) *100 /(SELECT count( * ) FROM
courier)) , \"%\") AS percent
FROM courier WHERE book_mode='Cash-on-Delivery' AND user='".
$_SESSION["user_type"]."' GROUP BY book_mode");
while ($rr = mysql_fetch_array($sql))

for ($i=0; $i<mysql_num_fields($sql); $i++)


echo $rr[$i] . " ";
echo "<br>";

?> </span> <span class="text-muted">Percentage Shipments Against Delivery</span>


</div>

</div>
<?php } ?>
</div>
<!-- end row Employee-->

<div class="row">
<div class="col-xs-12 col-lg-12 col-xl-9">
<div class="card-box">
<h4 class="header-title m-t-0 m-b-20">List of Shipments</h4>
<div class="table-responsive">
<div class="col-xs-12 col-lg-12 col-xl-12">

<ul class="nav nav-tabs m-b-10" id="myTab" role="tablist">


<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home"
role="tab" aria-controls="home" aria-expanded="true">
<i class="icon-plane"></i>&nbsp;&nbsp;LIST OF MAIN SHIPPING</a>
</li>
<?php
// Always first connect to the database mysql
$sql = "SELECT * FROM courier_online WHERE status='In-Transit' "; // sentence sql
$result = mysql_query($sql);
$numero2 = mysql_num_rows($result); // get the number of rows
?>
<li class="nav-item">
<a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile"
role="tab" aria-controls="profile">
<i class="icon-envelope-open"></i>&nbsp; <strong><span class="text-danger text-
uppercase m-b-15 m-t-10"><?php echo $numero2; ?></span></strong>&nbsp;LIST OF
SHIPMENTS ONLINE BOOKING</a>
</li>
</ul>
<br><br>
<div class="tab-content" id="myTabContent">
<div role="tabpanel" class="tab-pane fade in active" id="home"
aria-labelledby="home-tab">
<table id="datatable-buttons" class="table table-striped table-bordered" cellspacing="0"
width="100%">
<thead>
<tr>
<?php
if(isset($_SESSION['user_type']) && $_SESSION['user_type'] == 'Administrator') {
?>
<th></th>
<th></th>
<?php } ?>
<th>Deliver</th>
<th></th>
<th></th>
<th>Tracking </th>
<th>Pay Mode</th>
<th>Sender</th>
<th>Recipient</th>
<th>Date</th>
<th>Employee</th>
<th> Status</th>
</tr>
</thead>
<?php
if(isset($_SESSION['user_type']) && $_SESSION['user_type'] == 'Administrator') {
?>
<tbody>
<tr>
<?php
$result3 = mysql_query("SELECT * FROM courier WHERE status != 'delivered' ORDER
BY cid DESC");
while($row = mysql_fetch_array($result3)) {
?>
<td align="center">
<a href="edit-courier.php?cid=<?php echo $row['cid']; ?>">
<img src="images/edit.png" height="20" width="20"></a></td>
<td align="center">
<a href="#" onclick="del_list_admin(<?php echo $row['cid']; ?>);">
<img src="images/delete.png" height="20" width="18"></a>
</td>
<td class="gentxt" align="center">
<a href="process.php?action=delivered&cid=<?php echo $row['cid']; ?>" onclick="return
confirm('Sure like to change the status of shipping?');">
<img src="images/delivery.png" height="20" width="20"></a></td>
<td align="center">
<a target="_blank" href="print-invoice/invoice-print.php?cid=<?php echo $row['cid']; ?>">
<img src="images/print.png" height="20" width="20"></a></td>
<td align="center">
<a href="barcode/html/BCGcode39.php?cons_no=<?php echo $row['cons_no']; ?>"
target="_blank">
<img src="images/barcode.png" height="20" width="20"></a></td>
<td><font color="#000"><?php echo $row['cons_no']; ?></font></td>
<td><span class="label <?php echo $row['book_mode']; ?> label-large"><?php echo
$row['book_mode']; ?></span></td>
<td><?php echo $row['ship_name']; ?></td>
<td><?php echo $row['rev_name']; ?></td>
<td><?php echo $row['pick_date']; ?></td>
<td><?php echo $row['user']; ?></td>
<td><span class="label <?php echo $row['status']; ?> label-large"><?php echo $row['status'];
?></span></td>
</tr>
<?php } ?>
</tbody>
<?php } ?>
<?php
if(isset($_SESSION['user_type']) && $_SESSION['user_type'] == 'Employee') {
?>
<tbody>
<tr>
<?php
$result3 = mysql_query("SELECT * FROM courier WHERE status != 'delivered' and
user='".$_SESSION["user_type"]."' ORDER BY cid DESC");
while($row = mysql_fetch_array($result3)) {
?>

<td class="gentxt" align="center">


<a href="process.php?action=delivered&cid=<?php echo $row['cid']; ?>" onclick="return
confirm('Sure like to change the status of shipping?');">
<img src="images/delivery.png" height="20" width="20"></a></td>
<td align="center">
<a target="_blank" href="print-invoice/invoice-print.php?cid=<?php echo $row['cid']; ?>">
<img src="images/print.png" height="20" width="20"></a></td>
<td align="center">
<a href="barcode/html/BCGcode39.php?cons_no=<?php echo $row['cons_no']; ?>"
target="_blank">
<img src="images/barcode.png" height="20" width="20"></a></td>
<td><font color="#000"><?php echo $row['cons_no']; ?></font></td>
<td><span class="label <?php echo $row['book_mode']; ?> label-large"><?php echo
$row['book_mode']; ?></span></td>
<td><?php echo $row['ship_name']; ?></td>
<td><?php echo $row['rev_name']; ?></td>
<td><?php echo $row['pick_date']; ?></td>
<td><?php echo $row['user']; ?></td>
<td><span class="label <?php echo $row['status']; ?> label-large"><?php echo $row['status'];
?></span></td>
</tr>
<?php } ?>
</tbody>
<?php } ?>
</table>
</div>
<div class="tab-pane fade" id="profile" role="tabpanel"
aria-labelledby="profile-tab">
<table id="datatable" class="table table-striped table-bordered" cellspacing="0"
width="100%">
<thead>
<tr>
<th>Update</th>
<?php
if(isset($_SESSION['user_type']) && $_SESSION['user_type'] == 'Administrator') {
?>
<th></th>
<?php } ?>
<th></th>
<th></th>
<th></th>
<th>To Pay</th>
<th>Payments </th>
<th>Customer</th>
<th>From</th>
<th>Recipient</th>
<th>To</th>
<th>Date</th>
<th>Status</th>
</tr>
</thead>

<tbody>
<tr>
<?php
$result3 = mysql_query("SELECT * FROM courier_online WHERE status='In-Transit' OR
status='Shipment-arrived'
OR status='Returned' ORDER BY cid DESC");
while($row = mysql_fetch_array($result3)) {
?>
<td align="center">
<a href="edit-courier-customer.php?cid=<?php echo $row['cid']; ?>">
<img src="images/delivery.png" height="20" width="20"></a></td>
<?php
if(isset($_SESSION['user_type']) && $_SESSION['user_type'] == 'Administrator') {
?>
<td align="center">
<a href="#" onclick="del_list_online(<?php echo $row['cid']; ?>);">
<img src="images/delete.png" height="20" width="18"></a>
</td>
<?php } ?>
<td align="center">
<a target="_blank" href="print-invoice/invoice-print-online.php?cid=<?php echo $row['cid'];
?>">
<img src="images/print.png" height="20" width="20"></a></td>
<td align="center">
<a href="barcode/html/BCGcode39.php?cons_no=<?php echo $row['cons_no']; ?>"
target="_blank">
<img src="images/barcode.png" height="20" width="20"></a></td>
<td><FONT SIZE=2><font color="#000"><?php echo $row['cons_no']; ?></FONT></td>
<td><FONT SIZE=2><strong><?php echo $company['currency']; ?><?php echo
$s.formato($row['shipping_subtotal']); ?></strong></FONT></td>
<td align="center"><span class="label <?php echo $row['payment']; ?> label-large"><?php
echo $row['payment']; ?></span>&nbsp;<span class="label <?php echo $row['paymode']; ?>
label-large"><?php echo $row['paymode']; ?></span></td>
</td>
<td><FONT SIZE=2><?php echo $row['ship_name']; ?></FONT></td>
<td><FONT SIZE=2><?php echo $row['fromcity']; ?></FONT></td>
<td><FONT SIZE=2><?php echo $row['rev_name']; ?></FONT></td>
<td><FONT SIZE=2><?php echo $row['tocity']; ?></FONT></td>
<td><FONT SIZE=2><?php echo $row['deliverydate']; ?></FONT></td>
<td><span class="label <?php echo $row['status']; ?> label-large"><?php echo $row['status'];
?></span></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>

</div>
</div>
</div><!-- end col-->

<div class="col-xs-12 col-lg-12 col-xl-3">


<div class="card-box">

<h4 class="header-title m-t-0 m-b-30">Shipments Recent</h4>

<div class="table-responsive">
<table id="datatable-buttons" class="table table-striped table-bordered" cellspacing="0"
width="50%">
<thead>
<tr>
<th>Tracking</th>
<th>Start Date</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<?php
$result1 = mysql_query("SELECT * FROM courier WHERE LEFT(book_date, 10) =
CURDATE() ");
while($row = mysql_fetch_array($result1)) {
?>
<tr>
<td><font color="#000"><?php echo $row['cons_no']; ?></font></td>
<td><?php echo $row['book_date']; ?></td>
<td><span class="label <?php echo $row['status']; ?> label-large"><?php echo $row['status'];
?></span></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div><!-- end col-->
</div>
<!-- end row -->

<!-- Footer -->


<?php
include("footer.php");
?>
<!-- End Footer -->

</div> <!-- container -->


</div> <!-- End wrapper -->

<script>
var resizefunc = [];
</script>

<!-- jQuery -->


<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/tether.min.js"></script><!-- Tether for Bootstrap -->
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/waves.js"></script>
<script src="assets/js/jquery.nicescroll.js"></script>
<script src="assets/plugins/switchery/switchery.min.js"></script>

<!-- Sweet Alert js -->


<script src="assets/plugins/bootstrap-sweetalert/sweet-alert.min.js"></script>

<!-- Counter Up -->


<script src="assets/plugins/waypoints/lib/jquery.waypoints.js"></script>
<script src="assets/plugins/counterup/jquery.counterup.min.js"></script>

<!-- App js -->


<script src="assets/js/jquery.core.js"></script>
<script src="assets/js/jquery.app.js"></script>

<!-- Page specific js -->


<script src="assets/pages/jquery.dashboard.js"></script>

<!-- Required datatable js -->


<script src="assets/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="assets/plugins/datatables/dataTables.bootstrap4.min.js"></script>
<!-- Buttons examples -->
<script src="assets/plugins/datatables/dataTables.buttons.min.js"></script>
<script src="assets/plugins/datatables/buttons.bootstrap4.min.js"></script>
<script src="assets/plugins/datatables/jszip.min.js"></script>
<script src="assets/plugins/datatables/pdfmake.min.js"></script>
<script src="assets/plugins/datatables/vfs_fonts.js"></script>
<script src="assets/plugins/datatables/buttons.html5.min.js"></script>
<script src="assets/plugins/datatables/buttons.print.min.js"></script>
<script src="assets/plugins/datatables/buttons.colVis.min.js"></script>
<!-- Responsive examples -->
<script src="assets/plugins/datatables/dataTables.responsive.min.js"></script>
<script src="assets/plugins/datatables/responsive.bootstrap4.min.js"></script>

<script name="text/javascript">
$(document).ready(function() {
$('#datatable').DataTable();

//Buttons examples
var table = $('#datatable-buttons').DataTable({
lengthChange: false,
buttons: ['copy', 'excel', 'pdf', 'colvis']
});

table.buttons().container()
.appendTo('#datatable-buttons_wrapper .col-md-6:eq(0)');
} );

</script>

<script type="text/javascript">
function del_list_admin(cid) {
if (window.confirm("Aviso:\n Sure you want to delete the selected file?")) {
window.location = "deletes/delete_list_admin.php?action=del&cid="+cid;
}
}
</script>
<script type="text/javascript">
function del_list_online(cid) {
if (window.confirm("Aviso:\n Sure you want to delete the selected file?")) {
window.location = "deletes/delete_list_online.php?action=del&cid="+cid;
}
}
</script>

</body>

</html>

Awards.php

<!DOCTYPE html>
<html>

<meta http-equiv="content-type" content="text/html;charset=utf-8" />


<head>
<title>Tam Courier Software </title>
<meta name="description" content=""/>
<meta name="keywords" content="" />
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-
scale=1" />

<link rel="stylesheet" href="deprixa_components/css/bootstrap-mpd.css" />


<link rel="stylesheet" href="deprixa_components/css/global.css" />
<link rel="stylesheet" href="deprixa_components/css/awards.css" />
<script src="deprixa_components/js/jquery.min.js"></script>
<script src="deprixa_components/scripts/bootstrap.min.js"></script>
<script src="deprixa_components/scripts/jquery-validate.min.js"></script>
<script src="deprixa_components/scripts/jquery-validate-
unobtrusive.min.js"></script>
<script src="deprixa_components/scripts/modernizr-2.6.2.js"></script>
<script src="deprixa_components/scripts/html5shiv.js"></script>
<link href="deprixa_components/content/csse1bf.css" rel="stylesheet"/>

<link rel="icon" type="image/png" href="../favicon-32x32.png" sizes="32x32" />


<link rel="icon" type="image/png" href="../favicon-16x16.png" sizes="16x16" />

</head>
<!-- Menu -->
<?php include_once "menu.php"; ?>
<!-- /Menu -->

<main class="slide">

<div class="fw grey-bg">


<section class="awards"><header>
<h1>Awards</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
laborum</p>
</header>
<div class="container js-masonry">
<div class="item"><img alt="Innovation, Excellence in Services 2016"
src="deprixa_components/images/award1.jpg" />
<h2>Innovation &amp; Excellence 2016</h2>
<p>WSed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque
laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto
beatae vitae dicta sunt explicabo.</p>
</div>
<div class="item"><img alt="BUSINESS OF THE YEAR AWARD 2016"
src="deprixa_components/images/award2.jpg" />
<h2>BUSINESS OF THE YEAR AWARD 2016</h2>
<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque
laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto
beatae vitae dicta sunt explicabo.</p>
</div>
<div class="item"><img alt="Entrepreneur Award 2016"
src="deprixa_components/images/award3.jpg" />
<h2>Entrepreneur Award 2016</h2>
<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque
laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto
beatae vitae dicta sunt explicabo.</p>
</div>
</div>
</section>
</div>

</main>

<!-- Footer -->


<?php include_once "footer.php"; ?>
<!-- /Footer -->
</div>

<script src="deprixa_components/scripts/Awards/imagesLoaded.js"></script>
<script src="deprixa_components/scripts/Awards/pkgd.min.js"></script>
<script>
// options
$(document).ready(function(){
var $container = $('.container');
$container.imagesLoaded( function(){
$container.masonry({
gutter: 25,
itemSelector : '.item'
});
});
});
</script>

</body>

</html>

Refund-Policy.Php
<!DOCTYPE html>

<html>

<meta http-equiv="content-type" content="text/html;charset=utf-8" />


<head>
<title>devesh-Logistics and Cargo Software</title>
<meta name="description" content=""/>
<meta name="keywords" content="" />
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-
scale=1" />

<link href="deprixa_components/content/cssefe4.css" rel="stylesheet"/>


<link href="deprixa_components/styles/track-order.css" rel="stylesheet" />

<!--[if lte IE 9]><link rel="stylesheet" href="/hub/css/ie9.css" /><![endif]-->


<!--[if lte IE 8]><script src="/hub/js/html5shiv.js"></script><link rel="stylesheet"
href="/hub/css/ie8.css" /><![endif]-->
<!--[if lte IE 7]><link rel="stylesheet" href="/hub/css/ie7.css" /><![endif]-->

<link rel="icon" type="image/png" href="../favicon-32x32.png" sizes="32x32" />


<link rel="icon" type="image/png" href="../favicon-16x16.png" sizes="16x16" />

</head>
<!-- Menu -->
<?php include_once "menu.php"; ?>
<!-- /Menu -->

<main class="slide">

<div class="fw col-lg-12">


<section class="cookies">
<br><br>
<h1>Refund Policy</h1>
<br><br>
<ol>
<li><span></span>At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis
praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint
occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi,
id est laborum et dolorum fuga.</li>
<li><span></span>At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis
praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint
occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi,
id est laborum et dolorum fuga.</li>
<li><span></span>Et harum quidem rerum facilis est et expedita distinctio.</li>
<li><span></span>At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis
praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint
occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi,
id est laborum et dolorum fuga.</li>
<li><span></span>Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil
impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est,
omnis dolor repellendus. </li>
<li><span></span>Temporibus autem quibusdam et aut officiis debitis aut rerum
necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores
alias consequatur aut perferendis doloribus asperiores repellat.</li>
</section>
</div>

</main>

<!-- Footer -->


<?php include_once "footer.php"; ?>
<!-- /Footer -->
</div>

<script src="deprixa_components/hub/scripts/services/services.js"></script>
<script src="deprixa_components/hub/scripts/dSwiper.min.js"></script>
<script type='text/javascript' src='deprixa_components/scripts/MPD/integration.js'></script>
<script type='text/javascript' src='deprixa_components/scripts/MPD/Common/ga-
events.js'></script>
<script src="deprixa_components/bundles/jquery"></script>
<script src="deprixa_components/bundles/bootstrap"></script>
<script src="deprixa_components/bundles/modernizr"></script>
<script src="deprixa_components/scripts/CookieManager.js"></script>
<script src="deprixa_components/scripts/MPD/Common/ga-events.js"></script>
<script src="deprixa_components/bundles/jqueryval"></script>
<script src="deprixa_components/scripts/tracking.js"></script>
<script src="deprixa_components/scripts/placeholder-shim.js"></script>
<script src="deprixa_components/scripts/trimFields.js"></script>

</body>

</html>
CHAPTER 8
Testing

8 Testing:

Logistics and Cargo tracking system is a web-based Logistics and Cargo Management
application. Cargo and shipments for various materials and logistics can be booked and
Tracked using the online facilities and the Management of the system and . Real-time
Tracking information is received from a ‘Logistics and Cargo management system’, which
will be referred before Booking is confirmed. There are several modules like Registration,
adding , update , management and Reports which are integrated to fulfill the purpose.
8.1 Testing Scope

1. In Scope
2. Out of Scope
3. Items not tested

a) In Scope

Functional Testing for the following modules are in Scope of Testing


I. Signup/Registration
II. Booking a cargo
III. Update
IV. Checkout/payment
V. Management

b) Out of Scope
Performance Testing was not done for this application.

Items not tested


Verification of connectivity with the third party system was not tested, as the
connectivity could not be established due to some technical limitations. This can be
verified during UAT (User Acceptance Testing) where the connectivity is available or
can be established.

8.2Metrics:

82.1.Number of test cases planned vs executed

Test Cases
Test Cases Test cases passed Test cases failed
Planned
executed
58 53 47 11

8.2.2.Number of test cases passed/failed


passed
82 %
testcase
s
100%
failed
18%

Figure 8.2.2.1

8..2.3.Number of defects identified and their Status & Severity

critical Major Medium total


closed 32 17 9 58

opened 1 3 5 9
Figure 8.2.3.1

Defect Distributi on Module wise

1st Qtr 2nd Qtr 3rd Qtr 4th Qtr

Figure 8.2.3.2
 Testing performed

1. System Integration Testing

 This is the Testing performed on the Application under test, to verify the entire
application works as per the requirements.
 Critical Business scenarios were tested to make sure important functionality in the
application works as intended without any errors.
CHAPTER 9
OutputScreen
OutputScreen :

HomePage:

Sign-Up

Tracking:
About-Us:

Contact-Us:
Login:

Client-view:
Dashboard:
Profie:

Shipment Booking:

Payment:
Admin View:
Dashboard:

Managemnt of accounts:

List of admins:

Add new Admin:


List of employees;

Add new employee:

List of clients:
Add new Cliets:

Add shipment:

Add shipment type:


Company:

Online bookings:

Service type:

Type of shipment:
New product type:

Reports:
CONCLUSION:

There is always a scope of betterment and this system is not against this perception.
At present the software system satisfies most of the functions of a very general Logistics and
cargo Tracking system management system.
1. The Logistics and cargo services are automated as hand written documentation is
minimized to a bare minimum the software is fully implemented.
2. The data can be easily backed up onto a reliable media so that no or minimal data loss is
there in case of system crash.
3. Unauthorized access to the data is nearly eliminated by providing password authentication
system.
4. This project has made us require a professional outlook towards problem statement and
solving it to the best and maximum.

Future work:

The main scope of future work and improvements may be:


1. Provide GPS tracking system for vehicle, which provide better tracking information.
2. Online bill payment and provide full support of the debit card, credit card and others.
3. Storing large amount of data for future usage.
4. Reducing manual efforts for maintaining the system.
5. Emphasis on accurate data and reuse of stored data.
6. Complete automation, almost no need for manual human intervention.
SUMMARY OF PROJECT WORK

Throughout the process, I enjoyed working and it was a great learning experience. I
had the privilege of going through entire Software Development Life Cycle right from the
requirement-gathering phase. Moreover, the software engineering concepts that I learnt
theoretically were actually implemented practically.

Working under the guidance of Mrs. Swarnalata Pati  madam, was a great


learning experience to learn the Software Development standards and application areas.

While acknowledging all the help that My seniors, teachers, team mates rendered to
me and with due respect and sincere gratitude to my teachers who were instrumental to shape
me out, I submit My project report for your kind consideration. Though I have paid utmost
attention to incorporate the maximum facts and figures in My report, I take this opportunity
to beg your pardon for any unintentional error in the data that has been collected and
incorporated in this report.
REFERENCES

Books

1. PHP Cookbook
Author : Adam Trachtenberg and David Sklar
Edition: Third

2. HTML & CSS: The Complete Reference,


Author : Thomas Powell 
Edition :Fifth Edition Paperback – 1 Jul 2017

3. JavaScript and JQuery: Interactive Front–End Web Development


Author :  Jon Duckett

Websites:

1. www.udemy.com
2. www.geeksforgeeks.org
3. www.w3schools.com
4. www.youtube.com
5. www.php.org

You might also like