Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 84

TYIT C FITZONE

Chapter 1.Introduction
This is the Social Media website to build network and
connection that can people search other peoples through online around the
world and make connection.

Social media facilitates the sharing of ideas and information through virtual
networks. From Facebook and Instagram to Twitter and YouTube, social
media covers a broad universe of apps and platforms that allow users to
share content, interact online, and build communities. More than 4.7 billion
people use social media, equal to roughly 60% of the world’s population.1

Today, social media messaging apps and platforms are the most
commonly used sites worldwide. In early 2023, 94.8% of users accessed
chat and messaging apps and websites, followed closely by social
platforms, at 94.6% of users. Search engine sites were next, with 81.8% of
users accessing them.

1.1.1 KEY TAKEAWAYS

Whether you are a sportsman, a bodybuilder, a professional


athlete or simply exercising to improve your health, fitness nutrition plays a
very important role in optimizing the beneficial effects of physical activity.
Making better decisions with your nutrition and hydration can result in
improved performances. telegram

1.1Background:

We have done a project on Social media this is my social media


website which I have created using HTML,CSS and JavaScript as a web
technology and my backend is MySQL as a database.
Social media project is main idea is to develop an online
connection website, so by that many users can search or send friend request
via online to others.

1.2Objective:
 Primary objective of any system is to make connection is the
basic goal of our system.
 It is easy to use and it is user friendly.
 To provide better Graphical User Interface.

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

 Provides security to data by using login & password.

1.3Purpose, Scope and Applicability:


1.3.1 Purpose:
The purpose behind creating this social media website that named
Social media our intension is inside in this our name “social
media” it means we are creating this website for people’s
connection ; they can blindly trust on us. We are giving them best
quality security that we’ve taken directly from the company so no.

1.3.2 Scope:
I certainly think there is scope for improvement; the owners need
to do a little extra to ensure customers come back again . They’ll
again and again visit our website to search people and I am sure
that they’ll get best results from our website because we are giving
them best security and good facilities.

1.3.3 Applicability:
 This website will be used mainly for online shopping.
 This website will also be used buy or view products.
 They’ll get best discount.
 They can get refund also.
 It’s having many payment options.

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

Chapter 2: Survey of Technology


Front End Technology:
 HTML, CSS
 Html is the language for describing the structure of web
pages. Html gives authors the means to:
 Publish online documents with headings, text, tables,
lists, photos ,etc.
 Retrieve online information via hypertext links, at the
click of a button.
 Design forms for conducting transactions with remote
services, for use in searching for information, making
reservations, ordering products etc. and other
applications directly in their document using mark up.
The elements of the language label pieces of content
such as “paragraph”, “list”, “tables” and so on.
 CSS is the language for describing the presentation of web
pages, including colors, layout and fonts. It allows one to
adapt the presentation to different types of devices, such as
independent of html from CSS makes it easier to maintain
sites, share style sheets across pages and tailor pages to
different environments.
Back End Technology:
MySQL:
 MySQL is invented in Sweden in 1995.
 A fast, reliable, easy to use, multi-user multi-threaded relational database
system.
 It is freely available and related under GPL (GNU General Public
License).

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

 MySQL server can handle very large database.


 Offers rich and very useful set of functions.
 Connectivity speed and security make MySQL very suited for accessing
database on a network.
 A lot of contributed software available.
 A privilege and password system that is very flexible and secure and
allows host-based verification.
 Multi-threaded request handling using kernel thread.
 Replication features.
 Very actively developed & memory leak proof.

PHP:
 PHP is a recursive acronym for "PHP: Hypertext Preprocessor".
 PHP is a server side scripting language that is embedded in HTML. It is used to
manage dynamic content, databases, session tracking, even build entire e-commerce
sites.
 It is integrated with a number of popular databases, including MySQL, PostgreSQL,
Oracle, Sybase, Informix, and Microsoft SQL Server.
 PHP is pleasingly zippy in its execution, especially when compiled as an Apache
module on the Unix side. The MySQL server, once started, executes even very
complex queries with huge result sets in record-setting time.
 PHP supports a large number of major protocols such as POP3, IMAP, and LDAP.
PHP4 added support for Java and distributed object architectures (COM and
CORBA), making n-tier development a possibility for the first time.
 PHP is forgiving: PHP language tries to be as forgiving as possible.
 PHP Syntax is C-Like.
 PHP performs system functions, i.e. from files on a system it can create, open, read,
write, and close them.
 PHP can handle forms, i.e. gather data from files, save data to a file, through email
you can send data, return data to the user.
 You add, delete, modify elements within your database through PHP.
 Access cookies variables and set cookies.
 Using PHP, you can restrict users to access some pages of your website.
 It can encrypt data.

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

Chapter 3: Requirement and Analysis

3.1 Problem Definition.


Defining a problem is one of the important activities of the
project. The objective is to define precisely the business problem to
be solved & thereby determined the scope of new system. This phase
consists of 2 main tasks. The 1st task within this activity is to review
the organization needs that originally initiated the project.
The 2nd task is to identify, at an abstract or general level,
the expected capabilities of the new system. Thus, it helps us to define
the goal to be achieved & the boundary of the system. A clear
understanding of the problem will help us in building a better system
and reduce the risk of project failure.

3.2. Requirement Specification:


 Customer is allowed to create their account on the website by
entering valid details.
 Customers have facility to see the list of all products.
 Customers can buy the product whatever they want.
 Customers can search for the required products from our
website.

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

Giant Chart:

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

Pert Chart:

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

3.4. Software and Hardware requirements:


3.4.1. Software Requirements:
 Front End:
 HTML, CSS.
 Back End:
 MySQL Database Management System, PHP
 Software:
 Visual Studio Code 1.63.2
 XAMPP
3.4.2. Hardware Requirements:
 Laptop
 Hard Disk: 97.6GB
 Ram:4GB

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

Preliminary Product Description:


The system development life cycle is the preliminary investigation
to determine the feasibility of the system. The purpose of the preliminary
investigation is to evaluate project requests. It is not a design study nor does it
include the collection of details to describe the business system in all respects.
Rather it is the collecting of information that helps committee members to
evaluate the merits of the project requests and make an informed judgement
about the feasibility of the project.

Preliminary description should accomplish the following objectives:


 Clarify and understand the project request.
 Determine the size of the project.
 Assess costs and benefits of alternative approaches.
 Determine the technical and operational feasibility of
alternative approaches.
 Report the findings to management, with
recommendations outlining the acceptance or rejection of
the proposal.

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

3.6. Conceptual Model:


3.6.1 Event Table:
Sr. Event Trigger Source Activity Response Destinati
No on
.
1 Admin Log in Admin Validating Successful/ Admin
Login into Data Failed
admin
account
.
2 Registrati Registe Custom Registrati Successful/ User
on r er on Failed
account process.
3 Customer Login Custom Validating Successful/ Customer
Login into er Data Failed
custom
er
account
.
4 View View Custom Display Available Customer
products. availabl er available products
e products.
product
s.
5 Manage Add. Admin Manage Add, delete Admin
products. Delete product product.
product
s.
6 Add to Add Custom Added Successful/ Customer
cart product er products Failed /
s in to cart Admin
cart. display

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

total.
7 Place Request Custom Order full Order Customer
order for er fill Confirmation /Admin
order
8 Delivery Manage Admin Delivery Product Admin
for order. deliver of product delivered.
y
9 Feedback Review Custom Feedback Feedback Admin
is er is given successful
given. by
customer.

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

3.6.2. ER Model:

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

3.6.3. Use Case Diagram:

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

3.6.4 Class Diagram:

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

3.6.5 Sequence Diagram:

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

3.6.7. State Diagram:

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

3.6.8. Activity Diagram:

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

Chapter 4. System Design


4.1. Basic Modules:
1. Administration Page:
Only admin can insert or delete the data or product.
2. Registration Page:
Users can register their details like Name, Username,
Password, Email ID, Contact Number.
3. Login Page:
User to get in our website we are creating Login Page
in that page Username, Password ,Forgot Password and
Sign-Up options are there.
4. Forgot Password:
If user forget their password so they can use this
option by using Mobile Number and Username.
5. Payment Method:
User can do payments by Online Mode otherwise
Cash on Delivery.
6. Filter: User can filter the products as per their
requirements.
7. Wallet: Wallet option is used to refund your amount in
wallet when you are doing online payment because
customer’s amount will not be going to be refund in their
bank account but if they want to take any other product
of within that amount so they can buy that product by
giving wallet money.

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

8. Search Bar: In search bar users can search the products


according to name of the product.
9. My Cart: In this module users can add multiple products
as per their requirements and they can buy it later also.

4.2 Data Design:


4.2.1. Schema design with constraints.
1. Primary key constraints:
Primary Key Constraint uniquely identifies each record in the
database. A Primary Key must contain a unique value and it must not
contain a null value.
2. Foreign key constraints:
Foreign Key is a field (or collection of fields) in one table, that refers
to the PRIMARY KEY in another table. The table with the foreign
key is called the child table, and the table with the primary key is
called the referenced or parent table.

3. Not Null Constraint:


Not Null Constraint makes sure that a column is not left null. It forces
the person to enter some value else it will show an error.
4. Unique Constraints:
Unique Constraint the name itself suggests that a column will have a
unique value. This constraint makes sure that columns don’t have any
duplicate values.

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

1. Admin Table:
Column Name Data Type Constraints
ID Int Primary Key. Not Null
Username NVarchar (40) Not Null
Password NVarchar (40) Not Null

2. Customer Table:
Column Name Data Types Constraints
ID Int Primary Key. Not Null
Username NVarchar (40) Not Null
Password NVarchar (40) Not Null
Name NVarchar (40) Not Null
Email NVarchar (40) Not Null
Address NVarchar (100) Not Null
Contact NVarchar (40) Unique

3. Product Table:
Column Name Data Type Constraints
Product_Id Int Primary Key. Not Null
Product_Name NVarchar (40) Not Null
Product_Price NVarchar (40) Not Null
Description NVarchar (40) Not Null

5. Order Table:
Column Name Data Types Constraints
ID Int Primary Key. Not Null
Product_Name NVarchar (40) Not Null
Price Int Not Null

6. Payment and Bill Table:


Column Name Data Types Constraints
Customer_ID Int Unique
Product_Name NVarchar (40) Not Null
Price Int Not Null
Total Price Int Not Null

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

7. Review Table:
Column Name Data Types Constraints
Customer_ID Int Unique
Product_Name NVarchar (40) Not Null
Suggestion NVarchar (200) Not Null
Rating Int Not Null

8. Stock Table:
Column Name Data Types Constraints
Stock_ID Int Primary Key. Not Null
Name NVarchar (40) Not Null
Quantity Int Not Null

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

4.2. Database relationship design:

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

4.3 User Interface Design:


Welcome Page:

Registration form:

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

Login Page:

Payment page:

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

4.4 Security Issues:

- Authorization: Admin provides the facility to provide the registration to the users which can
be a Members / Customers.

- Authentication: Only the registered users i.e, t can be customers / Member who are allowed
to login and access the site for using it. For login purpose the user have to give the username
and password and from database they will be authenticated

- Information Integrity: The information that is being provided by the user are not leaked to
any of the outside person. The information of all the products / system will be changed by the
admin only no user can change it.

- Detection: The password of the user and admin and alphanumeric password and there Is
also an option of changing the password even for the admin so that a single password cannot
stay for long

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

4.5. Test cases design:


Action Inputs of Test Expected O/P Actual O/P Test Result Or
Data Status
User login Username Username Successful Pass/Fail
should be login/
alphanumeric Invalid login
and unique for
all.
Password It should Successful Pass/Fail
contain at least login/
1 capital & 1 Invalid login
small letter
& 1 special
character
User Details Email It should Valid / Invalid Pass / Fail
contain one @
symbol and a
dot (.)

Contact It should Valid / Invalid Pass / Fail


contain only 10
digits

Address It should As Expected Pass / Fail


contain at least
30 characters

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

Chapter 5: Implementation and Testing


5.1 Implementation Approaches

Login Page

Description:
This is where the admin can login to the website

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

Registration Page

Description: This is where the users or members can register to the


website.

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

Dashboard/Home Page

Description: Here the users or members can see featured products.

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

Product Report

Description: Here the admin can Edit, Delete or Update the products.

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

Product Details

Description: From here user can add the product to the cart.

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

5.2 Coding Details and Coding Efficiency

Login Page:
<?php require_once('header.php'); ?>
<!-- fetching row banner login -->
<?php
$statement = $pdo->prepare("SELECT * FROM tbl_settings WHERE id=1");
$statement->execute();
$result = $statement->fetchAll(PDO::FETCH_ASSOC);                            
foreach ($result as $row) {
    $banner_login = $row['banner_login'];
}
?>
<!-- login form -->
<?php
if(isset($_POST['form1'])) {
    
    if(empty($_POST['cust_email']) || empty($_POST['cust_password'])) {
        $error_message = LANG_VALUE_132.'<br>';
    } else {
    
        $cust_email = strip_tags($_POST['cust_email']);
        $cust_password = strip_tags($_POST['cust_password']);

        $statement = $pdo->prepare("SELECT * FROM tbl_customer WHERE


cust_email=?");
        $statement->execute(array($cust_email));
        $total = $statement->rowCount();
        $result = $statement->fetchAll(PDO::FETCH_ASSOC);
        foreach($result as $row) {
            $cust_status = $row['cust_status'];
            $row_password = $row['cust_password'];
    }

        if($total==0) {
            $error_message .= LANG_VALUE_133.'<br>';
        } else {
            //using MD5 form
            if( $row_password != md5($cust_password) ) {
                $error_message .= LANG_VALUE_139.'<br>';
            } else {

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                if($cust_status == 0) {
                    $error_message .= LANG_VALUE_148.'<br>';
                } else {
                    $_SESSION['customer'] = $row;
                    header("location: ".BASE_URL."dashboard.php");
        }
      }
      
    }
  }
}
?>

<div class="page-banner" style="background-color:#444;background-image:


url(assets/uploads/<?php echo $banner_login; ?>);">
    <div class="inner">
        <h1><?php echo LANG_VALUE_10; ?></h1>
    </div>
</div>

<div class="page">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="user-content">

          
                    <form action="" method="post">
                        <?php $csrf->echoInputField(); ?>                  
                        <div class="row">
                            <div class="col-md-4"></div>
                            <div class="col-md-4">
                                <?php
                                if($error_message != '') {
                                    echo "<div class='error' style='padding:
10px;background:#f1f1f1;margin-bottom:20px;'>".$error_message."</div>";
                }
                                if($success_message != '') {
                                    echo "<div class='success' style='padding:
10px;background:#f1f1f1;margin-bottom:20px;'>".$success_message."</div>";
                }
                                ?>
                                <div class="form-group">

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                                    <label for=""><?php echo LANG_VALUE_94; ?>


*</label>
                                    <input type="email" class="form-control"
name="cust_email">
                                </div>
                                <div class="form-group">
                                    <label for=""><?php echo LANG_VALUE_96; ?>
*</label>
                                    <input type="password" class="form-control"
name="cust_password">
                                </div>
                                <div class="form-group">
                                    <label for=""></label>
                                    <input type="submit" class="btn btn-success" value="<?
php echo LANG_VALUE_4; ?>" name="form1">
                                </div>
                                <a href="forget-password.php" style="color:#e4144d;"><?
php echo LANG_VALUE_97; ?>?</a>
                            </div>
                        </div>                        
                    </form>
                </div>                
            </div>
        </div>
    </div>
</div>

<?php require_once('footer.php'); ?>

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

Registration Page:
<?php require_once('header.php'); ?>

<?php
$statement = $pdo->prepare("SELECT * FROM tbl_settings WHERE id=1");
$statement->execute();
$result = $statement->fetchAll(PDO::FETCH_ASSOC);                            
foreach ($result as $row) {
    $banner_registration = $row['banner_registration'];
}
?>

<?php
if (isset($_POST['form1'])) {

    $valid = 1;

    if(empty($_POST['cust_name'])) {
        $valid = 0;
        $error_message .= LANG_VALUE_123."<br>";
  }

    if(empty($_POST['cust_email'])) {
        $valid = 0;
        $error_message .= LANG_VALUE_131."<br>";
    } else {
        if (filter_var($_POST['cust_email'], FILTER_VALIDATE_EMAIL) ===
false) {
            $valid = 0;
            $error_message .= LANG_VALUE_134."<br>";
        } else {
            $statement = $pdo->prepare("SELECT * FROM tbl_customer WHERE
cust_email=?");
            $statement->execute(array($_POST['cust_email']));
            $total = $statement->rowCount();                            
            if($total) {
                $valid = 0;
                $error_message .= LANG_VALUE_147."<br>";
      }
    }
  }

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

    if(empty($_POST['cust_phone'])) {
        $valid = 0;
        $error_message .= LANG_VALUE_124."<br>";
  }

    if(empty($_POST['cust_address'])) {
        $valid = 0;
        $error_message .= LANG_VALUE_125."<br>";
  }

    if(empty($_POST['cust_country'])) {
        $valid = 0;
        $error_message .= LANG_VALUE_126."<br>";
  }

    if(empty($_POST['cust_city'])) {
        $valid = 0;
        $error_message .= LANG_VALUE_127."<br>";
  }

    if(empty($_POST['cust_state'])) {
        $valid = 0;
        $error_message .= LANG_VALUE_128."<br>";
  }

    if(empty($_POST['cust_zip'])) {
        $valid = 0;
        $error_message .= LANG_VALUE_129."<br>";
  }

    if( empty($_POST['cust_password']) || empty($_POST['cust_re_password']) )


{
        $valid = 0;
        $error_message .= LANG_VALUE_138."<br>";
  }

    if( !empty($_POST['cust_password']) && !


empty($_POST['cust_re_password']) ) {
        if($_POST['cust_password'] != $_POST['cust_re_password']) {
            $valid = 0;
            $error_message .= LANG_VALUE_139."<br>";
    }
  }

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

    if($valid == 1) {

        $token = md5(time());
        $cust_datetime = date('Y-m-d h:i:s');
        $cust_timestamp = time();

        // saving into the database


        $statement = $pdo->prepare("INSERT INTO tbl_customer (
                                        cust_name,
                                        cust_cname,
                                        cust_email,
                                        cust_phone,
                                        cust_country,
                                        cust_address,
                                        cust_city,
                                        cust_state,
                                        cust_zip,
                                        cust_b_name,
                                        cust_b_cname,
                                        cust_b_phone,
                                        cust_b_country,
                                        cust_b_address,
                                        cust_b_city,
                                        cust_b_state,
                                        cust_b_zip,
                                        cust_s_name,
                                        cust_s_cname,
                                        cust_s_phone,
                                        cust_s_country,
                                        cust_s_address,
                                        cust_s_city,
                                        cust_s_state,
                                        cust_s_zip,
                                        cust_password,
                                        cust_token,
                                        cust_datetime,
                                        cust_timestamp,
                                        cust_status
                                    ) VALUES
(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
        $statement->execute(array(
                                        strip_tags($_POST['cust_name']),

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                                        strip_tags($_POST['cust_cname']),
                                        strip_tags($_POST['cust_email']),
                                        strip_tags($_POST['cust_phone']),
                                        strip_tags($_POST['cust_country']),
                                        strip_tags($_POST['cust_address']),
                                        strip_tags($_POST['cust_city']),
                                        strip_tags($_POST['cust_state']),
                                        strip_tags($_POST['cust_zip']),
                                        '',
                                        '',
                                        '',
                                        '',
                                        '',
                                        '',
                                        '',
                                        '',
                                        '',
                                        '',
                                        '',
                                        '',
                                        '',
                                        '',
                                        '',
                                        '',
                                        md5($_POST['cust_password']),
                                        $token,
                                        $cust_datetime,
                                        $cust_timestamp,
                    0
                                    ));

        // Send email for confirmation of the account


        $to = $_POST['cust_email'];
    
        $subject = LANG_VALUE_150;
        $verify_link = BASE_URL.'verify.php?email='.$to.'&token='.$token;
        $message = '
'.LANG_VALUE_151.'<br><br>

<a href="'.$verify_link.'">'.$verify_link.'</a>';

        $headers = "From: noreply@" . BASE_URL . "\r\n" .


                   "Reply-To: noreply@" . BASE_URL . "\r\n" .

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                   "X-Mailer: PHP/" . phpversion() . "\r\n" .


                   "MIME-Version: 1.0\r\n" .
                   "Content-Type: text/html; charset=ISO-8859-1\r\n";
    
        // Sending Email
        mail($to, $subject, $message, $headers);

        unset($_POST['cust_name']);
        unset($_POST['cust_cname']);
        unset($_POST['cust_email']);
        unset($_POST['cust_phone']);
        unset($_POST['cust_address']);
        unset($_POST['cust_city']);
        unset($_POST['cust_state']);
        unset($_POST['cust_zip']);

        $success_message = LANG_VALUE_152;
  }
}
?>

<div class="page-banner" style="background-color:#444;background-image:


url(assets/uploads/<?php echo $banner_registration; ?>);">
    <div class="inner">
        <h1><?php echo LANG_VALUE_16; ?></h1>
    </div>
</div>

<div class="page">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="user-content">

          

                    <form action="" method="post">


                        <?php $csrf->echoInputField(); ?>
                        <div class="row">
                            <div class="col-md-2"></div>
                            <div class="col-md-8">
                
                                <?php

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                                if($error_message != '') {
                                    echo "<div class='error' style='padding:
10px;background:#f1f1f1;margin-bottom:20px;'>".$error_message."</div>";
                }
                                if($success_message != '') {
                                    echo "<div class='success' style='padding:
10px;background:#f1f1f1;margin-bottom:20px;'>".$success_message."</div>";
                }
                                ?>

                                <div class="col-md-6 form-group">


                                    <label for=""><?php echo LANG_VALUE_102; ?>
*</label>
                                    <input type="text" class="form-control"
name="cust_name" value="<?php if(isset($_POST['cust_name'])){echo
$_POST['cust_name'];} ?>">
                                </div>
                                <div class="col-md-6 form-group">
                                    <label for=""><?php echo LANG_VALUE_103;
?></label>
                                    <input type="text" class="form-control"
name="cust_cname" value="<?php if(isset($_POST['cust_cname'])){echo
$_POST['cust_cname'];} ?>">
                                </div>
                                <div class="col-md-6 form-group">
                                    <label for=""><?php echo LANG_VALUE_94; ?>
*</label>
                                    <input type="email" class="form-control"
name="cust_email" value="<?php if(isset($_POST['cust_email'])){echo
$_POST['cust_email'];} ?>">
                                </div>
                                <div class="col-md-6 form-group">
                                    <label for=""><?php echo LANG_VALUE_104; ?>
*</label>
                                    <input type="text" class="form-control"
name="cust_phone" value="<?php if(isset($_POST['cust_phone'])){echo
$_POST['cust_phone'];} ?>">
                                </div>
                                <div class="col-md-12 form-group">
                                    <label for=""><?php echo LANG_VALUE_105; ?>
*</label>

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                                    <textarea name="cust_address" class="form-control"


cols="30" rows="10" style="height:70px;"><?php
if(isset($_POST['cust_address'])){echo $_POST['cust_address'];} ?></textarea>
                                </div>
                                <div class="col-md-6 form-group">
                                    <label for=""><?php echo LANG_VALUE_106; ?>
*</label>
                                    <select name="cust_country" class="form-control
select2">
                                        <option value="">Select country</option>
                                    <?php
                                    $statement = $pdo->prepare("SELECT * FROM
tbl_country ORDER BY country_name ASC");
                                    $statement->execute();
                                    $result = $statement->fetchAll(PDO::FETCH_ASSOC);  
                                    foreach ($result as $row) {
                                        ?>
                                        <option value="<?php echo $row['country_id']; ?
>"><?php echo $row['country_name']; ?></option>
                                        <?php
                  }
                                    ?>    
                                    </select>                                    
                                </div>
                
                                <div class="col-md-6 form-group">
                                    <label for=""><?php echo LANG_VALUE_107; ?>
*</label>
                                    <input type="text" class="form-control"
name="cust_city" value="<?php if(isset($_POST['cust_city'])){echo
$_POST['cust_city'];} ?>">
                                </div>
                                <div class="col-md-6 form-group">
                                    <label for=""><?php echo LANG_VALUE_108; ?>
*</label>
                                    <input type="text" class="form-control"
name="cust_state" value="<?php if(isset($_POST['cust_state'])){echo
$_POST['cust_state'];} ?>">
                                </div>
                                <div class="col-md-6 form-group">
                                    <label for=""><?php echo LANG_VALUE_109; ?>
*</label>

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                                    <input type="text" class="form-control"


name="cust_zip" value="<?php if(isset($_POST['cust_zip'])){echo
$_POST['cust_zip'];} ?>">
                                </div>
                                <div class="col-md-6 form-group">
                                    <label for=""><?php echo LANG_VALUE_96; ?>
*</label>
                                    <input type="password" class="form-control"
name="cust_password">
                                </div>
                                <div class="col-md-6 form-group">
                                    <label for=""><?php echo LANG_VALUE_98; ?>
*</label>
                                    <input type="password" class="form-control"
name="cust_re_password">
                                </div>
                                <div class="col-md-6 form-group">
                                    <label for=""></label>
                                    <input type="submit" class="btn btn-danger" value="<?
php echo LANG_VALUE_15; ?>" name="form1">
                                </div>
                            </div>
                        </div>                        
                    </form>
                </div>                
            </div>
        </div>
    </div>
</div>

<?php require_once('footer.php'); ?>

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

Products Page:
<?php require_once('header.php'); ?>

<?php
if(!isset($_REQUEST['id'])) {
    header('location: index.php');
    exit;
} else {
    // Check the id is valid or not
    $statement = $pdo->prepare("SELECT * FROM tbl_product WHERE
p_id=?");
    $statement->execute(array($_REQUEST['id']));
    $total = $statement->rowCount();
    $result = $statement->fetchAll(PDO::FETCH_ASSOC);
    if( $total == 0 ) {
        header('location: index.php');
        exit;
  }
}

foreach($result as $row) {
    $p_name = $row['p_name'];
    $p_old_price = $row['p_old_price'];
    $p_current_price = $row['p_current_price'];
    $p_qty = $row['p_qty'];
    $p_featured_photo = $row['p_featured_photo'];
    $p_description = $row['p_description'];
    $p_short_description = $row['p_short_description'];
    $p_feature = $row['p_feature'];
    $p_condition = $row['p_condition'];
    $p_return_policy = $row['p_return_policy'];
    $p_total_view = $row['p_total_view'];
    $p_is_featured = $row['p_is_featured'];
    $p_is_active = $row['p_is_active'];
    $ecat_id = $row['ecat_id'];
}

// Getting all categories name for breadcrumb


$statement = $pdo->prepare("SELECT
                        t1.ecat_id,
                        t1.ecat_name,
                        t1.mcat_id,

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                        t2.mcat_id,
                        t2.mcat_name,
                        t2.tcat_id,

                        t3.tcat_id,
                        t3.tcat_name

                        FROM tbl_end_category t1
                        JOIN tbl_mid_category t2
                        ON t1.mcat_id = t2.mcat_id
                        JOIN tbl_top_category t3
                        ON t2.tcat_id = t3.tcat_id
                        WHERE t1.ecat_id=?");
$statement->execute(array($ecat_id));
$total = $statement->rowCount();
$result = $statement->fetchAll(PDO::FETCH_ASSOC);                            
foreach ($result as $row) {
    $ecat_name = $row['ecat_name'];
    $mcat_id = $row['mcat_id'];
    $mcat_name = $row['mcat_name'];
    $tcat_id = $row['tcat_id'];
    $tcat_name = $row['tcat_name'];
}

$p_total_view = $p_total_view + 1;

$statement = $pdo->prepare("UPDATE tbl_product SET p_total_view=?


WHERE p_id=?");
$statement->execute(array($p_total_view,$_REQUEST['id']));

$statement = $pdo->prepare("SELECT * FROM tbl_product_size WHERE


p_id=?");
$statement->execute(array($_REQUEST['id']));
$result = $statement->fetchAll(PDO::FETCH_ASSOC);                            
foreach ($result as $row) {
    $size[] = $row['size_id'];
}

$statement = $pdo->prepare("SELECT * FROM tbl_product_color WHERE


p_id=?");

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

$statement->execute(array($_REQUEST['id']));
$result = $statement->fetchAll(PDO::FETCH_ASSOC);                            
foreach ($result as $row) {
    $color[] = $row['color_id'];
}

if(isset($_POST['form_review'])) {
  
    $statement = $pdo->prepare("SELECT * FROM tbl_rating WHERE p_id=?
AND cust_id=?");
    $statement->execute(array($_REQUEST['id'],$_SESSION['customer']
['cust_id']));
    $total = $statement->rowCount();
  
    if($total) {
        $error_message = LANG_VALUE_68;
    } else {
        $statement = $pdo->prepare("INSERT INTO tbl_rating
(p_id,cust_id,comment,rating) VALUES (?,?,?,?)");
        $statement->execute(array($_REQUEST['id'],$_SESSION['customer']
['cust_id'],$_POST['comment'],$_POST['rating']));
        $success_message = LANG_VALUE_163;    
  }
  
}

// Getting the average rating for this product


$t_rating = 0;
$statement = $pdo->prepare("SELECT * FROM tbl_rating WHERE p_id=?");
$statement->execute(array($_REQUEST['id']));
$tot_rating = $statement->rowCount();
if($tot_rating == 0) {
    $avg_rating = 0;
} else {
    $result = $statement->fetchAll(PDO::FETCH_ASSOC);                            
    foreach ($result as $row) {
        $t_rating = $t_rating + $row['rating'];
  }
    $avg_rating = $t_rating / $tot_rating;
}

if(isset($_POST['form_add_to_cart'])) {

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

    // getting the currect stock of this product


    $statement = $pdo->prepare("SELECT * FROM tbl_product WHERE
p_id=?");
    $statement->execute(array($_REQUEST['id']));
    $result = $statement->fetchAll(PDO::FETCH_ASSOC);                          
    foreach ($result as $row) {
        $current_p_qty = $row['p_qty'];
  }
    if($_POST['p_qty'] > $current_p_qty):
        $temp_msg = 'Sorry! There are only '.$current_p_qty.' item(s) in stock';
        ?>
        <script type="text/javascript">alert('<?php echo $temp_msg; ?>');</script>
        <?php
    else:
    if(isset($_SESSION['cart_p_id']))
  {
        $arr_cart_p_id = array();
        $arr_cart_size_id = array();
        $arr_cart_color_id = array();
        $arr_cart_p_qty = array();
        $arr_cart_p_current_price = array();

        $i=0;
        foreach($_SESSION['cart_p_id'] as $key => $value)
    {
            $i++;
            $arr_cart_p_id[$i] = $value;
    }

        $i=0;
        foreach($_SESSION['cart_size_id'] as $key => $value)
    {
            $i++;
            $arr_cart_size_id[$i] = $value;
    }

        $i=0;
        foreach($_SESSION['cart_color_id'] as $key => $value)
    {
            $i++;
            $arr_cart_color_id[$i] = $value;
    }

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

        $added = 0;
        if(!isset($_POST['size_id'])) {
            $size_id = 0;
        } else {
            $size_id = $_POST['size_id'];
    }
        if(!isset($_POST['color_id'])) {
            $color_id = 0;
        } else {
            $color_id = $_POST['color_id'];
    }
        for($i=1;$i<=count($arr_cart_p_id);$i++) {
            if( ($arr_cart_p_id[$i]==$_REQUEST['id']) &&
($arr_cart_size_id[$i]==$size_id) && ($arr_cart_color_id[$i]==$color_id) ) {
                $added = 1;
                break;
      }
    }
        if($added == 1) {
           $error_message1 = 'This product is already added to the shopping cart.';
        } else {

            $i=0;
            foreach($_SESSION['cart_p_id'] as $key => $res)
      {
                $i++;
      }
            $new_key = $i+1;

            if(isset($_POST['size_id'])) {

                $size_id = $_POST['size_id'];

                $statement = $pdo->prepare("SELECT * FROM tbl_size WHERE


size_id=?");
                $statement->execute(array($size_id));
                $result = $statement->fetchAll(PDO::FETCH_ASSOC);                      
                foreach ($result as $row) {
                    $size_name = $row['size_name'];
        }
            } else {

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                $size_id = 0;
                $size_name = '';
      }
      
            if(isset($_POST['color_id'])) {
                $color_id = $_POST['color_id'];
                $statement = $pdo->prepare("SELECT * FROM tbl_color WHERE
color_id=?");
                $statement->execute(array($color_id));
                $result = $statement->fetchAll(PDO::FETCH_ASSOC);                      
                foreach ($result as $row) {
                    $color_name = $row['color_name'];
        }
            } else {
                $color_id = 0;
                $color_name = '';
      }
     

            $_SESSION['cart_p_id'][$new_key] = $_REQUEST['id'];
            $_SESSION['cart_size_id'][$new_key] = $size_id;
            $_SESSION['cart_size_name'][$new_key] = $size_name;
            $_SESSION['cart_color_id'][$new_key] = $color_id;
            $_SESSION['cart_color_name'][$new_key] = $color_name;
            $_SESSION['cart_p_qty'][$new_key] = $_POST['p_qty'];
            $_SESSION['cart_p_current_price'][$new_key] =
$_POST['p_current_price'];
            $_SESSION['cart_p_name'][$new_key] = $_POST['p_name'];
            $_SESSION['cart_p_featured_photo'][$new_key] =
$_POST['p_featured_photo'];

            $success_message1 = 'Product is added to the cart successfully!';


    }
    
  }
    else
  {

        if(isset($_POST['size_id'])) {

            $size_id = $_POST['size_id'];

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

            $statement = $pdo->prepare("SELECT * FROM tbl_size WHERE


size_id=?");
            $statement->execute(array($size_id));
            $result = $statement->fetchAll(PDO::FETCH_ASSOC);                          
            foreach ($result as $row) {
                $size_name = $row['size_name'];
      }
        } else {
            $size_id = 0;
            $size_name = '';
    }
    
        if(isset($_POST['color_id'])) {
            $color_id = $_POST['color_id'];
            $statement = $pdo->prepare("SELECT * FROM tbl_color WHERE
color_id=?");
            $statement->execute(array($color_id));
            $result = $statement->fetchAll(PDO::FETCH_ASSOC);                          
            foreach ($result as $row) {
                $color_name = $row['color_name'];
      }
        } else {
            $color_id = 0;
            $color_name = '';
    }
    

        $_SESSION['cart_p_id'][1] = $_REQUEST['id'];
        $_SESSION['cart_size_id'][1] = $size_id;
        $_SESSION['cart_size_name'][1] = $size_name;
        $_SESSION['cart_color_id'][1] = $color_id;
        $_SESSION['cart_color_name'][1] = $color_name;
        $_SESSION['cart_p_qty'][1] = $_POST['p_qty'];
        $_SESSION['cart_p_current_price'][1] = $_POST['p_current_price'];
        $_SESSION['cart_p_name'][1] = $_POST['p_name'];
        $_SESSION['cart_p_featured_photo'][1] = $_POST['p_featured_photo'];

        $success_message1 = 'Product is added to the cart successfully!';


  }
    endif;
}
?>

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

<?php
if($error_message1 != '') {
    echo "<script>alert('".$error_message1."')</script>";
}
if($success_message1 != '') {
    echo "<script>alert('".$success_message1."')</script>";
    header('location: product.php?id='.$_REQUEST['id']);
}
?>

<div class="page">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="breadcrumb mb_30">
                    <ul>
                        <li><a href="<?php echo BASE_URL; ?>">Home</a></li>
                        <li>></li>
                        <li><a href="<?php echo BASE_URL.'product-category.php?
id='.$tcat_id.'&type=top-category' ?>"><?php echo $tcat_name; ?></a></li>
                        <li>></li>
                        <li><a href="<?php echo BASE_URL.'product-category.php?
id='.$mcat_id.'&type=mid-category' ?>"><?php echo $mcat_name; ?></a></li>
                        <li>></li>
                        <li><a href="<?php echo BASE_URL.'product-category.php?
id='.$ecat_id.'&type=end-category' ?>"><?php echo $ecat_name; ?></a></li>
                        <li>></li>
                        <li><?php echo $p_name; ?></li>
                    </ul>
                </div>

                <div class="product">
                    <div class="row">
                        <div class="col-md-5">
                            <ul class="prod-slider">
                
                                <li style="background-image: url(assets/uploads/<?php
echo $p_featured_photo; ?>);">
                                    <a class="popup" href="assets/uploads/<?php echo
$p_featured_photo; ?>"></a>
                                </li>
                                <?php

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                                $statement = $pdo->prepare("SELECT * FROM


tbl_product_photo WHERE p_id=?");
                                $statement->execute(array($_REQUEST['id']));
                                $result = $statement->fetchAll(PDO::FETCH_ASSOC);
                                foreach ($result as $row) {
                                    ?>
                                    <li style="background-image:
url(assets/uploads/product_photos/<?php echo $row['photo']; ?>);">
                                        <a class="popup"
href="assets/uploads/product_photos/<?php echo $row['photo']; ?>"></a>
                                    </li>
                                    <?php
                }
                                ?>
                            </ul>
                            <div id="prod-pager">
                                <a data-slide-index="0" href=""><div class="prod-pager-
thumb" style="background-image: url(assets/uploads/<?php echo
$p_featured_photo; ?>"></div></a>
                                <?php
                                $i=1;
                                $statement = $pdo->prepare("SELECT * FROM
tbl_product_photo WHERE p_id=?");
                                $statement->execute(array($_REQUEST['id']));
                                $result = $statement->fetchAll(PDO::FETCH_ASSOC);
                                foreach ($result as $row) {
                                    ?>
                                    <a data-slide-index="<?php echo $i; ?>" href=""><div
class="prod-pager-thumb" style="background-image:
url(assets/uploads/product_photos/<?php echo $row['photo']; ?>"></div></a>
                                    <?php
                                    $i++;
                }
                                ?>
                            </div>
                        </div>
                        <div class="col-md-7">
                            <div class="p-title"><h2><?php echo $p_name;
?></h2></div>
                            <div class="p-review">
                                <div class="rating">
                                    <?php
                                    if($avg_rating == 0) {

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                                        echo '';
                  }
                                    elseif($avg_rating == 1.5) {
                                        echo '
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star-half-o"></i>
                                            <i class="fa fa-star-o"></i>
                                            <i class="fa fa-star-o"></i>
                                            <i class="fa fa-star-o"></i>
                                        ';
                  }
                                    elseif($avg_rating == 2.5) {
                                        echo '
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star-half-o"></i>
                                            <i class="fa fa-star-o"></i>
                                            <i class="fa fa-star-o"></i>
                                        ';
                  }
                                    elseif($avg_rating == 3.5) {
                                        echo '
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star-half-o"></i>
                                            <i class="fa fa-star-o"></i>
                                        ';
                  }
                                    elseif($avg_rating == 4.5) {
                                        echo '
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star-half-o"></i>
                                        ';
                  }
                                    else {
                                        for($i=1;$i<=5;$i++) {
                                            ?>
                                            <?php if($i>$avg_rating): ?>
                                                <i class="fa fa-star-o"></i>

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                                            <?php else: ?>


                                                <i class="fa fa-star"></i>
                                            <?php endif; ?>
                                            <?php
                    }
                  }                  
                                    ?>
                                </div>
                            </div>
                            <div class="p-short-des">
                                <p>
                                    <?php echo $p_short_description; ?>
                                </p>
                            </div>
                            <form action="" method="post">
                            <div class="p-quantity">
                                <div class="row">
                                    <?php if(isset($size)): ?>
                                    <div class="col-md-12 mb_20">
                                        <?php echo LANG_VALUE_52; ?> <br>
                                        <select name="size_id" class="form-control select2"
style="width:auto;">
                                            <?php
                                            $statement = $pdo->prepare("SELECT * FROM
tbl_size");
                                            $statement->execute();
                                            $result = $statement-
>fetchAll(PDO::FETCH_ASSOC);
                                            foreach ($result as $row) {
                                                if(in_array($row['size_id'],$size)) {
                                                    ?>
                                                    <option value="<?php echo $row['size_id']; ?
>"><?php echo $row['size_name']; ?></option>
                                                    <?php
                        }
                      }
                                            ?>
                                        </select>
                                    </div>
                                    <?php endif; ?>

                                    <?php if(isset($color)): ?>


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

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                                        <?php echo LANG_VALUE_53; ?> <br>


                                        <select name="color_id" class="form-control select2"
style="width:auto;">
                                            <?php
                                            $statement = $pdo->prepare("SELECT * FROM
tbl_color");
                                            $statement->execute();
                                            $result = $statement-
>fetchAll(PDO::FETCH_ASSOC);
                                            foreach ($result as $row) {
                                                if(in_array($row['color_id'],$color)) {
                                                    ?>
                                                    <option value="<?php echo $row['color_id']; ?
>"><?php echo $row['color_name']; ?></option>
                                                    <?php
                        }
                      }
                                            ?>
                                        </select>
                                    </div>
                                    <?php endif; ?>

                                </div>
                
                            </div>
                            <div class="p-price">
                                <span style="font-size:14px;"><?php echo
LANG_VALUE_54; ?></span><br>
                                <span>
                                    <?php if($p_old_price!=''): ?>
                                        <del><?php echo LANG_VALUE_1; ?><?php echo
$p_old_price; ?></del>
                                    <?php endif; ?>
                                        <?php echo LANG_VALUE_1; ?><?php echo
$p_current_price; ?>
                                </span>
                            </div>
                            <input type="hidden" name="p_current_price" value="<?php
echo $p_current_price; ?>">
                            <input type="hidden" name="p_name" value="<?php echo
$p_name; ?>">
                            <input type="hidden" name="p_featured_photo" value="<?
php echo $p_featured_photo; ?>">

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                            <div class="p-quantity">
                                <?php echo LANG_VALUE_55; ?> <br>
                                <input type="number" class="input-text qty" step="1"
min="1" max="" name="p_qty" value="1" title="Qty" size="4" pattern="[0-
9]*" inputmode="numeric">
                            </div>
                            <div class="btn-cart btn-cart1">
                                <input type="submit" value="<?php echo
LANG_VALUE_154; ?>" name="form_add_to_cart">
                            </div>
                            </form>
                            <div class="share">
                                <?php echo LANG_VALUE_58; ?> <br>
                                <div class="sharethis-inline-share-buttons"></div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-md-12">
                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" role="tablist">
                                <li role="presentation" class="active"><a
href="#description" aria-controls="description" role="tab" data-
toggle="tab"><?php echo LANG_VALUE_59; ?></a></li>
                                <li role="presentation"><a href="#feature" aria-
controls="feature" role="tab" data-toggle="tab"><?php echo
LANG_VALUE_60; ?></a></li>
                                <li role="presentation"><a href="#condition" aria-
controls="condition" role="tab" data-toggle="tab"><?php echo
LANG_VALUE_61; ?></a></li>
                                <li role="presentation"><a href="#return_policy" aria-
controls="return_policy" role="tab" data-toggle="tab"><?php echo
LANG_VALUE_62; ?></a></li>
                               <!-- <li role="presentation"><a href="#review" aria-
controls="review" role="tab" data-toggle="tab"><?php echo
LANG_VALUE_63; ?></a></li> -->
                            </ul>

                            <!-- Tab panes -->


                            <div class="tab-content">
                                <div role="tabpanel" class="tab-pane active"
id="description" style="margin-top: -30px;">

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                                    <p>
                                        <?php
                                        if($p_description == '') {
                                            echo LANG_VALUE_70;
                                        } else {
                                            echo $p_description;
                    }
                                        ?>
                                    </p>
                                </div>
                                <div role="tabpanel" class="tab-pane" id="feature"
style="margin-top: -30px;">
                                    <p>
                                        <?php
                                        if($p_feature == '') {
                                            echo LANG_VALUE_71;
                                        } else {
                                            echo $p_feature;
                    }
                                        ?>
                                    </p>
                                </div>
                                <div role="tabpanel" class="tab-pane" id="condition"
style="margin-top: -30px;">
                                    <p>
                                        <?php
                                        if($p_condition == '') {
                                            echo LANG_VALUE_72;
                                        } else {
                                            echo $p_condition;
                    }
                                        ?>
                                    </p>
                                </div>
                                <div role="tabpanel" class="tab-pane" id="return_policy"
style="margin-top: -30px;">
                                    <p>
                                        <?php
                                        if($p_return_policy == '') {
                                            echo LANG_VALUE_73;
                                        } else {
                                            echo $p_return_policy;
                    }

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                                        ?>
                                    </p>
                                </div>
                                <div role="tabpanel" class="tab-pane" id="review"
style="margin-top: -30px;">

                                    <div class="review-form">
                                        <?php
                                        $statement = $pdo->prepare("SELECT *
                                                            FROM tbl_rating t1
                                                            JOIN tbl_customer t2
                                                            ON t1.cust_id = t2.cust_id
                                                            WHERE t1.p_id=?");
                                        $statement->execute(array($_REQUEST['id']));
                                        $total = $statement->rowCount();
                                        ?>
                                        <h2><?php echo LANG_VALUE_63; ?> (<?php echo
$total; ?>)</h2>
                                        <?php
                                        if($total) {
                                            $j=0;
                                            $result = $statement-
>fetchAll(PDO::FETCH_ASSOC);
                                            foreach ($result as $row) {
                                                $j++;
                                                ?>
                                                <div class="mb_10"><b><u><?php echo
LANG_VALUE_64; ?> <?php echo $j; ?></u></b></div>
                                                <table class="table table-bordered">
                                                    <tr>
                                                        <th style="width:170px;"><?php echo
LANG_VALUE_75; ?></th>
                                                        <td><?php echo $row['cust_name']; ?></td>
                                                    </tr>
                                                    <tr>
                                                        <th><?php echo LANG_VALUE_76;
?></th>
                                                        <td><?php echo $row['comment']; ?></td>
                                                    </tr>
                                                    <tr>
                                                        <th><?php echo LANG_VALUE_78;
?></th>
                                                        <td>

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                                                            <div class="rating">
                                                                <?php
                                                                for($i=1;$i<=5;$i++) {
                                                                    ?>
                                                                    <?php if($i>$row['rating']): ?>
                                                                        <i class="fa fa-star-o"></i>
                                                                    <?php else: ?>
                                                                        <i class="fa fa-star"></i>
                                                                    <?php endif; ?>
                                                                    <?php
                                }
                                                                ?>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <?php
                      }
                                        } else {
                                            echo LANG_VALUE_74;
                    }
                                        ?>
                    
                                        <h2><?php echo LANG_VALUE_65; ?></h2>
                                        <?php
                                        if($error_message != '') {
                                            echo "<script>alert('".$error_message."')</script>";
                    }
                                        if($success_message != '') {
                                            echo
"<script>alert('".$success_message."')</script>";
                    }
                                        ?>
                                        <?php if(isset($_SESSION['customer'])): ?>

                                            <?php
                                            $statement = $pdo->prepare("SELECT *
                                                                FROM tbl_rating
                                                                WHERE p_id=? AND cust_id=?");
                                            $statement->execute(array($_REQUEST['id'],
$_SESSION['customer']['cust_id']));
                                            $total = $statement->rowCount();
                                            ?>

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                                            <?php if($total==0): ?>


                                            <form action="" method="post">
                                            <div class="rating-section">
                                                <input type="radio" name="rating" class="rating"
value="1" checked>
                                                <input type="radio" name="rating" class="rating"
value="2" checked>
                                                <input type="radio" name="rating" class="rating"
value="3" checked>
                                                <input type="radio" name="rating" class="rating"
value="4" checked>
                                                <input type="radio" name="rating" class="rating"
value="5" checked>
                                            </div>                                            
                                            <div class="form-group">
                                                <textarea name="comment" class="form-control"
cols="30" rows="10" placeholder="Write your comment (optional)"
style="height:100px;"></textarea>
                                            </div>
                                            <input type="submit" class="btn btn-default"
name="form_review" value="<?php echo LANG_VALUE_67; ?>">
                                            </form>
                                            <?php else: ?>
                                                <span style="color:red;"><?php echo
LANG_VALUE_68; ?></span>
                                            <?php endif; ?>

                                        <?php else: ?>


                                            <p class="error">
                                                <?php echo LANG_VALUE_69; ?> <br>
                                                <a href="login.php" style="color:red;text-
decoration: underline;"><?php echo LANG_VALUE_9; ?></a>
                                            </p>
                                        <?php endif; ?>                        
                                    </div>

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

                </div>

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

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

<div class="product bg-gray pt_70 pb_70">


    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="headline">
                    <h2><?php echo LANG_VALUE_155; ?></h2>
                    <h3><?php echo LANG_VALUE_156; ?></h3>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">

                <div class="product-carousel">

                    <?php
                    $statement = $pdo->prepare("SELECT * FROM tbl_product
WHERE ecat_id=? AND p_id!=?");
                    $statement->execute(array($ecat_id,$_REQUEST['id']));
                    $result = $statement->fetchAll(PDO::FETCH_ASSOC);
                    foreach ($result as $row) {
                        ?>
                        <div class="item">
                            <div class="thumb">
                                <div class="photo"
style="background-image:url(assets/uploads/<?php echo
$row['p_featured_photo']; ?>);"></div>
                                <div class="overlay"></div>
                            </div>
                            <div class="text">
                                <h3><a href="product.php?id=<?php echo $row['p_id']; ?
>"><?php echo $row['p_name']; ?></a></h3>
                                <h4>
                                    <?php echo LANG_VALUE_1; ?><?php echo
$row['p_current_price']; ?>
                                    <?php if($row['p_old_price'] != ''): ?>
                                    <del>

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                                        <?php echo LANG_VALUE_1; ?><?php echo


$row['p_old_price']; ?>
                                    </del>
                                    <?php endif; ?>
                                </h4>
                                <div class="rating">
                                    <?php
                                    $t_rating = 0;
                                    $statement1 = $pdo->prepare("SELECT * FROM
tbl_rating WHERE p_id=?");
                                    $statement1->execute(array($row['p_id']));
                                    $tot_rating = $statement1->rowCount();
                                    if($tot_rating == 0) {
                                        $avg_rating = 0;
                                    } else {
                                        $result1 = $statement1-
>fetchAll(PDO::FETCH_ASSOC);
                                        foreach ($result1 as $row1) {
                                            $t_rating = $t_rating + $row1['rating'];
                    }
                                        $avg_rating = $t_rating / $tot_rating;
                  }
                                    ?>
                                    <?php
                                    if($avg_rating == 0) {
                                        echo '';
                  }
                                    elseif($avg_rating == 1.5) {
                                        echo '
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star-half-o"></i>
                                            <i class="fa fa-star-o"></i>
                                            <i class="fa fa-star-o"></i>
                                            <i class="fa fa-star-o"></i>
                                        ';
                  }
                                    elseif($avg_rating == 2.5) {
                                        echo '
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star-half-o"></i>
                                            <i class="fa fa-star-o"></i>
                                            <i class="fa fa-star-o"></i>

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                                        ';
                  }
                                    elseif($avg_rating == 3.5) {
                                        echo '
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star-half-o"></i>
                                            <i class="fa fa-star-o"></i>
                                        ';
                  }
                                    elseif($avg_rating == 4.5) {
                                        echo '
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star"></i>
                                            <i class="fa fa-star-half-o"></i>
                                        ';
                  }
                                    else {
                                        for($i=1;$i<=5;$i++) {
                                            ?>
                                            <?php if($i>$avg_rating): ?>
                                                <i class="fa fa-star-o"></i>
                                            <?php else: ?>
                                                <i class="fa fa-star"></i>
                                            <?php endif; ?>
                                            <?php
                    }
                  }
                                    ?>
                                </div>
                                <p><a href="product.php?id=<?php echo $row['p_id']; ?
>"><?php echo LANG_VALUE_154; ?></a></p>
                            </div>
                        </div>
                        <?php
          }
                    ?>

                </div>

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

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

<?php require_once('footer.php'); ?>

Dashboard Page:
<?php require_once('header.php'); ?>

<?php
// Check if the customer is logged in or not
if(!isset($_SESSION['customer'])) {

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

    header('location: '.BASE_URL.'logout.php');
    exit;
} else {
    // If customer is logged in, but admin make him inactive, then force logout
this user.
    $statement = $pdo->prepare("SELECT * FROM tbl_customer WHERE
cust_id=? AND cust_status=?");
    $statement->execute(array($_SESSION['customer']['cust_id'],0));
    $total = $statement->rowCount();
    if($total) {
        header('location: '.BASE_URL.'logout.php');
        exit;
  }
}
?>

<div class="page">
    <div class="container">
        <div class="row">            
            <div class="col-md-12">
                <?php require_once('customer-sidebar.php'); ?>
            </div>
            <div class="col-md-12">
                <div class="user-content">
                    <h3 class="text-center">
                        <?php echo LANG_VALUE_90; ?>
                    </h3>
                </div>                
            </div>
        </div>
    </div>
</div>

<?php require_once('footer.php'); ?>

Cart Page:
<?php require_once('header.php'); ?>

<?php
$statement = $pdo->prepare("SELECT * FROM tbl_settings WHERE id=1");
$statement->execute();

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

$result = $statement->fetchAll(PDO::FETCH_ASSOC);                            
foreach ($result as $row) {
    $banner_cart = $row['banner_cart'];
}
?>

<?php
$error_message = '';
if(isset($_POST['form1'])) {

    $i = 0;
    $statement = $pdo->prepare("SELECT * FROM tbl_product");
    $statement->execute();
    $result = $statement->fetchAll(PDO::FETCH_ASSOC);
    foreach ($result as $row) {
        $i++;
        $table_product_id[$i] = $row['p_id'];
        $table_quantity[$i] = $row['p_qty'];
  }

    $i=0;
    foreach($_POST['product_id'] as $val) {
        $i++;
        $arr1[$i] = $val;
  }
    $i=0;
    foreach($_POST['quantity'] as $val) {
        $i++;
        $arr2[$i] = $val;
  }
    $i=0;
    foreach($_POST['product_name'] as $val) {
        $i++;
        $arr3[$i] = $val;
  }
  
    $allow_update = 1;
    for($i=1;$i<=count($arr1);$i++) {
        for($j=1;$j<=count($table_product_id);$j++) {
            if($arr1[$i] == $table_product_id[$j]) {
                $temp_index = $j;
                break;
      }

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

    }
        if($table_quantity[$temp_index] < $arr2[$i]) {
            $allow_update = 0;
            $error_message .= '"'.$arr2[$i].'" items are not available for "'.
$arr3[$i].'"\n';
        } else {
            $_SESSION['cart_p_qty'][$i] = $arr2[$i];
    }
  }
    $error_message .= '\nOther items quantity are updated successfully!';
    ?>
  
    <?php if($allow_update == 0): ?>
        <script>alert('<?php echo $error_message; ?>');</script>
    <?php else: ?>
        <script>alert('All Items Quantity Update is Successful!');</script>
    <?php endif; ?>
    <?php

}
?>

<div class="page-banner" style="background-image: url(assets/uploads/<?php


echo $banner_cart; ?>)">
    <div class="overlay"></div>
    <div class="page-banner-inner">
        <h1><?php echo LANG_VALUE_18; ?></h1>
    </div>
</div>

<div class="page">
    <div class="container">
        <div class="row">
            <div class="col-md-12">

                <?php if(!isset($_SESSION['cart_p_id'])): ?>


                    <?php echo '<h2 class="text-center">Cart is Empty!!</h2></br>'; ?
>
                    <?php echo '<h4 class="text-center">Add products to the cart in
order to view it here.</h4>'; ?>
                <?php else: ?>
                <form action="" method="post">
                    <?php $csrf->echoInputField(); ?>

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                <div class="cart">
                    <table class="table table-responsive table-hover table-bordered">
                        <tr>
                            <th><?php echo '#' ?></th>
                            <th><?php echo LANG_VALUE_8; ?></th>
                            <th><?php echo LANG_VALUE_47; ?></th>
                            <th><?php echo LANG_VALUE_157; ?></th>
                            <th><?php echo LANG_VALUE_158; ?></th>
                            <th><?php echo LANG_VALUE_159; ?></th>
                            <th><?php echo LANG_VALUE_55; ?></th>
                            <th class="text-right"><?php echo LANG_VALUE_82;
?></th>
                            <th class="text-center" style="width: 100px;"><?php echo
LANG_VALUE_83; ?></th>
                        </tr>
                        <?php
                        $table_total_price = 0;

                        $i=0;
                        foreach($_SESSION['cart_p_id'] as $key => $value)
            {
                            $i++;
                            $arr_cart_p_id[$i] = $value;
            }

                        $i=0;
                        foreach($_SESSION['cart_size_id'] as $key => $value)
            {
                            $i++;
                            $arr_cart_size_id[$i] = $value;
            }

                        $i=0;
                        foreach($_SESSION['cart_size_name'] as $key => $value)
            {
                            $i++;
                            $arr_cart_size_name[$i] = $value;
            }

                        $i=0;
                        foreach($_SESSION['cart_color_id'] as $key => $value)
            {
                            $i++;

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                            $arr_cart_color_id[$i] = $value;
            }

                        $i=0;
                        foreach($_SESSION['cart_color_name'] as $key => $value)
            {
                            $i++;
                            $arr_cart_color_name[$i] = $value;
            }

                        $i=0;
                        foreach($_SESSION['cart_p_qty'] as $key => $value)
            {
                            $i++;
                            $arr_cart_p_qty[$i] = $value;
            }

                        $i=0;
                        foreach($_SESSION['cart_p_current_price'] as $key => $value)
            {
                            $i++;
                            $arr_cart_p_current_price[$i] = $value;
            }

                        $i=0;
                        foreach($_SESSION['cart_p_name'] as $key => $value)
            {
                            $i++;
                            $arr_cart_p_name[$i] = $value;
            }

                        $i=0;
                        foreach($_SESSION['cart_p_featured_photo'] as $key =>
$value)
            {
                            $i++;
                            $arr_cart_p_featured_photo[$i] = $value;
            }
                        ?>
                        <?php for($i=1;$i<=count($arr_cart_p_id);$i++): ?>
                        <tr>
                            <td><?php echo $i; ?></td>
                            <td>

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                                <img src="assets/uploads/<?php echo


$arr_cart_p_featured_photo[$i]; ?>" alt="">
                            </td>
                            <td><?php echo $arr_cart_p_name[$i]; ?></td>
                            <td><?php echo $arr_cart_size_name[$i]; ?></td>
                            <td><?php echo $arr_cart_color_name[$i]; ?></td>
                            <td><?php echo LANG_VALUE_1; ?><?php echo
$arr_cart_p_current_price[$i]; ?></td>
                            <td>
                                <input type="hidden" name="product_id[]" value="<?php
echo $arr_cart_p_id[$i]; ?>">
                                <input type="hidden" name="product_name[]" value="<?
php echo $arr_cart_p_name[$i]; ?>">
                                <input type="number" class="input-text qty text" step="1"
min="1" max="" name="quantity[]" value="<?php echo $arr_cart_p_qty[$i]; ?
>" title="Qty" size="4" pattern="[0-9]*" inputmode="numeric">
                            </td>
                            <td class="text-right">
                                <?php
                                $row_total_price =
$arr_cart_p_current_price[$i]*$arr_cart_p_qty[$i];
                                $table_total_price = $table_total_price + $row_total_price;
                                ?>
                                <?php echo LANG_VALUE_1; ?><?php echo
$row_total_price; ?>
                            </td>
                            <td class="text-center">
                                <a onclick="return confirmDelete();" href="cart-item-
delete.php?id=<?php echo $arr_cart_p_id[$i]; ?>&size=<?php echo
$arr_cart_size_id[$i]; ?>&color=<?php echo $arr_cart_color_id[$i]; ?>"
class="trash"><i class="fa fa-trash" style="color:red;"></i></a>
                            </td>
                        </tr>
                        <?php endfor; ?>
                        <tr>
                            <th colspan="7" class="total-text">Total</th>
                            <th class="total-amount"><?php echo LANG_VALUE_1; ?
><?php echo $table_total_price; ?></th>
                            <th></th>
                        </tr>
                    </table>
                </div>

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                <div class="cart-buttons">
                    <ul>
                        <li><input type="submit" value="<?php echo
LANG_VALUE_20; ?>" class="btn btn-primary" name="form1"></li>
                        <li><a href="index.php" class="btn btn-primary"><?php echo
LANG_VALUE_85; ?></a></li>
                        <li><a href="checkout.php" class="btn btn-primary"><?php
echo LANG_VALUE_23; ?></a></li>
                    </ul>
                </div>
                </form>
                <?php endif; ?>

        

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

<?php require_once('footer.php'); ?>

Forget Password Page:


<?php require_once('header.php'); ?>

<?php
$statement = $pdo->prepare("SELECT * FROM tbl_settings WHERE id=1");
$statement->execute();
$result = $statement->fetchAll(PDO::FETCH_ASSOC);                            

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

foreach ($result as $row) {


    $banner_forget_password = $row['banner_forget_password'];
}
?>

<?php
if(isset($_POST['form1'])) {

    $valid = 1;
    
    if(empty($_POST['cust_email'])) {
        $valid = 0;
        $error_message .= LANG_VALUE_131."\\n";
    } else {
        if (filter_var($_POST['cust_email'], FILTER_VALIDATE_EMAIL) ===
false) {
            $valid = 0;
            $error_message .= LANG_VALUE_134."\\n";
        } else {
            $statement = $pdo->prepare("SELECT * FROM tbl_customer WHERE
cust_email=?");
            $statement->execute(array($_POST['cust_email']));
            $total = $statement->rowCount();                        
            if(!$total) {
                $valid = 0;
                $error_message .= LANG_VALUE_135."\\n";
      }
    }
  }

    if($valid == 1) {

        $statement = $pdo->prepare("SELECT * FROM tbl_settings WHERE


id=1");
        $statement->execute();
        $result = $statement->fetchAll(PDO::FETCH_ASSOC);                          
        foreach ($result as $row) {
            $forget_password_message = $row['forget_password_message'];
    }

        $token = md5(rand());
        $now = time();

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

        $statement = $pdo->prepare("UPDATE tbl_customer SET


cust_token=?,cust_timestamp=? WHERE cust_email=?");
        $statement->execute(array($token,
$now,strip_tags($_POST['cust_email'])));
    
        $message = '<p>'.LANG_VALUE_142.'<br> <a
href="'.BASE_URL.'reset-password.php?email='.
$_POST['cust_email'].'&token='.$token.'">Click here</a>';
    
        $to      = $_POST['cust_email'];
        $subject = LANG_VALUE_143;
        $headers = "From: noreply@" . BASE_URL . "\r\n" .
                   "Reply-To: noreply@" . BASE_URL . "\r\n" .
                   "X-Mailer: PHP/" . phpversion() . "\r\n" .
                   "MIME-Version: 1.0\r\n" .
                   "Content-Type: text/html; charset=ISO-8859-1\r\n";

        mail($to, $subject, $message, $headers);

        $success_message = $forget_password_message;
  }
}
?>

<div class="page-banner" style="background-color:#444;background-image:


url(assets/uploads/<?php echo $banner_forget_password; ?>);">
    <div class="inner">
        <h1><?php echo LANG_VALUE_97; ?></h1>
    </div>
</div>

<div class="page">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="user-content">
                    <?php
                    if($error_message != '') {
                        echo "<script>alert('".$error_message."')</script>";
          }
                    if($success_message != '') {
                        echo "<script>alert('".$success_message."')</script>";
          }

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

                    ?>
                    <form action="" method="post">
                        <?php $csrf->echoInputField(); ?>
                        <div class="row">
                            <div class="col-md-4"></div>
                            <div class="col-md-4">
                                <div class="form-group">
                                    <label for=""><?php echo LANG_VALUE_94; ?>
*</label>
                                    <input type="email" class="form-control"
name="cust_email">
                                </div>
                                <div class="form-group">
                                    <label for=""></label>
                                    <input type="submit" class="btn btn-primary" value="<?
php echo LANG_VALUE_4; ?>" name="form1">
                                </div>
                                <a href="login.php" style="color:#e4144d;"><?php echo
LANG_VALUE_12; ?></a>
                            </div>
                        </div>                        
                    </form>
                </div>                
            </div>
        </div>
    </div>
</div>

<?php require_once('footer.php'); ?>

5.3.1 Unit Testing


Unit testing is a software testing method by which individual units of source
code sets of one or more computer program modules together with associated
control data, usage procedures, and operating procedures are tested to determine
whether they are fit for use.

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

5.3.2 Integration Testing


Integration testing (sometimes called integration and testing, abbreviated
I&T) is the phase in software testing in which individual software modules are
combined and tested as a group. Integration testing is conducted to evaluate the
compliance of a system or component with specified functional requirements.
In bottom-up testing, the lowest level components are tested first, and are
then used to facilitate the testing of higher level components. The process is
repeated until the component at the top of the hierarchy is tested. All the bottom

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

or low-level modules, procedures or functions are integrated and then tested.


After the integration testing of lower level integrated modules, the next level of
modules will be formed and can be used for integration testing. This approach is
helpful only when all or most of the modules of the same development level are
ready. This method also helps to determine the levels of software developed and
makes it easier to report testing progress in the form of a percentage.

5.3.3 Beta Testing


Beta testing is an opportunity for real users to use a product in a
production environment to uncover any bugs or issues before a general release.
Beta testing is the final round of testing before releasing a product to a wide
audience.
Beta testers are “real” users and conduct their testing in a production
environment running on the same hardware, networks, etc., as the final release.

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

This also means it’s the first chance for full security and reliability testing because
those tests can’t be conducted in a lab or stage environment.
Beta tests can either be open or closed. In an open test, anyone can use
the product and is usually presented with some messaging that the product is in
beta and given a method for submitting feedback. 

5.3 Test Case:


Test Test Test Test Steps Test Test
Case Case Case Case Priority
Step Expected
ID Name Status
Logi Verify To Verify Enter Error Desig Hig
n Login Username & Wrong Message n h
Password Username Enter

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

01 & Valid
Password Username
& Click &
Login Password
Button
Verify To verify Enter Error Desig Hig
Logi Userna username Numeric message n h
n me Character the
in Name username
02
text can only
field& fill consist
other alphabetic
fields & al.
click any
of the
respected
button.
User Verify Enter any Error Design High
Mobile alphanumeri message
01
No. cal value . please
enter only
Enter Less
digits. Design High
than 10
digits Error
message
please
enter a
valid
mobile
no.
User Validate To verify all Leave any Error Desig Hig
02 Fields the fields are field message n h
filed empty. The data is
Required

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

User Verify To verify the Enter Error Desig Hig


Email_i Customer alphabetic message n h
03
d Email_id al value please
include
‘@’
In the
email
address

Chapter 6

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

Results and Discussion


6.1 Test Report:

Admin Report:

User Report:

6.2 User Documentation


 How to Register?

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

i) Click on Sign Up.


ii) Fill up all the details.
iii) Click on the Register button.
iv)You are Registered.

 How to View & Add the Product?


i) Login to the website.
ii) Browse or Select the Product as per your Requirement.
iii) Add the product to the Cart.
iv)Proceed to the Checkout
v) Enter your details.
vi)Proceed to do the payment.
vii) Your order will be successful.

 What to do when you forget your Password?


i) Go on the link “Forget Password”.
ii) Enter your email address.
iii) The forget password request will be sent on Your mail ID.
iv)You can set the New Password.

Chapter 7: Conclusions

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

7.1 Conclusion:
The E-Commerce website that named FitZone is successfully
designed and developed of fulfilling the necessary requirements, as
identified in the requirement analysis phase, such as the system is
very much user friendly, form level validation and field level
validation are performing very efficiently. Working on this project
was a good and enriching experience. The making of these software
made me realize the importance of planning and design n software
development. The concept of peer review helped me to rectify the
problems as and when they occurred. It also helped me to get some
valuable feedback and suggestions that were later integrated in to the
project by me. Developing this project has helped me gain good
experience on real time development procedures.

7.2 Significance of the System:


 This e-commerce website serves the functionality of the
product.
 User will login to the system using his user id and password and
will view various products and buy them.
 User can visit the website and choose whatever they want.
 It is based on Proteins and Supplements.

7.3 Limitations of the System:


 Currently the system is not capable to enough to handle heavy
traffic or load on the server.
 In case you forget your password, you need to enter your email
id to reset the password.
 Sometimes server cannot handle heavy traffic so it will slowly
working or it takes time to execute.
 Currently project is running on localhost so chances of network
attacks are more.

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

 Scope of project is limited since it is running on localhost.

7.4 Future Scope of the project:


 The email can be configured then the user receives the
notification of the successful login
 User can view the products and they can purchase them.
 User also can contact to the administration.
 User can get best discounts on our website.

References:

PHP
-www.wikipedia.com

Sakshi Gaikwad Roll.No.:212


TYIT C FITZONE

-www.w3schools.com
-www.youtube.com
-www.stackoverflow.com

Diagrams:
-www.diagrams.net

Sakshi Gaikwad Roll.No.:212

You might also like