Sie sind auf Seite 1von 39

CHAPTER 1

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.

2. To prepare stored procedures.

3. To prepare Business Logic Layer.

4. To prepare web pages.

5. To handle the control navigation from other pages

1.2 THREE-TIER WEB APPLICATION DEVELOPMENT

In web application development, we use three-tier architecture refers to separating


the application process into three specific layers. What the user sees via a web browser is
called the presentation tier and is content served from a web server. The middle tier
performs the business logic processing that occurs, for example, when a user submits a
form.We'll take a simplistic look at each of these.

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.

1.2.3 Data Access Tier

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.

Some important features:-

 Simple layout and easy to understand instructions.


 Easily designed and customizable rich colorful ads with pictures and videos. It
allows posting interactive ads with photos and videos. The photos and videos of
your product can attract buyers and give them a clear idea about the product.Ability
to control your buying, selling and community activity in ‘My Recycler’ section.
 The items are categorized and can be accessed easily.
 Mobile friendly site. You can access the site from your mobile phone.

1.4 FUTURE SCOPE

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

Analysis is a detailed study of the various operations performed by a system and


their relationship within and outside of the system. In general view system is collection of
people, procedures and equipments. People are not the only important component of any
information system. Information is produced and used by people in an organization in their
everyday activities to make decisions. Information system establishes procedures ensuring
that right people receive right data at right time. System analysis is the method that is used
to analyze the system, design them and build them. Analysis is used to gain an
understanding of existing and what is required in system. The analysis phase ends with the
system description and a set of requirement of the new system. Analysis is a process of
diagnosis the situation with the boundaries of system kept in mind to produce a report
based own findings.

2.1 FEASIBILITY STUDY


Feasibility study is carried out to test if the proposed system is worth being
implemented. Given unlimited resources and infinite time, all projects are feasible.
Unfortunately, such situations are not possible in real time.Feasibility study is the test of
the system proposed regarding its work ability, impact or organization’s ability to meet
user’s needs and effective use of resources. It is usually carried out by a small group of
people who are familiar with the information system techniques; understand the part of
business that will be involved and affective by the people that are skilled in analysis and
design.
A feasibility study is conducted to select the best system that meets the
performance requirements. This entails an identification description, and emulation of
candidate systems and selection of best system for the job.

The factors that should be included in the feasibility assessment can be as follows.

Cost: operating, maintenance, unit

Accuracy: frequency, significance and correction of errors

Reliability: stability, durability

3
Capacity: average, low and peak loads

2.2 ECONOMIC FEASIBILITY

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.

The factors for evaluation are:

o Cost of operation of existing system and proposed system

o Cost of development of proposed system

o Value of benefits of proposed system.

2.3 TECHNICAL 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.

2.4 OPERATIONAL FEASIBILITY

The operational feasibility refers to the assessment of proposed system in the


manner that how much this system is feasible for the end users.That person with a simple
knowledge can also use the system. Our proposed system is user-friendly interface. The
user just have to click on the choice with the help of menu. Therefore the system is
feasible on operational front too.Our system will improve the performance and save the
time.

2.5 TIME FEASIBILITY


Time feasibility determines whether system is implemented within stipulated time.
This project will be completed within stipulated time frame.

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.

There are four basic elements in system requirements analysis:

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.

2.8 HARDWARE AND SOFTWARE REQUIREMENTS


2.8.1 Server Side:
Software Requirements (Used):
 Apache 2.4.27
 WAMP 3.1.0
 Developing Language:
 PHP 5.6.31 With html,css
 Database:
 MySQL 5.7.19
 Operating System:
 Window 10
 Editor
 Netbeans IDE 8.2

Hardware Requirements (Used):

 Intel core i3 5300u cpu @1.9ghz processor


 Processor speed: 1.9 ghz.
 Ram: 4 GB
 Hard Disk: 1 TB
 Direct X -capable video card running at 1024 x 768 or higher display resolution.
2.8.2 Client Side (Used)

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

2.9 JUSTIFICATION OF HARDWARE AND SOFTWARE


2.9.1 Definition of PHP

 PHP (Hypertext Pre-processor) is an open-source HTML-embedded server-side


scripting language which is used to develop dynamic and interactive web
applications and also used as a general-purpose programming language.

 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).

 PHP is an open source scripting language.

 PHP is free to download and use.

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

 JavaScript is a dynamic computer programming language. It is lightweight and


most commonly used as a part of web pages, whose implementations allow client-
side script to interact with the user and make dynamic pages. It is an interpreted
programming language with object-oriented capabilities.

 JavaScript is a lightweight, interpreted programming language.

 Designed for creating network-centric applications.

 Complementary to and integrated with Java.

 Complementary to and integrated with HTML.

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 is absolutely free to download and use.

 It is a front-end framework used for easier and faster web development.

 It includes HTML and CSS based design templates for typography, forms, buttons,
tables, navigation, modals, image carousels and many others.

 It can also use JavaScript plug-ins.

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

3.1 MODULES OF RECYCLER


 User Account Maintenance

1. Admin 2. User Registration

 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

Data Flow Diagram

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

In the DFD, there are four symbols,


1. A Square defines a source (originator) or destination of system data.
2. An Arrow identifies data flow- data in motion .It is pipeline through which
information flows.
3. A circle or a bubble (or a oval bubble) represents a process that transforms
incoming data flow(s) into outgoing data flow(s)
4. An Open rectangle is a data store-data at rest, or temporary repository of data.
The DFD was first developed by “Larry Constatine” as a way of expressing system
requirements in a graphical form. A DFD, also referred to as a bubble chart has a
purpose of clarifying system requirements and identifying major transformations that
will become the program in this system design.
A square defines a source of destination or system data.

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

3.4 DATA DICTIONARY


A data dictionary is a file or a set of files that contains a database's metadata. The
data dictionary contains records about other objects in the database, such as data
ownership, data relationships to other objects, and other data.
3.5 TABLES:

Total 10 tables are there in our project.

• tbcat

• tbsubcat

• tbcty

12
• tbloc

• tbusr

• tbadv

• tbadvpic

• tbfav

• tbmsg

• tbmsgdet

3.6 TABLES WITH THEIR ATTRIBUTES:-

Table 3.1 tbc

Table 3.2 tbsubcat

13
Table 3.3. tbcty

Table 3.4. tbloc

Table 3.5. tbusr

14
Table 3.6. tbadv

Table 3.7. tbadvpic

Table 3.8. tbfav

15
Table 3.9. tbmsg

Table 3.10. tbmsgdet

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">&copy 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">&copy 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.

4.3 UNIT TESTING


Unit testing is essential for the verification of the code produced during the coding
phase and hence the goal is to test the internal logic of the modules. These tests were
carried out during the programming stage itself. All units of SQL were successfully tested.
4.4 INTEGRATION TESTING
It need not be the case, the software whose modules when run individually and
showing perfect results, will also show perfect results when run as a whole. The individual
modules are clipped under this major module and tested again and verified the results.
4.5 SYSTEM TESTING
System testing tests the integration of each module in the system. It also tests to
find discrepancies between the system and it’s original objective, current specification and
system documentation. The primary concern is the compatibility of individual modules.
Entire system is working properly or not will be tested here, and specified path ODBC
connection will correct or not, and giving output or not are tested here these verifications
and validations are done by giving input values to the system and by comparing with
expected output. Top-down testing implementing here.

32
CHAPTER 5
SCREEN SHOTS OF PROJECT

5.1 ADMIN SECTION WILL ADD CITIES

Fig.5.1

5.2 ADDED CITIES ARE DISPLAY HERE

Fig.5.2

33
5.3 ADMIN SECTION WILL ADD LOCATIONS

Fig. 5.3

5.4 ADDED CATEGORIES ARE DISPLAY HERE

Fig.5.4

34
5.5 ADMIN SECTION WILL ADD SUBCATEGORIES

Fig.5.5

5.6 FRONT VIEW OF RECYCLER

Fig.5.6

35
5.7 FIRST USER REGISTER USER CREATE AN ACCOUNT

Fig.5.7

5.8 NOW LOGIN THE ACCOUNT FOR POSTING FREE ADS

Fig.5.8

36
5.9 USER WILL CREATE THE POST AN ADS

Fig 5.9

5.10 USER CAN SELECT CATEGORIES AND SUBCATAGORIES


TO VIEW THE ADS

Fig.5.10

37
CHAPTER 6

CONCLUSION AND FUTURE WORK


6.1 Conclusion

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.

6.2 Future Work


This application avoids the manual work and the problems concern with it. It is an easy
way to obtain the information regarding the different scheduled examinations information
that are Currently issued.
Well I and my team members have worked hard in order to present an improved
website better than the existing one’s regarding the information about the various
activities. Still ,we found out that the project can be done in a better way.

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

Beginning: PHP6, Apache, MYSQL By Elizabeth Naramore,Jasonyerner

Web development Yann le Scouarnec, Jeremy Stolz

PHP6 and MYSQL bible Bytim converse, joyceepark, Michael k

Websites
www.php.net
www.w3schools.com
https://www.google.com
https://www.wikipedia.org
Database Management & Design System: Vipnic. Desai

39

Das könnte Ihnen auch gefallen