Beruflich Dokumente
Kultur Dokumente
INTRODUCTION
Recycler comes into place because we see the need for a place where the local
community within a city could come together, meet, trade and help each other in many
ways. Community members can come here to find an apartment to live in, sell their old
car, bike, music system, laptop or furniture, promote their small business, find a tuition
class or get a break as a model or actor, join a salsa class, get an audience for a local event,
buy any item that they might want or have to offer and make new friends while doing all
of the above .It allow you to post free ads, find what you are looking for and address your
regular needs by connecting people in a faster, simpler and easier way.
1.1KEY TASKS OF THE PROJECT
1. To prepare database.
1.2.1Presentation Tier
The Presentation Tier or User Interface is the portion the user sees when they open
a web page in the browser. It is as simple as you reading this article all the way to
searching a catalog and purchasing a product using a shopping cart. It is what is
presented to the user on the client side within their web browser. Languages used in
this layer are php, HTML, CSS and JavaScript.
1
1.2.2 Business Logic or Application Tier
The Business Logic, Functional Process Logic, Business Rules (all pertaining to
the same thing), are kept in a separate layer. In php, this is where you define your
classes and source code. This can be in the App_Code folder for your classes and
methods. You would not use HTML or JavaScript in this layer. In this layer you
typically define your classes, functions, subprocedures, properties ,etc.
In Php, the Data Access layer is where you define your typed datasets and table
adapters. It is where you define your queries or stored procedures. The business tier
may then make use of this functionality. In your classes, rather than defining ad
hoc queries, you may use a Table Adapter to access the Data Access Layer.
1.3 OBJECTIVES
The most amazing thing about Recycler is that it is absolutely free and you don’t
have to pay anything for posting ads or any membership charges. You have to pay only
when you buy something.
At this stage we have made this project for buying and selling various Products and
Services. In Future we will implement the various security features and Multilanguage
capabilities and various other features that will provide more efficiency and user friendly
environment.
2
CHAPTER 2
SYSTEM ANALYSIS
The factors that should be included in the feasibility assessment can be as follows.
3
Capacity: average, low and peak loads
Economic analysis is the most frequently used method for evaluating the
effectiveness of a candidate system. More commonly known as cost/benefits and saving
that are expected from a candidate system and compare them with cost. If benefits
outweigh costs, then the decision is made to design and implement the system.The
technique of cost benefit analysis is often used as a basis for assessing economic
feasibility.
Technical feasibility centers on existing computer system and to what extent it can
support the proposed addition. This involves financial consideration to accumulate
technical enhancement. E.g. if the current operating system is at 80% capacity and
arbitrary ceiling then running another application could overload the system or require
additional hardware. If the budget is serious constraint then the project is not feasible.
4
2.6 REQUIREMENT SPECIFICATIONS
Requirement analysis is a software engineering task that bridges the gap between
system level software analysis and software design. Requirement analysis enables the
system engineer to specify software function and performance indicate s/w interface with
other system elements and establish constraints that software must meet. Requirements
analysis allows the software engineer to refine the software allocation and build modules
of the data, function and behavior domain that will be treated by software. Requirement
specification provides the description to the developer and the customer with the mean to
access quality rule.
2.6.1 Output
First of all, we must determine what the objectives or goals are, what do we intend
to achieve, what is the purpose of our work; in other words what is the main aim
behind the system. Defining aim is very vital in system work. If we do not know
where we want to go, we will not know when we have reached there; we shall be
unnecessarily wasting our time and energy in the system. The user department has
to define these objectives in terms of their needs. These become the output, which
the system analyst keeps into mind.
2.6.2 Input
Once we know the output, we can easily determine when the inputs should be
sometimes, it may happen that the required information may not be readily
available in the proper form. This may be because of the existing terms we are not
properly designed. Sometimes, it may not be possible to get the required
information without the help of top management. If the information is vital to the
system, we should make all possible help of top management.
2.6.3 Accuracy
If the data is not accurate the output will be also not be correct.
2.6.4 Timeliness
If data is not obtained in time, the entire system is considered to be a bad system.
5
2.7 SOFTWARE REQUIREMENT ANALYSIS:
This process is also known as feasibility study. In this phase, the development
team visits the customer and studies their system. They investigate the need for possible
software automation in the given system. By the end of the feasibility study, the team
furnishes a document that holds the different specific recommendations for the candidate
system. To understand the nature of the program(s) to be built, the system engineer or
“Analyst” must understand the information domain for the software, as well as required
function, behavior, performance and interfacing. The essential purpose of this phase is to
find the need and to define the problem that needs to be solved.
6
Software Requirements:
Browser
Internet Connection
Hardware Requirements:
Processor:
Pentium 3 or above.
Video Device:
Monitor or any other video screen
Processor speed
Greater than 1GB.
RAM
Greater than 2GB.
Hard Disk:
Minimum 160GB.
Modem:
For Internet Connection
PHP is Server-side scripting language: Server-side scripting means that the PHP
code is processed on the web server rather than the client machine.
PHP supports many databases (MySQL and PHP combination is widely used).
2.9.2 HTML
The World Wide Web (“the Web,” for short) is “Hypertext spanning the
Internet.”Hypertext is a special kind of computer document in which certain words
act as links (or hyperlinks) that take you from one part of the document to another.
7
The World Wide Web is like an extended kind of hypertext because when you
click on a hyperlink, it may take you
(a)To another point in the same document or file.
(b) To another document/file on the same computer.
(c) To a document on another computer.
The WWW consists of machines on the Internet called servers and clients. Special
workstations on the Internet called Web servers provide information to any
machine on the Internet that requests it (this machine is known as the client). The
requested information is returned by the server (to the client) in a format known as
HTML. The client’s browser is the software that makes the request to the server,
and the browser on the client machine displays the HTML that is returned. The
protocol (or language) used by Web servers to communicate is called the Hypertext
Transfer Protocol (HTTP).
2.9.3 CSS
Cascading Style Sheets (CSS) are a method of web design that formats web page
content according to a presentation style specified by the web page author. There
are several advantages to using CS to format the presentation elements of a web
page. CSS essentially separates document content from the manner in which it is
presented, thus allowing for more fluid transitions between various browser
platforms. CSS also provides for more precise control for spacing, alignment, and
positioning of content without relying on the need for layout tables or frames. Font
style, colour, and font size can all be manipulated using CSS as well.
2.9.4 JAVASCRIPT
8
Open and cross-platform.
2.9.5 J-QUERY
J-Query is a fast and concise JavaScript Library created by John Resig in 2006
with a nice motto: Write less, do more jQuery tutorial for beginners and
professionals provides deep knowledge of jQuery technology. Our jQuery tutorial
will help you to learn jQuery fundamentals, example, selectors, events, effects,
traversing, CSS and attributes.
jQuery is a small and lightweight JavaScript library.
jQuery is cross-platform.
jQuery means "write less do more".
jQuery simplifies AJAX call and DOM manipulation.
2.9.6 BOOTSTRAP
Bootstrap is the most popular HTML, CSS and JavaScript framework for
developing a responsive and mobile friendly website.
It includes HTML and CSS based design templates for typography, forms, buttons,
tables, navigation, modals, image carousels and many others.
2.9.7 MYSQL
MySQL is a fast, easy-to-use RDBMS being used for many small and big
businesses. MySQL is developed, marketed, and supported by MySQL AB, which
is a Swedish company.
MySQL is released under an open-source license. So you have nothing to pay to
use it.
MySQL is a very powerful program in its own right. It handles a large subset of the
functionality of the most expensive and powerful database packages.
MySQL works on many operating systems and with many languages including
PHP, PERL, C, C++, JAVA, etc.
MySQL works very quickly and works well even with large data sets.
9
CHAPTER 3
SYSTEM DESIGN
Post Ads Module: It allows you to post the various ads for buying and selling your
product after registration
Myads Module: It allows you to view all the ads posted by particular user sorted on
the bases of date
Search Ads Module: It allows you search various ads according to location, date
and category type.
Replies Module: It Allows you to find the replies related to the posted ad
3.2 ER-DIAGRAM:
Fig.3.1
10
3.3 DFD
In our DFD, we give names to data flows, processes, and data stores. Although the
names are descriptive of the data, they do not give details. So the following the DFD,
our interest is to build some structured place to keep details of the contents of data flow,
processes, and data store.
DFD Symbols
Fig.3.2
1. An arrow line identifies the data flow or data in motion. It is a pipeline through
which information flows.
Fig.3.3
2. A circle or bubble represents a process transform incoming data flow in to
outgoing data flow.
Fig.3.4
11
3. A horizontal line represents data stored or data at rest or a temporary rest
repository of data.
Fig.3.5
4. An open rectangle refers to the database storage
Fig.3.6
DFD of Whole System
Figure 3.7
• tbcat
• tbsubcat
• tbcty
12
• tbloc
• tbusr
• tbadv
• tbadvpic
• tbfav
• tbmsg
• tbmsgdet
13
Table 3.3. tbcty
14
Table 3.6. tbadv
15
Table 3.9. tbmsg
16
CHAPTER 4
IMPLEMENTATION AND TESTING
4.1 CODE
4.1.1 Index.php
<?php
session_start();
include_once './buslogic.php';
if(isset($_REQUEST["sts"]) && isset($_SESSION["ucod"]))
{
session_destroy();
unset($_SESSION["ucod"]);
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Recycler.com</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-select.css">
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet" href="css/flexslider.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/font-awesome.min.css" />
<!-- for-mobile-apps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1);
} </script>
<!-- //for-mobile-apps -->
<!--fonts-->
<!-- <link href='//fonts.googleapis.com/css?family=Ubuntu+Condensed'
rel='stylesheet' type='text/css'>
<link
href='//fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,6
00italic,700,700italic,800,800italic' rel='stylesheet' type='text/css'> -->
<!--//fonts-->
<!-- js -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<!-- js -->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-select.js"></script>
<script>
$(document).ready(function () {
var mySelect = $('#first-disabled2');
17
$('#special').on('click', function () {
mySelect.find('option:selected').prop('disabled', true);
mySelect.selectpicker('refresh');
});
$('#special2').on('click', function () {
mySelect.find('option:disabled').prop('disabled', false);
mySelect.selectpicker('refresh');
});
$('#basic2').selectpicker({
liveSearch: true,
maxOptions: 1
});
});
</script>
<script type="text/javascript" src="js/jquery.leanModal.min.js"></script>
<link href="css/jquery.uls.css" rel="stylesheet"/>
<link href="css/jquery.uls.grid.css" rel="stylesheet"/>
<link href="css/jquery.uls.lcd.css" rel="stylesheet"/>
<!-- Source -->
<script src="js/jquery.uls.data.js"></script>
<script src="js/jquery.uls.data.utils.js"></script>
<script src="js/jquery.uls.lcd.js"></script>
<script src="js/jquery.uls.languagefilter.js"></script>
<script src="js/jquery.uls.regionfilter.js"></script>
<script src="js/jquery.uls.core.js"></script>
<script>
$(document).ready(function () {
$('.uls-trigger').uls({
onSelect: function (language) {
var languageName = $.uls.data.getAutonym(language);
$('.uls-trigger').text(languageName);
},
quickList: ['en', 'hi', 'he', 'ml', 'ta', 'fr'] //FIXME
});
});
</script>
</head>
<body>
<div class="header">
<div class="container">
<div class="logo">
<a href="index.html"><span>Re</span>cycler.com</a>
</div>
<div class="header-right">
<?php
if(!isset($_SESSION["ucod"]))
echo "<a class=account href=login.php >My Account</a>";
else
{
echo "<a class=account href=frmmyadv.php >My Ads</a>";
18
echo "<a class=account href=frmfav.php >Fav. Ads</a>";
echo "<a class=account href=index.php?sts=S >Logout</a>";
}
?>
<!-- Large modal -->
</div></div></div>
<div class="slider-main">
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
<li data-target="#myCarousel" data-slide-to="3"></li>
<li data-target="#myCarousel" data-slide-to="4"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active one">
<div class="main-banner banner text-center">
<div class="container">
<h1>Sell or Advertise <span class="segment-heading"> anything online </span>
with Resale</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry</p>
<a href="frmadv.php">Post Free Ad</a>
</div></div></div>
<div class="item two">
<div class="main-banner banner text-center">
<div class="container">
<h1>Sell or Advertise <span class="segment-heading"> anything online </span>
with Resale</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry</p>
<a href="frmadv.php">Post Free Ad</a>
</div></div></div>
<div class="item three">
<div class="main-banner banner text-center">
<div class="container">
<h1>Sell or Advertise <span class="segment-heading"> anything online </span>
with Resale</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry</p>
<a href="frmadv.php">Post Free Ad</a>
</div></div></div>
<div class="item four">
<div class="main-banner banner text-center">
<div class="container">
<h1>Sell or Advertise <span class="segment-heading"> anything online </span>
with Resale</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry</p>
<a href="frmadv.php">Post Free Ad</a>
19
</div></div></div>
<div class="item five">
<div class="main-banner banner text-center">
<div class="container">
<h1>Sell or Advertise <span class="segment-heading"> anything online </span>
with Resale</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry</p>
<a href="frmadv.php">Post Free Ad</a>
</div></div></div> </div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a></div></div>
<!--
<div class="main-banner banner text-center">
<div class="container">
<h1>Sell or Advertise <span class="segment-heading"> anything online </span>
with Resale</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry</p>
<a href="frmadv.php">Post Free Ad</a>
</div></div>-->
<!-- content-starts-here -->
<div class="content">
<div class="categories">
<div class="container">
<?php
$obj = new clscat();
$arr = $obj->dsp_rec();
for ($i = 0; $i < count($arr); $i++) {
?>
<div class="col-md-3 focus-grid">
<a href="frmsrc.php?ccod=<?php echo $arr[$i][0]; ?>">
<div class="focus-border">
<div class="focus-layout">
<div class="focus-image"><img src="catpics/<?php echo $arr[$i][2]; ?>"
></img></div>
<h4 class="clrchg"><?php echo $arr[$i][1]; ?></h4>
</div></div></a></div>
<?php
}
?>
<div class="clearfix"></div></div></div>
<div class="trending-ads">
<div class="container">
<!-- slider -->
20
</div>
<!-- //slider -->
</div></div>
<!--footer section start-->
<footer>
<div class="footer-top"></div>
<div class="footer-bottom text-center">
<div class="container">
<div class="footer-logo">
<a href="index.html"><span>Re</span>cycler.com</a></div>
<div class="footer-social-icons"></div>
<div class="copyrights">
<p> © 2018 Recycler.com All Rights Reserved By Cs Soft Solutions (I) Pvt. Ltd</p>
</div>
<div class="clearfix"></div></div></div></footer><!--footer section end-->
</body>
</html>
4.1.2 Config.php
<?php
class clscon
{
private $link;
public function dbconnect()
{
$host="localhost";
$un="root";
$up="";
$this->link= mysqli_connect($host, $un, $up,"dbrcy");
return $this->link;
}
public function dbclose()
{
mysqli_close($this->link);
}
}
?>
4.1.3 Login.php
<?php
session_start();
include_once './buslogic.php';
if(isset($_POST["btnsub"]))
{
// die();
$obj=new clsreg();
if($obj->logincheck($_POST["txteml"], $_POST["txtpwd"]))
{
if($_SESSION["urol"]=='A')
21
header("location:admin/frmcat.php");
else if($_SESSION["urol"]=='U')
header("location:frmmyadv.php");
}
else
$msg="Email Password Incorrect";
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Recycler.com</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-select.css">
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- for-mobile-apps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1);
} </script>
<!-- //for-mobile-apps -->
<!--fonts-->
<!-- <link href='//fonts.googleapis.com/css?family=Ubuntu+Condensed'
rel='stylesheet' type='text/css'>
<link
href='//fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,6
00italic,700,700italic,800,800italic' rel='stylesheet' type='text/css'> -->
<!--//fonts-->
<!-- js -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<script>
function validate_register()
{
var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-
z]{2})?)$/i;
var txteml = document.getElementById('txteml').value;
var txtpwd = document.getElementById('txtpwd').value;
if (txteml == '')
{
document.getElementById('txteml').focus();
alert("Please enter email address");
return false;
} else if (!re.test(txteml))
{
document.getElementById('txteml').focus();
alert("Please enter valid email address");
return false;
}
if (txtpwd == '')
22
{
document.getElementById('txtpwd').focus();
alert("Please enter Password");
return false;
}
if(txtpwd.length!="")
{
if(txtpwd.length > 10)
{
document.getElementById('txtpwd').focus();
alert("Please Enter Less than 10 Character");
return false;
}else if(txtpwd.length < 6)
{
document.getElementById('txtpwd').focus();
alert("You Enter Lass than 6 Character");
return false;
}}}
</script>
<!-- js -->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-select.js"></script>
<script>
$(document).ready(function () {
var mySelect = $('#first-disabled2');
$('#special').on('click', function () {
mySelect.find('option:selected').prop('disabled', true);
mySelect.selectpicker('refresh');
});
$('#special2').on('click', function () {
mySelect.find('option:disabled').prop('disabled', false);
mySelect.selectpicker('refresh');
});
$('#basic2').selectpicker({
liveSearch: true,
maxOptions: 1
});
});
</script>
<script type="text/javascript" src="js/jquery.leanModal.min.js"></script>
<link href="css/jquery.uls.css" rel="stylesheet"/>
<link href="css/jquery.uls.grid.css" rel="stylesheet"/>
<link href="css/jquery.uls.lcd.css" rel="stylesheet"/>
<!-- Source -->
<script src="js/jquery.uls.data.js"></script>
<script src="js/jquery.uls.data.utils.js"></script>
<script src="js/jquery.uls.lcd.js"></script>
<script src="js/jquery.uls.languagefilter.js"></script>
<script src="js/jquery.uls.regionfilter.js"></script>
23
<script src="js/jquery.uls.core.js"></script>
<script>
$( document ).ready( function() {
$( '.uls-trigger' ).uls( {
onSelect : function( language ) {
var languageName = $.uls.data.getAutonym( language );
$( '.uls-trigger' ).text( languageName );
},
quickList: ['en', 'hi', 'he', 'ml', 'ta', 'fr'] //FIXME
} );
} );
</script>
</head>
<body>
<div class="header">
<div class="container">
<div class="logo">
<a href="index.php"><span>Re</span>cycler.com</a>
</div>
<div class="header-right">
<a class="account" href="login.php">My Account</a>
<!-- Large modal --></div>
</div>
</div>
<section>
<div id="page-wrapper" class="sign-in-wrapper">
<div class="graphs">
<div class="sign-in-form">
<div class="sign-in-form-top">
<h1>Log in</h1>
</div>
<div class="signin">
<form method="Post" action="login.php" onsubmit="return validate_register()">
<div class="log-input">
<div class="log-input-left">
<input type="text" class="user" id="txteml" name="txteml" value="Your Email"
onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Your Email';}"/>
</div>
<span class="checkbox2">
<label class="checkbox"><input type="checkbox" name="checkbox" checked=""><i>
</i></label>
</span>
<div class="clearfix"> </div>
</div>
<div class="log-input">
<div class="log-input-left">
<input type="password" class="lock"
name="txtpwd" id="txtpwd"
onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Email
address:';}"/>
24
</div>
<span class="checkbox2">
<label class="checkbox"><input type="checkbox" name="checkbox" checked=""><i>
</i></label></span>
<div class="clearfix"> </div></div>
<input type="submit" value="Log in" name="btnsub">
<div class="log-input error">
<?php
if(isset($msg))
echo $msg;
?>
<div class="clearfix"> </div></div></form> </div>
<div class="new_people">
<h2><a href="frmfrgpwdd.php">Change Password</a></h2>
<p>Having hands on experience in creating innovative designs,I do offer design
solutions which harness.</p>
<a href="frmreg.php">Register Now!</a>
</div></div></div></div>
<!--footer section start-->
<footer class="diff">
<p class="text-center">© 2018 Recycler.com All Rights Reserved By Cs Soft
Solutions (I) Pvt. Ltd</p>
</footer>
<!--footer section end-->
</section>
</body>
</html>
4.1.4 frmreg.php
<?php
session_start();
include_once './buslogic.php';
if(isset($_REQUEST["ccod"]))
{
$_SESSION["ccod"]=$_REQUEST["ccod"];
}
if(isset($_POST["btnsub"]))
{
$obj=new clsreg();
$obj->usreml=$_POST["txteml"];
$obj->usrpwd=$_POST["txtpwd"];
$obj->usrregdat=date('y-m-d');
$obj->usrrol='U';
$obj->usrloccod=$_POST["drploc"];
$obj->save_rec();
header("location:login.php");
}
?>
25
<!DOCTYPE html>
<html>
<head>
<title>Recycler.com</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-select.css">
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- for-mobile-apps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!-- //for-mobile-apps -->
<!--fonts-->
<!-- <link href='//fonts.googleapis.com/css?family=Ubuntu+Condensed' rel='stylesheet'
type='text/css'>
<link
href='//fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600it
alic,700,700italic,800,800italic' rel='stylesheet' type='text/css'> -->
<!--//fonts-->
<!-- js -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<script>
function validate_register()
{
var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-
z]{2})?)$/i;
var txteml = document.getElementById('txteml').value;
var txtpwd = document.getElementById('txtpwd').value;
var txtconpwd = document.getElementById('txtconpwd').value;
if (txteml == '')
{
document.getElementById('txteml').focus();
alert("Please enter email address");
return false;
} else if (!re.test(txteml))
{
document.getElementById('txteml').focus();
alert("Please enter valid email address");
return false;
}
if (txtpwd == '')
{
document.getElementById('txtpwd').focus();
alert("Please enter Password");
return false;
}
if(txtpwd.length!="")
{
26
if(txtpwd.length > 10)
{
document.getElementById('txtpwd').focus();
alert("Please Enter Less than 10 Character");
return false;
}else if(txtpwd.length < 6)
{
document.getElementById('txtpwd').focus();
alert("You Enter Lass than 6 Character");
return false;
}
}
if(txtconpwd=='')
{
document.getElementById('txtconpwd').focus();
alert("Please enter confirm password");
return false;
}
if(txtpwd !=txtconpwd)
{
document.getElementById('txtconpwd').focus();
alert("Password and confirm password must be match");
return false;
}
}
</script>
<!-- js -->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-select.js"></script>
<script>
$(document).ready(function () {
var mySelect = $('#first-disabled2');
$('#special').on('click', function () {
mySelect.find('option:selected').prop('disabled', true);
mySelect.selectpicker('refresh');
});
$('#special2').on('click', function () {
mySelect.find('option:disabled').prop('disabled', false);
mySelect.selectpicker('refresh');
});
$('#basic2').selectpicker({
liveSearch: true,
maxOptions: 1
});
});
</script>
<script language="javascript">
function abc(a)
{
27
window.location = "frmreg.php?ccod=" + a;
}
</script>
<script type="text/javascript" src="js/jquery.leanModal.min.js"></script>
<link href="css/jquery.uls.css" rel="stylesheet"/>
<link href="css/jquery.uls.grid.css" rel="stylesheet"/>
<link href="css/jquery.uls.lcd.css" rel="stylesheet"/>
<!-- Source -->
<script src="js/jquery.uls.data.js"></script>
<script src="js/jquery.uls.data.utils.js"></script>
<script src="js/jquery.uls.lcd.js"></script>
<script src="js/jquery.uls.languagefilter.js"></script>
<script src="js/jquery.uls.regionfilter.js"></script>
<script src="js/jquery.uls.core.js"></script>
<script>
$(document).ready(function () {
$('.uls-trigger').uls({
onSelect: function (language) {
var languageName = $.uls.data.getAutonym(language);
$('.uls-trigger').text(languageName);
},
quickList: ['en', 'hi', 'he', 'ml', 'ta', 'fr'] //FIXME
});
});
</script>
</head>
<body><script language="javascript">
function abc(a)
{
window.location = "frmreg.php?ccod=" + a;
}
</script>
<div class="header">
<div class="container">
<div class="logo">
<a href="index.html"><span>Re</span>cycler.com</a>
</div>
<div class="header-right">
<a class="account" href="login.php">My Account</a>
<!-- Large modal -->
</div></div></div>
<section>
<div id="page-wrapper" class="sign-in-wrapper">
<div class="graphs">
<div class="sign-up">
<h1>Create an account</h1>
<p class="creating">Recycling the waste for good.</p>
<h2>Account Details</h2>
<form class="sign_up_form" method="Post" action="frmreg.php" onsubmit="return
validate_register()">
28
<div class="sign-u">
<div class="sign-up1">
<h4>Select City :</h4></div>
<div class="sign-up2">
<select class="" name="drpcty" id="drpcty" onchange="abc(this.value);">
<?php
$obj = new clscty();
$arr = $obj->dsp_rec();
for ($i = 0; $i < count($arr); $i++) {
if (isset($_SESSION["ccod"]) && $_SESSION["ccod"] == $arr[$i][0])
echo "<option value=" . $arr[$i][0] . " selected />" . $arr[$i][1];
else
echo "<option value=" . $arr[$i][0] . " />" . $arr[$i][1];
}
?>
</select>
</div>
<div class="clearfix"> </div></div>
<div class="clearfix"></div>
<div class="sign-u">
<div class="sign-up1">
<h4>Select Location :</h4></div>
<div class="sign-up2">
<select class="" id="drploc" name="drploc">
<?php
if (isset($_SESSION["ccod"])) {
$obj = new clsloc();
$arr = $obj->dsp_rec($_SESSION["ccod"]);
for ($i = 0; $i < count($arr); $i++) {
if (isset($_SESSION["ccod"]) && $_SESSION["ccod"] == $arr[$i][0])
echo "<option value=" . $arr[$i][0] . " selected />" . $arr[$i][1];
else
echo "<option value=" . $arr[$i][0] . " />" . $arr[$i][1];
}
}
?>
</select>
</div>
<div class="clearfix"> </div></div>
<div class="sign-u">
<div class="sign-up1">
<h4>Email Address :</h4></div>
<div class="sign-up2">
<input type="text" placeholder=" " id="txteml" name="txteml"/></div>
<div class="clearfix"> </div></div>
<div class="sign-u">
<div class="sign-up1">
<h4>Password :</h4></div>
<div class="sign-up2">
<input type="password" placeholder=" " id="txtpwd" name="txtpwd"/></div>
29
<div class="clearfix"> </div></div>
<div class="sign-u">
<div class="sign-up1">
<h4>Confirm Pwd :</h4></div>
<div class="sign-up2">
<input type="password" placeholder=" " id="txtconpwd" name="txtconpwd"/></div>
<div class="clearfix"> </div></div>
<div class="sub_home">
<div class="sub_home_left">
<input type="submit" value="Create" name="btnsub">
</form></div>
<div class="sub_home_right">
<p>Go Back to <a href="index.php">Home</a></p></div>
<div class="clearfix"> </div></div></div></div></div>
<!--footer section start-->
<footer class="diff">
<p class="text-center">© 2018 Recycler.com All Rights Reserved By Cs Soft
Solutions (I) Pvt. Ltd</p>
</footer>
<!--footer section end-->
</section>
</body>
</html>
4.2 TESTING APPROACH
Testing is a process of executing a program with the indent of finding an error.
Testing is a crucial element of software quality assurance and presents ultimate review of
specification, design and coding. System Testing is an important phase. Thus a series of
testing are performed for the proposed system before the system is ready for user
acceptance testing. A good test case is one that has a high probability of finding an as
undiscovered error. A successful test is one that uncovers an as undiscovered error.
4.2.1 Testing Objectives:
Testing is a process of executing a program with the intent of finding an error
A good test case is one that has a probability of finding an as yet undiscovered
error
A successful test is one that uncovers an undiscovered error
4.2.2 Testing Principles
All tests should be traceable to end user requirements
Tests should be planned long before testing begins
Testing should begin on a small scale and progress towards testing in large
Exhaustive testing is not possible
30
To be most effective testing should be conducted by a independent third party
The primary objective for test case design is to derive a set of tests that has the highest
livelihood for uncovering defects in software. To accomplish this objective two different
categories of test case design techniques are used. They are
White box testing.
Black box testing.
4.2.3White-box testing:
White box testing focus on the program control structure. Test cases are derived to
ensure that all statements in the program have been executed at least once during
testing and that all logical conditions have been executed.
4.2.4 Black-box testing:
Black box testing is designed to validate functional requirements without regard to
the internal workings of a program. Black box testing mainly focuses on the
information domain of the software, deriving test cases by partitioning input and
output in a manner that provides through test coverage. Incorrect and missing
functions, interface errors, errors in data structures, error in functional logic are the
errors falling in this category.
4.2.5 Testing strategies:
A strategy for software testing must accommodate low-level tests that are
necessary to verify that all small source code segment has been correctly
implemented as well as high-level tests that validate major system functions against
customer requirements.
4.2.6. Testing fundamentals:
Testing is a process of executing program with the intent of finding error. A good
test case is one that has high probability of finding an undiscovered error. If testing
is conducted successfully it uncovers the errors in the software. Testing cannot
show the absence of defects, it can only show that software defects present.
4.2.7.Testing Information flow:
Information flow for testing flows the pattern. Two class of input provided to test
the process. The software configuration includes a software requirements
specification, a design specification and source code.Test configuration includes
31
test plan and test cases and test tools. Tests are conducted and all the results are
evaluated. That is test results are compared with expected results.
32
CHAPTER 5
SCREEN SHOTS OF PROJECT
Fig.5.1
Fig.5.2
33
5.3 ADMIN SECTION WILL ADD LOCATIONS
Fig. 5.3
Fig.5.4
34
5.5 ADMIN SECTION WILL ADD SUBCATEGORIES
Fig.5.5
Fig.5.6
35
5.7 FIRST USER REGISTER USER CREATE AN ACCOUNT
Fig.5.7
Fig.5.8
36
5.9 USER WILL CREATE THE POST AN ADS
Fig 5.9
Fig.5.10
37
CHAPTER 6
The primary goal of this project report is to provide the detailed information about the
project in very simplest way. With the help of SDLC life cycle it is easy to understand the
requirement of the user. An effort is made is to keep the project flexible & user friendly
which is easy to understand & modify. While developing this project a good use of Php
language is made by using their advanced feature of programming respectively. We have
gained a lot of practical knowledge from this project.
38
References
To bring the system to verge of completion, the following items have been referred:
PHP, MySQL, Apache (all in one) By SAMS, Julie c, Meloni, Pearson
Websites
www.php.net
www.w3schools.com
https://www.google.com
https://www.wikipedia.org
Database Management & Design System: Vipnic. Desai
39