You are on page 1of 283

JASDEEP KAUR 11204550112

RAJAT ARORA 11204550115

INTRODUCTION OF
PROJECT

1
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

INTRODUCTION OF PROJECT

Now a day’s electronic items are more demand in market because they reduces the huge time of
peoples. We listen that people do their work manually and waste their time so much. For example –
people wash their clothes with hands; prepare masala for vegetables by their hands. It takes to much
time. For reducing these times we come to know about electronic system which reduces the time of
people. That means some companies made electronic products to help peoples. For example washing
machine, juicer, mixer grinder, chopper etc.

In this project includes overview of electro shoppe thereby consisting of electronic products like
mobiles, LCD/LED, AC, Tablets, washing machine, etc by the different companies like Samsung, LG,
Philps, Apple, Sony etc.

Electro shoppe is a website where every thing is provide for people. in this web site people can
buy their products . Very well renowned companies were introducing their products in this website. It is
easy way to find the latest products available in the market.

OBJECTIVE AND PURPOSE OF PROJECT

 We give unique name to our website that is “electro shoppe” where all the electronic
products are available.
 Every project is based on data base.
 It reduces time consumption.
 Easy designed by the web developer.
 Best deals provide by companies to the customers
 Easy programming for user
 To sell the products online.
 To provide easy and fast facility for the customer.

2
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

REQUIREMENT
ANALYSIS

3
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

REQUIREMENT ANALYSIS

Requirements analysis in systems engineering and software engineering, encompasses those tasks that
go into determining the needs or conditions to meet for a new or altered product, taking account of the
possibly conflicting requirements of the various stakeholders, such as beneficiaries or users. It is an early
stage in the more general activity of requirements engineering which encompasses all activities
concerned with eliciting, analyzing, documenting, validating and managing software or system
requirements.

Requirements analysis is critical to the success of a systems or software project. The requirements
should be documented, actionable, measurable, testable, traceable, related to identified business needs
or opportunities, and defined to a level of detail sufficient for system design.

Conceptually, requirements analysis includes three types of activities:

 Eliciting requirements: the task of identifying the various types of requirements from various
sources including project documentation, (e.g. the project charter or definition), business process
documentation, and stakeholder interviews. This is sometimes also called requirements
gathering.
 Analyzing requirements: determining whether the stated requirements are clear, complete,
consistent and unambiguous, and resolving any apparent conflicts.
 Recording requirements: Requirements may be documented in various forms, usually including a
summary list and may include natural-language documents, use cases, user stories, or process
specifications.

Requirements analysis can be a long and arduous process during which many delicate psychological
skills are involved. New systems change the environment and relationships between people, so it is
important to identify all the stakeholders, take into account all their needs and ensure they understand the
implications of the new systems. Analysts can employ several techniques to elicit the requirements from
the customer. These may include the development of scenarios, the identification of use cases, the use of
workplace observation or ethnography, holding interviews, or focus groups and creating requirements
lists. Prototyping may be used to develop an example system that can be demonstrated to stakeholders.
Where necessary, the analyst will employ a combination of these methods to establish the exact
requirements of the stakeholders, so that a system that meets the business needs is produced.

4
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

TYPES OF REQUIREMENTS

Customer Requirements
Statements of fact and assumptions that define the expectations of the system in terms of mission
objectives, environment, constraints, and measures of effectiveness and suitability (MOE/MOS). The
customers are those that perform the eight primary functions of systems engineering, with special
emphasis on the operator as the key customer. Operational requirements will define the basic need and,
at a minimum, answer the questions posed in the following listing:

 Operational distribution or deployment: Where will the system be used?


 Mission profile or scenario: How will the system accomplish its mission objective?
 Performance and related parameters: What are the critical system parameters to
accomplish the mission?
 Utilization environments: How are the various system components to be used?
 Effectiveness requirements: How effective or efficient must the system be in performing
its mission?
 Operational life cycle: How long will the system be in use by the user?
 Environment: What environments will the system be expected to operate in an effective
manner?

Architectural Requirements
Architectural requirements explain what has to be done by identifying the necessary system architecture
of a system.

Structural Requirements
Structural requirements explain what has to be done by identifying the necessary structure of a system.

Behavioral Requirements
Behavioral requirements explain what has to be done by identifying the necessary behavior of a system.

5
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Functional Requirements
Functional requirements explain what has to be done by identifying the necessary task, action or activity
that must be accomplished. Functional requirements analysis will be used as the toplevel functions for
functional analysis.

Non-functional Requirements
Non-functional requirements are requirements that specify criteria that can be used to judge the operation
of a system, rather than specific behaviors.

Performance Requirements
The extent to which a mission or function must be executed; generally measured in terms of quantity,
quality, coverage, timeliness or readiness. During requirements analysis, performance (how well does it
have to be done) requirements will be interactively developed across all identified functions based on
system life cycle factors; and characterized in terms of the degree of certainty in their estimate, the
degree of criticality to system success, and their relationship to other requirements.

Design Requirements
The “build to,” “code to,” and “buy to” requirements for products and “how to execute” requirements for
processes expressed in technical data packages and technical manuals.

Derived Requirements
Requirements that are implied or transformed from higher-level requirement. For example, a requirement
for long range or high speed may result in a design requirement for low weight.

Allocated Requirements
A requirement that is established by dividing or otherwise allocating a high-level requirement into multiple
lower-level requirements. Example: A 100-pound item that consists of two subsystems might result in
weight requirements of 70 pounds and 30 pounds for the two lower-level items.

6
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

FEASIBILITY STUDY

7
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

FEASIBILITY STUDY

Feasibility studies aim to objectively and rationally uncover the strengths and weaknesses of an
existing business or proposed venture, opportunities and threats as presented by the
environment, the resources required to carry through, and ultimately the prospects for success. In
its simplest terms, the two criteria to judge feasibility are cost required and value to be attained.
As such, a well-designed feasibility study should provide a historical background of the business
or project, description of the product or service, accounting statements, details of the operations
and management, marketing research and policies, financial data, legal requirements and tax
obligations. Generally, feasibility studies precede technical development and project
implementation.

TECHNICAL FEASIBILITY

Technical feasibility can be defined as the process of proving that the concept is technically
possible. It also deals with determining whether the proposed solution can be implemented with
existing technology? If not, how difficult will it be to build it, and whether the firm has enough
experience using that technology? Thus during this feasibility, the analyst finds out whether the
current technical resources can be upgraded or added to in a manner that fulfills the request
under consideration.

Technological feasibility of the project is carried out and it is determined that we developers have
the capability, in terms of software, hardware, personnel and expertise, to handle the
completion of the project.

ECONOMICAL FEASIBILITY

The economic feasibility demonstrates the net benefit of the proposed solution in light of
The benefits and costs to the company. More commonly known as cost benefit analysis,
the procedure is to determines whether the system provide benefits greater than the costs?
It benefits outweigh costs, then the decision is made to design and implement the system.

We undertake detailed studies for project costing & feasibility to amass relevant information
about the resources required for a project. With the aid of surveys for a project, we are able to

8
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

estimate the cost and feasibility of a project.

BEHAVIORAL FEASIBILITY

The behavioral feasibility involves subjective assessment of the political and managerial
environment in which the system will be implemented. In general, the greater the requirements
for a change in user environment in which the system will be installed, the greater the risk of
implementation failure.

Once the feasibility study has been performed, the various alternatives are examined and a
cost/benefit analysis is conducted to determine the best solution.

9
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PROJECT DESIGN

10
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PROJECT DESIGN

Project design first requires gathering, synthesizing, and analyzing information with enough objectivity
and detail to support a program decision that makes optimum use of resources to achieve desired results.
IRG helps countries and organizations ensure that interventions are ethically sound, technically up-to-
date, relevant to the program setting, and acceptable to or endorsed by the beneficiary populations. Our
technical experts help organizations clearly articulate their goals and objectives, and the strategies and
activities that will be required to achieve them.

A project is typically defined as a collaborative enterprise, frequently involving research or design, that is
carefully planned to achieve a particular aim. Projects can be further defined as temporary rather than
permanent social systems that are constituted by teams within or across organizations to accomplish
particular tasks under time constraints.Project management is the discipline of planning, organizing,
securing, managing, leading, and controlling resources to achieve specific goals.

A project is a temporary endeavor with a defined beginning and end usually time-constrained, and often
constrained by funding or deliverables, undertaken to meet unique goals and objectives, typically to bring
about beneficial change or added value. The temporary nature of projects stands in contrast
with business as usual or operations which are repetitive, permanent, or semi-permanent functional
activities to produce products or services. In practice, the management of these two systems is often
quite different, and as such requires the development of distinct technical skills and management
strategies.The primary challenge of project management is to achieve all of the project goals and
objectives while honoring the preconceived constraints.

11
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

DATA STRUCTURE

12
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

DATA STRUCTURE

Data structure is a particular way of storing and organizing data in a computer so that it can be used
efficiently.Different kinds of data structures are suited to different kinds of applications, and some are
highly specialized to specific tasks.Data structures are used in almost every program or software system.
Data structures provide a means to manage huge amounts of data efficiently, such as
large databases and internet indexing services. Usually, efficient data structures are a key to designing
efficient algorithms. Some formal design methods and programming languages emphasize data
structures, rather than algorithms, as the key organizing factor in software design.

Data structures are generally based on the ability of a computer to fetch and store data at any place in its
memory, specified by an address—a bit string that can be itself stored in memory and manipulated by the
program. Thus the record and array data structures are based on computing the addresses of data items
with arithmetic operations; while the linked data structures are based on storing addresses of data items
within the structure itself. Many data structures use both principles, sometimes combined in non-trivial
ways.The implementation of a data structure usually requires writing a set of procedures that create and
manipulate instances of that structure.

The efficiency of a data structure cannot be analyzed separately from those operations. This observation
motivates the theoretical concept of an abstract data type, a data structure that is defined indirectly by the
operations that may be performed on it, and the mathematical properties of those operations. An array
data structure stores a number of elements of the same type in a specific order. Arrays may be fixed-
length or expandable.Record (also called tuple or struct) Records are among the simplest data structures.
A record is a value that contains other values, typically in fixed number and sequence and typically
indexed by names. The elements of records are usually called fields or members. A union type definition
will specify which of a number of permitted primitive types may be stored in its instances.
An object contains a number of data fields, like a record, and also a number of program code fragments
for accessing or modifying them.

13
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

E R DIAGRAM

14
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

E R DIAGRAM

Electroshoppe
Site User

Login

Home

15
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

DATA FLOW DIAGRAM

16
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

DATA FLOW DIAGRAM

ELECTROSHOPPE
SITE

Home Companies Categories Products Contact Us About Us

Introduction
To Website

Website
Companies Name
Information

Categories Send Message


Name

Products name and


Detail

17
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

USER

LOGIN

REGISTER

USER
ACCOUNT

Products Products Add to Cart


Type Detail

LOGOUT
12

18
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

MODULE
DESCRIPTION

19
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

MODULE DESCRIPTION

Modules of the project are following:-


(a) Front Modules:-
1. Home
2. Companies
3. Categories
4. Products
5. About Us
6. Contact Us
7. Login
8. User Login
9. My Account
10. Shopping Cart
11. Order List
12. Logout

(b) Back-End Modules:-

1. Manage Companies

2. Manage Categories

3. Manage Products

4. Manage Users

20
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

VALIDATION CHECKS

21
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

VALIDATION CHECKS

Validation check is the process of evaluating software to determine compliance with specified
requirements. In other words, it includes all actions taken at the end of the development cycle to confirm
that the software product as built correctly reflects the SRS or its equivalent.

The term validation indicates “Are we building the right product?”

The goals of validation activity are to assess and improve the quality of the work products generated
during development and modification of software.

This activity checks the requirements for realism, consistency and completeness. During this process,
errors in the requirements documents are inevitably discovered. It must then be modified to correct these
problems. The activities in the requirements problems are not simply carried out in strict sequence.
Requirement analysis continues during definition and specification and new requirements come to light
throughout the process. Therefore, the activities of analysis, definition and specification are interleaved.

Validation focuses on:

1. Ability to the interface to implement every user task correctly, to accommodate all task variations,
and to achieve all general user requirements.
2. The degree to which the interface is easy to use.
3. The user’s acceptance of the interface as a useful tool in their work.

22
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

TOOLS AND
PLATFORM/PROJECT
REQUIREMENTS

23
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

TOOLS AND PLATFORM/PROJECT REQUIREMENTS

HARDWARE REQUIREMENTS:-

The following table lists the minimum and recommended hardware requirements for deploying Project:-

Component Minimum Recommended


Processor 2.5 gigahertz (GHz) Dual processors that are each 3 GHz or faster

RAM 1 gigabyte (GB) 2 GB

Drive DVD drive DVD drive or the source copied to a local or


network-accessible drive

Display 1024 × 768 1024 × 768 or higher resolution monitor

SOFTWARE REQUIRED:

Software required are following:-


 Adobe Photoshope 7.0
 Adobe Macromedia Dreamweaver 8.0
 Xampp 1.7.3
 Web Browser (Mozilla, Google Chrome , Opera etc)

24
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

MY SQL

25
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

DATABASE: ELECTROSHOPPE

26
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

STRUCTURE OF STATE TABLE

27
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

STATE TABLE

28
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

STRUCTURE OF ADMIN TABLE

29
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

ADMIN TABLE

30
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

STRUCTURE OF CART TABLE

31
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

CART TABLE

32
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

STRUCTURE OF CATEGORY TABLE

33
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

CATEGORY TABLE

34
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

STRUCTURE OF COMPANIES TABLE

35
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

COMPANIES TABLE

36
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

STRUCTURE OF MASTER ORDER TABLE

37
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

MASTER ORDER TABLE

38
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

STRUCTURE OF ORDER TABLE

39
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

ORDER TABLE

40
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

STRUCTURE OF PRODUCT TABLE

41
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PRODUCT TABLE

42
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PRODUCT TABLE

43
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PRODUCT TABLE

44
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PRODUCT TABLE

45
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PRODUCT TABLE

46
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PRODUCT TABLE

47
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PRODUCT TABLE

48
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

STRUCTURE OF USERS TABLE

49
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

USERS TABLE

50
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

SNAPSHOTS

51
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

LOGIN PAGE

52
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

HOME PAGE

53
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

COMPANY PAGE

54
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

CATEGORY PAGE

55
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PRODUCT PAGE

56
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PRODUCTS PAGE : CATEGORY MOBILE

57
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PRODUCTS PAGE: CATEGORY LAPTOP

58
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PRODUCTS PAGE : CATEGORY WASHING MACHINE

59
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PRODUCTS PAGE: CATEGORY LCD/LED

60
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PRODUCTS PAGE: CATEGORY MICROWAVE

61
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PRODUCTS PAGE: CATEGORY AIR CONDITION

62
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

PRODUCTS PAGE: CATEGORY REFRIGRATOR

63
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

SEARCH PAGE

64
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

CONTACT US PAGE

65
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

ABOUT US PAGE

66
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

CREATE AN ACCOUNT PAGE

67
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

MY ACCOUNT PAGE

68
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

SHOPPING CART PAGE

69
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

ORDER LIST PAGE

70
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

THANKYOU PAGE

71
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

FORGOT PASSWORD PAGE

72
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

MESSAGE PAGE

73
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

LOGOUT PAGE

74
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

CODING

75
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Login.php

<?php

require_once('app_code/config.php');

require_once('app_code/db.php');

$msg="";

if( isset( $_POST['submit'] ) )

$sqlcheck = sprintf( "select id,email,username from tblusers where username='%s' and password='%s'",
trim(strtolower($_POST['username'])), trim($_POST['password']) );

$res = mysql_query( $sqlcheck ) ;

if( mysql_num_rows($res) > '0' )

$r = mysql_fetch_assoc($res);

session_start();

$_SESSION['intialid'] = $r['id'];

$_SESSION['checkid'] = $r['id'];

$_SESSION['email'] = $r['email'];

$_SESSION['username'] = $r['username'];

$_SESSION['role'] = 'user';

if($_GET['rturl'] != "")

header("location:".$_GET['rturl']);

76
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

else

header("location:index.php");

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Your Store</title>

<meta name="description" content="My Store" />

<link href="http://localhost/upload/image/data/cart.png" rel="icon" />

<link rel="stylesheet" type="text/css" href="stylesheet/stylesheet.css" />

<link rel="stylesheet" type="text/css" href="stylesheet/slideshow.css" media="screen" />

<link rel="stylesheet" type="text/css" href="stylesheet/carousel.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/jquery-1.7.1.min.js">

</script>

<script type="text/javascript" src="javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/ui/themes/ui-lightness/jquery-ui-


1.8.16.custom.css" />

77
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<script type="text/javascript" src="javascript/jquery/ui/external/jquery.cookie.js">

</script>

<script type="text/javascript" src="javascript/jquery/colorbox/jquery.colorbox.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/colorbox/colorbox.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/tabs.js">

</script>

<script type="text/javascript" src="javascript/common.js">

</script>

<script type="text/javascript" src="javascript/jquery/nivo-slider/jquery.nivo.slider.pack.js">

</script>

<script type="text/javascript" src="javascript/jquery/jquery.jcarousel.min.js">

</script>

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie7.css" />

<![endif]-->

<!--[if lt IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie6.css" />

<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js">

</script>

<script type="text/javascript">

DD_belatedPNG.fix('#logo img');

</script>

78
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<![endif]-->

</head>

<body>

<div id="topline">

</div>

<div id="container">

<?php include_once("inc/header.php"); ?>

<br />

<div id="menu">

<?php

require_once('inc/menu.php');

?>

</div>

<div id="notification">

</div>

<div id="content">

<div class="slideshow">

<div id="slideshow0" class="nivoSlider" style="width: 980px; height: 280px;">

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

79
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49"><img
src="sliderimages/elect2.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" /></a>

</div>

</div>

<script type="text/javascript"><!--

$(document).ready(function() {

$('#slideshow0').nivoSlider();

);

<div class="box-heading">

</div>

<div style=" float:left; width:280px; line-height:25px;; border:0px solid #eeeeee;">

<?php

include_once('inc/left.php');

?>

</div>

<div class="box-content" style="float:left;">

<div class="box-product">

<div align="center">

<div align="left" style="margin-bottom:10px; color:#FF0000;">

<?php

if(strlen($msg) > '0') echo $msg;

80
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

?>

</div>

</<br />

<div style="clear:both">

</div>

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

<table width="325" border="0" cellpadding="5" cellspacing="5">

<tr>

<th>

Username

</th>

<td>

<input type="text" class="login-inp" name="username" />

</td>

</tr>

<tr>

<th>

Password

</th>

<td>

<input type="password" name="password" value="" onfocus="this.value=''" class="login-inp" />

</td>

</tr>

81
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<tr>

<td align="left"><a href ="forgotpassword1.php">

Forgot Password

</a>

</td>

<td align="right">

<input type="submit" name="submit" value="Login" />

</td>

</tr>

</table>

</form>

</div>

</div>

</div>

</div>

<div style="clear:both">

</div>

<br />

<div id="featured" align="center" style="width:800px; border:0px solid #999999; margin:0px auto;


padding:5px 0px;">

<?php

include_once('inc/featured.php');

?>

</div>

82
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<div style="clear:both">

</div>

<h1 style="display: none;">Your Store</h1>

<div id="carousel0">

<ul class="jcarousel-skin-opencart">

<li><a href="companydetail.php?compid=5">

<img src="companyimages/whirlpool.jpg" alt="whirlpool" title="whirlpool" />

</a>

</li>

<li>

<a href="companydetail.php?compid=4">

<img src="companyimages/videocon.jpg" alt="videocon" title="videocon" />

</a>

</li>

<li>

<a href="companydetail.php?compid=3">

<img src="companyimages/lg.jpg" alt="LG" title="LG" />

</a>

</li>

<li>

<a href="companydetail.php?compid=2">

<img src="companyimages/samsung.jpg" alt="samsung" title="samsung" />

83
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</a>

</li>

<li>

<a href="companydetail.php?compid=1">

<img src="companyimages/sony.jpg" alt="Sony" title="Sony" />

</a>

</li>

</ul>

</div>

<script type="text/javascript">

<!--

$('#carousel0 ul').jcarousel

vertical: false,

visible: 5,

scroll: 3

);

//--></script>

</div>

</div>

<div style="clear:both">

84
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</div>

<?php

include_once("inc/footer.php");

?>

</body>

</html>

85
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

index.php

<?php

session_start();

require_once('app_code/config.php');

require_once('app_code/db.php');

$link=$_SERVER['QUERY_STRING'];

$pquerystring = $link!='' ? '?'.$link.'&' : '?';

if ($_GET ['cartid']!= "")

require_once('app_code/sessioncheck.php');

$sqlCheckExist = "select id from tblcart where uid='".$_SESSION[checkid]."' and pid='".$_GET[cartid]."'";

$rs = mysql_query( $sqlCheckExist );

if(mysql_num_rows($rs) <= '0' )

$sqlcart ="insert into tblcart(uid,pid,qnty) values('$_SESSION[checkid]','$_GET[cartid]','1')";

mysql_query($sqlcart);

header("location:index.php?catid=".$_GET['catid'].'&p='.$_GET['p']);

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

86
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<title>

Your Store

</title>

<meta name="description" content="My Store" />

<link href="http://localhost/upload/image/data/cart.png" rel="icon" />

<link rel="stylesheet" type="text/css" href="stylesheet/stylesheet.css" />

<link rel="stylesheet" type="text/css" href="stylesheet/slideshow.css" media="screen" />

<link rel="stylesheet" type="text/css" href="stylesheet/carousel.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/jquery-1.7.1.min.js">

</script>

<script type="text/javascript" src="javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/ui/themes/ui-lightness/jquery-ui-


1.8.16.custom.css" />

<script type="text/javascript" src="javascript/jquery/ui/external/jquery.cookie.js">

</script>

<script type="text/javascript" src="javascript/jquery/colorbox/jquery.colorbox.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/colorbox/colorbox.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/tabs.js">

</script>

<script type="text/javascript" src="javascript/common.js">

</script>

87
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<script type="text/javascript" src="javascript/jquery/nivo-slider/jquery.nivo.slider.pack.js">

</script>

<script type="text/javascript" src="javascript/jquery/jquery.jcarousel.min.js"></script>

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie7.css" />

<![endif]-->

<!--[if lt IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie6.css" />

<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js">

</script>

<script type="text/javascript">

DD_belatedPNG.fix('#logo img');

</script>

<![endif]-->

</head>

<body>

<div id="topline">

</div>

<div id="container">

<?php

include_once("inc/header.php");

?>

<br />

88
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<div id="menu">

<?php

require_once('inc/menu.php');

?>

</div>

<div id="notification">

</div>

<div id="content"><div class="slideshow">

<div id="slideshow0" class="nivoSlider" style="width: 980px; height: 280px;">

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect2.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

</div>

</div>

<script type="text/javascript"><!--

$(document).ready(function() {

$('#slideshow0').nivoSlider();

});

</script>

<div class="box">

89
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<div class="box-heading">

</div>

<div style=" float:left; width:280px; line-height:25px;; border:0px solid #eeeeee;">

<?php

include_once('inc/left.php');

?>

</div>

<div class="box-content" style="float:left;">

<div class="box-product" >

<?php

if($_GET['catid'] != "" )

$appQuery = " where category = '".$_GET['catid']."'";

$sqlSelectProd1 = sprintf( "select * from tblproduct ".$appQuery );

$resultProd1 = mysql_query( $sqlSelectProd1 );

$limit =10;

$numRows= mysql_num_rows($resultProd1);

$pages = ceil($numRows / $limit);

if($_GET['p'] != '')

$start = $_GET['p'] * $limit;

90
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

else

$start = 0;

$sqlSelectProd = sprintf( "select * from tblproduct".$appQuery ." limit $start,$limit ");

$resultProd = mysql_query( $sqlSelectProd );

if( mysql_num_rows($resultProd) > 0 )

while( $R = mysql_fetch_array( $resultProd ) )

?>

<div align="center" style="border:0px solid #000033 ">

<div align="center" style="margin-left:20px;"><?php if($R['isnew'] == '1' ) echo '<span


style="color:#ff0000;">NEW</span>'; ?></div><br />

<div align="center" style="width:150px; height:150px; margin:0px auto;border:1px solid #EEE ;


overflow:hidden"><table><tr><td align="center" valign="middle" height="150">

<div class="image"><a href="productdetail.php?id=<?php echo $R['id'];?>">

<img src="productimages/<?php echo $R['image']; ?>" width="80" alt="MacBook" />

</a>

</div>

<div class="name"><a href="productdetail.php?id=<?php echo $R['id'];?>">

<?php

echo $R['name'];

?>

91
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</a>

</div>

</td>

</tr>

</table>

</div>

<div class="price">

<strike>

<?php

echo $R['price'];

?>

</strike>

<span style="color:#FF0000">$ <?php echo $R['siteprice']; ?>

</span>

</div>

<div class="cart"><input type="button" value="Add to Cart"


onclick="window.location='index.php?cartid=<?php echo $R['id'].'&catid='.$_GET['catid'].'&p='.$_GET['p'];
?>';" class="button" />

</div>

</div>

<?php

else

92
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

echo '<div align="center">Sorry! No Record Found.</div>';

?>

</div>

<div style="clear:both">

</div>

<div align="center">

<?php for($x=1; $x<=$pages; $x++)

$pquerystring = $link!='' ? $link.'&p='.($x-1) : 'p='.($x-1);

?>

<a href="index.php?<?php echo $pquerystring; ?>" style="color:#000000"><?php echo $x; ?>

</a>

&nbsp;&nbsp;&nbsp;

<?php

?>

</div>

</div>

</div>

<div style="clear:both">

</div>

93
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<br />

<div id="featured" align="center" style="width:880px; border:0px solid #999999; margin:0px auto;


padding:5px 0px;">

<?php

include_once('inc/featured.php');

?>

</div>

<h1 style="display: none;">Your Store</h1>

<div id="carousel0">

<ul class="jcarousel-skin-opencart">

<li>

<a href="companydetail.php?compid=5">

<img src="companyimages/whirlpool.jpg" alt="whirlpool" title="whirlpool" />

</a>

</li>

<li>

<a href="companydetail.php?compid=4">

<img src="companyimages/videocon.jpg" alt="videocon" title="videocon" />

</a>

</li>

<li>

<a href="companydetail.php?compid=3">

<img src="companyimages/lg.jpg" alt="LG" title="LG" />

94
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</a>

</li>

<li>

<a href="companydetail.php?compid=2">

<img src="companyimages/samsung.jpg" alt="samsung" title="samsung" />

</a>

</li>

<li>

<a href="companydetail.php?compid=1">

<img src="companyimages/sony.jpg" alt="Sony" title="Sony" />

</a>

</li>

</div>

</ul>

<script type="text/javascript"><!--

$('#carousel0 ul').jcarousel({

vertical: false,

visible: 5,

scroll: 3});

//--></script></div>

</div>

<?php

95
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

include_once("inc/footer.php");

?>

</body>

</html>

96
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Companydetail.php

<?php

require_once('app_code/config.php');

require_once('app_code/db.php');

$sqlSelectCompany1 = sprintf( "select * from tblcompany where status = '1' and id='".$_GET['compid']."'"
);

$resComp1 = mysql_query( $sqlSelectCompany1 );

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Your Store</title>

<meta name="description" content="My Store" />

<link href="http://localhost/upload/image/data/cart.png" rel="icon" />

<link rel="stylesheet" type="text/css" href="stylesheet/stylesheet.css" />

<link rel="stylesheet" type="text/css" href="stylesheet/slideshow.css" media="screen" />

<link rel="stylesheet" type="text/css" href="stylesheet/carousel.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/jquery-1.7.1.min.js">

</script>

<script type="text/javascript" src="javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js">

</script>

97
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<link rel="stylesheet" type="text/css" href="javascript/jquery/ui/themes/ui-lightness/jquery-ui-


1.8.16.custom.css" />

<script type="text/javascript" src="javascript/jquery/ui/external/jquery.cookie.js">

</script>

<script type="text/javascript" src="javascript/jquery/colorbox/jquery.colorbox.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/colorbox/colorbox.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/tabs.js">

</script>

<script type="text/javascript" src="javascript/common.js">

</script>

<script type="text/javascript" src="javascript/jquery/nivo-slider/jquery.nivo.slider.pack.js">

</script>

<script type="text/javascript" src="javascript/jquery/jquery.jcarousel.min.js">

</script>

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie7.css" />

<![endif]-->

<!--[if lt IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie6.css" />

<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js">

</script>

<script type="text/javascript">

98
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

DD_belatedPNG.fix('#logo img');

</script>

<![endif]-->

</head>

<body>

<div id="topline">

</div>

<div id="container">

<?php

include_once("inc/header.php");

?>

<br />

<div id="menu">

<?php

require_once('inc/menu.php');

?>

</div>

<div id="notification">

</div>

<div id="content">

<div class="slideshow">

<div id="slideshow0" class="nivoSlider" style="width: 980px; height: 280px;">

99
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<ahref="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

<ahref="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect2.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

</div>

</div>

<script type="text/javascript">

<!--

$(document).ready(function()

$('#slideshow0').nivoSlider();

);

-->

</script>

<div class="box">

<div class="box-heading">

</div>

<div style=" float:left; width:280px; line-height:25px;; border:0px solid #eeeeee;">

<?php

include_once('inc/left.php');

100
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

?>

</div>

<div class="box-content" style="float:left;">

<div class="box-product">

<?php

if( mysql_num_rows( $resComp1 ) > 0 )

while( $R = mysql_fetch_array( $resComp1 ) )

?>

<li>

<a href="#" style=" font-size:16px;">

<?php

echo ucwords( $R['name'] );

?>

</a>

</li>

<br />

<img src="<?php echo 'companyimages/'.$R['image']; ?>" width="150" align="left" style="padding:5px


10px 10px 0px ;" />

<p align="justify">

<?php echo $R['description']; ?>

101
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</p>

<?php

else

?>

<li>

Sorry! No Company Found.

</li>

<?php

?>

<?php

if($_GET['compid'] != "" )

$appQuery = " where companyid = '".$_GET['compid']."'";

$sqlSelectProd1 = sprintf( "select * from tblproduct".$appQuery );

$resultProd1 = mysql_query( $sqlSelectProd1);

if( mysql_num_rows($resultProd1) > 0 )

while( $R = mysql_fetch_array( $resultProd1 ) )

102
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

?>

<div>

<div align="left" style="margin-left:20px;"><?php if($R['isnew'] == '1' ) echo '<span


style="color:#ff0000;">NEW</span>';

?>

</div>

<br />

<div class="image">

<a href="productdetail.php?id=<?php echo $R['id'];?>">

<img src="productimages/<?php echo $R['image']; ?>" width="80" alt="MacBook" />

</a>

</div>

<div class="name">

<a href="productdetail.php?id=<?php echo $R['id'];?>"><?php echo $R['name']; ?>

</a>

</div>

<div class="price">

<strike>

<?php

echo $R['price'];

?>

</strike>

103
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<span style="color:#FF0000">$ <?php echo $R['siteprice']; ?>

</span>

</div>

<div class="cart"><input type="button" value="Add to Cart" onclick="addToCart('43');" class="button"


/></div>

</div>

<?php

?>

</div>

</div>

</div>

<div style="clear:both">

</div>

<br />

<div id="featured" align="center" style="width:800px; border:0px solid #999999; margin:0px auto;


padding:5px 0px;">

<?php

include_once('inc/featured.php');

?>

</div>

<h1 style="display: none;">Your Store</h1>

<div id="carousel0">

104
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<ul class="jcarousel-skin-opencart">

<li>

<a href="companydetail.php?compid=5">

<img src="companyimages/whirlpool.jpg" alt="whirlpool" title="whirlpool" />

</a>

</li>

<li>

<a href="companydetail.php?compid=4">

<img src="companyimages/videocon.jpg" alt="videocon" title="videocon" />

</a>

</li>

<li>

<a href="companydetail.php?compid=3">

<img src="companyimages/lg.jpg" alt="LG" title="LG" />

</a>

</li>

<li><a href="companydetail.php?compid=2">

<img src="companyimages/samsung.jpg" alt="samsung" title="samsung" />

</a>

</li>

<li><a href="companydetail.php?compid=1">

<img src="companyimages/sony.jpg" alt="Sony" title="Sony" />

</a>

105
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</li>

</ul>

</div>

<script type="text/javascript">

$('#carousel0 ul').jcarousel

vertical: false,

visible: 5,

scroll: 3

);

</script>

</div>

</div>

<div style="clear:both">

</div>

<?php

include_once("inc/footer.php");

?>

</body>

</html>

106
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

categorydetail.php

<?php

require_once('app_code/config.php');

require_once('app_code/db.php');

$sqlSelectCategory1 = sprintf( "select * from tblcategory where status = '1' and id='".$_GET['compid']."'" );

$resCat1 = mysql_query( $sqlSelectCategory1 );

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Your Store</title>

<meta name="description" content="My Store" />

<link href="http://localhost/upload/image/data/cart.png" rel="icon" />

<link rel="stylesheet" type="text/css" href="stylesheet/stylesheet.css" />

<link rel="stylesheet" type="text/css" href="stylesheet/slideshow.css" media="screen" />

<link rel="stylesheet" type="text/css" href="stylesheet/carousel.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/jquery-1.7.1.min.js">

</script>

<script type="text/javascript" src="javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js">

</script>

107
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<link rel="stylesheet" type="text/css" href="javascript/jquery/ui/themes/ui-lightness/jquery-ui-


1.8.16.custom.css" />

<script type="text/javascript" src="javascript/jquery/ui/external/jquery.cookie.js">

</script>

<script type="text/javascript" src="javascript/jquery/colorbox/jquery.colorbox.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/colorbox/colorbox.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/tabs.js">

</script>

<script type="text/javascript" src="javascript/common.js">

</script>

<script type="text/javascript" src="javascript/jquery/nivo-slider/jquery.nivo.slider.pack.js">

</script>

<script type="text/javascript" src="javascript/jquery/jquery.jcarousel.min.js">

</script>

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie7.css" />

<![endif]-->

<!--[if lt IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie6.css" />

<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js">

</script>

<script type="text/javascript">

108
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

DD_belatedPNG.fix('#logo img');

</script>

<![endif]-->

</head>

<body>

<div id="topline">

</div>

<div id="container">

<?php

include_once("inc/header.php");

?>

<br />

<div id="menu">

<?php

require_once('inc/menu.php');

?>

</div>

<div id="notification">

</div>

<div id="content">

<div class="slideshow">

<div id="slideshow0" class="nivoSlider" style="width: 980px; height: 280px;">

109
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<ahref="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

<ahref="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect2.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

</div>

</div>

<script type="text/javascript">

<!--

$(document).ready(function()

$('#slideshow0').nivoSlider();

);

-->

</script>

<div class="box">

<div class="box-heading">

</div>

<div style=" float:left; width:280px; line-height:25px;; border:0px solid #eeeeee;">

<?php

include_once('inc/left.php');

110
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

?>

</div>

<div class="box-content" style="float:left;">

<div class="box-product">

<?php

if( mysql_num_rows( $resCat1 ) > 0 )

while( $R = mysql_fetch_array( $resCat1 ) )

?>

<li>

<a href="#" style=" font-size:16px;">

<?php

echo ucwords( $R['name'] );

?>

</a>

</li>

<br />

<img src="<?php echo 'companyimages/'.$R['image']; ?>" width="150" align="left" style="padding:5px


10px 10px 0px ;" />

<p align="justify">

<?php

echo $R['description'];

111
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

?>

</p>

<?php

else

?>

<li>

Sorry! No Company Found.

</li>

<?php

?>

<?php

if($_GET['catid'] != "" )

$appQuery = " where categoryid = '".$_GET['catid']."'";

$sqlSelectProd1 = sprintf( "select * from tblproduct".$appQuery );

$resultProd1 = mysql_query( $sqlSelectProd1);

if( mysql_num_rows($resultProd1) > 0 )

112
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

while( $R = mysql_fetch_array( $resultProd1 ) )

?>

<div>

<div align="left" style="margin-left:20px;">

<?php

if($R['isnew'] == '1' ) echo '<span style="color:#ff0000;">NEW

</span>';

?>

</div>

<br />

<div class="image">

<a href="productdetail.php?id=<?php echo $R['id'];?>">

<img src="productimages/<?php echo $R['image']; ?>" width="80" alt="MacBook" />

</a>

</div>

<div class="name">

<a href="productdetail.php?id=<?php echo $R['id'];?>">

<?php

echo $R['name'];

?>

</a>

</div>

113
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<div class="price">

<strike>

<?php

echo $R['price'];

?>

</strike>

<span style="color:#FF0000">$ <?php echo $R['siteprice'];

?>

</span>

</div>

<div class="cart">

<input type="button" value="Add to Cart" onclick="addToCart('43');" class="button" />

</div>

</div>

<?php

?>

</div>

</div>

</div>

<div style="clear:both">

</div>

114
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<br />

<div id="featured" align="center" style="width:800px; border:0px solid #999999; margin:0px auto;


padding:5px 0px;">

<?php i

nclude_once('inc/featured.php');

?>

</div>

<h1 style="display: none;">Your Store</h1>

<div id="carousel0">

<ul class="jcarousel-skin-opencart">

<li>

<a href="companydetail.php?compid=5">

<img src="companyimages/whirlpool.jpg" alt="whirlpool" title="whirlpool" />

</a>

</li>

<li>

<a href="companydetail.php?compid=4">

<img src="companyimages/videocon.jpg" alt="videocon" title="videocon" />

</a>

</li>

<li>

<a href="companydetail.php?compid=3">

<img src="companyimages/lg.jpg" alt="LG" title="LG" />

115
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</a>

</li>

<li>

<a href="companydetail.php?compid=2">

<img src="companyimages/samsung.jpg" alt="samsung" title="samsung" />

</a>

</li>

<li>

<a href="companydetail.php?compid=1">

<img src="companyimages/sony.jpg" alt="Sony" title="Sony" />

</a>

</li>

</ul>

</div>

<script type="text/javascript">

$('#carousel0 ul').jcarousel

vertical: false,

visible: 5,

scroll: 3});

</script>

116
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</div>

</div>

<div style="clear:both">

</div>

<?php

include_once("inc/footer.php");

?>

</body>

</html>

117
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Productdetail.php

<?php

require_once('app_code/config.php');

require_once('app_code/db.php');

$SqlSelectProdDetail = sprintf( "select t1.*, t2.name as companyname from tblproduct as t1, tblcompany
as t2 where t1.id='".$_GET['id']."' and t2.id = t1.companyid" );

$resProdDetail = mysql_query( $SqlSelectProdDetail );

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Your Store</title>

<meta name="description" content="My Store" />

<link href="http://localhost/upload/image/data/cart.png" rel="icon" />

<link rel="stylesheet" type="text/css" href="stylesheet/stylesheet.css" />

<link rel="stylesheet" type="text/css" href="stylesheet/slideshow.css" media="screen" />

<link rel="stylesheet" type="text/css" href="stylesheet/carousel.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/jquery-1.7.1.min.js">

</script>

<script type="text/javascript" src="javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js">

</script>

118
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<link rel="stylesheet" type="text/css" href="javascript/jquery/ui/themes/ui-lightness/jquery-ui-


1.8.16.custom.css" />

<script type="text/javascript" src="javascript/jquery/ui/external/jquery.cookie.js">

</script>

<script type="text/javascript" src="javascript/jquery/colorbox/jquery.colorbox.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/colorbox/colorbox.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/tabs.js">

</script>

<script type="text/javascript" src="javascript/common.js">

</script>

<script type="text/javascript" src="javascript/jquery/nivo-slider/jquery.nivo.slider.pack.js">

</script>

<script type="text/javascript" src="javascript/jquery/jquery.jcarousel.min.js">

</script>

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie7.css" />

<![endif]-->

<!--[if lt IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie6.css" />

<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js">

</script>

<script type="text/javascript">

119
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

DD_belatedPNG.fix('#logo img');

</script>

<![endif]-->

</head>

<body>

<div id="topline">

</div>

<div id="container">

<?php

include_once("inc/header.php");

?>

<br />

<div id="menu">

<?php

require_once('inc/menu.php');

?>

</div>

<div id="notification">

</div>

<div id="content">

<div class="slideshow">

<div id="slideshow0" class="nivoSlider" style="width: 980px; height: 280px;">

<ahref="index.php?route=product/product&amp;path=57&amp;product_id=49">

120
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<img src="sliderimages/elect.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

<ahref="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect2.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

</div>

</div>

<script type="text/javascript">

<!--

$(document).ready(function()

$('#slideshow0').nivoSlider();

);

--></script>

<div class="box">

<div class="box-heading"></div>

<div style=" float:left; width:280px; line-height:25px;; border:0px solid #eeeeee;">

<?php

include_once('inc/left.php');

?>

</div>

<div class="box-content" style="float:left;">

121
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<div class="box-product">

<?php

if( mysql_num_rows($resProdDetail) > 0 )

while( $R = mysql_fetch_array( $resProdDetail ) )

?>

<center>

<div align="center" style="text-align:left">

<div align="left" style="font-size:18px;" >

<?php if($R['isnew'] == '1' ) echo '<span style="color:#ff0000;">NEW</span>'; ?>

</div>

<div class="image">

<a href="productdetail.php?id=<?php echo $R['id'];?>">

<img src="productimages/<?php echo $R['image']; ?>" width="300" alt="MacBook" />

</a>

</div>

<div class="name" >

<br />

<a style="font-size:16px" href="productdetail.php?id=<?php echo $R['id'];?>">

<span style="color:#a5cc52;">

<?php

echo ucwords($R['name']);

122
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

?>

</span>

</a>

</div>

<div class="price">

<strike>

<?php

echo $R['price'];

?>

</strike>

<span style="color:#FF0000">$ <?php

echo $R['siteprice'];

?>

</span>

</div>

<div class="name" >

<a style="font-size:16px" href="productdetail.php?id=<?php echo $R['id'];?>">

<?php

echo ucwords($R['companyname']);

?>

</a>

</div>

<p align="justify">

123
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<?php

echo $R['description'];

?>

</p>

<div class="cart">

<input type="button" value="Add to Cart" onclick="addToCart('43');" class="button" />

</div>

</div>

</center>

<?php

else

echo '<div align="center">Sorry! No Record Found.

</div>';

?>

</div>

</div>

</div>

<div style="clear:both">

</div>

124
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<br />

<div id="featured" align="center" style="width:800px; border:0px solid #999999; margin:0px auto;


padding:5px 0px;">

<?php

include_once('inc/featured.php');

?>

</div>

<div style="clear:both">

</div>

<h1 style="display: none;">Your Store</h1>

<div id="carousel0">

<ul class="jcarousel-skin-opencart">

<li><a href="companydetail.php?compid=5">

<img src="companyimages/whirlpool.jpg" alt="whirlpool" title="whirlpool" />

</a>

</li>

<li>

<a href="companydetail.php?compid=4">

<img src="companyimages/videocon.jpg" alt="videocon" title="videocon" />

</a>

</li>

<li>

<a href="companydetail.php?compid=3">

125
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<img src="companyimages/lg.jpg" alt="LG" title="LG" />

</a>

</li>

<li><a href="companydetail.php?compid=2">

<img src="companyimages/samsung.jpg" alt="samsung" title="samsung" />

</a>

</li>

<li>

<a href="companydetail.php?compid=1">

<img src="companyimages/sony.jpg" alt="Sony" title="Sony" />

</a>

</li>

</ul>

</div>

<script type="text/javascript">

<!--

$('#carousel0 ul').jcarouse

vertical: false,

visible: 5,

scroll: 3

126
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

);

//-->

</script>

</div>

</div>

<div id="footer">

<div id="info">

<div class="column">

<h3>Information</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=information/information&amp;information_id=4">
About Us

</a>

</li>

<li>

<ahref="http://localhost/upload/index.php?route=information/information&amp;information_id=3">

Privacy Policy

</a>

</li>

<li>

<ahref="http://localhost/upload/index.php?route=information/information&amp;information_id=5">

Terms &amp; Conditions

127
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</a>

</li>

</ul>

</div>

<div class="column">

<h3>Customer Service</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=information/contact">Contact Us

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=information/sitemap">Site Map

</a>

</li>

</ul>

</div>

<div class="column">

<h3>My Account</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=account/account">My Account

</a>

128
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/order">Order History

</a>

</li>

</ul>

</div>

<div class="column">

<h3>Products</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=account/account">

Tablets

</a>

</li>

<li>

<ahref="http://localhost/upload/index.php?route=account/order">

Laptops &amp; NoteBooks

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/wishlist">Mobiles

</a>

129
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/newsletter">

Home Theatre

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/newsletter">Washing Machines

</a>

</li>

</ul>

</div>

<!-- OpenCart is open source software and you are free to remove the powered by OpenCart if you want,
but its generally accepted practise to make a small donation.

Please donate via PayPal to donate@opencart.com //-->

<div id="powered">Developed By

<a href="http://www.opencart.com">Jasdeep Kaur

</a>

<br />

electro shoppe &copy; 2012 – 2013

</div>

<!-- OpenCart is open source software and you are free to remove the powered by OpenCart if you want,
but its generally accepted practise to make a small donation.

Please donate via PayPal to donate@opencart.com//-->

130
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</div>

</div>

<div style="clear:both">

</div>

<?php include_once("inc/footer.php"); ?>

</body>

</html>

131
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Search.php

<?php

session_start();

require_once('app_code/config.php');

require_once('app_code/db.php');

if ($_GET ['cartid']!= "")

require_once('app_code/sessioncheck.php');

$sqlCheckExist = "select id from tblcart where uid='".$_SESSION[checkid]."' and pid='".$_GET[cartid]."'";

$rs = mysql_query( $sqlCheckExist );

if(mysql_num_rows($rs) <= '0' )

$sqlcart ="insert into tblcart(uid,pid,qnty) values('$_SESSION[checkid]','$_GET[cartid]','1')";

mysql_query($sqlcart);

header("location:mycart.php");

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Your Store</title>

132
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<meta name="description" content="My Store" />

<link href="http://localhost/upload/image/data/cart.png" rel="icon" />

<link rel="stylesheet" type="text/css" href="stylesheet/stylesheet.css" />

<link rel="stylesheet" type="text/css" href="stylesheet/slideshow.css" media="screen" />

<link rel="stylesheet" type="text/css" href="stylesheet/carousel.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/jquery-1.7.1.min.js">

</script>

<script type="text/javascript" src="javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/ui/themes/ui-lightness/jquery-ui-


1.8.16.custom.css" />

<script type="text/javascript" src="javascript/jquery/ui/external/jquery.cookie.js">

</script>

<script type="text/javascript" src="javascript/jquery/colorbox/jquery.colorbox.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/colorbox/colorbox.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/tabs.js">

</script>

<script type="text/javascript" src="javascript/common.js">

</script>

<script type="text/javascript" src="javascript/jquery/nivo-slider/jquery.nivo.slider.pack.js">

</script>

<script type="text/javascript" src="javascript/jquery/jquery.jcarousel.min.js">

133
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</script>

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie7.css" />

<![endif]-->

<!--[if lt IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie6.css" />

<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js">

</script>

<script type="text/javascript">

DD_belatedPNG.fix('#logo img');

</script>

<![endif]-->

</head>

<body>

<div id="topline">

</div>

<div id="container">

<?php

include_once("inc/header.php");

?>

<br />

<div id="menu">

<?

134
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

php require_once('inc/menu.php');

?>

</div>

<div id="notification">

</div>

<div id="content">

<div class="slideshow">

<div id="slideshow0" class="nivoSlider" style="width: 980px; height: 280px;">

<ahref="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

<ahref="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect2.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

</div>

</div>

<script type="text/javascript">

<!--

$(document).ready(function()

$('#slideshow0').nivoSlider();

);

135
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

--></script>

<div class="box">

<div class="box-heading"></div>

<div style=" float:left; width:280px; line-height:25px;; border:0px solid #eeeeee;">

<?php

include_once('inc/left.php');

?>

</div>

<div class="box-content" style="float:left;">

<div class="box-product">

<?php

$check = false;

if($_GET['catid'] != "" )

$check = true;

$appQuery = " where category = '".$_GET['catid']."'";

if($_GET['filter_name'] != "" )

if($check == true )

$appQuery .= " and name like '%".$_GET['filter_name']."%'";

136
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

else

$appQuery .= " where name like '%".$_GET['filter_name']."%'";

$sqlSelectProd = "select * from tblproduct".$appQuery ;

$resultProd = mysql_query( $sqlSelectProd );

if( mysql_num_rows($resultProd) > 0 )

while( $R = mysql_fetch_array( $resultProd ) )

?>

<div>

<div align="left" style="margin-left:20px;">

<?php

if($R['isnew'] == '1' ) echo '<span style="color:#ff0000;">NEW</span>';

?>

</div>

<br />

<div class="image">

<a href="productdetail.php?id=<?php echo $R['id'];?>">

<img src="productimages/<?php echo $R['image']; ?>" width="80" alt="MacBook" />

</a>

137
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</div>

<div class="name">

<a href="productdetail.php?id=<?php echo $R['id'];?>">

<?php

echo $R['name'];

?>

</a>

</div>

<div class="price">

<strike>

<?php

echo $R['price'];

?>

</strike>

<span style="color:#FF0000">$

<?

php echo $R['siteprice'];

?>

</span>

</div>

<div class="cart"><input type="button" value="Add to Cart"


onclick="window.location='index.php?cartid=<?php echo $R['id']; ?>';" class="button" />

</div>

138
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</div>

<?php

else

echo '<div align="center">Sorry! No Record Found.</div>';

?>

</div>

</div>

</div>

<div style="clear:both">

</div>

<br />

<div id="featured" align="center" style="width:800px; border:0px solid #999999; margin:0px auto;


padding:5px 0px;">

<?php

include_once('inc/featured.php');

?>

</div>

<h1 style="display: none;">Your Store</h1>

<div id="carousel0">

139
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<ul class="jcarousel-skin-opencart">

<li>

<a href="companydetail.php?compid=5">

<img src="companyimages/whirlpool.jpg" alt="whirlpool" title="whirlpool" />

</a>

</li>

<li>

<a href="companydetail.php?compid=4">

<img src="companyimages/videocon.jpg" alt="videocon" title="videocon" />

</a>

</li>

<li><a href="companydetail.php?compid=3">

<img src="companyimages/lg.jpg" alt="LG" title="LG" />

</a>

</li>

<li>

<a href="companydetail.php?compid=2">

<img src="companyimages/samsung.jpg" alt="samsung" title="samsung" />

</a>

</li>

<li>

<a href="companydetail.php?compid=1">

<img src="companyimages/sony.jpg" alt="Sony" title="Sony" />

140
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</a>

</li>

</ul>

</div>

<script type="text/javascript">

<!--

$('#carousel0 ul').jcarousel

vertical: false,

visible: 5,

scroll: 3

);

//--></script>

</div>

</div>

<div id="footer">

<div id="info">

<div class="column">

<h3>Information</h3>

<ul>

<li>

141
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<a href="http://localhost/upload/index.php?route=information/information&amp;information_id=4">
About Us

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=information/information&amp;information_id=3">

Privacy Policy

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=information/information&amp;information_id=5">Terms
&amp; Conditions

</a>

</li>

</ul>

</div>

<div class="column">

<h3>Customer Service</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=information/contact">Contact Us

</a>

</li>

<li>

142
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<a href="http://localhost/upload/index.php?route=information/sitemap">Site Map

</a>

</li>

</ul>

</div>

<div class="column">

<h3>My Account</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=account/account">My Account

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/order">Order History

</a>

</li>

</ul>

</div>

<div class="column">

<h3>Products</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=account/account">Mobiles

143
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/order">Laptop

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/wishlist">Washing Machine

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/newsletter">LCD / LED

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/newsletter">Microwave

</a

</li>

</ul>

</div>

<!--

OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but
its generally accepted practise to make a small donation.

144
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Please donate via PayPal to donate@opencart.com

//-->

<div id="powered">Developed By <a href="http://www.opencart.com">Jasdeep Kaur and Rajat


Arora</a><br /> electro shoppe &copy; 2012 – 2013

</div>

<!--

OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but
its generally accepted practise to make a small donation.

Please donate via PayPal to donate@opencart.com

//-->

</div>

</div>

<div style="clear:both">

</div>

<?php

include_once("inc/footer.php");

?>

</body>

</html>

145
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Contact us.php

<?php

require_once('app_code/config.php');

require_once('app_code/db.php');

$msg="";

$msg = '';

if(isset($_POST['submit']))

$myemail = 'yourname@website.com';//<-----Put Your email address here.

if(empty($_POST['name']) ||

empty($_POST['email']) ||

empty($_POST['message']))

$msg .= "\n Error: all fields are required";

if($msg == '')

$name = $_POST['name'];

$email_address = $_POST['email'];

$message = $_POST['message'];

if (!preg_match(

"/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/i",

146
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

$email_address)

$msg .= "\n Error: Invalid email address";

if( $msg == '')

$to = $myemail;

$email_subject = "Contact form submission: $name";

$email_body = "You have received a new message. ".

" Here are the details:\n Name: $name \n ".

"Email: $email_address\n Message \n $message";

$headers = "From: $myemail\n";

$headers .= "Reply-To: $email_address";

mail($to,$email_subject,$email_body,$headers);

//redirect to the 'thank you' page

header('Location: contact-form-thank-you.html');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

147
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Your Store</title>

<meta name="description" content="My Store" />

<link href="http://localhost/upload/image/data/cart.png" rel="icon" />

<link rel="stylesheet" type="text/css" href="stylesheet/stylesheet.css" />

<link rel="stylesheet" type="text/css" href="stylesheet/slideshow.css" media="screen" />

<link rel="stylesheet" type="text/css" href="stylesheet/carousel.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/jquery-1.7.1.min.js">

</script>

<script type="text/javascript" src="javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/ui/themes/ui-lightness/jquery-ui-


1.8.16.custom.css" />

<script type="text/javascript" src="javascript/jquery/ui/external/jquery.cookie.js">

</script>

<script type="text/javascript" src="javascript/jquery/colorbox/jquery.colorbox.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/colorbox/colorbox.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/tabs.js">

</script>

<script type="text/javascript" src="javascript/common.js">

.</script>

148
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<script type="text/javascript" src="javascript/jquery/nivo-slider/jquery.nivo.slider.pack.js">

</script>

<script type="text/javascript" src="javascript/jquery/jquery.jcarousel.min.js">

</script>

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie7.css" />

<![endif]-->

<!--[if lt IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie6.css" />

<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js"></script>

<script type="text/javascript">

DD_belatedPNG.fix('#logo img');

</script>

<![endif]-->

</head>

<body>

<div id="topline">

</div>

<div id="container">

<?php

include_once("inc/header.php");

?>

<br />

149
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<div id="menu">

<?php

require_once('inc/menu.php');

?>

</div>

<div id="notification">

</div>

<div id="content">

<div class="slideshow">

<div id="slideshow0" class="nivoSlider" style="width: 980px; height: 280px;">

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect2.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

</div>

</div>

<script type="text/javascript">

<!--

$(document).ready(function()

$('#slideshow0').nivoSlider();

150
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

);

--></script>

<div class="box">

<div class="box-heading">

</div>

<div style=" float:left; width:280px; line-height:25px;; border:0px solid #eeeeee;">

<?php

include_once('inc/left.php');

?>

</div>

<div class="box-content" style="float:left;">

<div class="box-product">

<div align="center">

</<br />

<div style="clear:both">

</div>

<!--=========================TEXT HERE============================-->

<br />

<div align="left">

<h2 align="left">Electro Shoppe</h2>

<address>

Goodwill Complex,

151
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<br />

Ludhiana Punjab 141 001

<br />

INDIA

</address>

<br />

</div>

<hr width="600" />

<div align="left" style="margin-bottom:10px; color:#FF0000;">

<?php

if(strlen($msg) > '0') echo $msg;

?>

</div>

<br />

<form method="post" name="contact_form"

action="">

<table width="400">

<tr>

<td align="left"> Your Name:

</td>

<td align="left">

<input type="text" name="name">

</td>

152
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</tr>

<tr><td align="left"> Email Address:

</td>

<td align="left">

<input type="text" name="email">

</td>

</tr>

<tr>

<td align="left"> Message:

</td>

<td align="left">

<textarea name="message">

</textarea>

</td>

</tr>

<tr>

<td align="left">&nbsp;

</td>

<td align="left">

<input type="submit" value="Submit" name="submit">

</td>

</tr>

</table>

153
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</form>

<!--=========================TEXT ENDS HERE========================-->

</div>

</div>

</div>

</div>

<div style="clear:both">

</div>

<br />

<div id="featured" align="left" style="width:800px; border:0px solid #999999; margin:0px auto;


padding:5px 0px;">

<?php

include_once('inc/featured.php');

?>

</div>

<div style="clear:both">

</div>

<h1 style="display: none;">Your Store</h1>

<div id="carousel0">

<ul class="jcarousel-skin-opencart">

<li><a href="companydetail.php?compid=5">

<img src="companyimages/whirlpool.jpg" alt="whirlpool" title="whirlpool" />

</a>

154
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</li>

<li>

<a href="companydetail.php?compid=4">

<img src="companyimages/videocon.jpg" alt="videocon" title="videocon" />

</a>

</li>

<li>

<a href="companydetail.php?compid=3">

<img src="companyimages/lg.jpg" alt="LG" title="LG" />

</a>

</li>

<li>

<a href="companydetail.php?compid=2">

<img src="companyimages/samsung.jpg" alt="samsung" title="samsung" />

</a>

</li>

<li>

<a href="companydetail.php?compid=1">

<img src="companyimages/sony.jpg" alt="Sony" title="Sony" />

</a>

</li>

</ul>

</div>

155
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<script type="text/javascript">

<!--

$('#carousel0 ul').jcarousel

vertical: false,

visible: 5,

scroll: 3

);

//</script>

</div>

</div>

<div style="clear:both">

</div>

<?php

include_once("inc/footer.php");

?>

</body>

</html>

156
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Aboutus.php

<?php

require_once('app_code/config.php');

require_once('app_code/db.php');

$msg="";

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Your Store</title>

<meta name="description" content="My Store" />

<link href="http://localhost/upload/image/data/cart.png" rel="icon" />

<link rel="stylesheet" type="text/css" href="stylesheet/stylesheet.css" />

<link rel="stylesheet" type="text/css" href="stylesheet/slideshow.css" media="screen" />

<link rel="stylesheet" type="text/css" href="stylesheet/carousel.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/jquery-1.7.1.min.js">

</script>

<script type="text/javascript" src="javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/ui/themes/ui-lightness/jquery-ui-


1.8.16.custom.css" />

157
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<script type="text/javascript" src="javascript/jquery/ui/external/jquery.cookie.js">

</script>

<script type="text/javascript" src="javascript/jquery/colorbox/jquery.colorbox.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/colorbox/colorbox.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/tabs.js">

</script>

<script type="text/javascript" src="javascript/common.js">

</script>

<script type="text/javascript" src="javascript/jquery/nivo-slider/jquery.nivo.slider.pack.js">

</script>

<script type="text/javascript" src="javascript/jquery/jquery.jcarousel.min.js">

</script>

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie7.css" />

<![endif]-->

<!--[if lt IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie6.css" />

<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js">

</script>

<script type="text/javascript">

DD_belatedPNG.fix('#logo img');

</script>

158
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<![endif]-->

</head>

<body>

<div id="topline">

</div>

<div id="container">

<?php

include_once("inc/header.php");

?>

<br />

<div id="menu">

<?php

require_once('inc/menu.php');

?>

</div>

<div id="notification">

</div>

<div id="content"><div class="slideshow">

<div id="slideshow0" class="nivoSlider" style="width: 980px; height: 280px;">

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

159
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect2.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

</div>

</div>

<script type="text/javascript">

<!--

$(document).ready(function()

$('#slideshow0').nivoSlider();

);

--></script>

<div class="box">

<div class="box-heading">

</div>

<div style=" float:left; width:280px; line-height:25px;; border:0px solid #eeeeee;">

<?php

include_once('inc/left.php');

?>

</div>

<div class="box-content" style="float:left;">

<div class="box-product" style="border:0px #006633 solid">

160
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<div align="center">

<div align="left" style="margin-bottom:10px; color:#FF0000;">

<?php

if(strlen($msg) > '0') echo $msg;

?>

</div>

<br />

<div style="clear:both"></div>

<!--=========================TEXT HERE============================-->

<div align="center">

</div>

<div style="width:450px">

<h2 align="left">About Us</h2>

<p align="justify">

Now a day’s electronic items are more demand in market because they reduces the huge time of
peoples. We listen that people do their work manually and waste their time so much. For example –
people wash their clothes with hands; prepare masala for vegetables by their hands. It takes to much
time. For reducing these times we come to know about electronic system which reduces the time of
people. That means some companies made electronic products to help peoples. For example washing
machine, juicer, mixer grinder, chopper etc.

In this project includes overview of electro shoppe thereby consisting of electronic products like mobiles,
LCD/LED, AC, Tablets, washing machine, etc by the different companies like Samsung, LG, Philps,
Apple, Sony etc. <br />

Electro shoppe is a website where every thing is provide for people. in this web site people can buy their
products . Very well renowned companies were introducing their products in this website. It is easy way to
find the latest products available in the market.

161
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</p>

</div>

<!--=========================TEXT ENDS HERE========================-->

</div>

</div>

</div>

</div>

<div style="clear:both">

</div>

<br />

<div id="featured" align="center" style="width:800px; border:0px solid #999999; margin:0px auto;


padding:5px 0px;">

<?php

include_once('inc/featured.php');

?>

</div>

<div style="clear:both">

</div>

<h1 style="display: none;">Your Store</h1>

<div id="carousel0">

<ul class="jcarousel-skin-opencart">

<li><a href="companydetail.php?compid=5">

<img src="companyimages/whirlpool.jpg" alt="whirlpool" title="whirlpool" />

162
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</a>

</li>

<li><a href="companydetail.php?compid=4">

<img src="companyimages/videocon.jpg" alt="videocon" title="videocon" />

</a>

</li>

<li>

<a href="companydetail.php?compid=3">

<img src="companyimages/lg.jpg" alt="LG" title="LG" />

</a>

</li>

<li>

<a href="companydetail.php?compid=2">

<img src="companyimages/samsung.jpg" alt="samsung" title="samsung" />

</a>

</li>

<li><a href="companydetail.php?compid=1">

<img src="companyimages/sony.jpg" alt="Sony" title="Sony" />

</a>

</li>

</ul>

</div>

163
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<script type="text/javascript">

<!--

$('#carousel0 ul').jcarousel

vertical: false,

visible: 5,

scroll: 3

);

//-->

</script>

</div>

</div>

<div style="clear:both">

</div>

<?php

include_once("inc/footer.php");

?>

</body>

</html>

164
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Thankyou.php

<?php

require_once('app_code/sessioncheck.php');

require_once('app_code/config.php');

require_once('app_code/db.php');

$msg="";

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Your Store</title>

<meta name="description" content="My Store" />

<link href="http://localhost/upload/image/data/cart.png" rel="icon" />

<link rel="stylesheet" type="text/css" href="stylesheet/stylesheet.css" />

<link rel="stylesheet" type="text/css" href="stylesheet/slideshow.css" media="screen" />

<link rel="stylesheet" type="text/css" href="stylesheet/carousel.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/jquery-1.7.1.min.js">

</script>

<script type="text/javascript" src="javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/ui/themes/ui-lightness/jquery-ui-


1.8.16.custom.css" />

165
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<script type="text/javascript" src="javascript/jquery/ui/external/jquery.cookie.js">

</script>

<script type="text/javascript" src="javascript/jquery/colorbox/jquery.colorbox.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/colorbox/colorbox.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/tabs.js">

</script>

<script type="text/javascript" src="javascript/common.js">

</script>

<script type="text/javascript" src="javascript/jquery/nivo-slider/jquery.nivo.slider.pack.js">

</script>

<script type="text/javascript" src="javascript/jquery/jquery.jcarousel.min.js"></script>

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie7.css" />

<![endif]-->

<!--[if lt IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie6.css" />

<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js">

</script>

<script type="text/javascript">

DD_belatedPNG.fix('#logo img');

</script>

<![endif]-->

166
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</head>

<body>

<div id="topline">

</div>

<div id="container">

<?php

include_once("inc/header.php");

?>

<br />

<div id="menu">

<?php

require_once('inc/menu.php');

?>

</div>

<div id="notification">

</div>

<div id="content"><div class="slideshow">

<div id="slideshow0" class="nivoSlider" style="width: 980px; height: 280px;">

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

167
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<img src="sliderimages/elect2.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

</div>

</div>

<script type="text/javascript">

<!--

$(document).ready(function()

$('#slideshow0').nivoSlider();

);

--></script>

<div class="box">

<div class="box-heading">

</div>

<div style=" float:left; width:280px; line-height:25px;; border:0px solid #eeeeee;">

<?php

include_once('inc/left.php');

?>

</div>

<div class="box-content" style="float:left;">

<div class="box-product">

<div align="center">

168
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<div align="left" style="margin-bottom:10px; color:#FF0000;">

<?php

if(strlen($msg) > '0') echo $msg;

?>

</div>

</<br />

<div style="clear:both">

</div>

<h2 align="center" style="color:#009933;">Thank you for Submit an Order.</h2>

</div>

</div>

</div>

</div>

<div style="clear:both">

</div>

<br />

<div id="featured" align="center" style="width:800px; border:0px solid #999999; margin:0px auto;


padding:5px 0px;">

<?php

include_once('inc/featured.php');

?>

</div>

<div style="clear:both">

169
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</div>

<h1 style="display: none;">Your Store</h1>

<div id="carousel0">

</div>

<script type="text/javascript">

<!--

$('#carousel0 ul').jcarousel

vertical: false,

visible: 5,

scroll: 3

);

//--></script>.

</div>

</div>

<div id="footer">

<div id="info">

<div class="column">

<h3>Information</h3>

<ul>

170
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<li>

<ahref="http://localhost/upload/index.php?route=information/information&amp;information_id=4">About
Us

</a>

</li>

<li>

<ahref="http://localhost/upload/index.php?route=information/information&amp;information_id=3">

Privacy Policy

</a>

</li>

<li>

<ahref="http://localhost/upload/index.php?route=information/information&amp;information_id=5">

Terms &amp; Conditions

</a>

</li>

</ul>

</div>

<div class="column">

<h3>Customer Service</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=information/contact">Contact Us

</a>

171
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</li>

<li>

<a href="http://localhost/upload/index.php?route=information/sitemap">Site Map

</a>

</li>

</ul>

</div>

<div class="column">

<h3>My Account</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=account/account">My Account

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/order">Order History

</a>

</li>

</ul>

</div>

<div class="column">

<h3>Products</h3>

<ul>

172
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<li>

<a href="http://localhost/upload/index.php?route=account/account">Tablets

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/order">Laptops &amp; NoteBooks

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/wishlist">Mobiles

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/newsletter">Home Theatre

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/newsletter">Washing Machines

</a>

</li>

</ul>

</div>

173
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<!-- OpenCart is open source software and you are free to remove the powered by OpenCart if you want,
but its generally accepted practise to make a small donation.

Please donate via PayPal to donate@opencart.com //-->

<div id="powered">Developed By <a href="http://www.opencart.com">Jasdeep Kaur</a><br /> electro


shoppe &copy; 2012 - 2013</div>

<!--

OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but
its generally accepted practise to make a small donation.

Please donate via PayPal to donate@opencart.com//-->

</div>

</div>

<div style="clear:both">

</div>

<?php

include_once("inc/footer.php");

?>

</body>

</html>

174
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Userregistration.php

<?php

require_once('app_code/config.php');

require_once('app_code/db.php');

$msg="";

if( isset($_POST['submitbtn']) )

$msg=check();

if( $msg == '1' )

$dob = date("Y-m-d",mktime(0,0,0,$_POST['month'],$_POST['day'], $_POST['year']));

$sqlInsert = sprintf(" insert into tblusers ( firstname, lastname, username, gender, dob, address, city,
stateid, email, phone, date, status, password )

values('%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s', '%s' ) ",

strtolower(trim($_POST['firstname'])),

strtolower(trim($_POST['lastname'])),

strtolower(trim($_POST['username'])),

strtolower(trim($_POST['gender'])),

$dob,

trim($_POST['address']),

trim($_POST['city']),

175
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

trim($_POST['state']),

trim($_POST['email']),

trim($_POST['phone']),

date("Y-m-d"),

'0',

trim($_POST['password'])

);

if(mysql_query($sqlInsert))

$msg = "Successfully Saved";

else

$msg="error in inserty query.";

function check()

$msg="";

if( $_POST['firstname'] == "" )

176
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

$msg = "<li>enter the name</li>";

if($_POST['lastname'] == "" )

$msg .="<li> please enter the lastname </li>";

if( trim($_POST['password']) != "" )

if(trim($_POST['password']) != trim($_POST['repassword']) )

$msg.= "<li>Password and retype password not matched.</li>";

else

$msg .= "<li>Please Enter Password.</li>";

if(strlen($msg) > 5 )

return $msg;

else

177
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

return 1;

$sqlState = "select * from state order by statename asc";

$result = mysql_query($sqlState) or die("Error in query");

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Your Store</title>

<meta name="description" content="My Store" />

<link href="http://localhost/upload/image/data/cart.png" rel="icon" />

<link rel="stylesheet" type="text/css" href="stylesheet/stylesheet.css" />

<link rel="stylesheet" type="text/css" href="stylesheet/slideshow.css" media="screen" />

<link rel="stylesheet" type="text/css" href="stylesheet/carousel.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/jquery-1.7.1.min.js">

</script>

<script type="text/javascript" src="javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/ui/themes/ui-lightness/jquery-ui-


1.8.16.custom.css" />

<script type="text/javascript" src="javascript/jquery/ui/external/jquery.cookie.js">

</script>

178
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<script type="text/javascript" src="javascript/jquery/colorbox/jquery.colorbox.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/colorbox/colorbox.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/tabs.js">

</script>

<script type="text/javascript" src="javascript/common.js">

</script>

<script type="text/javascript" src="javascript/jquery/nivo-slider/jquery.nivo.slider.pack.js">

</script>

<script type="text/javascript" src="javascript/jquery/jquery.jcarousel.min.js">

</script>

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie7.css" />

<![endif]-->

<!--[if lt IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie6.css" />

<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js">

</script>

<script type="text/javascript">

DD_belatedPNG.fix('#logo img');

</script>

<![endif]-->

</head>

179
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<body>

<div id="topline">

</div>

<div id="container">

<?php

include_once("inc/header.php");

?>

<br />

<div id="menu">

<?php

require_once('inc/menu.php');

?>

</div>

<div id="notification">

</div>

<div id="content">

<div class="slideshow">

<div id="slideshow0" class="nivoSlider" style="width: 980px; height: 280px;">

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect2.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

180
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</a>

</div>

</div>

<script type="text/javascript">

<!--

$(document).ready(function()

$('#slideshow0').nivoSlider();

);

--></script>

<div class="box">

<div class="box-heading">

</div>

<div style=" float:left; width:280px; line-height:25px;; border:0px solid #eeeeee;">

<?php

include_once('inc/left.php');

?>

</div>

<div class="box-content" style="float:left;">

<div class="box-product">

<div align="center">

<div align="left" style="margin-bottom:10px; color:#FF0000;">

181
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<?php

if(strlen($msg) > '0') echo $msg;

?>

</div>

</<br />

<div style="clear:both"></div>

<form id="form1" name="form1" method="post" action="">

<br />

<fieldset>

<legend>Registeration Form</legend>

<table width="454" border="0" cellpadding="5" cellspacing="5">

<tr>

<td width="103" align="left" valign="top">first name </td>

<td width="316" align="left" valign="top">

<input type="text" name="firstname" value="" />

</td>

</tr>

<tr>

<td align="left" valign="top">last name

</td>

<td align="left" valign="top">

<input type="text" name="lastname" />

</td>

182
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</tr>

<tr>

<td align="left" valign="top">user name

</td>

<td align="left" valign="top">

<input type="text" name="username" />

</td>

</tr>

<tr>

<td align="left" valign="top">Password

</td>

<td align="left" valign="top">

<input type="password" name="password" />

</td>

</tr>

<tr>

<td align="left" valign="top">Retype-Password

</td>

<td align="left" valign="top">

<input type="password" name="repassword" />

</td>

</tr>

<tr>

183
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<td align="left" valign="top">gender

</td>

<td align="left" valign="top">

<input type="radio" name="gender" value="1" checked="checked" /> Male <input type="radio"


name="gender" value="0" /> Female

</td>

</tr>

<tr>

<td align="left" valign="top">dob

</td>

<td align="left" valign="top">

<select name="day">

<option value="">Day

</option>

<?php for($x=1; $x<=31; $x++)

?>

<option value="<?php echo $x; ?>">

<?php

echo $x;

?>

</option>

<?php

184
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

?>

</select>

&nbsp;&nbsp;

<?php

$mnth=array("1"=>"January","2"=> "February", "3" => "March", "4" => "April", "5"=>"May", "6" => "June",
"7" =>"July", "8" => "August", "9" => "September", "10" => "October", "11" => "November", "12" =>
"December");

?>

<select name="month">

<option value="">Month

</option>

<?php

for( $x=1; $x<=12; $x++)

?>

<option value="<?php echo $x; ?>" >

<?php

echo $mnth[$x];

?>

</option>

<?php

?>

185
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</select>

<select name="year">

<option value="">Year</option>

<?php for($x=1950; $x<=2012; $x++ )

?>

<option value="<?php echo $x; ?>">

<?php

echo $x;

?>

</option>

<?php

?>

</select>

</td>

</tr>

<tr>

<td align="left" valign="top">address

</td>

<td align="left" valign="top">

<textarea name="address" rows="5" cols="30">

</textarea>

186
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</td>

<tr>

<td align="left" valign="top">city

</td>

<td align="left" valign="top">

<input type="text" name="city" value="" />

</td>

</tr>

<tr>

<td align="left" valign="top">State

</td>

<td align="left" valign="top">

<select name="state">

<option value="">Select

</option>

<?php

if( mysql_num_rows($result) > '0' )

while( $row = mysql_fetch_array($result) )

?>

<option value="<?php echo $row['id']; ?>">

<?php

187
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

echo $row['statename'];

?>

</option>

<?php

?>

</select>

</td>

</tr>

<tr>

<td align="left" valign="top">email

</td>

<td align="left" valign="top">

<input type="text" name="email" value="" />

</td>

</tr>

<tr>

<td align="left" valign="top">phoneno.

</td>

<td align="left" valign="top">

<input type="text" name="phone" value="" />

188
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</td>

</tr>

<tr>

<td align="left" valign="top">&nbsp;

</td>

<td align="left" valign="top">

<input type="submit" name="submitbtn" value="Save" />&nbsp;&nbsp;

<input type="reset" name="reset" value="Cancel" />

</td>

</tr>

</table>

</fieldset>

</form>

</div>

</div>

</div>

</div>

<div style="clear:both">

</div>

<br />

<div id="featured" align="center" style="width:800px; border:0px solid #999999; margin:0px auto;


padding:5px 0px;">

<?php

189
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

include_once('inc/featured.php');

?>

</div>

<div style="clear:both">

</div>

<h1 style="display: none;">Your Store</h1>

<div id="carousel0">

<ul class="jcarousel-skin-opencart">

<li>

<a href="companydetail.php?compid=5">

<img src="companyimages/whirlpool.jpg" alt="whirlpool" title="whirlpool" />

</a>

</li>

<li>

<a href="companydetail.php?compid=4">

<img src="companyimages/videocon.jpg" alt="videocon" title="videocon" />

</a>

</li>

<li>

<a href="companydetail.php?compid=3">

<img src="companyimages/lg.jpg" alt="LG" title="LG" />

</a>

</li>

190
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<li>

<a href="companydetail.php?compid=2">

<img src="companyimages/samsung.jpg" alt="samsung" title="samsung" />

</a>

</li>

<li>

<a href="companydetail.php?compid=1">

<img src="companyimages/sony.jpg" alt="Sony" title="Sony" />

</a>

</li>

</ul>

</div>

<script type="text/javascript">

<!--

$('#carousel0 ul').jcarousel

vertical: false,

visible: 5,

scroll: 3

);

//--></script>

191
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</div>

</div>

<div style="clear:both">

</div>

<?php

include_once("inc/footer.php");

?>

</body>

</html>

192
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Userprofile.php

<?php

require_once('app_code/sessioncheck.php');

require_once('app_code/config.php');

require_once('app_code/db.php');

$msg="";

if( isset($_POST['submitbtn']) )

$msg=check();

if( $msg == '1' )

$dob = date("Y-m-d",mktime(0,0,0,$_POST['month'],$_POST['day'], $_POST['year']));

if($_POST['password'] != "" )

$sqlInsert = sprintf(" update tblusers set firstname='%s', lastname='%s', username='%s', gender='%s',


dob='%s', address='%s', city='%s', stateid='%s', email='%s', phone='%s', date='%s', status='%s',
password ='%s'

where id ='".$_SESSION['checkid']."' ",

strtolower(trim($_POST['firstname'])),

strtolower(trim($_POST['lastname'])),

strtolower(trim($_POST['username'])),

strtolower(trim($_POST['gender'])),

$dob,

193
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

trim($_POST['address']),

trim($_POST['city']),

trim($_POST['state']),

trim($_POST['email']),

trim($_POST['phone']),

date("Y-m-d"),

'0',

trim($_POST['newpassword'])

);

else

$sqlInsert = sprintf(" update tblusers set firstname='%s', lastname='%s', username='%s', gender='%s',


dob='%s', address='%s', city='%s', stateid='%s', email='%s', phone='%s', date='%s', status='%s'

where id ='".$_SESSION['checkid']."'

strtolower(trim($_POST['firstname'])),

strtolower(trim($_POST['lastname'])),

strtolower(trim($_POST['username'])),

strtolower(trim($_POST['gender'])),

$dob,

trim($_POST['address']),

trim($_POST['city']),

trim($_POST['state']),

194
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

trim($_POST['email']),

trim($_POST['phone']),

date("Y-m-d"),

'0'

);

if(mysql_query($sqlInsert))

$msg = "Successfully Saved";

else

$msg="error in inserty query.";

function check()

$msg="";

if( $_POST['firstname'] == "" )

$msg = "<li>enter the name</li>";

195
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

if($_POST['lastname'] == "" )

$msg .="<li> please enter the lastname

</li>";

if( trim($_POST['password']) != "" )

$sqlpassword = "select id from tblusers where id='".$_SESSION['checkid']."' and


password='".$_POST['password']."'";

$resPass=mysql_query( $sqlpassword );

if( mysql_num_rows($resPass) > 0 )

if( $_POST['newpassword'] == "" || $_POST['renewpassword'] != $_POST['newpassword'] )

$msg .="<li>Check your New-password and retype password.

</li>";

else

$msg = '<li>Invalid Password</li>';

196
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

if(strlen($msg) > 5 )

return $msg;

else

return 1;

$sqlState = "select * from state order by statename asc";

$result = mysql_query($sqlState) or die("Error in query");

$sqlSelectUserprofile = " select * from tblusers where id ='".$_SESSION['checkid']."'";

$resuser = mysql_query($sqlSelectUserprofile);

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Your Store</title>

<meta name="description" content="My Store" />

<link href="http://localhost/upload/image/data/cart.png" rel="icon" />

<link rel="stylesheet" type="text/css" href="stylesheet/stylesheet.css" />

<link rel="stylesheet" type="text/css" href="stylesheet/slideshow.css" media="screen" />

197
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<link rel="stylesheet" type="text/css" href="stylesheet/carousel.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/jquery-1.7.1.min.js">

</script>

<script type="text/javascript" src="javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/ui/themes/ui-lightness/jquery-ui-


1.8.16.custom.css" />

<script type="text/javascript" src="javascript/jquery/ui/external/jquery.cookie.js">

</script>

<script type="text/javascript" src="javascript/jquery/colorbox/jquery.colorbox.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/colorbox/colorbox.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/tabs.js">

</script>

<script type="text/javascript" src="javascript/common.js">

</script>

<script type="text/javascript" src="javascript/jquery/nivo-slider/jquery.nivo.slider.pack.js">

</script>

<script type="text/javascript" src="javascript/jquery/jquery.jcarousel.min.js">

</script>

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie7.css" />

<![endif]-->

198
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<!--[if lt IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie6.css" />

<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js">

</script>

<script type="text/javascript">

DD_belatedPNG.fix('#logo img');

</script>

<![endif]-->

</head>

<body>

<div id="topline">

</div>

<div id="container">

<?php

include_once("inc/header.php");

?>

<br />

<div id="menu">

<?php

require_once('inc/menu.php');

?>

</div>

<div id="notification">

199
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</div>

<div id="content">

<div class="slideshow">

<div id="slideshow0" class="nivoSlider" style="width: 980px; height: 280px;">

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect2.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

</div>

</div>

<script type="text/javascript">

<!--

$(document).ready(function()

$('#slideshow0').nivoSlider();

);

--></script><div class="box">

<div class="box-heading">

</div>

<div style=" float:left; width:280px; line-height:25px;; border:0px solid #eeeeee;">

200
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<?php

include_once('inc/left.php');

?>

</div>

<div class="box-content" style="float:left;">

<div class="box-product">

<div align="center">

<div align="left" style="margin-bottom:10px; color:#FF0000;">

<?php

if(strlen($msg) > '0') echo $msg;

?>

</div>

</<br />

<div style="clear:both">

</div>

<?php

if(mysql_num_rows( $resuser ) > 0 )

while($R = mysql_fetch_array($resuser ) )

?>

<form id="form1" name="form1" method="post" action="">

<br />

201
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<fieldset>

<legend>Registeration Form

</legend>

<table width="454" border="0" cellpadding="5" cellspacing="5">

<tr>

<td width="103" align="left" valign="top">

first name

</td>

<td width="316" align="left" valign="top">

<input type="text" name="firstname" value="

<?php

echo $R['firstname'];

?>"

/>

</td>

</tr>

<tr>

<td align="left" valign="top">

last name

</td>

<td align="left" valign="top">

<input type="text" name="lastname" value="

<?php

202
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

echo $R['lastname'];

?>"

/>

</td>

</tr>

<tr>

<td align="left" valign="top">

user name

</td>

<td align="left" valign="top">

<input type="text" name="username" value="

<?php

echo $R['username'];

?>"

/>

</td>

</tr>

<tr>

<td align="left" valign="top">

Password

</td>

<td align="left" valign="top">

<input type="password" name="password" />

203
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</td>

</tr>

<tr>

<td align="left" valign="top">

New Password

</td>

<td align="left" valign="top">

<input type="password" name="newpassword" />

</td>

</tr>

<tr>

<td align="left" valign="top">

Retype-Password

</td>

<td align="left" valign="top">

<input type="password" name="renewpassword" />

</td>

</tr>

<tr>

<td align="left" valign="top">

gender

</td>

<td align="left" valign="top">

204
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<input type="radio" name="gender" value="1"

<?php

if($R['gender'] == '1' ) echo 'checked="checked"';

?>

/>

Male

<input type="radio" name="gender" value="0"

<?php

if($R['gender'] == '0' ) echo 'checked="checked"';

?>

/> Female

</td>

</tr>

<tr>

<td align="left" valign="top">dob

</td>

<td align="left" valign="top">

<?php

$arrDate = explode('-',$R['dob']);

$day = $arrDate[2];

$month = $arrDate[1];

$year = $arrDate[0];

?>

205
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<select name="day">

<option value="">Day

</option>

<?php

for($x=1; $x<=31; $x++)

?>

<option value="<?php

echo $x;

?>"

<?php

if( $day == $x ) echo 'selected="selected"';

?>

>

<?php

echo $x;

?>

</option>

<?php

?>

</select>

&nbsp;&nbsp;

206
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<?php

$mnth=array("1"=>"January","2"=> "February", "3" => "March", "4" => "April", "5"=>"May", "6" => "June",
"7" =>"July", "8" => "August", "9" => "September", "10" => "October", "11" => "November", "12" =>
"December");

?>

<select name="month">

<option value="">

Month

</option>

<?php

for( $x=1; $x<=12; $x++)

?>

<option value="<?php

echo $x;

?>"

<?php

if($month == $x) echo 'selected="selected"';

?>

>

<?php

echo $mnth[$x];

?>

</option>

207
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<?php

?>

</select>

<select name="year">

<option value="">Year

</option>

<?php

for($x=1950; $x<=2012; $x++ )

?>

<option value="<?php

echo $x;

?>"

<?php

if($year == $x) echo 'selected="selected"';

?>

>

<?php

echo $x;

?>

</option>

<?php

208
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

?>

</select>

</td>

</tr>

<tr>

<td align="left" valign="top">

address

</td>

<td align="left" valign="top">

<textarea name="address" rows="5" cols="30">

<?php

echo $R['address'];

?>

</textarea>

</td>

</tr>

<tr>

<td align="left" valign="top">city

</td>

<td align="left" valign="top">

<input type="text" name="city" value="

<?php

209
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

echo $R['city']

?>"

/>

</td>

</tr>

<tr>

<td align="left" valign="top">

State

</td>

<td align="left" valign="top">

<select name="state">

<option value="">

Select

</option>

<?php

if( mysql_num_rows($result) > '0' )

while( $row = mysql_fetch_array($result) )

?>

<option value="

<?php

echo $row['id'];

210
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

?>"

<?php

if($R['stateid'] == $row['id']) echo 'selected="selected"';

?>

>

<?php

echo $row['statename'];

?>

</option>

<?php

?>

</select>

</td>

</tr>

<tr>

<td align="left" valign="top">

email

</td>

<td align="left" valign="top">

<input type="text" name="email" value="

211
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<?php

echo $R['email'];

?>"

/>

</td>

</tr>

<tr>

<td align="left" valign="top">

phoneno.

</td>

<td align="left" valign="top">

<input type="text" name="phone" value="

<?php

echo $R['phone'];

?>"

/>

</td>

</tr>

<tr>

<td align="left" valign="top">

&nbsp;

</td>

<td align="left" valign="top">

212
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<input type="submit" name="submitbtn" value="Update" />

&nbsp;&nbsp;

<input type="reset" name="reset" value="Cancel" />

</td>

</tr>

</table>

</fieldset>

</form>

<?php

?>

</div>

</div>

</div>

</div>

<div style="clear:both">

</div>

<br />

<div id="featured" align="center" style="width:800px; border:0px solid #999999; margin:0px auto;


padding:5px 0px;">

<?php

include_once('inc/featured.php');

213
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

?>

</div>

<div style="clear:both">

</div>

<h1 style="display: none;">

Your Store

</h1>

<div id="carousel0">

<ul class="jcarousel-skin-opencart">

<li>

<a href="companydetail.php?compid=5">

<img src="companyimages/whirlpool.jpg" alt="whirlpool" title="whirlpool" />

</a>

</li>

<li>

<a href="companydetail.php?compid=4">

<img src="companyimages/videocon.jpg" alt="videocon" title="videocon" />

</a>

</li>

<li>

<a href="companydetail.php?compid=3">

<img src="companyimages/lg.jpg" alt="LG" title="LG" />

</a>

214
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</li>

<li>

<a href="companydetail.php?compid=2">

<img src="companyimages/samsung.jpg" alt="samsung" title="samsung" />

</a>

</li>

<li>

<a href="companydetail.php?compid=1">

<img src="companyimages/sony.jpg" alt="Sony" title="Sony" />

</a>

</li>

</ul>

</div>

<script type="text/javascript">

<!--

$('#carousel0 ul').jcarousel

vertical: false,

visible: 5,

scroll: 3});

//-->

</script>

215
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</div>

</div>

<div id="footer">

<div id="info">

<div class="column">

<h3>Information</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=information/information&amp;information_id=4">

About Us

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=information/information&amp;information_id=3">

Privacy Policy

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=information/information&amp;information_id=5">

Terms &amp; Conditions

</a>

</li>

</ul>

216
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</div>

<div class="column">

<h3>Customer Service</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=information/contact">

Contact Us

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=information/sitemap">

Site Map

</a>

</li>

</ul>

</div>

<div class="column">

<h3>My Account</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=account/account">

My Account

</a>

217
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/order">

Order History

</a>

</li>

</ul>

</div>

<div class="column">

<h3>Products</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=account/account">

Tablets

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/order">

Laptops &amp; NoteBooks

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/wishlist">

218
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Mobiles

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/newsletter">

Home Theatre

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/newsletter">

Washing Machines

</a>

</li>

</ul>

</div>

<!--

OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but
its generally accepted practise to make a small donation.

Please donate via PayPal to donate@opencart.com

//-->

<div id="powered">

Developed By

<a href="http://www.opencart.com">Jasdeep Kaur</a><br /> electro shoppe &copy; 2012 – 2013

219
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</div>

<!--

OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but
its generally accepted practise to make a small donation.

Please donate via PayPal to donate@opencart.com//-->

</div>

</div>

<div style="clear:both">

</div>

<?php

include_once("inc/footer.php");

?>

</body>

</html>

220
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Mycart.php

<?php

require_once('app_code/sessioncheck.php');

require_once('app_code/config.php');

require_once('app_code/db.php');

$msg="";

if(isset($_POST['submit']))

$sqlUpdateCart = sprintf( "update tblcart set qnty='".$_POST['qnty']."' where id='".$_POST['id']."'" );

mysql_query($sqlUpdateCart);

if ($_GET ['cartid']!= "")

$sqlCheckExist = "select id from tblcart where uid='".$_SESSION[checkid]."' and pid='".$_GET[cartid]."'";

$rs = mysql_query( $sqlCheckExist );

if(mysql_num_rows($rs) <= '0' )

$sqlcart ="insert into tblcart(uid,pid,qnty) values('$_SESSION[checkid]','$_GET[cartid]','1')";

mysql_query($sqlcart);

header("location:mycart.php");

221
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

$sqlSelectCart = "select * from tblcart as t1, tblproduct as t2 where t2.id = t1.pid and
t1.uid='".$_SESSION['checkid']."'";

$result = mysql_query( $sqlSelectCart );

if(!$result)

$msg = "Technical Problem. Please Try again Later.";

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Your Store</title>

<meta name="description" content="My Store" />

<link href="http://localhost/upload/image/data/cart.png" rel="icon" />

<link rel="stylesheet" type="text/css" href="stylesheet/stylesheet.css" />

<link rel="stylesheet" type="text/css" href="stylesheet/slideshow.css" media="screen" />

<link rel="stylesheet" type="text/css" href="stylesheet/carousel.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/jquery-1.7.1.min.js">

</script>

<script type="text/javascript" src="javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/ui/themes/ui-lightness/jquery-ui-


1.8.16.custom.css" />

222
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<script type="text/javascript" src="javascript/jquery/ui/external/jquery.cookie.js">

</script>

<script type="text/javascript" src="javascript/jquery/colorbox/jquery.colorbox.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/colorbox/colorbox.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/tabs.js">

</script>

<script type="text/javascript" src="javascript/common.js">

</script>

<script type="text/javascript" src="javascript/jquery/nivo-slider/jquery.nivo.slider.pack.js">

</script>

<script type="text/javascript" src="javascript/jquery/jquery.jcarousel.min.js">

</script>

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie7.css" />

<![endif]-->

<!--[if lt IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie6.css" />

<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js">

</script>

<script type="text/javascript">

DD_belatedPNG.fix('#logo img');

</script>

223
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<![endif]-->

</head>

<body>

<div id="topline">

</div>

<div id="container">

<?php

include_once("inc/header.php");

?>

<br />

<div id="menu">

<?php

require_once('inc/menu.php');

?>

</div>

<div id="notification">

</div>

<div id="content">

<div class="slideshow">

<div id="slideshow0" class="nivoSlider" style="width: 980px; height: 280px;">

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

224
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</a>

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect2.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

</div>

</div>

<script type="text/javascript">

<!--

$(document).ready(function()

$('#slideshow0').nivoSlider();

);

--></script>

<div class="box">

<div class="box-heading">

</div>

<div style=" float:left; width:280px; line-height:25px;; border:0px solid #eeeeee;">

<?php

include_once('inc/left.php');

?>

</div>

<div class="box-content" style="float:left;">

225
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<div class="box-product">

<div align="center">

<div align="left" style="margin-bottom:10px; color:#FF0000;">

<?php

if(strlen($msg) > '0') echo $msg;

?>

</div>

</<br />

<div style="clear:both">

</div>

<table width="600" cellpadding="6" cellspacing="6">

<tr>

<th>Sr.</th>

<th>Product Name</th>

<th>Price</th>

<th>Qnty.</th>

<th>Total Price</th>

</tr>

<?php

if(mysql_num_rows($result) > 0 )

$x = 0;

while( $R = mysql_fetch_array($result) )

226
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

?>

<form name="update[]" method="post" action="">

<input type="hidden" name="id" value="

<?php

echo $R['id'];

?>"

/>

<tr>

<td>

<?php

echo ++$x;

?>

</td>

<td>

<?php

echo ucwords($R['name']);

?>

</td>

<td>

<?php

echo $R['siteprice'];

?>

227
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</td>

<td>

<input size="4" type="text" name="qnty" value="

<?php

echo $R['qnty'];

?>"

/>

</td>

<td>

<?php

echo $R['siteprice'] * $R['qnty'] ;

?>

</td>

<td>

<input type="submit" name="submit" value="Update" />

</td>

</tr>

</form>

<?php

?>

<tr>

228
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<td colspan="6" align="right">

<a href="checkoutnew.php">

<span style="font-size:16px; color:#009933;">

Checkout

</span>

</a>

</td>

</tr>

<?php

else

?>

<tr>

<td colspan="6" align="center">

There is product in your Cart.

</td>

</tr>

<?php

?>

</table>

</div>

229
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</div>

</div>

<div style="clear:both"></div><br />

<div id="featured" align="center" style="width:800px; border:0px solid #999999; margin:0px auto;


padding:5px 0px;">

<?php’

include_once('inc/featured.php');

?>

</div>

<div style="clear:both">

</div>

<h1 style="display: none;">

Your Store

</h1>

<div id="carousel0">

<ul class="jcarousel-skin-opencart">

<li>

<a href="companydetail.php?compid=5">

<img src="companyimages/whirlpool.jpg" alt="whirlpool" title="whirlpool" />

</a>

</li>

<li>

<a href="companydetail.php?compid=4">

230
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<img src="companyimages/videocon.jpg" alt="videocon" title="videocon" />

</a>

</li>

<li>

<a href="companydetail.php?compid=3">

<img src="companyimages/lg.jpg" alt="LG" title="LG" />

</a>

</li>

<li>

<a href="companydetail.php?compid=2">

<img src="companyimages/samsung.jpg" alt="samsung" title="samsung" />

</a>

</li>

<li>

<a href="companydetail.php?compid=1">

<img src="companyimages/sony.jpg" alt="Sony" title="Sony" />

</a>

</li>

</ul>

</div>

<script type="text/javascript">

<!--

$('#carousel0 ul').jcarousel

231
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

vertical: false,

visible: 5,

scroll: 3

);

//-->

</script>

</div>

</div>

<div id="footer">

<div id="info">

<div class="column">

<h3>Information</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=information/information&amp;information_id=4">

About Us

</a>

</li>

<li>

232
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<a href="http://localhost/upload/index.php?route=information/information&amp;information_id=3">Privacy
Policy

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=information/information&amp;information_id=5">

Terms &amp; Conditions

</a>

</li>

</ul>

</div>

<div class="column">

<h3>Customer Service</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=information/contact">

Contact Us

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=information/sitemap">

Site Map

</a>

233
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</li>

</ul>

</div>

<div class="column">

<h3>My Account</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=account/account">

My Account

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/order">

Order History

</a>

</li>

</ul>

</div>

<div class="column">

<h3>Products</h3>

<ul>

<li>

<a href="http://localhost/upload/index.php?route=account/account">

234
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Tablets

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/order">

Laptops &amp; NoteBooks

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/wishlist">

Mobiles

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/newsletter">

Home Theatre

</a>

</li>

<li>

<a href="http://localhost/upload/index.php?route=account/newsletter">

Washing Machines

</a>

</li>

235
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</ul>

</div>

<!--

OpenCart is open source software and you are free to remove the powered

by OpenCart if you want, but its generally accepted practise to make a small donation.

Please donate via PayPal to donate@opencart.com

//-->

<div id="powered">Developed By

<a href="http://www.opencart.com">

Jasdeep Kaur

</a>

<br /> electro shoppe &copy; 2012 – 2013

</div>

<!--

OpenCart is open source software and you are free to remove the powered by

OpenCart if you want, but its generally accepted practise to make a small donation.

Please donate via PayPal to donate@opencart.com

//-->

</div>

</div>

<div style="clear:both">

</div>

<?php

236
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

include_once("inc/footer.php");

?>

</body>

</html>

237
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Checkoutnew.php

<?php

require_once('app_code/sessioncheck.php');

require_once('app_code/config.php');

require_once('app_code/db.php');

$msg="";

$sqlSelectCart = "select * from tblcart as t1, tblproduct as t2 where t2.id = t1.pid and
t1.uid='".$_SESSION['checkid']."'";

$res = mysql_query( $sqlSelectCart );

if($res)

if(mysql_num_rows($res) > 0 )

$sqlInsertProduct = "insert into tblorder ( masterorderid, pid, qnty ) values ";

$totalprice = 0;

while( $R = mysql_fetch_array($res) )

$totalprice += $R['siteprice'] * $R['qnty'];

$sql = "insert into tblmasterorder (uid, date, ispayment, totalprice , status ) values
('$_SESSION[checkid]','".date("Y-m-d")."','1','$totalprice','1')";

$res1 = mysql_query( $sql );

$insertid = mysql_insert_id();

238
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

while( $R = mysql_fetch_array($res) )

$sqlInsertProduct .= " ( '$insertid','$R[pid]','$R[qnty]' ),";

$sqlInsertProduct = substr( $sqlInsertProduct, 0, -1 );

mysql_query( $sqlInsertProduct );

$sqlDelete = "delete from tblcart where uid='".$_SESSION['checkid']."'";

mysql_query($sqlDelete);

header("location:thankyou.php");

?>

239
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Userorderlist.php

<?php

require_once('app_code/sessioncheck.php');

require_once('app_code/config.php');

require_once('app_code/db.php');

$msg="";

if(isset($_POST['submit']))

$sqlUpdateCart = sprintf( "update tblcart set qnty='".$_POST['qnty']."' where id='".$_POST['id']."'" );

mysql_query($sqlUpdateCart);

if ($_GET ['cartid']!= "")

$sqlCheckExist = "select id from tblcart where uid='".$_SESSION[checkid]."' and pid='".$_GET[cartid]."'";

$rs = mysql_query( $sqlCheckExist );

if(mysql_num_rows($rs) <= '0' )

$sqlcart ="insert into tblcart(uid,pid,qnty) values('$_SESSION[checkid]','$_GET[cartid]','1')";

mysql_query($sqlcart);

header("location:mycart.php");

240
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

$sqlSelectCart = "select * from tblmasterorder as t1 where t1.uid='".$_SESSION['checkid']."'";

$result = mysql_query( $sqlSelectCart );

if($result)

if( mysql_num_rows($result) > '0' )

$arrIds = "";

while( $R = mysql_fetch_array($result) )

$arrIds .= $R['id'].',';

$arrIds = substr($arrIds,0,-1);

$sqlOrder = "select * from tblorder as t1, tblproduct as t2 where t1.masterorderid in (".$arrIds.") and t2.id
= t1.pid ";

$res = mysql_query($sqlOrder);

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

241
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<title>Your Store</title>

<meta name="description" content="My Store" />

<link href="http://localhost/upload/image/data/cart.png" rel="icon" />

<link rel="stylesheet" type="text/css" href="stylesheet/stylesheet.css" />

<link rel="stylesheet" type="text/css" href="stylesheet/slideshow.css" media="screen" />

<link rel="stylesheet" type="text/css" href="stylesheet/carousel.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/jquery-1.7.1.min.js">

</script>

<script type="text/javascript" src="javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/ui/themes/ui-lightness/jquery-ui-


1.8.16.custom.css" />

<script type="text/javascript" src="javascript/jquery/ui/external/jquery.cookie.js">

</script>

<script type="text/javascript" src="javascript/jquery/colorbox/jquery.colorbox.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/colorbox/colorbox.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/tabs.js">

</script>

<script type="text/javascript" src="javascript/common.js">

</script>

<script type="text/javascript" src="javascript/jquery/nivo-slider/jquery.nivo.slider.pack.js">

</script>

242
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<script type="text/javascript" src="javascript/jquery/jquery.jcarousel.min.js">

</script>

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie7.css" />

<![endif]-->

<!--[if lt IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie6.css" />

<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js">

</script>

<script type="text/javascript">

DD_belatedPNG.fix('#logo img');

</script>

<![endif]-->

</head>

<body>

<div id="topline">

</div>

<div id="container">

<?php

include_once("inc/header.php");

?>

<br />

<div id="menu">

243
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<?php

require_once('inc/menu.php');

?>

</div>

<div id="notification">

</div>

<div id="content">

<div class="slideshow">

<div id="slideshow0" class="nivoSlider" style="width: 980px; height: 280px;">

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect2.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

</div>

</div>

<script type="text/javascript">

<!--

$(document).ready(function()

$('#slideshow0').nivoSlider();

244
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

);

-->

</script>

<div class="box">

<div class="box-heading">

</div>

<div style=" float:left; width:280px; line-height:25px;; border:0px solid #eeeeee;">

<?php

include_once('inc/left.php');

?>

</div>

<div class="box-content" style="float:left;">

<div class="box-product">

<h2 align="left">Your Orders List</h2>

<div align="center">

<div align="left" style="margin-bottom:10px; color:#FF0000;">

<?php

if(strlen($msg) > '0') echo $msg;

?>

</div>

</<br />

<div style="clear:both">

245
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</div>

<table width="600" cellpadding="6" cellspacing="6">

<tr>

<th>Sr.</th>

<th>Product Name</th>

<th>Price</th>

<th>Qnty.</th>

<th>Total Price</th>

</tr>

<?php

if(mysql_num_rows($res) > 0 )

$x = 0;

while( $R = mysql_fetch_array($res) )

?>

<form name="update[]" method="post" action="">

<input type="hidden" name="id" value="

<?php

echo $R['id'];

?>" />

<tr>

<td>

246
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<?php

echo ++$x;

?>

</td>

<td>

<?php

echo ucwords($R['name']);

?>

</td>

<td>

<?php

echo $R['siteprice'];

?>

</td>

<td>

<?php

echo $R['qnty'];

?>

</td>

<td>

<?php

echo $R['siteprice'] * $R['qnty'] ;

?>

247
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</td>

<td>

&nbsp;

</td>

</tr>

</form>

<?php

?>

<?php

else

?>

<tr>

<td colspan="6" align="center">

There is product in your Cart.

</td>

</tr>

<?php

?>

</table>

248
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</div>

</div>

</div>

</div>

<div style="clear:both">

</div>

<br />

<div id="featured" align="center" style="width:800px; border:0px solid #999999; margin:0px auto;


padding:5px 0px;">

<?php

include_once('inc/featured.php');

?>

</div>

<div style="clear:both">

</div>

<h1 style="display: none;">Your Store</h1>

<div id="carousel0">

<ul class="jcarousel-skin-opencart">

<li>

<a href="companydetail.php?compid=5">

<img src="companyimages/whirlpool.jpg" alt="whirlpool" title="whirlpool" />

</a>

</li>

249
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<li>

<a href="companydetail.php?compid=4">

<img src="companyimages/videocon.jpg" alt="videocon" title="videocon" />

</a>

<li>

<a href="companydetail.php?compid=3">

<img src="companyimages/lg.jpg" alt="LG" title="LG" />

</a>

</li>

<li>

<a href="companydetail.php?compid=2">

<img src="companyimages/samsung.jpg" alt="samsung" title="samsung" />

</a>

</li>

<li>

<a href="companydetail.php?compid=1">

<img src="companyimages/sony.jpg" alt="Sony" title="Sony" />

</a>

</li>

</ul>

</div>

<script type="text/javascript">

<!--

250
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

$('#carousel0 ul').jcarousel({

vertical: false,

visible: 5,

scroll: 3});

//-->

</script>

</div>

</div>

<!--

OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but
its generally accepted practise to make a small donation.

Please donate via PayPal to donate@opencart.com

//-->

<div id="powered">Developed By

<a href="http://www.opencart.com">Jasdeep Kaur

</a>

<br /> electro shoppe &copy; 2012 – 2013

</div>

<!--

OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but
its generally accepted practise to make a small donation.

Please donate via PayPal to donate@opencart.com

//-->

</div>

251
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</div>

<div style="clear:both">

</div>

<?php

include_once("inc/footer.php");

?>

</body>

</html>

252
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Forgotpassword.php

<?php

@session_start();

require_once('app_code/config.php');

require_once('app_code/db.php');

$msg="";

if(isset($_POST['submit']))

if($_POST['email'] !='')

$sql= "Select * from tblusers where email='".$_POST['email']."'";

$res = mysql_query($sql) or die("error");

//echo mysql_num_rows($res);

if( mysql_num_rows($res) > '0' )

$R = mysql_fetch_array($res);

// print_r($R);

$email_address = $_POST['email'];

$pass = $R['username'].rand(11111,9999999);

$body= 'Your new password is '.$pass;

$updatetbl= "update tblusers set password='".$pass."' where id='".$R['id']."'";

mysql_query($updatetbl);

@mail($email_address,'Password change',$body,'From:info@electroshoppeadmin.com');

253
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

header("location:message.php");

else

$msg = 'Invalid Email address.';

else

$msg = 'Invalid Email address.';

}eth

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>

Your Store

</title>

<meta name="description" content="My Store" />

<link href="http://localhost/upload/image/data/cart.png" rel="icon" />

<link rel="stylesheet" type="text/css" href="stylesheet/stylesheet.css" />

254
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<link rel="stylesheet" type="text/css" href="stylesheet/slideshow.css" media="screen" />

<link rel="stylesheet" type="text/css" href="stylesheet/carousel.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/jquery-1.7.1.min.js">

</script>

<script type="text/javascript" src="javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/ui/themes/ui-lightness/jquery-ui-


1.8.16.custom.css" />

<script type="text/javascript" src="javascript/jquery/ui/external/jquery.cookie.js">

</script>

<script type="text/javascript" src="javascript/jquery/colorbox/jquery.colorbox.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/colorbox/colorbox.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/tabs.js">

</script>

<script type="text/javascript" src="javascript/common.js">

</script>

<script type="text/javascript" src="javascript/jquery/nivo-slider/jquery.nivo.slider.pack.js">

</script>

<script type="text/javascript" src="javascript/jquery/jquery.jcarousel.min.js">

</script>

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie7.css" />

255
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<![endif]-->

<!--[if lt IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie6.css" />

<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js">

</script>

<script type="text/javascript">

DD_belatedPNG.fix('#logo img');

</script>

<![endif]-->

</head>

<body>

<div id="topline">

</div>

<div id="container">

<?php

include_once("inc/header.php");

?>

<br />

<div id="menu">

<?php

require_once('inc/menu.php');

?>

</div>

256
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<div id="notification">

</div>

<div id="content">

<div class="slideshow">

<div id="slideshow0" class="nivoSlider" style="width: 980px; height: 280px;">

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect2.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

</div>

</div>

<script type="text/javascript">

<!--

$(document).ready(function()

$('#slideshow0').nivoSlider();

);

</script>

<div class="box">

<div class="box-heading">

257
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</div>

<div style=" float:left; width:280px; line-height:25px;; border:0px solid #eeeeee;">

<?php

include_once('inc/left.php');

?>

</div>

<div class="box-content" style="float:left;">

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

<table align="center" width="250" height="100" bgcolor="#ccc">

<tr>

<td colspan="2">

<div align="left">

<?php

if(strlen($msg) > 0) echo $msg;

?>

</div>

</td>

</tr>

<tr>

<td align="left" >

<b>

<h2 style="color:#66CC33"> Email Id </h2>

</</b>

258
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</td>

<td>

<input type="text" name="email" />

</td>

</tr>

<tr>

<td align="left" valign="top">&nbsp;

</td>

<td align="left" valign="top">

<input type="submit" name="submit" value="Save" />

</td>

</tr>

</table>

</form>

</div>

</div>

</div>

<div style="clear:both">

</div>

<br />

259
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<div id="featured" align="center" style="width:880px; border:0px solid #999999; margin:0px auto;


padding:5px 0px;">

<?php

include_once('inc/featured.php');

?>

</div>

<h1 style="display: none;">Your Store</h1>

<div id="carousel0">

<!--<div id="logos" align="center" style="width:880px;height:100px; border:2px solid #99CC33;


margin:2px auto; ">

</div>-->

<ul class="jcarousel-skin-opencart">

<li>

<a href="companydetail.php?compid=5">

<img src="companyimages/whirlpool.jpg" alt="whirlpool" title="whirlpool" />

</a>

</li>

<li>

<a href="companydetail.php?compid=4">

<img src="companyimages/videocon.jpg" alt="videocon" title="videocon" />

</a>

</li>

<li>

<a href="companydetail.php?compid=3">

260
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<img src="companyimages/lg.jpg" alt="LG" title="LG" />

</a>

</li>

<li>

<a href="companydetail.php?compid=2">

<img src="companyimages/samsung.jpg" alt="samsung" title="samsung" />

</a>

</li>

<li>

<a href="companydetail.php?compid=1">

<img src="companyimages/sony.jpg" alt="Sony" title="Sony" />

</a>

</li>

</div>

</ul>

<script type="text/javascript">

<!--

$('#carousel0 ul').jcarousel

vertical: false,

visible: 5,

261
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

scroll: 3});

//-->

</script>

</div>

</div>

<?php

include_once("inc/footer.php");

?>

</body>

</html>

262
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Message.php

<?php

require_once('app_code/config.php');

require_once('app_code/db.php');

$msg="";

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Your Store</title>

<meta name="description" content="My Store" />

<link href="http://localhost/upload/image/data/cart.png" rel="icon" />

<link rel="stylesheet" type="text/css" href="stylesheet/stylesheet.css" />

<link rel="stylesheet" type="text/css" href="stylesheet/slideshow.css" media="screen" />

<link rel="stylesheet" type="text/css" href="stylesheet/carousel.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/jquery-1.7.1.min.js">

</script>

<script type="text/javascript" src="javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/ui/themes/ui-lightness/jquery-ui-


1.8.16.custom.css" />

<script type="text/javascript" src="javascript/jquery/ui/external/jquery.cookie.js">

263
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</script>

<script type="text/javascript" src="javascript/jquery/colorbox/jquery.colorbox.js">

</script>

<link rel="stylesheet" type="text/css" href="javascript/jquery/colorbox/colorbox.css" media="screen" />

<script type="text/javascript" src="javascript/jquery/tabs.js">

</script>

<script type="text/javascript" src="javascript/common.js">

</script>

<script type="text/javascript" src="javascript/jquery/nivo-slider/jquery.nivo.slider.pack.js">

</script>

<script type="text/javascript" src="javascript/jquery/jquery.jcarousel.min.js">

</script>

<!--[if IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie7.css" />

<![endif]-->

<!--[if lt IE 7]>

<link rel="stylesheet" type="text/css" href="stylesheet/ie6.css" />

<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js">

</script>

<script type="text/javascript">

DD_belatedPNG.fix('#logo img');

</script>

<![endif]-->

264
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</head>

<body>

<div id="topline">

</div>

<div id="container">

<?php

include_once("inc/header.php");

?>

<br />

<div id="menu">

<?php

require_once('inc/menu.php');

?>

</div>

<div id="notification">

</div>

<div id="content">

<div class="slideshow">

<div id="slideshow0" class="nivoSlider" style="width: 980px; height: 280px;">

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

265
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<a href="index.php?route=product/product&amp;path=57&amp;product_id=49">

<img src="sliderimages/elect2.jpg" width="980" height="280" align="center" alt="Samsung Tab 10.1" />

</a>

</div>

</div>

<script type="text/javascript">

<!--

$(document).ready(function()

$('#slideshow0').nivoSlider();

);

</script>

<div class="box">

<div class="box-heading">

</div>

<div style=" float:left; width:280px; line-height:25px;; border:0px solid #eeeeee;">

<?php

include_once('inc/left.php');

?>

</div>

<div class="box-content" style="float:left;">

<div class="box-product">

266
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<div align="center">

<div align="left" style="margin-bottom:10px; color:#FF0000;">

<?php

if(strlen($msg) > '0') echo $msg;

?>

</div>

</<br />

<div style="clear:both">

</div>

<table width="450" height="150" border="1">

<tr>

<td align="center" bgcolor="#ccc">

<h1 align="center" style="color:#66CC33" >Your Password Is Sent To Your Mail.</h1>

</td>

</tr>

</table>

</div>

</div>

</div>

<div style="clear:both">

</div>

<br />

267
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

<div id="featured" align="center" style="width:880px; border:0px solid #999999; margin:0px auto;


padding:5px 0px;">

<?php

include_once('inc/featured.php');

?>

</div>

<h1 style="display: none;">Your Store</h1>

<div id="carousel0">

<!--<div id="logos" align="center" style="width:880px;height:100px; border:2px solid #99CC33;


margin:2px auto; ">.

</div>-->

<ul class="jcarousel-skin-opencart">

<li>

<a href="companydetail.php?compid=5">

<img src="companyimages/whirlpool.jpg" alt="whirlpool" title="whirlpool" />

</a>

</li>

<li>

<a href="companydetail.php?compid=4">

<img src="companyimages/videocon.jpg" alt="videocon" title="videocon" />

</a>

</li>

<li><a href="companydetail.php?compid=3">

<img src="companyimages/lg.jpg" alt="LG" title="LG" />

268
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

</a>

</li>

<li>

<a href="companydetail.php?compid=2">

<img src="companyimages/samsung.jpg" alt="samsung" title="samsung" />

</a>

</li>

<li>

<a href="companydetail.php?compid=1">

<img src="companyimages/sony.jpg" alt="Sony" title="Sony" />

</a>

</li>

</div>

</ul>

<script type="text/javascript">

<!--

$('#carousel0 ul').jcarousel

vertical: false,

visible: 5,

scroll: 3

269
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

);

//-->

</script>

</div>

</div>

<?php

include_once("inc/footer.php");

?>

</body>

</html>

270
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

Logout.php

<?php

session_start();

session_destroy();

header("location:index.php");

?>

271
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

TESTING

272
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

TESTING

Testing is an activity that is used to discover errors and correct them, so that we are able to create a
defect-free product for our customer. Let us take the example of a house. The client had specified
requirements of the house she wants. The tester tested the house to find out if all requirements of the
client had been met after delivery. The tester created the test execution details document, which detailed
the scenarios or test cases. The tester also created the results of the test execution, which are referred to
as the test log.

Testing is the process of executing a program with the specific intent of finding an error. Success of a test
is determined by the number of errors it has uncovered. Tests can be conducted by the developer or by
an independent testing team. What one should remember is that the role of a good tester is to show the
presence of the defects or errors of that software.

TYPES OF TESTING

UNIT TESTING

Unit testing is a process of testing which ests a small unit (i.e. a class) of a software application, separate
from other units of the application.

Unit testing, also known as component testing, refers to tests that verify the functionality of a specific
section of code, usually at the function level. In an object-oriented environment, this is usually at the class
level, and the minimal unit tests include the constructors and destructors.

These types of tests are usually written by developers as they work on code (white-box style), to ensure
that the specific function is working as expected. One function might have multiple tests, to catch corner
cases or other branches in the code. Unit testing alone cannot verify the functionality of a piece of
software, but rather is used to assure that the building blocks the software uses work independently of
each other.

It is functional and reliability testing in an Engineering environment. Producing tests for the behavior of
components of a product to ensure their correct behavior prior to system integration.

273
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

INTEGRATION TESTING

Integration testing is any type of software testing that seeks to verify the interfaces between components
against a software design. Software components may be integrated in an iterative way or all together
("big bang"). Normally the former is considered a better practice since it allows interface issues to be
localized more quickly and fixed.

Integration testing works to expose defects in the interfaces and interaction between integrated
components (modules). Progressively larger groups of tested software components corresponding to
elements of the architectural design are integrated and tested until the software works as a system.

SYSTEM TESTING

System testing is a testing which is conducted on a complete, integrated system to evaluate the system's
compliance with its specified requirements. System testing falls within the scope of black box testing, and
as such, should require no knowledge of the inner design of the code or logic.

System testing tests a completely integrated system to verify that it meets its requirements. System
integration testing verifies that a system is integrated to any external or third-party systems defined in the
system requirements.

TESTING TECHNOLOGIES USED

WHITE BOX TESTING

White box testing techniques are applied to detect error in the internal structure of the programme. This
testing is used in three of the six basic types of testing: unit, integration, and regression testing. The
internal structure of the program includes loops, paths, variables and Boolean condition in the program.
To derive the test cases for white box testing, an understanding of the code and the procedural design is
required. White box testing techniques are applied to unit testing to detect all alternative paths within a
module to execute all loops and to all logical conditions. White-box testing is when the tester has access
to the internal data structures and algorithms including the code that implements these.

274
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

White box testing includes various testing techniques, which are:

 Basic path testing


 Graph path testing
 Condition testing
 Data flow-based testing

BLACK BOX TESTING

Black-box testing treats the software as a "black box"—without any knowledge of internal implementation.
Black-box testing methods include: equivalence partitioning, boundary value analysis, all-pairs testing,
fuzz testing, model-based testing, exploratory testing and specification-based testing.

Black box testing is performed to evaluate the functional capability of software. Black box testing design
tests cases for input value of software to execute all function module of it. Black box testing uncovers
errors such as incorrect or missing function, errors in any of interfaces, errors in data structure or
databases and errors related to performance and program initiation or termination.

There are three types of black box testing, while are as follows:

 Cause effect testing


 Boundary value analysis

275
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

IMPLEMENTATION AND
MAINTENANCE

276
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

IMPLEMENTATION AND MAINTENANCE

Implementation is ranging from conversion of basic application to a complete replacement of a computer


system .

It is the process of converting a new or revised system design into an operational one and consists of
Conversion, post Implementation review and software maintenance. The implementation ensures that the
developed system functions according to its requirements as specified in the SRS document.

There are three types of Implementation:

1. Implementation of a computer system to replace a manual system.

2. Implementation of a new computer system to replace an existing one.

3. Implementation of a modified application to replace an existing one, using the same computer.

Software maintenance in software engineering is the modification of a software product after delivery to
correct faults, to improve performance or other attributes.

Software maintenance can be classified as :

• Corrective maintenance: repairing processing or performance failure or making changes


because of previously uncorrected problems or false assumptions

• Adaptive maintenance: enhancing the program function

• Perfective maintenance: enhancing the performance or modifying the programs to respond to


the users additional change needs.

Maintenance includes all the activity after the installation of software that is performed to keep the system
operational. Maintenance also needed due to a change in the environment or the requirements of the

277
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

system. The introduction of a software system affects the work environment. This change in environment
often changes what is desired from the system. Furthermore, often after the system is installed and the

users have had a chance to work with it for sometime, requirements that are not identified during
requirement analysis phase will be uncovered.

This occurs, since the experience with the software helps the user to define the needs more precisely.
There might also be changes in the input data, the system environment and output formats. All these
require modification of the software. Maintenance work is based on existing software, as compared to
development work, which creates new software. Consequently maintenance resolves around
understanding the existing software and spares most of their time trying to understand the software that
they have to modify. Understanding the software involves not only understanding the code, but also the
related documents. During the modification of the software, the effects of the change have to be clearly
understood by the maintainer since introducing undesired side effects in the system during modification is
easier.

278
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

NATURE AND FUTURE


SCOPE OF PROJECT

279
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

NATURE AND FUTURE SCOPE OF PROJECT

The nature and future scope of project is that it will help us to maintain the records carrying user
information, password information etc. accurately and efficiently. The further modifications can be made
in the project according to the requirements. The project will contribute in:

 This project can be used for finding best electronic products online.
 The project will be modified easily according to user requirements to adapt a new or changing
environment.
 It helps in saving customers valueable time because the customers not need to visit showrooms
for finding the best electronics at best price.
 Offer instant information and fast communication to the customers.
 Make new friends – connect with people who share similar interests and opinions from all over
the world.

280
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

BIBLIOGRAPHY

281
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

BIBLIOGRAPHY

PROJECT GUIDE:

Mr. HardeepSingh

REFERENCE SITES:

www.google.com

www.wikipedia.com

www.w3schools.com

www.flipkart.com

REFERENCE BOOK:

PHP6, Apache, MySql Web Development

282
JASDEEP KAUR 11204550112
RAJAT ARORA 11204550115

283