Abstract and Content Final
Abstract and Content Final
CHAPTERS PAGE NO
Chapter 1 Introduction
Chapter 2 Requirements
Chapter 5 Implementation
Chapter 6 Snapshots
Conclusion
References
CHAPTER 1
Introduction
This Courier Management System Project will have different modules. The login section will
have login facility for the admin and for the user who will operate this system. While taking
orders from its customers, it will take all the details of its customers who is placing the orders
and all the details for the recipient such as its address, name, mobile number. During billing
process system will generate a tracking id for their products. Through this tracking id,
customers or its recipient will able to track their products from any location using internet. It
will provide status of the product after placing orders within 1 minute.
The courier service is one of the solutions of these problems. It is used to send some things to
any person in the world within time. The courier company has number of branches, which are
spread over the country or the world. So that when person wants to send things then he has to
contact at nearest courier service branch. The courier company creates the schedule & gives
internal/external services. The courier service work as destination office or source office.
In modern age, as time increase, needs & requirements of the person are also increased. They
want more facility & try to do their task quickly & within time. But they can not get all the
things at nearest market or area, so they have to import the things from any place in the
world.
Within the country, the things can be imported through post service. But it consumes the time
& sometimes problem of damage or missing occur. Where as in the international market, the
To gain maximum business region, customer demands good service. So to make more profit
and gain maximum business region, their administration must also have a system to tackle all
these problems on time. Its administration can take immediate orders and provide a receipt
which will include all the details of the products along with appropriate price to their
These are the important features of the project Courier Management System:
In computer system of the courier service computation of the rate is easily & quickly
done.
In computer system the person has to fill the various forms & number of copies of the
In computer system, it is not necessary to create the Manifest but we can directly print it,
Accuracy in work.
REQUIREMENTS
System Requirements:
Software Requirement:
Hardware Requirements:
The geometric shapes and their meaning in an E-R Diagram. We will discuss these terms in
detail in the next section(Components of a ER Diagram) of this guide so don’t worry too
much about these terms now, just go through them once.
In order to create an ER schema you must know three main concepts: entity, attribute and
relationship.
Entity
Attribute
An Attribute represents the properties of real world objects that are relevant for the
application purposes.Attributes are associated with the concept of Entity, with the meaning
that all the instances of the entity are characterized by the same set of attributes. In other
words, the entity is a descriptor of the common properties of a set of objects, and such
properties are expressed as attributes.
Relationship
A Relationship represents semantic connections between entities, like the association
between an artist and his/her album, or between an artist and his/her reviews.
The possible values are one and many. Based on their maximum cardinality constraints,
relationships are called
2."one-to-many", if one relationship role has maximum cardinality 1 and the other role has
maximum cardinality N,
Attributes of an object that can take a set of values represented by an entity and a relationship
Composed attributes.
Attributes with an internal structure (i.e, an address can include different fields), represented
by using an entity and a relationship
N-ary relationships.
IMPLEMENTATION
FRONTEND CODE
INDEX.PHP
<?php
require_once "dbconnection.php";
require_once "session.php";
$email = $_POST['email'];
$password = $_POST['password'];
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login</title>
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<style>
body {
background-image: url('images/10.jpg');
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body>
<h1 align='center' style="margin: 15px; color:seagreen;font-weight: bold;font-
family:'Times New Roman', Times, serif">TYPHOON COURIER SERVICE</h1>
<hr />
<P align='center' style="font-weight: bold;color:orange;font-family:'Times New Roman',
Times, serif">The Fastest Courier Service Ever</P>
<div>
<h5><a href="admin/adminlogin.php" style="float: right; margin-right:40px; color:blue;
margin-top:0px">AdminLogin</a></h5>
</div>
<div class="container" style="margin-top: 60px; width:50%;">
<div class="row">
<div class="col-md-12">
<h2 style="color: #273c75;">Login</h2>
<p style="color:#e84118;">Please Fill Your ⮯⮯</p>
<!-- <?php echo $error; ?> -->
<form action="" method="post">
<div class="form-group">
<label>Email Address</label>
<input type="email" name="email" class="form-control" placeholder="Enter
username/emailId" required />
</div>
<div class="form-group">
<label>Password</label>
<input type="password" name="password" class="form-control"
placeholder="Enter your password" required>
</div>
<div class="form-group">
<input type="submit" name="submit" class="btn btn-primary" value="SignIn"
/>
<button onclick="window.location.href='resetpswd.php'" class="btn btn-
danger" style="cursor:pointer">Reset Password</button>
</div>
<p style="color: #e84118;">Don't have an account?⮞➤ <a
href="register.php">Register here</a>.</p>
</form>
</div>
</div>
</div>
</body>
</html>
DBCONNECTION.PHP
<?php
$dbcon = mysqli_connect('localhost','root','','courierdb');
if($dbcon==false)
{
echo "Database is not Connected!";
}
?>
REGISTER.PHP
<?php
require_once "dbconnection.php";
require_once "session.php";
$fullname = $_POST['name'];
$phn = $_POST['ph'];
$email = $_POST['email'];
$password = $_POST['password'];
$confirm_password = $_POST['confirm_password'];
if($password==$confirm_password){
if($run==true){
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign Up</title>
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<style>
body
{
background-image:url('images/brr.png');
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body><br>
<div class="container">
<div class="row">
<div class="col-md-12">
<h2 style="color:green">Register</h2>
<p>Please fill this form to create an account.</p>
<!-- <?php echo $success; ?>
<?php echo $error; ?> -->
<form action="" method="post">
<div class="form-group">
<label>Full Name</label>
<input type="text" name="name" class="form-control" required>
</div>
<div class="form-group">
<label>Phone Num.</label>
<input type="number" name="ph" class="form-control" required>
</div>
<div class="form-group">
<label>Email Address</label>
<input type="email" name="email" class="form-control" required />
</div>
<div class="form-group">
<label>Password</label>
<input type="password" name="password" class="form-control" required>
</div>
<div class="form-group">
<label>Confirm Password</label>
<input type="password" name="confirm_password" class="form-control"
required>
</div>
<div class="form-group">
<input type="submit" name="submit" class="btn btn-danger"
value="Register">
</div>
<p>Already have an account? <a href="index.php" style="color: red;">Login
here</a>.</p>
</form>
</div>
</div>
<hr><p>Notice: If the email Id is registered before, it will not respond.</p>
<p>In this case, reset your password or register with different email Id....</p>
</div>
</body>
</html>
RESET.PHP
<?php
include('dbconnection.php');
session_start();
$gd = $_SESSION['gid'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Set Pswd</title>
<style>
body {
background-image: url('images/Reset.jpg');
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body>
<form action="reset.php" method="POST">
<table border="0px solid" style="margin-left: auto; margin-right:auto; margin-top:70px;
font-weight:bold;border-spacing: 50px 30px;">
<th colspan="3" style="text-align: center;font-size:35px; width: 300px; height:
70px;font-weight:bold;">To chalo new Password daalo bina kisi bakchodi k😂</th>
<tr>
<td colspan="2" style="font-size: 20px;font-weight:bold">New Password</td>
<td><input type="password" name="pass" placeholder="enter new password"
style="font-size: 20px;font-weight:bold" required /></td>
</tr>
<tr>
<td colspan="3" align="center">
<input type="submit" name="submit" value="Update" style="background-color:
red; border-radius: 15px; width: 140px; height: 50px;" />
</td>
</tr>
</table>
</form>
</body>
</html>
<?php
if (isset($_POST['submit'])) {
$password = $_POST['pass'];
if ($run == true) {
?> <script>
alert('Password Updated Successfully :)');
window.open('logout.php', '_self');
</script>
<?php
}
}
?>
RESETPSWD.PHP
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<title>Conforming</title>
<style>
body
{
background-image:url('images/brr.png');
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body>
<h1 align='center' style="margin: 15px; color:green;font-weight: bold;font-family:'Times
New Roman', Times, serif">THE BROKEN SAINT</h1><hr/>
<P align='center' style="font-weight: bold;color:yellow;font-family:'Times New Roman',
Times, serif">The Fastest Courier Service Ever</P>
<div><h5 ><a href="index.php" style="float: right; margin-right:40px; color:blue; margin-
top:0px">SignIn</a></h5></div>
<div class="container" style="margin-top: 60px; width:50%;">
<div class="row">
<div class="col-md-12">
<h2 style="color: #273c75;">Verify The Following Details</h2>
<p style="color:#e84118;">To Reset Your Passwprd⮯⮯</p>
<form action="resetpswd.php" method="get">
<div class="form-group">
<label>Email</label>
<input type="email" name="email" class="form-control"
placeholder="Enter emailId" required>
</div>
<div class="form-group">
<input type="submit" name="submit" class="btn btn-primary"
value="Verify" />
</div>
<p style="color: #e84118;">Don't have an account?⮞➤ <a
href="register.php">Register here</a>.</p>
</form>
</div>
</div>
</div>
</body>
</html>
<?php
require_once "dbconnection.php";
// require_once "session.php";
if (isset($_REQUEST['submit'])) {
$email = $_REQUEST['email'];
?> <script>
window.open('reset.php','_self');
</script>
<?php
}
}
?>
SESSION.PHP
<?php
// Start the session
session_start();
HEAD.PHP
<!DOCTYPE html>
<html>
<head>
<title>Header Demo</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<style>
*{
margin: 0;
padding: 0;
background-repeat: no-repeat;
}
/* body {
background-image: url('../images/plane.jpg');
background-size: cover;
} */
.admintitle{
position: relative;
background-color: brown;
color: #fff;
height: 100px;
line-height: 140px;
}
</style>
</head>
<body bgcolor="#067d64">
ADMINLOGIN.PHP
session_start();
if (isset($_SESSION['uid'])) {
header('location: dashboard.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Login</title>
</head>
<body bgcolor="#067d64">
<h5><a href="../index.php" style="float: right; margin-right:50px;
color:#00BCD4">BackToHome</a></h5><br>
<h1 align='center' style="color: #00BCD4;font-size:60px">Admin Login</h1>
<h6 align='center' style="color: #212121;font-weight: bold;font-size:15px">Swagat Nahi
Karoge Hamara..</h6>
<form action="adminlogin.php" method="POST" style="margin: auto;">
<table align="center">
<tr>
<td>Email_ID:</td>
<td><input type="email" name="uname" require></td>
</tr>
<tr><td><br></td></tr>
<tr>
<td>Password:</td>
<td><input type="password" name="pass" require></td>
</tr>
<tr>
<td colspan="2">
<hr>
</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="login"
value="Login" style="cursor: pointer;"></td>
</tr>
</table>
</form>
</body>
</html>
<?php
include('../dbconnection.php');
if (isset($_POST['login'])) {
$ademail = $_POST['uname'];
$password = $_POST['pass'];
$qry = "SELECT * FROM `adlogin` WHERE `email`='$ademail' AND
`password`='$password'";
$run = mysqli_query($dbcon, $qry);
$row = mysqli_num_rows($run);
if ($row < 1) {
?>
<script>
alert("Only admin can login..");
window.open('adminlogin.php', '_self');
</script><?php
}
else {
$data = mysqli_fetch_assoc($run);
$id = $data['a_id'];
$_SESSION['uid'] = $id;
header('location:dashboard.php');
}
}
?>
USERDELETED.PHP
<!-- this page will delete user & there courier when deleteUser link clicked in deleteusers.php
by admin -->
<?php
include('../dbconnection.php');
$em= $_GET['emm'];
// $qrycr="DELETE FROM `courier` WHERE `semail`='$em'";
// $runcr = mysqli_query($dbcon,$qrycr);
// if($runcr==false){
// echo '';
// }
if($run==true){
?> <script>
alert('User Removed Successfully :)');
window.open('deleteusers.php','_self');
</script>
<?php
}
?>
DASHBOARD.PHP
<?php
session_start();
if(isset($_SESSION['uid'])){
echo "";
}else{
header('location: ../login.php');
}
?>
<?php
include('head.php');
?>
<style>
body {
background-image: url('../images/5.png');
background-size: cover;
}
</style>
<div class="admintitle">
<div>
<h5 ><a href="../index.php" style="float: left; margin-left:20px;
color:aliceblue;">LoginAsUser</a></h5>
<h5 ><a href="logout.php" style="float: right; margin-right:20px;
color:aliceblue;">LogOut</a></h5>
</div>
<h1 align='center' style="text-shadow: 0.1em 0.1em 0.15em #f9829b;">Welcome To
Admin Dashbord</h1>
</div>
<div align="center" style="margin-top:240px;">
<form style="position: center;color:lightblue;font-weight:bold;font-size:50px">
</div>
</body>
</html>
DELETEDATA.PHP
<!-- when admin click delete data link, page with filter options-->
<?php
session_start();
if(isset($_SESSION['uid'])){
echo "";
}else{
header('location: ../login.php');
}
?>
<?php
include('head.php');
?>
<div class="admintitle">
<div>
<h5 ><a href="dashboard.php" style="float: left; margin-left:20px;
color:aliceblue;">BackToDashboard</a></h5>
<h5 ><a href="logout.php" style="float: right; margin-right:20px;
color:aliceblue;">LogOut</a></h5>
</div>
<table width='80%' border="1px solid" style="margin-left: auto; margin-right:auto; margin-
top:30px; font-weight:bold;border-spacing: 5px 5px;">
<tr style="background-color: indigo;">
<th>No.</th>
<th>Items Image</th>
<th>Sender Name</th>
<th>Receiver Name</th>
<th>Sender Email</th>
<th>Action</th>
</tr>
<?php
include('../dbconnection.php');
if(mysqli_num_rows($run)<1){
echo "<tr><td colspan='6'>No record found..</td></tr>";
}
else{
$count=0;
while($data=mysqli_fetch_assoc($run))
{
$count++;
?>
<tr align="center">
<td><?php echo $count; ?></td>
<td><img src="../dbimages/<?php echo $data['image']; ?>" alt="pic" style="max-
width: 100px;"/> </td>
<td><?php echo $data['sname']; ?></td>
<td><?php echo $data['rname']; ?></td>
<td><?php echo $data['semail']; ?></td>
<td><a href="datadeleted.php?bb=<?php echo $data['billno']; ?>">Delete</a></td>
</tr>
<?php
}
}
?>
</table>
</div>
DELETEUSERS.PHP
<!-- when admin click delete user link, it displays all users with delete option -->
<?php
session_start();
if(isset($_SESSION['uid'])){
echo "";
}else{
header('location: ../login.php');
}
?>
<?php
include('head.php');
?>
<div class="admintitle">
<div>
<h5 ><a href="dashboard.php" style="float: left; margin-left:20px;
color:aliceblue;">BackToDashboard</a></h5>
<h5 ><a href="logout.php" style="float: right; margin-right:20px;
color:aliceblue;">LogOut</a></h5>
</div>
<h1 align='center' style="text-shadow: 0.1em 0.1em 0.15em #f9829b;">Showing All
Users</h1>
</div>
<div style="overflow-x:auto;">
<table width='80%' border="1px solid" style="margin-left: auto; margin-right:auto; margin-
top:30px; font-weight:bold;border-collapse: collapse;">
<tr style="background-color: indigo;">
<th>No.</th>
<th>Users Name</th>
<th>Email Id</th>
<th>Action</th>
</tr>
<?php
include('../dbconnection.php');
if(mysqli_num_rows($run)<1){
echo "<tr><td colspan='6'>There is no Data in Database</td></tr>";
}
else{
$count=0;
while($data=mysqli_fetch_assoc($run))
{
$count++;
?>
<tr align="center">
<td><?php echo $count; ?></td>
<td><?php echo $data['name']; ?></td>
<td><?php echo $data['email']; ?></td>
<td><a href="usersdeleted.php?emm=<?php echo $data['email']; ?
>">DeleteUser</a></td>
</tr>
<?php
}
}
?>
</table>
</div>
DATADELETED.PHP
<!-- this page will delete data when deleted by admin -->
<?php
include('../dbconnection.php');
$billno= $_REQUEST['bb'];
if($run==true){
?> <script>
alert('Courier Deleted Successfully :)');
window.open('deletedata.php','_self');//_self is used to open in same page
//inside php after echo rem to put ";"
</script>
<?php
}
?>
DELETECOURIER.PHP
<!-- user will delete there courier themself when click delete link in track section-->
<?php
include('../dbconnection.php');
$billno= $_REQUEST['bb'];
if($run==true){
?> <script>
alert('Courier Deleted Successfully :)');
window.open('trackMenu.php','_self');
</script>
<?php
}
?>
EDITDATA.PHP
<!-- php code for updating new info to database, directed from updationtable.php -->
<?php
if(isset($_POST['submit'])){
include('../dbconnection.php');
$idd = $_POST['idd'];
$sname = $_POST['sname'];
$rname = $_POST['rname'];
$semail = $_POST['semail'];
$remail = $_POST['remail'];
$sphone = $_POST['sphone'];
$rphone = $_POST['rphone'];
$sadd = $_POST['saddress'];
$radd = $_POST['raddress'];
$wgt = $_POST['wgt'];
$billn = $_POST['billno'];
$originalDate = $_POST['date'];
$newDate = date("Y-m-d", strtotime($originalDate));
$imagenam = $_FILES['simg']['name'];
$tempnam = $_FILES['simg']['tmp_name'];
move_uploaded_file($tempnam,"../dbimages/$imagenam");
if($run==true){
?> <script>
alert('Data Updated Successfully :)');
window.open('home.php','_self');
</script>
<?php
}
?>
HEADER.PHP
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Navbar with Logo Image</title>
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<style>
.bs-example{
margin: 0;
}
</style>
</head>
<body>
<div class="bs-example">
<nav class="navbar navbar-expand-md navbar-light bg-light">
<a href="home.php" class="navbar-brand">
<img src="../images/fcmw.png" height="80" alt="CoolBrand">
</a>
<button type="button" class="navbar-toggler" data-toggle="collapse" data-
target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
HEAD.PHP
<?php
session_start();
if(isset($_SESSION['uid'])){
echo "";
}else{
header('location: ../index.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home Page</title>
<style>
body
{
background-image:url('../images/1920_1080.jpg');
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body>
<?php include('header.php'); ?>
<div align='center' style="font-weight: bold;font-family:'Times New Roman', Times,
serif"><br><br><br><br>
<h2>This is a Typhoon Courier Management Service</h2>
<h4>The fastest courier service of India</h4><br><br>
<h3>DBMS MINI PROJECT</h3>
<h6>By Group 24</h6>
</div>
</body>
</html>
PRICE.PHP
<?php
session_start();
if(isset($_SESSION['uid'])){
echo "";
}else{
header('location: ../index.php');
}
?>
<?php
include('header.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pricing</title>
</head>
<body>
<table width='30%' border="5px solid" style="margin-top:30px;margin-left:auto ;margin-
right:auto ;font-weight:bold;border-spacing: 5px 5px;border-collapse: collapse;">
<tr style="background-color: green;font-size:30px">
<th>Weight in Kg</th><th>Price</th>
</tr>
<tr>
<td>0-1</td><td>120</td>
</tr>
<tr>
<td>1-2</td><td>200</td>
</tr>
<tr>
<td>2-4</td><td>250</td>
</tr>
<tr>
<td>4-5</td><td>300</td>
</tr>
<tr>
<td>5-7</td><td>400</td>
</tr>
<tr>
<td>7-above</td><td>500</td>
</tr>
</table>
<h3 align="center" style="margin-top:20px;"> As per your courier's weight pay the
amount on:</h3>
<div style="margin-left:45% ;margin-right:auto ;font-weight:bold;">
<ol>
<li>UPI: [email protected]</li>
<li>GPay: 6362786223</li>
<li>PhnPay: 3565656555</li>
</ol>
</div>
</body>
</html>
TRACKMENU.PHP
<!-- when track menu is clicked it will show all courier placed by that User-->
<?php
session_start();
if(isset($_SESSION['uid'])){
echo "";
}else{
header('location: ../login.php');
}
?>
<?php include('header.php'); ?>
<div style="overflow-x:auto;">
<table width='80%' border="1px dash" style="margin-top:30px;margin-left:auto ;margin-
right:auto ;font-weight:bold;border-spacing: 5px 5px;border-collapse: collapse;">
<tr style="background-color: green;font-size:30px">
<th>No.</th>
<th>Item's Image</th>
<th>Sender Name</th>
<th>Receiver Name</th>
<th>Receiver Email</th>
<th>Action</th>
</tr>
<?php
include('../dbconnection.php');
$email = $_SESSION['emm'];
if(mysqli_num_rows($run)<1){
echo "<tr><td colspan='6'>No record found..</td></tr>";
}
else{
$count=0;
while($data=mysqli_fetch_assoc($run))
{
$count++;
?>
<tr align="center">
<td><?php echo $count; ?></td>
<td><img src="../dbimages/<?php echo $data['image']; ?>" alt="pic" style="max-
width: 100px;"/> </td>
<td><?php echo $data['sname']; ?></td>
<td><?php echo $data['rname']; ?></td>
<td><?php echo $data['remail']; ?></td>
<td>
<a href="updationtable.php?sid=<?php echo $data['c_id']; ?>">Edit</a> ||
<a href="deletecourier.php?bb=<?php echo $data['billno']; ?>">Delete</a>||
<a href="status.php?sidd=<?php echo $data['c_id']; ?>">CheckStatus</a>
</td>
</tr>
<?php
}
}
?>
</table>
</div>
COURIERMENU.PHP
?>
<?php
include('header.php');
$email = $_SESSION['emm'];
$uid = $_SESSION['uid'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Place Order</title>
<style>
body {
background-image: url('../images/1920_1080.jpg');
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body>
<form action="courierMenu.php" method="POST" enctype="multipart/form-data">
<div style="overflow-x:auto;">
<table border="0px solid" style="margin: auto; font-weight:bold;border-spacing: 5px
15px;">
<th colspan="4" style="text-align: center;background-color:#00FF00; width:
140px; height: 50px;">Fill The Details Of Sender & Receiver</th>
<tr>
<td colspan="4" style="text-align: center;">
<hr>
</td>
</tr>
<tr style="text-align: center;">
<th colspan="2">SENDER</th>
<th colspan="2">RECEIVER</th>
</tr>
<tr>
<td colspan="4">
<hr>
</td>
</tr>
<tr>
<th colspan="2"></th>
<th colspan="2"></th>
</tr>
<tr>
<td>Name:</td>
<td><input type="text" name="sname" placeholder="Sender FullName"
required></td>
<td>Name:</td>
<td><input type="text" name="rname" placeholder="Sender FullName"
required></td>
</tr>
<tr>
<td>Email:</td>
<td><input type="text" name="semail" value="<?php echo $email; ?>"
readonly></td>
<td>Email:</td>
<td><input type="text" name="remail" placeholder="Receiver EmailId"
required></td>
</tr>
<tr>
<td>PhoneNo.:</td>
<td><input type="number" name="sphone" placeholder="sender number"
required></td>
<td>PhoneNo.:</td>
<td><input type="number" name="rphone" placeholder="receiver number"
required></td>
</tr>
<tr>
<td>Address:</td>
<td><input type="textfield" name="saddress" placeholder="sender address"
required></td>
<td>Address:</td>
<td><input type="textfield" name="raddress" placeholder="receiver address"
required></td>
</tr>
<tr>
<td colspan="4"></td>
</tr>
<tr>
<td>Weight:</td>
<td><input type="number" name="wgt" placeholder="weights in kg"
required></td>
<td>Payment Id:</td>
<td><input type="number" name="billno" placeholder="enter transition num"
required></td>
</tr>
<tr>
<!-- <td>Date:</td><td><input type="date" name="date"></td> -->
<td>Date:</td>
</html>
<?php
if (isset($_POST['submit'])) { //if we'll not give this,it'will submit from with zero values.
include('../dbconnection.php');
$sname = $_POST['sname'];
$rname = $_POST['rname'];
$semail = $_POST['semail'];
$remail = $_POST['remail'];
$sphone = $_POST['sphone'];
$rphone = $_POST['rphone'];
$sadd = $_POST['saddress'];
$radd = $_POST['raddress'];
$wgt = $_POST['wgt'];
$billn = $_POST['billno'];
$originalDate = $_POST['date'];
$newDate = date("Y-m-d", strtotime($originalDate));
$imagenam = $_FILES['simg']['name'];
$tempnam = $_FILES['simg']['tmp_name'];
move_uploaded_file($tempnam, "../dbimages/$imagenam");
$qry = "INSERT INTO `courier` (`sname`, `rname`, `semail`, `remail`, `sphone`, `rphone`,
`saddress`, `raddress`, `weight`, `billno`, `image`,`date`,`u_id`) VALUES ('$sname', '$rname',
'$semail', '$remail', '$sphone', '$rphone', '$sadd', '$radd', '$wgt', '$billn', '$imagenam',
'$newDate','$uid');";
$run = mysqli_query($dbcon, $qry);
if ($run == true) {
?> <script>
alert('Order Placed Successfully :)');
window.open('courierMenu.php', '_self');
</script>
<?php
}
}
?>
STATUS.PHP
<?php
session_start();
if(isset($_SESSION['uid'])){
echo "";
}else{
header('location: ../login.php');
}
?>
<?php include('header.php');
include('../dbconnection.php');
$idd = $_GET['sidd'];
if($stdate==$tddate){
?>
<h1 style="margin: 100px;background-color:red;text-align:center">Status >> On The
Way...</h1>
<br/><hr/>
<div align='center'>
<button onclick="window.location.href='trackMenu.php'" style="background-
color:green;height:60px;width:130px;border-radius:15px;cursor:pointer">GoBack</button>
</div>
<?php
}
else{
?>
<h1 style="margin: 100px;background-color:red;text-align:center">Status >> Items
Delivered..<br /><p>HAVE A NICE DAY</p></h1>
<br/><hr/>
<div align='center'>
<button onclick="window.location.href='trackMenu.php'" style="background-
color:green;height:60px;width:130px;border-radius:15px;cursor:pointer">GoBack</button>
</div>
<?php
}
?>
PROFILE.PHP
<?php
session_start();
if(isset($_SESSION['uid'])){
echo "";
}else{
header('location: ../index.php');
}
?>
<?php
include('header.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Profile</title>
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uq
KI2xXr2" crossorigin="anonymous">
<style>
body {
background-color: #f9f9fa
}
.padding {
padding: 3rem !important
}
.user-card-full {
overflow: hidden
}
.card {
border-radius: 5px;
-webkit-box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08);
box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08);
border: none;
margin-bottom: 30px
}
.m-r-0 {
margin-right: 0px
}
.m-l-0 {
margin-left: 0px
}
.user-card-full .user-profile {
border-radius: 5px 0 0 5px
}
.bg-c-lite-green {
background: -webkit-gradient(linear, left top, right top, from(#f29263), to(#ee5a6f));
background: linear-gradient(to right, #ee5a6f, #f29263)
}
.user-profile {
padding: 20px 0
}
.card-block {
padding: 1.25rem
}
.m-b-25 {
margin-bottom: 25px
}
.img-radius {
border-radius: 5px
}
h6 {
font-size: 14px
}
.card .card-block p {
line-height: 25px
}
.card-block {
padding: 1.25rem
}
.b-b-default {
border-bottom: 1px solid #e0e0e0
}
.m-b-20 {
margin-bottom: 20px
}
.p-b-5 {
padding-bottom: 5px !important
}
.card .card-block p {
line-height: 25px
}
.m-b-10 {
margin-bottom: 10px
}
.text-muted {
color: #919aa3 !important
}
.b-b-default {
border-bottom: 1px solid #e0e0e0
}
.f-w-600 {
font-weight: 600
}
.m-b-20 {
margin-bottom: 20px
}
.m-t-40 {
margin-top: 20px
}
.p-b-5 {
padding-bottom: 5px !important
}
.m-b-10 {
margin-bottom: 10px
}
.m-t-40 {
margin-top: 20px
}
.user-card-full .social-link li {
display: inline-block
}
.user-card-full .social-link li a {
font-size: 20px;
margin: 0 10px 0 0;
-webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out
}
</style>
</head>
<body>
<?php
include('../dbconnection.php');
$id= $_SESSION['uid'];
$qry= "SELECT * FROM `users` WHERE `u_id`='$id'";
$run= mysqli_query($dbcon,$qry);
$data = mysqli_fetch_assoc($run);
?>
<div class="page-content page-container" id="page-content">
<div class="padding">
<div class="row container d-flex justify-content-center">
<div class="col-xl-6 col-md-12">
<div class="card user-card-full">
<div class="row m-l-0 m-r-0">
<div class="col-sm-4 bg-c-lite-green user-profile">
<div class="card-block text-center text-white">
<div class="m-b-25"> <img
src="https://img.icons8.com/bubbles/100/000000/user.png" class="img-radius" alt="User-
Profile-Image"> </div>
<h3 class="f-w-600"><?php echo $data['name']; ?></h3>
<p>user</p> <i class=" mdi mdi-square-edit-outline feather icon-edit m-
t-10 f-16"></i>
</div>
</div>
<div class="col-sm-8">
<div class="card-block">
<h6 class="m-b-20 p-b-5 b-b-default f-w-600">Information</h6>
<div class="row">
<div class="col-sm-6">
<p class="m-b-10 f-w-600">Email</p>
<h6 class="text-muted f-w-400"><?php echo $data['email'];
?></h6>
</div>
<div class="col-sm-6">
<p class="m-b-10 f-w-600">Phone</p>
<h6 class="text-muted f-w-400"><?php echo $data['pnumber']; ?
></h6>
</div>
</div>
<div class="row">
<hr><br><hr>
</div>
<ul class="social-link list-unstyled m-t-40 m-b-10">
<h6>Leave it when u can't hold it..</h6>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
UPDATIONTABLE.PHP
<!-- when we click update any items, it gives table with prev info -->
<?php
session_start();
if(isset($_SESSION['uid'])){
echo "";
}else{
header('location: ../index.php');
}
?>
<?php
include('../dbconnection.php');
$idd= $_GET['sid'];
$uqry= "SELECT * FROM `courier` WHERE `c_id`='$idd'";
$run= mysqli_query($dbcon,$uqry);
$data = mysqli_fetch_assoc($run);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Place Order</title>
</head>
<body>
<form action="editdata.php" method="POST" enctype="multipart/form-data">
<div style="overflow-x:auto;">
<table border="0px solid" style="margin-left: auto; margin-right:auto; margin-top:30px;
font-weight:bold;border-spacing: 5px 15px;">
<th colspan="4" style="text-align: center;background-color:#00FF00; width: 140px;
height: 50px;">Update The Details As Required</th>
<tr>
<th colspan="2">SENDER</th><th colspan="2">RECEIVER</th>
</tr>
<tr>
<th colspan="2"></th><th colspan="2"></th>
</tr>
<tr>
<td>Name:</td><td><input type="text" name="sname" value="<?php echo
$data['sname'];?>" required></td>
<td>Name:</td><td><input type="text" name="rname" value="<?php echo $data['rname'];?
>" required></td>
</tr>
<tr>
<td>Email:</td><td><input type="text" name="semail" value="<?php echo
$data['semail'];?>" readonly></td>
--
-- Database: `courierdb`
--
-- --------------------------------------------------------
--
-- Table structure for table `adlogin`
--
--
-- Dumping data for table `adlogin`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
--
-- Dumping data for table `admin`
--
-- --------------------------------------------------------
--
-- Table structure for table `contacts`
--
--
-- Dumping data for table `contacts`
--
-- --------------------------------------------------------
--
-- Table structure for table `courier`
--
--
-- Dumping data for table `courier`
--
INSERT INTO `courier` (`c_id`, `u_id`, `semail`, `remail`, `sname`, `rname`, `sphone`,
`rphone`, `saddress`, `raddress`, `weight`, `billno`, `image`, `date`) VALUES
(7, 4, '[email protected]', '[email protected]', 'love', 'himanshu', '06362786223',
'6526652', 'KR puram,Bangalore,Karnataka', 'Boys hostel of Cambridge institute of
technology,j', 2, 22, 'cddd.jpeg', '2020-12-06'),
(8, 4, '[email protected]', '[email protected]', 'love', 'gyanshu', '06362786223',
'06362786223', 'KR puram,Bangalore,Karnataka', 'Boys hostel of Cambridge institute of
technology,j', 2, 3263, 'fc.png', '2020-12-06');
-- --------------------------------------------------------
--
-- Table structure for table `login`
--
--
-- Dumping data for table `login`
--
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`u_id` int(11) NOT NULL,
`email` varchar(50) NOT NULL,
`name` varchar(50) DEFAULT NULL,
`pnumber` int(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `users`
--
--
-- Indexes for dumped tables
--
--
-- Indexes for table `adlogin`
--
ALTER TABLE `adlogin`
ADD KEY `a_id` (`a_id`);
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`a_id`),
ADD UNIQUE KEY `email` (`email`);
--
-- Indexes for table `contacts`
--
ALTER TABLE `contacts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `courier`
--
ALTER TABLE `courier`
ADD PRIMARY KEY (`c_id`),
ADD UNIQUE KEY `billno` (`billno`),
ADD KEY `u_id` (`u_id`);
--
-- Indexes for table `login`
--
ALTER TABLE `login`
ADD KEY `u_id` (`u_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`u_id`),
ADD UNIQUE KEY `email` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `a_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `contacts`
--
ALTER TABLE `contacts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `courier`
--
ALTER TABLE `courier`
MODIFY `c_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `u_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `adlogin`
--
ALTER TABLE `adlogin`
ADD CONSTRAINT `adlogin_ibfk_1` FOREIGN KEY (`a_id`) REFERENCES `admin`
(`a_id`);
--
-- Constraints for table `courier`
--
ALTER TABLE `courier`
ADD CONSTRAINT `courier_ibfk_1` FOREIGN KEY (`u_id`) REFERENCES `users`
(`u_id`) ON DELETE CASCADE;
--
-- Constraints for table `login`
--
ALTER TABLE `login`
ADD CONSTRAINT `login_ibfk_1` FOREIGN KEY (`u_id`) REFERENCES `users`
(`u_id`) ON DELETE CASCADE;
COMMIT;
SNAPSHOTS
3. PRICING OF COURIER
4. COURIER SENDING PAGE
http://www.xamppserver.com/en/
http://www.php.net/
http://youtube.com/
http://www.tutorialspoint.com/mysql/
https//apache.org/docs/2.0/misc/tutorials.html