Академический Документы
Профессиональный Документы
Культура Документы
on
“HELPER’S LIST”
Submitted to
Rashtrasant Tukdoji Maharaj Nagpur University,Nagpur
In Partial Fulfillment of the requirement of
Submitted by
Vandana Mahobiya
Dinky Setiya
Rishabh Sambarkar
Degree/Diploma.
Guide Name
Prof.Megha Nanhe
Place:Nagpur
Date: Director
DECLARATION
our own research work based on personal study during academic session
2019 – 2020 and has not been submitted previously for award of any
Vandana Mahobiya
Dinky Setiya
Rishabh Sambarkar
ACKNOWLEDGEMENT
We are grateful to our parents for their lovable support. Last but not the
least we are thankful to our friends and other faculty member for their
1 Introduction
2 Objective
o Preliminary Investigation.
o Present System in Use.
o Flaws in Present System.
o Need of New System.
o Feasibility Study
o Project category
4 Software engineering Paradigm applied
o Modules
o System / Modular Chart.
5 Software and hardware requirement specification.
o Entity-Relationship Diagram
7 System design
o Page Design.
o Source Code.
o Input screen & Output Screen
8 System security measures
When someone need aid with small but major household tasks, the
trouble arises when service skilled persons are unavailable or the trusted
providers are impossible to find, who delivers consistently flawless
service on instance.
Our online system for household services provides the most expedient
and annoys free way to get your domestic work done. We aim to help in
providing optimal solutions to all your household troubles with more
efficiency, ease and majorly, a delicate touch.
A single click system describes booking highly skilled in-house
professionals and gets your service done on time.
Customers’ overall willingness to pay is significantly and positively
correlated with the expectation that fee-based services would be better,
and with the belief that “pay for what you get” is the right thing to do.
Keeping that in sense our proposed system is basically a marketplace for
household services and it is the platform where the rates were
standardized and there is no necessitate haggling over prices.
Several aspects like painting, pest control, home cleaning, plumbing,
electrical works and carpentry services are involved in a system to
provide happy and healthy home atmosphere in order to satisfy
consumers.
Objectives
Preliminary Investigation
With the help of this website people can avail the information
according to the his requirements. This website also provides a
great convenience to the people all over the world.
Feasibility study
Many feasibility studies are disillusioning for both users and analysts.
First the study often presupposes that when the feasibility document
being prepared, the analyst is in a position to evaluate solutions. Second
most studies tend to overlook the confusion inherent in system
development-the constraint & the assumed attitudes. If the feasibility
study is to serve as a decision document, it must answer three key
questions:
1. Is there a new and better way to do the job that will benefit the
user?
2. What are the costs and savings of the alternative(s)?
3. What is recommended?
The most successful system project are necessarily
the biggest or most visible in a business but rather those that truly
meet user expectations than for any other reason.
Project Category
About PHP
Modules
Registration Module
Service Module
Payment Module
Software requirement:
Hardware requirement:
Detailed system analysis
o DATA STRUCTURE
User
Helper’s list
Result
Request for the service
Payment /
refund
Website
(helper’s list)
<?php
include_once "./include/header.php";
include_once "./msg/login.php";
?>
<div class="card">
alt="...">
<div class="card-body">
<div class="card-title">
</div>
<hr>
<div class="form-group">
<input id="contact"
oninput="this.value = this.value.replace(/[^0-9.]/g,
'').replace(/(\..*)\./g, '$1');"
name="contact" type="text" class="form-control"
placeholder="Enter Your Contact No."
</div>
<div class="form-group">
<label for="">Password</label>
</div>
id="login">Login</button>
</form>
</div>
</div>
</div>
o Booking:-
<?php
include_once "./include/header.php";
include_once "./scripts/DB.php";
if (!isset($_GET['provider'])) {
header('Location: index.php');
exit();
header('Location: index.php');
exit();
include_once "msg/booking.php";
?>
<div class="card-header">
</div>
<div class="row">
<div class="col">
</div>
</div>
<div class="card-body">
<table class="table">
<tr>
<th>Name</th>
<td>
</td>
<th>Profession</th>
<td>
<?= $provider->profession;?>
</td>
</tr>
<tr>
<th>Address</th>
<td>
</td>
<th>Pincode</th>
<td>
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
<div class="card-title">
</h3>
</div>
<hr>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
minlength="10" maxlength="10"
oninput="this.value = this.value.replace(/[^0-9.]/g,
'').replace(/(\..*)\./g, '$1');" required>
</div>
<div class="form-group">
<label for="">Address</label>
<input id="adder" name="adder" type="text"
class="form-control" placeholder="Address"
maxlength="255" required>
</div>
<div class="form-group">
<label for="">Date</label>
</div>
<div class="form-group">
<option value="cash">Cash</option>
<option value="card">Net
Banking</option>
</select>
</div>
<div class="form-group">
<label for="">Problem</label>
<textarea id="queries" name="queries" class="form-
control" maxlength="255"
placeholder="Any queries..?"></textarea>
</div>
id="book">Book
Hall</button>
</form>
</div>
</div>
</div>
o Delete bookings
<?php
include_once "scripts/checklogin.php";
include_once "scripts/helpers.php";
include_once "scripts/DB.php";
if (!check("admin")) {
header('Location: logout.php');
exit();
if (isset($_GET['id'])) {
$input = clean($_GET);
if ($isRemoved) {
header('Location: admin.php?msg=success');
exit();
} else {
header('Location: admin.php?msg=failed');
exit();
o Index
<?php
include_once "./include/header.php";
<hr>
<div class="row">
<label for="">Pincode</label>
</option>
</select>
</div>
<option value="electrician">Electrician</option>
<option value="plumber">Plumber</option>
<option value="maid">Maid</option>
</select>
</div>
<label for="">Action</label>
</div>
</div>
<div class="table-responsive">
<thead>
<tr>
<th>Photo</th>
<th>Name</th>
<th>Address</th>
<th>Profession</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr>
</tr>
</tbody>
</table>
</div>
</div>
<script src="js/jquery.js"></script>
<script>
$(function() {
$("#search").click(function() {
$.post('scripts/searchproviders.php', {
city: city,
profession: profession
}, function(res) {
if (providers.failed == true) {
} else {
providers.forEach(function(provider, i) {
tbody += "<tr>" +
.photo +
"'/></td>" +
",<br>" +
provider.city + "</td>" +
});
$("#providers tbody").html(tbody);
});
});
});
</script>
o Admin
<?php
include_once "scripts/checklogin.php";
include_once "scripts/DB.php";
include_once "include/header.php";
if (!check("admin")) {
header('Location: logout.php');
exit();
}
$sql = "SELECT b.*, p.name AS provider_name FROM bookings
AS b, providers AS p WHERE b.provider_id = p.id ORDER BY b.date
DESC";
$bookings = DB::query($sql)->fetchAll(PDO::FETCH_OBJ);
include_once "msg/admin.php";
?>
<div class="table-responsive">
<table class="table">
<tr>
<th>Name</th>
<th>Contact</th>
<th>Address</th>
<th>Date</th>
<th>Payment Method</th>
<th>Queries</th>
<th>Provider Name</th>
<th>Action</th>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<td>
href="deletebooking.php?id=<?= $booking->id;
?>">Remove</a>
</td>
</tr>
</table>
</div>
</div>
o Register
<?php
?>
<div class="card-body">
<div class="card-title">
</div>
<hr>
<div class="form-group">
<label for="">Name</label>
</div>
<div class="form-group">
<input id="contact"
oninput="this.value = this.value.replace(/[^0-9.]/g,
'').replace(/(\..*)\./g, '$1');"
maxlength="10" required>
</div>
<div class="form-group">
required>
</div>
<div class="form-group">
required>
</div>
<div class="form-group">
<label for="">Pincode</label>
</option>
</select>
</div>
<div class="form-group">
required>
</div>
<div class="form-group">
</div>
<div class="form-group">
<label for="">Password</label>
</div>
<div class="form-group">
<label for="">Profession</label>
<option value="electrician">Electrician</option>
<option value="plumber">Plumber</option>
<option
value="maid">maid</option>
</select>
</div>
id="register">Register</button>
</form>
</div>
</div>
</div>
<?php
include_once "scripts/checklogin.php";
include_once "include/header.php";
if (!check()) {
header('Location: logout.php');
exit();
$provider = $_SESSION['user'];
?>
<div class="card">
<div class="card-body">
<div class="card-title">
</div>
<hr>
<form action="scripts/updatehall.php" method="post"
enctype="multipart/form-data">
<div class="form-group">
<label for="">Name</label>
</div>
<div class="form-group">
</div>
<div class="form-group">
required>
</div>
<div class="form-group">
<label for="">Address
Line 2</label>
required>
</div>
<div class="form-group">
<label for="">Pincode</label>
</option>
</select>
</div>
<div class="form-group">
<div class="row">
</div>
<div class="col">
</div>
</div>
</div>
<label for="">Description</label>
</div>
<div class="form-group">
<label for="">Password</label>
</div>
<div class="form-group">
<label for="">Profession</label>
<option value="electrician">Electrician</option>
<option value="plumber">Plumber</option>
</select>
</div>
id="register">Update</button>
</form>
</div>
</div>
</div>
<?php include_once "./include/footer.php";
o Manage hall
Book hall
<?php
include_once "scripts/checklogin.php";
include_once "include/header.php";
include_once "scripts/DB.php";
if (!check("admin")) {
header('Location: logout.php');
exit();
$providers = $stmt->fetchAll(PDO::FETCH_OBJ);
include_once "msg/managehall.php";
?>
<div class="table-responsive">
<table class="table">
<tr>
<th>Photo</th>
<th>Name</th>
<th>Contact</th>
<th>Address</th>
<th>Profession</th>
<th>Action</th>
</tr>
<tr>
<td>
alt="photo">
</td>
</td>
</td>
<td>
</td>
<td>
</form>
</td>
</tr>
</table>
</div>
</div>
o Script
<?php
require_once 'helpers.php';
require_once 'DB.php';
if (isset($_POST['book'])) {
$input = clean($_POST);
$provider = $_POST['provider'];
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$contact = $_POST['contact'];
$adder = $_POST['adder'];
$date = $_POST['date'];
$queries = $_POST['queries'];
$payment = $_POST['payment'];
$isBooked = DB::query($sql, [
]);
if ($isBooked) {
header("Location:
../booking.php?provider=$provider&msg=success");
exit();
} else {
header("Location:
../booking.php?provider=$provider&msg=failed");
exit();
Check login
<?php
require_once 'session.php';
if (is_null($type)) {
return isset($_SESSION['user']);
} elseif (isset($_SESSION['user'])) {
return false;
}
Db
<?php
class DB
/**
* @var \PDOStatement
*/
/**
* @throws \PDOException
*/
{
try {
$conn = new
PDO("mysql:host=".self::HOST.";dbname=".self::DBNAME, self::USERNAME,
self::PASSWORD, []);
$conn->setAttribute(PDO::ATTR_ERRMODE,
PDO::ERRMODE_EXCEPTION);
echo $e->getMessage();
return $conn;
/**
* @return PDOStatement
*/
try {
self::$_stmt = self::getConnection()->prepare($sql);
return self::$_stmt->execute($params);
}
if (empty($params)) {
self::$_stmt->execute();
} else {
self::$_stmt->execute($params);
return self::$_stmt;
echo $e->getMessage();
return self::$_stmt;
Helpers
<?php
{
foreach ($data as $key => $val) {
$data[$key] = trim($val);
$data[$key] = stripslashes($val);
$data[$key] = htmlspecialchars($val);
return $data;
$ext = end($a);
return false;
$dest = uniqid().'.'.$ext;
if (move_uploaded_file($file['tmp_name'],
'../images/'.$dest)) {
return $dest;
return false;
}
Login
<?php
require_once 'session.php';
require_once 'DB.php';
require_once 'helpers.php';
if (isset($_POST['login'])) {
$input = clean($_POST);
$contact = $input['contact'];
$password = $input['password'];
$s = new stdClass();
$s->name = "admin";
$_SESSION['user'] = $s;
header('Location: ../admin.php');
exit();
} else {
$stmt = DB::query(
"SELECT * FROM providers WHERE contact=? AND
password=?",
[$contact , $password]
);
$provider = $stmt->fetch(PDO::FETCH_OBJ);
if (isset($provider->name)) {
$_SESSION['user'] = $provider;
header('Location: ../provider.php');
exit();
} else {
header('Location: ../login.php?msg=failed');
exit();
Register
<?php
require_once 'session.php';
require_once 'DB.php';
require_once 'helpers.php';
if (isset($_POST['register'])) {
$input = clean($_POST);
$name = $input['name'];
$contact = $input['contact'];
$descr = $input['descr'];
$adder1 = $input['adder1'];
$adder2 = $input['adder2'];
$city = $input['city'];
$password = $input['password'];
$profession = $input['profession'];
$photo = $_FILES['photo'];
$file1 = upload($photo);
header('Location', '../register.php?msg=file');
exit();
]);
if ($isProviderCreated) {
header('Location: ../register.php?msg=success');
exit();
} else {
unlink('../storage/'.$file1);
header('Location: ../register.php?msg=failed');
exit();
Search providers
<?php
require_once 'helpers.php';
require_once 'DB.php';
$input = clean($_POST);
$city = $input['city'];
$profession = $input['profession'];
$stmt = DB::query($sql, [
$city, $profession
]);
$providers = $stmt->fetchAll(PDO::FETCH_OBJ);
if (count($providers) > 0) {
echo json_encode($providers);
} else {
Session
<?php
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
Update hall
<?php
include_once "session.php";
include_once "checklogin.php";
include_once "DB.php";
include_once "helpers.php";
if (!check()) {
header('Location: logout.php');
exit();
if (isset($_POST['register'])) {
$input = clean($_POST);
$name = $input['name'];
$contact = $input['contact'];
$descr = $input['descr'];
$adder1 = $input['adder1'];
$adder2 = $input['adder2'];
$city = $input['city'];
$password = $input['password'];
$profession = $input['profession'];
$photo = $_FILES['photo'];
$file1 = upload($photo);
header('Location', '../register.php?msg=file');
exit();
$isProviderCreated = DB::query(
[$name,$contact,$adder1,$adder2,$city,$file1, $descr,
$password, $profession,$_SESSION['user']->id]
);
if ($isProviderCreated) {
unlink($_SESSION['user']->photo);
header('Location: ../logout.php');
exit();
} else {
unlink('../storage/'.$file1);
echo "";
header('Location: ../logout.php');
exit();
o Msg
Admin
<h3>Success</h3>
</div>
<h3>Failure</h3>
</div>
</div>
<?php endif;
Booking
Login
<h4>Login</h3>
</div>
</div>
<?php endif;
Main
);
);
Manage hall
<h3>Success</h3>
</div>
<h3>Failure</h3>
</div>
</div>
<?php endif;
Register
<h4>Registering</h4>
</div>
<h4>Failed</h4>
</div>
</div>
</div>
<?php endif;
o Include
Footer
<footer
</footer>
</body>
</html>
Header
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<style>
nav a.nav-link {
color: #fff !important;
}
</style>
<title>Home Services</title>
</head>
<body>
<nav class="nav bg-dark">
<?php if (!isset($_SESSION['user'])): ?>
<a class="nav-link active" href="index.php">Find Service
Provider</a>
<a class="nav-link" href="login.php">Login</a>
<a class="nav-link" href="register.php">Register Service
Provider</a>
<a class="nav-link" href="about.php">Feedback & Review</a>
</nav>
o About
<?php
?>
<div class="card">
<div class="card-body">
<div class="card-title">
</div>
<hr>
<div class="form-group">
<label for="">Name</label>
</div>
<div class="form-group">
<input id="contact"
oninput="this.value = this.value.replace(/[^0-9.]/g,
'').replace(/(\..*)\./g, '$1');"
maxlength="10" required>
</div>
<div class="form-group">
<label for="">Address Line 1</label>
required>
</div>
<div class="form-group">
required>
</div>
<div class="form-group">
</div>
<button style="margin-top: 30px;" class="btn btn-block
btn-primary" type="submit" name="register"
id="register">Submit</button>
</form>
</div>
</div>
</div>
o Delete hall
<?php
include_once "scripts/checklogin.php";
include_once "scripts/helpers.php";
include_once "scripts/DB.php";
if (!check("admin")) {
header('Location: logout.php');
exit();
}
if (isset($_POST['remove'])) {
$input = clean($_POST);
if ($isRemoved) {
header('Location: managehall.php?msg=success');
exit();
} else {
header('Location: managehall.php?msg=failed');
exit();
o Readme.md
- Admin:
- Password : admin123
o Logout
<?php
include_once "scripts/session.php";
if (isset($_SESSION['user'])) {
$_SESSION['user'] = null;
session_unset();
session_destroy();
header('Location: login.php');
exit();
o Services
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET
@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS
*/;
/*!40101 SET
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION
*/;
--
-- Database: `services`
--
-- --------------------------------------------------------
--
--
--
--
-- --------------------------------------------------------
--
--
CREATE TABLE `providers` (
--
--
--
--
--
--
--
--
--
--
--
--
--
COMMIT;
/*!40101 SET
CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET
CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET
COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
o License
MIT License
SOFTWARE.
o Future scope of the project