Вы находитесь на странице: 1из 110

PROJECT REPORT

(Project Semester January-June 2012)

(Online Mobile Shop)

Submitted by

(Mandeep Kaur) Registration No.- 10906451 Programme & Section MCA(D1903) Under the Guidance of Ms. Gagandeep Kaur Mr Neeraj Tandon (Lecturer) (Project Guide)

School of Computer Application Lovely Faculty of Technology and Sciences


Lovely Professional University, Phagwara January to June 2012

Mobile Shop

Page 1

DECLARATION
I hereby declare that the project work entitled (Mobile Shop) is an authentic record of my own work carried out at Techno Campus as requirements of Industry Internship project for the award of degree of MCA, Lovely Professional University, Phagwara, under the guidance of Mrs.Vandana and Mr.Neeraj Tandon during January to June, 2008).

(Mandeep Kaur) Name of Student : Mandeep Kaur Registration no: 10906451

Date: 26-04-12

Certified that the above statement made by the student is correct to the best of our knowledge and belief.

(Ms.Gagandeep) Tandon) Faculty Coordinator

(Mr. Neeraj

Industry Coordinator

Mobile Shop

Page 2

Acknowledgement

I would like to express my gratitude to all those who gave me the possibility to complete this Project Report Online Mobile Shop. I want to thank the Department of Computer Applications, Lovely Professional University for giving me permission to commence 6 months Industrial Internship at Technocampus. I am deeply indebted to my Faculty Coordinator, Ms Gagandeep Kaur ,from the Lovely Professional University, Chehru, and my External Industry Coordinator, Ms. Neeraj Tondan, whose help, suggestions, guidance and encouragement helped me in all the time of research for and writing of this final project report.

Mandeep Kaur

Mobile Shop

Page 3

INDEX TOPICS Pages


1. Organization Overview.......................................................................................... ......6-7 2. Profile of the Problem............................................................................................ ......8 3. Existing System............................................................................................. ...............9 3.1Introduction.......................................................................................... ....................9 3.2Existing Software......................................................................................................9 3.3Whats new in the system to be developed..............................................................9 4 Problem Analysis............................................................................................ ..............10 4.1 Product definition..................................................................................................10 4.2 Feasibility Analysis..................................................................................................10-12 4.3 Project Plan..............................................................................................................1215 5. Software Requirement Analysis....................................................................................1617
Mobile Shop Page 4

5.1 Introduction......................................................................................................... ..17 5.2 General Description.................................................................................................17 5.3 Specific Requirements..............................................................................................17 6. Design.............................................................................................. .............................18 6.1 System Design.................................................................................................18 6.2 Design Notations.............................................................................................19-21 6.3 Detailed Design..............................................................................................22 6.3.1 Database Design...........................................................................22-25 6.4 Flowcharts......................................................................................................2627

7. Testing............................................................................................. ...........................28 7.1Functional testing..................................................................................................28 7.2Structural testing...................................................................................................28-31.

Mobile Shop

Page 5

7.3Levels of testing.....................................................................................................31 7.4Testing the project...............................................................................................31-33 8 Implementation................................................................................ .............................34 8.1Implementation of the project.............................................................................34. 8.2 Conversion Plan.................................................................................................... 9 Project Legacy.............................................................................................. ................35. 9.1Current Status of the project..................................... 9.2Remaining Areas of concern.................................................. 10. User Manual: A complete document (Help Guide) of the software developed. .........36 11. Source Code ................................................................................................ ....37-87. 12.Conclusions.................................................................................. ................... 13. Bibliography..................................................................................... ....................88

Mobile Shop

Page 6

1.

Organization Overview

Techno campus SCF-8, New jawahar Nagar Jalandhar Techno campus is an organisation - Providing services in all aspects of Enterprise Transformation-From Strategy to Information technology and Human Resources. Cost- effective ongoing achievement of customer satisfaction is the foundation of our business. Excellence is expected in quality and quantity of work performed by every consultant on every project. We focus on efficiency, flexibility and speed for competitive advantage enabling our customers success in every phase of business. Here are three big ways our work focuses on improving our clients business. One: From cutting costs to creating new sources of revenue, we help our clients develop the Information technology strategies and processes to make the most of Technological advancements Techno Campus Education is the IT education brand of Aptech Limited. Established in 1986, it is a pioneer in IT education. Through its wide network of centres in India and overseas, Techno Campus has so far trained 6.4 million students. Courses: Techno Campus offers a wide range of courses. The company also has alliances with leading IT companies i.e. Sun Microsystems & Oracle to offer courses leading to certifications from these companies.

Mobile Shop

Page 7

The following courses are available: ACCP Pro Career Program (to become a complete IT professional) Sun & Oracle Certification courses Short-term courses

Business partners IT education is a large market and a profitable business opportunity. Techno Campus has built a wide network of centres through its partnership with hundreds of franchisees. The passion and efforts of these business partners, along with the support given by Techno Campus, have made Techno Campus Computer Education a household name.

Mobile Shop

Page 8

2.

Profile of the Problem

Shopping has long been considered a recreational activity by many. Buying online is no exception. The goal of this application is to develop a web based interface for online retailers. The system would be easy to use and hence make the shopping experience pleasant for the users. The goal of this application is To develop an easy to use web based interface where users can search for products, view a complete description of the products and order the products. A search engine that provides an easy and convenient way to search for products specific to their needs. The search engine would list a set of products based on the search term and the user can further filter the list based on various parameters. Drag and Drop feature which would allow the users to add a product to or remove a product from the shopping cart by dragging the product in to the shopping cart or out of the shopping cart. A user can view the complete specification of the product along with various images and also view the customer reviews of the product. They can also write their own reviews.

THE GENERAL WORKING OF SYSTEM IS AS FOLLOWS According to the requirements whenever a customer visits the site customer can view the different products as provided by the company. Customer can view the products and can Purchase those products. Customer visits the site can be of two types :

Mobile Shop

Page 9

Registered and other One is Unregistered. Registered users have particular Id and password for login provided by the administrator. Products are classified into different categories. Whenever customer click on a particular category different products of that category are displayed. To buy them user can click on the add button that product would be added to the bin cart. A bin cart facility is provided to the customer that can show the different products as selected by the customer and then only registered customer can place the order. Registered customer can view the shopping cart and can directly change the quantity of the items from the bin cart. After finishing the shopping customer take place the order or can also keep continue shopping. Whenever an order is placed, payment is received in advance through different payment modes. Address of the customer fetch from the companys system database. A bill is prepared and given to the customer. Against that bill, payments are received from the customer. Different payment modes are provided to the customer, customer can pay by using any of those methods. Against above transaction reports are needed: Order status wise report. Customer wise yearly report. Ordered item report summary. Product wise report.

Mobile Shop

Page 10

3.

Existing System

3.1Introduction:
There are large numbers of commercial Online Shopping websites offering large number of products tailored to meet the shopping interests of large number of customers. These online marketplaces have thousands of products listed under various categories.

3.2 Existing Software


Problems: The basic problems with the existing systems are the non-interactive environment they provide to the users. The use of traditional user interfaces which make continuous post backs to the server; each post back makes a call to the server, gets the response and then refreshes the entire web form to display the result. This scenario adds an extra trade off causing a delay in displaying the results A search engine that would display the results without allowing the users to further filter the results based on various parameters. Use of traditional and non user friendly interfaces that are hard to use

Mobile Shop

Page 11

3.3 DFD of existing System

Mobile Shop

Page 12

3.4 Whats new in the system to be developed

The motive of this Online Shopping Web Application is to allow the user to play with the search tool and create different combinatorial search criterion to perform exhaustive search. The users of this application can easily feel the difference between the Ajax empowered user interfaces vs. traditional user interfaces.

Provide Interactive interface through which a user can interact with different areas of application easily. A search engine that provides an easy and convenient way to search for products specific to their needs. The search engine would list a set of products based on the search term and the user can further filter the list based on various parameters.

Provides a feature to add products to or remove products from the shopping cart by dragging the products in to or out of the shopping cart.

Provides link with the facebook

Mobile Shop

Page 13

4.

Problem Analysis

Problem analysis is used to gather information that helps you determine the nature of a problem encountered on your system. The problem analysis information is used to: Determine if you can resolve the problem yourself.

Gather sufficient information to communicate with a service provider and quickly determine the service action that needs to be taken.

Mobile Shop

Page 14

The method of finding and collecting error information depends on the state of the hardware at the time of the failure. This procedure directs you to one of the following places to find error information: Hardware Management Console (HMC) error logs The operating system's error log The control panel Advanced System Management Interface (ASMI) error logs

Some of the problems that could be faced are:


Fraud and security concerns

Secure Sockets Layer (SSL) encryption has generally solved the problem of credit card numbers being intercepted in transit between the consumer and the merchant. Identity theft is still a concern for consumers when hackers break into a merchant's web site and steal names, addresses and credit card numbers

Phishing is another danger, where consumers are fooled into thinking they are dealing with a reputable retailer, when they have actually been manipulated into feeding private information to a system operated by a malicious party. A few problems that shoppers potentially face include identity theft, faulty products, and the accumulation of spyware. Whenever you purchase a product, you are going to be required to put in your credit card information and billing/shipping address. If the website is not secure a customers information can be accessible to anyone who knows how to obtain it. Lack of full cost disclosure The lack of full disclosure with regards to the total cost of purchase is one of the concerns of online shopping. While it may be easy to compare the base price of an item online, it may not be easy to see the total cost up front as additional fees such as shipping are often not be visible until the final step in the checkout process. The problem is especially evident with cross-border
Mobile Shop Page 15

purchases, where the cost indicated at the final checkout screen may not include additional fees that must be paid upon delivery such as duties and brokerage. Privacy Privacy of personal information is a significant issue for some consumers. Different legal jurisdictions have different laws concerning consumer privacy, and different levels of enforcement. Many consumers wish to avoid spam and telemarketing which could result from supplying contact information to an online merchant. In response, many merchants promise not to use consumer information for these purposes, or provide a mechanism to opt-out of such contacts. Hands-on inspection Typically, only simple pictures and or descriptions of the item are all a customer can rely on when shopping on online stores. If the customer does not have prior exposure to the item's handling qualities, they will not have a full understanding of the item they are buying. However, Written and Video Reviews are readily available from consumers who have purchased similar items in the past. These can be helpful for prospective customers, but these reviews can be sometimes subjective and based on personal preferences that may not reflect end-user satisfaction once the item has been received.

Because of this, many consumers have begun going to real-world stores to view a product, before purchasing online. To combat the process, Target has requested distributors give them equally low prices, or alternatively, exclusive products available at their store only.

4.2 Feasibility Analysis


The system feasibility can be divided into the following sections: Economic Feasibility Mobile Shop Page 16

The project is economically feasible as the only cost involved is having a computer with the minimum requirements mentioned earlier. For the users to access the application, the only cost involved will be in getting access to the Internet. Technical Feasibility ::

To deploy the application, the only technical aspects needed are mentioned below:

For Developer: Operating Environment Platform Database Win 2000/XP/win7/win vista Net Beans IDE MySQL

For Users: Internet Browser Internet connection

4.3 Project Plan


The key to a successful project is in the planning. Creating a project plan is the first thing you should do when undertaking any kind of project. Often project planning is ignored in favour of getting on with the work. However, many people fail to realise the value of a project plan in saving time, money and many problems.
Mobile Shop Page 17

Step 1: Project Goals A project is successful when the needs of the stakeholders have been met. A stakeholder is anybody directly, or indirectly impacted by the project. As a first step, it is important to identify the stakeholders in your project. It is not always easy to identify the stakeholders of a project, particularly those impacted indirectly. Examples of stakeholders are: The project sponsor. The customer who receives the deliverables. The users of the project outputs. The project manager and project team. Once you understand who the stakeholders are, the next step is to find out their needs. The best way to do this is by conducting stakeholder interviews. Take time during the interviews to draw out the true needs that create real benefits. Often stakeholders will talk about needs that aren't relevant and don't deliver benefits. These can be recorded and set as a low priority. The next step, once you have conducted all the interviews, and have a comprehensive list of needs is to prioritise them. From the prioritised list, create a set of goals that can be easily measured. A technique for doing this is to review them against the SMART principle. This way it will be easy to know when a goal has been achieved. Once you have established a clear set of goals, they should be recorded in the project plan. It can be useful to also include the needs and expectations of your stakeholders. This is the most difficult part of the planning process completed. It's time to move on and look at the project deliverables.

Step 2: Project Deliverables Using the goals you have defined in step 1, create a list of things the project needs to deliver in order to meet those goals. Specify when and how each item must be delivered.
Mobile Shop Page 18

Add the deliverables to the project plan with an estimated delivery date. More accurate delivery dates will be established during the scheduling phase, which is next. Step 3: Project Schedule Create a list of tasks that need to be carried out for each deliverable identified in step 2. For each task identify the following: The amount of effort (hours or days) required to complete the task. The resource who will carryout the task. Once you have established the amount of effort for each task, you can workout the effort required for each deliverable, and an accurate delivery date. Update your deliverables section with the more accurate delivery dates. At this point in the planning, you could choose to use a software package such as Microsoft Project to create your project schedule. Alternatively, use one of the many free templates available. Input all of the deliverables, tasks, durations and the resources who will complete each task. A common problem discovered at this point, is when a project has an imposed delivery deadline from the sponsor that is not realistic based on your estimates. If you discover that this is the case, you must contact the sponsor immediately. The options you have in this situation are: Renegotiate the deadline (project delay). Employ additional resources (increased cost). Reduce the scope of the project (less delivered). Use the project schedule to justify pursuing one of these options.

Step 4: Supporting Plans This section deals with plans you should create as part of the planning process. These can be included directly in the plan.

Mobile Shop

Page 19

Human Resource Plan Identify by name, the individuals and organisations with a leading role in the project. For each, describe their roles and responsibilities on the project. Next, describe the number and type of people needed to carryout the project. For each resource detail start dates, estimated duration and the method you will use for obtaining them. Create a single sheet containing this information. Communications Plan Create a document showing who needs to be kept informed about the project and how they will receive the information. The most common mechanism is a weekly or monthly progress report, describing how the project is performing, milestones achieved and work planned for the next period. Risk Management Plan Risk management is an important part of project management. Although often overlooked, it is important to identify as many risks to your project as possible, and be prepared if something bad happens. Here are some examples of common project risks: Time and cost estimates too optimistic. Customer review and feedback cycle too slow. Unexpected budget cuts. Unclear roles and responsibilities. Stakeholder input is not sought, or their needs are not properly understood. Stakeholders changing requirements after the project has started. Stakeholders adding new requirements after the project has started. Poor communication resulting in misunderstandings, quality problems and rework. Lack of resource commitment.

Mobile Shop

Page 20

Risks can be tracked using a simple risk log. Add each risk you have identified to your risk log; write down what you will do in the event it occurs, and what you will do to prevent it from occurring. Review your risk log on a regular basis, adding new risks as they occur during the life of the project.

Why we need to PLAN?


Convenience Online stores are usually available 24 hours a day, and many consumers have Internet access both at work and at home. Other establishments such as internet cafes and schools provide access as well. A visit to a conventional retail store requires travel and must take place during business hours. Information and reviews Online stores must describe products for sale with text, photos, and multimedia files, whereas in a physical retail store, the actual product and the manufacturer's packaging will be available for direct inspection (which might involve a test drive, fitting, or other experimentation). stores have real-time chat features, but most rely on e-mail or phone calls to handle customer questions. Price and selection One advantage of shopping online is being able to quickly seek out deals for items or services with many different vendors (though some local search engines do exist to help consumers locate products for sale in nearby stores). Search engines, online price comparison services and discovery shopping engines can be used to look up sellers of a particular product or service. Another major advantage for retailers is the ability to rapidly switch suppliers and vendors without disrupting users' shopping experience.

Mobile Shop

Page 21

5.

Software Requirement Analysis

5.1Introduction
The success of any new software project is critically dependent on the initial discovery or requirements analysis phase of the project. Here are some reasons requirements analysis is often treated as a separate projectdistinct from design and implementation of a software system: More accurate cost estimate. Its far easier to accurately estimate a development project after the requirements have been clearly established. Better evaluation of the project. With an accurate estimate of cost and completion date, it is much easier to evaluate cost vs. benefit and to position the proposed system in a companys overall strategic plan.

5.2 General Description


As the goal of the application is ease of use and to provide an interactive interface, extensive research has been done to gain an insight into the needs and behaviors of various users. The working of the application is made convenient and easy to use for the end user. Users can be classified into two types based on their knowledge of the products that suit their needs. They can be classified as users who know about the product that would satisfy their needs and users who have to figure out the product that would satisfy their needs. Users who know about the product should be able to find the product easily with the click of a button. Such users can search for the product by using the product name as the search term. Users who have to figure out the product that would satisfy their needs could use a search term to find a list of products and then should be able to filter the results based on various parameters like product type, manufacturer, price range, platform supported etc.

The users should be able to view the complete specification of the product and various images at different Zoom levels.

Mobile Shop

Page 22

The user should be able to read the customer reviews for the product and the ratings provided. They should be able to write their own reviews. They should be able to print out the specifications for a product or email the product page to a friends etc.

To increase the ease of use the user should be able to add a product to the shopping cart by dragging a product and dropping it in the shopping cart. A user should able to edit the contents of a shopping cart. They should be able to update the quantities of the products added to the cart and remove the products from the cart. The user should be able to remove the product from the shopping cart by dragging the product and dropping it outside the cart. The application can be made interactive by pop up messages when a product has been dropped in to the shopping cart or out of the shopping cart. The user can be notified

5.3 Specific Requirements


Who is that man that wants to build a house? He will sit down and count the cost of building such edifice. The requirement for such edifice or building is important if he will eventually finish building the proposed house. This is in line with online shopping. For a successful online shopping, the requirement must be fully met. No man waste his/her precious time online if these requirements are not properly met. Purchasing medium This is not the physical shop, it is an online shopping. There is nowhere to drop money or cheque book to pay. Computer internet cannot receive concrete materials. Computer takes in data or information to be processed. Due to this, purchasing medium in online shopping need to come in place. There are various ways through which these online shopping have been in operation: Credit card usage Debit card usage PayPal account
Page 23

Mobile Shop

You can buy anything you want online with any of these thing depending if the seller wishes to receive it. Some online shops dont accept PayPal while some rejects credit card. It should on note that the cards and the accounts must be loaded with the right currency the seller accept. Another easy way of purchasing online is shopping coupon. Big stores like eBay, Wal-Mart, Amazon etc. have their coupons for shopping. These coupons have expiring dates. Finally other requirements are: Internet facilities

Computer or mobile communication Shopping skills Operation knowledge Right website

All these requirements are detailed and indispensable. None of them could replace the other. No alternative for one.

Hardware specifications:

There are great factor that influence the choices of hardware and software used for both development and implementation of a solution to a problem. The most prominent once being:-

Minimum: Processor Recommended: higher CPU. Minimum: RAM Recommended:

1.6 GHz 2.2 GHz Pentium processor or

512 megabytes (MB) 1024 MB or more RAM

Mobile Shop

Page 24

Hard Disk DVD Drive

Up to 3.2 GB of available space may be required Required only for Installation Minimum: 1024x768 display 1280x1024 display

Display Recommended: Mouse Microsoft mouse or compatible pointing device

Software specifications:

Front End: Servlet(JAVA)

To run the servlets we require the servletrunner and here we should Have a java servlet development kit of a new version. Along with these we require a java development kit also for the project .All the above requirements are necessary. Requirement analysis and specification may appear to be a relatively simple task, but appearances are deceiving. Communication content is very high. Chances for misinterpretation or misinformation A bound. Both the developer and customer take active role in requirement analysis and specification.

Back end: My SQL


is the world's most used relational database management system (RDBMS)[5] that runs as a server providing multi-user access to a number of databases. It is named after developer Michael Widenius' daughter,The SQL phrase stands for Structured Query Language. The MySQL development project has made its source code available under the terms of the GNU General Public License, as well as under a variety of
Mobile Shop Page 25

proprietary agreements. MySQL was owned and sponsored by a single forprofit firm, the Swedish company MySQL AB, now owned by Oracle Corporation.

6.

Design

Design Goals The design of the web application involves the design of the forms for listing the products, search for products, display the complete specification for the product, and design a shopping cart that is easy to use. Design of an interactive application that enables the user to filter the products based on different parameters. Design of an application that has features like drag and drop etc. Design of application that decreases data transfers between the client and the server.

6.1 System Design

Mobile Shop

Page 26

6.2 Design Notations

Mobile Shop

Page 27

DFD(Data Flow Diagram):

Mobile Shop

Page 28

Mobile Shop

Page 29

In the DFD, there are four symbols 1. A square defines a source(originator) or destination of system data

2. An arrow identifies data flow. It is the pipeline through which the information flows 3. A circle or a bubble represents a process that transforms incoming data flow into outgoing data flows. 4. An open rectangle is a data store, data at rest or a temporary repository of data.

Mobile Shop

Page 30

CONSTRUCTING DFD: Several rules of thumb are used in drawing DFDs: 1. Process should be named and numbered for an easy reference. Each name should be representative of the process. 2. The direction of flow is from top to bottom and from left to right. Data traditionally flow from source to the destination although they may flow back to the source. One way to indicate this is to draw long flow line back to a source. An alternative way is to repeat the source symbol as a destination. Since it is used more than once in the DFD it is marked with a short diagonal. 3. When a process is exploded into lower level details, they are numbered.

4. The names of data stores and destinations are written in capital letters. Process and dataflow names have the first letter of each work capitalized A DFD typically shows the minimum contents of data store. Each data store should contain all the data elements that flow in and out. Questionnaires should contain all the data elements that flow in and out. Missing interfaces redundancies and like is then accounted for often through interviews.

Mobile Shop

Page 31

6.3 Detail Design


DFD for the working of the system:

DFD for login/Registration

Mobile Shop

Page 32

Mobile Shop

Page 33

SAILENT FEATURES OF DFDs: 1. The DFD shows flow of data, not of control loops and decision are controlled considerations do not appear on a DFD. 2. The DFD does not indicate the time factor involved in any process whether the dataflow take place daily, weekly, monthly or yearly. 3. The sequence of events is not brought out on the DFD.

TYPES OF DATA FLOW DIAGRAMS

1. 2. 3. 4.

Current Physical Current Logical New Logical New Physical

CURRENT PHYSICAL: In Current Physical DFD process label include the name of people or their positions or the names of computer systems that might provide some of the overall system-processing label includes an identification of the technology used to process the data. Similarly data flows and data stores are often labels with the names of the actual physical media on which data are stored such as file folders, computer files, business forms or computer tapes. CURRENT LOGICAL: The physical aspects at the system are removed as mush as possible so that the current system is reduced to its essence to the data and the processors that transform them regardless of actual physical form.

NEW LOGICAL: This is exactly like a current logical model if the user were completely happy with he user were completely happy with the functionality
Mobile Shop Page 34

of the current system but had problems with how it was implemented typically through the new logical model will differ from current logical model while having additional functions, absolute function removal and inefficient flows recognized.

NEW PHYSICAL: The new physical represents only the physical implementation of the new system. RULES GOVERNING THE DFDSPROCESS 1) No process can have only outputs.

2) No process can have only inputs. If an object has only inputs than it must be a sink. 3) A process has a verb phrase label.

6.3.1 Database Design


Microsoft SQL server is been used as the backend in this project. There are various tabes formed in the database to store the information about the product,the customer, and the bill generated. There are primary keys and foreign keys. Primary Key: The primary key of a relational table uniquely identifies each record in the table. It can either be a normal attribute that is guaranteed to be unique (such as Social Security Number in a table with no more than one record per person) or it can be generated by the DBMS (such as a globally unique identifier, or GUID, in Microsoft SQL Server). Primary keys may consist of a single attribute or multiple attributes in combination. Foreign Key:

Mobile Shop

Page 35

A foreign key is a field in a relational table that matches a candidate key of another table. The foreign key can be used to cross-reference tables.

1. This the table for the detail of a customer who is buying that product from the site.

2. And this is the table having the data detail of the product in which the customer is interested.

3. The cart table have the list of the products selected items that the

customer wants to buy.

Mobile Shop

Page 36

4. This table contains the data about the product and the order.

Mobile Shop

Page 37

5.This table contains the detail of bill with bill no, its date and timing of purchase etc. it contains all the information about the same.

6. At last, is the history table that have the history of the customer as well as the product he bought for the future use of the company.

Mobile Shop

Page 38

Relational Diagram:

CUSTOMER table that includes all customer data, and an ORDERS table that includes all customer orders. The intention here is that all orders must be associated with a customer that is already in the CUSTOMER table. To do this, we will place a foreign key in the ORDERS table and have it relate to the primary key of the CUSTOMER table.

Similarly, other tables are also joint to their related tables. For example: The history table has no primary key but it has foreign keys from the other two tables that are order and the product table. Cust_id is the primary key that is the foreign key of bill table as well as cart. Product_id the primary key and is the foreign key of order table and history table. This is how a relational database is created.

6.4 Flowcharts:
FOR ADMINTRATOR PANEL:

Mobile Shop

Page 39

Mobile Shop

Page 40

Log Out

Mobile Shop

Page 41

7.

Testing

7.1 INTRODUCTION
Testing is the major quality control measure used during software development. Its basic function is to detect errors in the software. During requirements analysis and design, output is a document that is usually textual and non-executable. After the coding phase, computer programs are available that can be executed for the testing purpose. This implies that testing not only has to uncover errors introduced during coding, but also errors introduced during previous phase. Thus, the goal of testing is to uncover requirements, design and coding errors in the programs. Consequently, different levels of testing are used. The starting of testing is unit testing. In this, module is tested separately and is often performed by coder himself simultaneously along with the coding of module. The purpose is to exercise the different part of module code to detect coding errors. After this module is gradually integrated into sub systems, which are then integrated to eventually from the entire system. During integration of modules, integration testing is performed to detect design errors by focusing on testing the interconnection between modules. Another point of testing is to put the system together, so System testing is performed here. Hence, the system is tested against the system requirements to see if all requirements are met and the System performs as specified by the requirements. Finally, acceptance Testing is performed to demonstrate to the client, on the real life data of the client, the operation of the system. The final output of the testing phase is the test report and the error report, or a set of such reports. Each test report contains the set of test cases and the result of executing the code with these test cases. The error report describes the error encountered and the action taken to remove the errors.

7.2 Functional Testing


The software engineering process may be viewed as the rectangle. Initially, system engineering defines the role of software and leads to
Mobile Shop Page 42

software requirements analysis, where behavior, performance, constrains and established. Moving inward along the finally to coding. To develop computer streamlines that decrease the level of

the information domain, function, validation criteria for software are rectangle, we come to design and software, we rectangle inward along abstraction on each turn.

A strategy for software testing may also be viewed in the context of the diagram. Unit testing begins at the spiral and concentrate on each unit of software as implemented in source code. Testing progress by moving outward along the rectangle integration testing, where the focus is on design and construction of software architecture. Taking another turn outward we encounter validation testing, where requirements established a part of software that has been constructed. Finally, we arrive at system testing, where the software and other system elements are tested as whole. Two Testing approaches have been adopted for testing: (a) White Box Testing (WBT) (b) Black Box Testing (BBT) WHITE BOX TESTING (WBT): - In white box testing approach, the close examination of procedural detail is done. Logical path through the software are tested by test cases that exercise specific set of conditions and loops. The status of the program may be examined at various points to determine if expected status corresponded to the actual status. In the software system it is essential that WBT should be done for the program of vital importance because this is very tedious and time consuming. Thus through WBT, we are able to test all the independent paths within a module, all modules, all logical decisions on their boundaries within their operational bound were exercise and internal data structure to assure their validity were excised once. After the successful completion of WBT, BBT method that Is complementary method was considered.

BLACK BOX TESTING (BBT): - BBT method enables the engineer to drive sets of input condition that will fully exercised all functional requirements for a program. In BBT, we have choose equivalence portioning. This method derives the input domain of a program into classes of data from which test

Mobile Shop

Page 43

cases can be derived. Equivalence classes are divided according to the following guidelines: -

In an input condition specifies range, then one valid and two equivalence classes are defined. If an input condition requires a specific value one valid and two invalid equivalence classes are defined If an input condition specifies a member a set of one valid equivalence class and one invalid Equivalence class is defined. If an input condition is Boolean, on valid and one invalid class is defined. After testing a module it is important to test software as a whole for which we have chosen the top down integration approach, which is an incremental approach to the construction of the program structure. Modules are integrated by moving downward through the control hierarchy, beginning with main control module, module sub ordinates to the main control module incorporated into data structure ion either depth first manner. Through top down module we have first check the integration of main menu with sub ordinates menus and the integration of the sub menus with their sub ordinates menus is checked.

Program Testing:- A program represents the logic elements of a system. For a program to run satisfactorily, it must compile and test correctly and tie in properly with other program. Achieving an error free program is responsibility of the programmer.

Program testing is of two types: Logical error. Syntax error. Syntax Error: - A syntax error is a program statement that violates

Mobile Shop

Page 44

one or more rules of the language in which it is written. An improperly defined field dimension or omitted key words are commonly syntax error. These errors are shown through errors messages generated by the computer.

Logical Error: - A logical error deals with the incorrect data fields out of range items and invalid combination since diagnostics do not detect logical error; the programmer must examine the output carefully for them. System Testing:- System testing is designed to uncover weakness that was not found in earlier tests. This includes forced system failure and validation of the total system as it will be implemented by its users in the operational environment. Generally, it begins with low volume of transactions type is reached. The total system is also tested for the recovery and the feedback after various major failures to ensure that no data are lost during the emergency. All this is done with the old system still in operation. After the candidate system passes the test, the old system is discontinued .This is testing the whole system together as a module. Functionality testing of software is testing conducted on a complete, integrated system to evaluate the system's compliance with its specified requirements. Functionality 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

Functional testing typically involves five steps: 1. The identification of functions that the software is expected to perform. 2. The creation of input data based on the function's specifications. 3. The determination of output based on the function's specifications. 4. The execution of the test case. 5. The comparison of actual and expected outputs. Functional testing differs from system testing: In that functional testing verifies a program by checking it against design document(s) or specification(s)", while system testing "validate[s] a program by checking it against the published user or system requirements".

7.2 Structural testing:


Mobile Shop Page 45

Structuaral Testing is a method of testing software that tests internal structures or workings of an application, as opposed to its functionality (i.e. black-box testing). In white-box testing an internal perspective of the system, as well as programming skills, are used to design test cases. The tester chooses inputs to exercise paths through the code and determine the appropriate outputs. This is analogous to testing nodes in a circuit, e.g. incircuit testing (ICT). While white-box testing can be applied at the unit, integration and system levels of the software testing process, it is usually done at the unit level. It can test paths within a unit, paths between units during integration, and between subsystems during a systemlevel test. Though this method of test design can uncover many errors or problems, it might not detect unimplemented parts of the specification or missing requirements.

Structural Testing /White-box test design techniques include:


Control flow testing Data flow testing Branch testing Path testing

7.3 Levels of testing:

Mobile Shop

Page 46

unit testing is a method by which individual units of source code, sets of one

or more computer program modules together with associated control data, usage procedures, and operating procedures, are tested to determine if they are fit for use.[1] Intuitively, one can view a unit as the smallest testable part of an application. In procedural programming a unit could be an entire module but is more commonly an individual function or procedure. In object-oriented programming a unit is often an entire interface, such as a class, but could be an individual method.

Integration Testing is the phase in software testing in which individual software modules are combined and tested as a group. It occurs after unit testing and before validation testing. Integration testing takes as its input modules that have been unit tested, groups them in larger aggregates, applies tests defined in an integration test plan to those aggregates, and delivers as its output the integrated system ready for system testing. System testing of software or hardware is testing 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. As a rule, system testing takes, as its input, all of the "integrated" software components that have successfully passed integration testing and also the software system itself integrated with any applicable hardware system(s). The purpose of integration testing is to detect any inconsistencies between the software units that are integrated together (called assemblages) or between any of the assemblages and the hardware. System testing is a more limited type of testing; it seeks to detect defects both within the "inter-assemblages" and also within the system as a whole. Acceptance testing is a test conducted to determine if the requirements of a specification or contract are met. It may involve chemical tests, physical tests, or performance tests.

7.4 Testing the project


There are some testings that are implemented on the project. They are as follows:
Mobile Shop Page 47

Validation Testing
It provides final assurances that software meets all functional, behavioral & performance requirement. Black box testing techniques are used. There are three main components - Validation test criteria (no. in place of no. & char in place of char) - Configuration configuration.) review (to ensure the completeness of s/w

- Alpha & Beta testing-Alpha testing is done at developers site i.e. at home & Beta testing once it is deployed. Since I have not deployed my application, I could not do the Beta testing.

Test Cases- I have used a number of test cases for testing the product. There were different cases for which different inputs were used to check whether desired output is produced or not.

Test Cases For Login Page:


1) Go to User Id field and without entring data in that field press "Enter"

key. Expected-it should prompt message " Please enter 'User ID ".
2) Go to login screen enter "User Id" and without entering password try to

click on "OK" button. Expected-it should prompt message "Please enter 'Password' "

Mobile Shop

Page 48

3)Go to login screen enter "User Id" and enter wrong password try to click on "OK" button Expected-it should prompt message " Please enter Proper 'User ID' and 'Password' "

4)Go to Login screen enter all required data and press "OK" button then software window will open. In that window click on "Back" button. Expected-It should go back to 'Login' screen and that screen should not show "User Id" and "Password"

Mobile Shop

Page 49

Test Case For ADD TO CART page:

i. ii. iii.
iv.

Check whether you are able to add items to cart Check for edit, delete,save option. Check whether you are able to proceed to checkout. Check whether clicking on add to cart button takes the user to cart page or not Check whether quantity button is present etc.

v.

8.

Implementation:

Implementation is the realization of an application or execution of a plan, idea, model, design, specification, standard, algorithm or policy.

Mobile Shop

Page 50

2. Select a company to see the products. It will be shown as follows:

Mobile Shop

Page 51

3.After selecting a product it will show the details of the product as follows:

Mobile Shop

Page 52

5. Click add to cart to add the item to the cart.

Mobile Shop

Page 53

Now if u want to continue your shopping then click continue shopping button and add more items. Otherwise click ob buy now to proceed and login. Or register if you are not an existing user.

8.2Conversion Plan
Execution of Mobile Shop is done in JSP environment. The implementation is less creative then the design phase. It is primarily concerned with the user training, site preparation and file Preparation and the file conversion. The process of moving old system to the new system is called conversion. In the implementation we come to know the readiness and accuracy of the system to access updates and retrieves data from new files. Implementation is mainly concerned with the conversions. We have implement our software using the paralleled conversion, in which the new

Mobile Shop

Page 54

system i.e. manual. Both systems are operated at the same time until it is determined that the new system is acceptable. It can be expensive because the data has to be entered twice but it is the best approach we find to implement a new software.

Mobile Shop

Page 55

9.

Project Legacy

9.1 Current Status of the project.

9.2 Remaining Areas of concern:


Payment in other currencies: In my project entitled Mobile Shop i have planned to do the payment in some other currencies also other than in INDIAN Rupees.it has been added in the design of the project. Changing the language:

Mobile Shop

Page 56

The website could also be seen some other languages i.e it could be translated into any other language
Increase the ease of use the user should be able to add a product to the

shopping cart by dragging a product and dropping it in the shopping cart.

Mobile Shop

Page 57

10 User Manual: A complete document (Help Guide) of the software developed.


Home: In home page there are various option displayed as follows:
i.

Search: u can find any product of your wish by typing its name in the search box. Categories: There are different companies of mobiles are available in the left side of the Home. Menu Bar: Menu bar consists of the various options where u can select the options like

ii.

iii.

a) Home- To go to the home page b) Products: View different products by clicking this option

c) Sign up: Click on the sign Up bar if you are a new user. d) My Account: Click My account to view your Profile and history Latest Products: Here Latest products are available that are now available for you in the market

Recommended Products:

Company: Products: Details:

Description(Features):This shows all available features Add To Cart:

Mobile Shop

Page 58

Cart:

Cart consist of the selected items Delete:

Continue Shopping: Click on the continue button to add some products to the cart. Buy Now: or if you want to checkout,then click on the buy now button n proceed to login. Login: If you are the existing user ofthe site then login to the webpage else click on the register to sign up.

Mobile Shop

Page 59

Register: If you are not an existing user you have to register first to become a user of the websit.

11. Source Code

Source Code for Home Page

Mobile Shop

Page 60

<%-Document : home Created on : Mar 9, 2012, 1:18:22 AM Author --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> : mandy

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>Electronix Store</title> <link rel="stylesheet" type="text/css" href="style.css" />

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

<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs);

Mobile Shop

Page 61

}(document, 'script', 'facebook-jssdk'));</script>

</head> <body>

<div id="main_container"> <div class="top_bar"> <div class="top_search"> <div class="search_text"><a href="#">Advanced Search</a></div> <input type="text" class="search_input" name="search" /> <input type="image" src="images/search.gif" class="search_bt"/> </div>

<div class="languages"> <div class="lang_text">Languages:</div> <a href="#" class="lang"><img src="images/en.gif" alt="" title="" border="0" /></a> <a href="#" class="lang"><img src="images/de.gif" alt="" title="" border="0" /></a> </div>

</div> <div id="header">

<div id="logo"> <a href="index.html"><img src="images/logo.png" alt="" title="" border="0" width="237" height="140" /></a>

Mobile Shop

Page 62

</div>

<div class="oferte_content"> <div class="top_divider"><img src="images/header_divider.png" alt="" title="" width="1" height="164" /></div> <div class="oferta">

<div class="oferta_content"> <img src="images/moto3g.png" width="94" height="76" border="0" class="oferta_img" />

<div class="oferta_details"> <div class="oferta_title">Motorola Xoom Wifi+ 3G, dark titanium</div> <div class="oferta_text"> Motorola Xoom-(Wifi - 3G) 32GB is a Tablet audio device from Motorola, designed for matchless music experience. Motorola Xoom-(Wifi - 3G) 32GB price is optimal and is indeed a good buy. </div> <a href="details.html" class="details">details</a> </div> </div> <div class="oferta_pagination">

<span class="current">1</span> <a href="#?page=2">2</a> <a href="#?page=3">3</a>

Mobile Shop

Page 63

</div>

</div> <div class="top_divider"><img src="images/header_divider.png" alt="" title="" width="1" height="164" /></div>

</div> <!-- end of oferte_content-->

</div>

<div id="main_content">

<div id="menu_tab"> <div class="left_menu_corner"></div> <ul class="menu"> <li><a href="Home.jsp" class="nav1"> Home </a></li> <li class="divider"></li> <li><a href="#" class="nav2">Products</a></li> <li class="divider"></li> <li><a href="Registeration.jsp" class="nav4">Sign Up</a></li> <li class="divider"></li> <li><a href="#" class="nav5">Shipping </a></li> <li class="divider"></li> <li><a href="contact.html" class="nav6">Contact Us</a></li> <li class="divider"></li> <li><a href="login.jsp" class="nav4">My Account</a> Mobile Shop Page 64

<li class="divider"></li> <li><a href="logout.jsp" class="nav4"> Sign Out</a></li> <li class="divider"></li> <% if(session.getAttribute("uname")==null) { %> <li><a href="#" class="nav4">Welcome</a></li> <% } else{ %> <li>Welcome<a href="#" title="Profile Link"><%= session.getAttribute("uname") %></a></li> <li class="divider"></li> <% } %> </ul> <div class="right_menu_corner"></div> </div><!-- end of menu tab --> <div class="crumb_navigation"> Navigation: <span class="current">Home</span>

</div>

<div class="left_content"> <div class="title_box">COMPANY</div> Mobile Shop Page 65

<ul class="left_menu"> <li class="odd"><a href="apple.jsp">Apple</a></li> <li class="even"><a href="blackberry.jsp">Blackberry</a></li> <li class="odd"><a href="nokia.jsp">Nokia</a></li> <li class="even"><a href="motorola.jsp">Motorola</a></li> <li class="odd"><a href="LG.jsp">LG</a></li> <li class="even"><a href="samsung.jsp">Samsung</a></li> <li class="odd"><a href="sony.jsp">Sony</a></li> <li class="even"><a href="sonyericson.jsp">Sony Ericson</a></li> <li class="odd"><a href="micromax.jsp">Micromax</a></li> <li class="even"><a href="htc.jsp">HTC</a></li> <li class="odd"><a href="karbonn.jsp">Karbonn</a></li>

</ul>

<div class="title_box">Special Products</div> <div class="border_box"> <div class="product_title"><a href="details.html">Motorola 156 MXVL</a></div> <div class="product_img"><a href="details.html"><img src="images/laptop.png" alt="" title="" border="0" /></a></div> <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div> </div>

Mobile Shop

Page 66

<div class="title_box">Newsletter</div> <div class="border_box"> <input type="text" name="newsletter" class="newsletter_input" value="your email"/> <a href="#" class="join">join</a> </div>

<div class="banner_adds">

<a href="#"><img src="images/bann2.jpg" alt="" title="" border="0" /></a> </div>

</div><!-- end of left content -->

<div class="center_content"> <div class="center_title_bar">Latest Products</div>

<div class="prod_box"> <div class="top_prod_box"></div> <div class="center_prod_box"> <div class="product_title"><a href="details.html">Motorola 156 MXVL</a></div>

Mobile Shop

Page 67

<div class="product_img"><a href="details.html"><img src="images/laptop.gif" alt="" title="" border="0" /></a></div> <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div> </div> <div class="bottom_prod_box"></div>

</div> <div class="prod_box"> <div class="top_prod_box"></div> <div class="center_prod_box"> <div class="product_title"><a href="details.html">Iphone Apple</a></div> <div class="product_img"><a href="details.html"><img src="images/p4.gif" alt="" title="" border="0" /></a></div> <div class="prod_price"><span class="price">270$</span></div> </div>

<div class="bottom_prod_box"></div> </div> <div class="prod_box"> <div class="top_prod_box"></div> <div class="center_prod_box"> <div class="product_title"><a href="details.html">Samsung Webcam</a></div> <div class="product_img"><a href="details.html"><img src="images/p5.gif" alt="" title="" border="0" /></a></div> <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div>

Mobile Shop

Page 68

</div> <div class="bottom_prod_box"></div>

</div>

<div class="prod_box"> <div class="top_prod_box"></div> <div class="center_prod_box"> <div class="product_title"><a href="details.html">Motorola 156 MXVL</a></div> <div class="product_img"><a href="details.html"><img src="images/laptop.gif" alt="" title="" border="0" /></a></div> <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div> </div> <div class="bottom_prod_box"></div>

</div> <div class="prod_box"> <div class="top_prod_box"></div> <div class="center_prod_box"> <div class="product_title"><a href="details.html">Iphone Apple</a></div> <div class="product_img"><a href="details.html"><img src="images/p4.gif" alt="" title="" border="0" /></a></div> <div class="prod_price"><span class="price">270$</span></div> </div> <div class="bottom_prod_box"></div>

Mobile Shop

Page 69

</div> <div class="prod_box"> <div class="top_prod_box"></div> <div class="center_prod_box"> <div class="product_title"><a href="details.html">Samsung Webcam</a></div> <div class="product_img"><a href="details.html"><img src="images/p5.gif" alt="" title="" border="0" /></a></div> <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div> </div> <div class="bottom_prod_box"></div>

</div> <div class="center_title_bar">Recommended Products</div> <div class="prod_box"> <div class="top_prod_box"></div> <div class="center_prod_box"> <div class="product_title"><a href="details.html">Motorola 156 MXVL</a></div> <div class="product_img"><a href="details.html"><img src="images/laptop.gif" alt="" title="" border="0" /></a></div> <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div> </div> <div class="bottom_prod_box"></div> </div> <div class="prod_box"> <div class="top_prod_box"></div> Mobile Shop Page 70

<div class="center_prod_box"> <div class="product_title"><a href="details.html">Iphone Apple</a></div> <div class="product_img"><a href="details.html"><img src="images/p4.gif" alt="" title="" border="0" /></a></div> <div class="prod_price"><span class="price">270$</span></div> </div> <div class="bottom_prod_box"></div>

</div>

<div class="prod_box"> <div class="top_prod_box"></div> <div class="center_prod_box"> <div class="product_title"><a href="details.html">Samsung Webcam</a></div> <div class="product_img"><a href="details.html"><img src="images/p5.gif" alt="" title="" border="0" /></a></div> <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div> </div> <div class="bottom_prod_box"></div> </div> </div><!-- end of center content -->

<div class="right_content"> <div class="shopping_cart"> <div class="cart_title">Shopping cart</div>

Mobile Shop

Page 71

<div class="cart_details"> 3 items <br /> <span class="border_cart"></span> Total: <span class="price">350$</span> </div>

<div class="cart_icon"><a href="#" title="header=[Checkout] body=[&nbsp;] fade=[on]"><img src="images/shoppingcart.png" alt="" title="" width="48" height="48" border="0" /></a></div>

</div>

<div class="title_box">Whats new</div> <div class="border_box"> <div class="product_title"><a href="details.html">Motorola 156 MXVL</a></div> <div class="product_img"><a href="details.html"><img src="images/p2.gif" alt="" title="" border="0" /></a></div> <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div> </div>

<div class="title_box">Manufacturers</div> <ul class="left_menu"> <li class="odd"><a href="services.html">Sony</a></li> <li class="even"><a href="services.html">Samsung</a></li>

Mobile Shop

Page 72

<li class="odd"><a href="services.html">Daewoo</a></li> <li class="even"><a href="services.html">LG</a></li> <li class="odd"><a href="services.html">Fujitsu Siemens</a></li> <li class="even"><a href="services.html">Motorola</a></li> <li class="odd"><a href="services.html">Phillips</a></li> <li class="even"><a href="services.html">Beko</a></li> </ul>

<div class="banner_adds"> <div class="fb-like-box" data-href="http://www.facebook.com/mobilestores" align="left" data-width="200" data-height="220" data-show-faces="true" datastream="true" data-header="true"></div> </div> </div><!-- end of right content --> </div><!-- end of main content --> <div class="footer"> <div class="left_footer"> <img src="images/footer_logo.png" alt="" title="" width="170" height="49"/> </div> <div class="center_footer"> All Rights Reserved 2008<br /> <a href="http://csscreme.com/freecsstemplates/" title="free templates"><img src="images/csscreme.jpg" alt="free templates" title="free templates" border="0" /></a><br /> <img src="images/payment.gif" alt="" title="" /> </div>

<div class="right_footer"> <a href="index.html">home</a> Mobile Shop Page 73

<a href="details.html">about</a> <a href="details.html">sitemap</a> <a href="details.html">rss</a> <a href="contact.html">contact us</a> </div> </div> </div> <!-- end of main_container --> </body> </html>

Cart Table

<div class="center_content"> Mobile Shop Page 74

<%@page import="java.sql.*;" %> <%! String imgname=""; LinkedList list1=null; %>

<% String id="",name="",price=""; try { imgname = request.getParameter("imgdata"); String r = request.getParameter("r");

Connection con = DriverManager.getConnection("jdbc:odbc:mobile");

Statement stmt = con.createStatement(); String query = "select * from productN where Prod_id='"+imgname+"'"; ResultSet rs = stmt.executeQuery(query); if(rs.next()) { id= rs.getString(2); name=rs.getString(3); price=rs.getString(4); %>

<form name="f"> <input type="hidden" name="hid1" value="<%= imgname %>">

<table border="0" width="1000">

Mobile Shop

Page 75

<% ServletContext sc = request.getServletContext(); list1 = (LinkedList) sc.getAttribute("cartitems");

%>

<tr >

<td colspan="4" height="50" bgcolor="#D0D0D0 " class="top bottom right left"><img align="left" src="images/hapyshop.png"/><img align="right" src="images/scart.png"/></td> </tr>

</table> <table border="0" width="1000" > <% Object obj = session.getAttribute("SESSIONNAME");

LinkedList list = new LinkedList();

if(list1!=null) { list = list1;

Mobile Shop

Page 76

} if(obj!=null && r==null) { list.add(id); list.add(name); list.add(price); session.removeAttribute("SESSIONNAME"); session.invalidate(); }

if(r!=null) { int zx = Integer.parseInt(r); zx = zx*3; //out.println("<h1>"+zx+" / "+(list.size()-1)+"</h1>");

list.remove(zx); list.remove(zx); list.remove(zx); }

int z=-1;int p=0,a=0;

int total=0,t=0; for(int i=0;i<list.size()/3;i++) {%>

Mobile Shop

Page 77

<tr height="150" class="top bottom" bgcolor="#E8E8E8" onMouseover="this.bgColor='#66CCCC'"onMouseout="this.bgColor='#E8E8E8'"> <td width="250" height="150" align="left" > <img height="100" width="100" align="center" src="images/<%= list.get(++z) %>.png" alt="" align=top height="200"/> </td> <td width="250" align="center">

<%= list.get(++z) %> </td>

<td width="250">

<% t=Integer.parseInt(list.get(++z)+""); total=total+t; out.println(t); // session.setAttribute("count", t); %>

</td>

<td> <img height="50" width="60" src="images/DeleteRed.png" type="button" value="remove" onclick="remove(this);" />

Mobile Shop

Page 78

</td>

</table>

<table border="0" width="1000">

<tr><td colspan="4"</tr> <% } out.println("<tr><td colspan=2 rowspan=2 ><h2>total items "+ ((list.size()/3))+" <br> Total is "+total+"</h2></td></tr>");

sc.setAttribute("cartitems",list); %> </table> <table width="1000" border="0"> <tr><td colspan="4" width="90"></td> </tr> <td height="80"><a href="Home.jsp"/> <img src="images/contShopping.png"/></td> <tr>

<td>3</td> <td>4</td> <td><a href="login.jsp"/><img align="center" src="images/buynw.png"/> </td> </tr>

Mobile Shop

Page 79

</table> </form> <% } else{ } //session.removeAttribute("SESSIONNAME"); //session.invalidate(); } catch(Exception e) { // session.removeAttribute("SESSIONNAME"); //session.invalidate(); out.println(e); }

%>

</body>

Source Code of Style Sheet

Mobile Shop

Page 80

body { background:url(images/bg.jpg) no-repeat #fff center top; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:11px; margin:0px auto auto auto; color:#000; } p{ padding:2px; margin:0px; } #main_container{ width:1000px; height:auto; margin:auto; padding:0px; } .top_bar{ width:1000px; height:38px; background-color:#4a4a4a; } .top_search{
Mobile Shop Page 81

width:370px; height:32px; margin:0px 20px 0 0; _margin:0px 10px 0 0; float:right; background:url(images/top_search_bg.gif) no-repeat center; } input.search_input{ width:182px; height:18px; float:left; margin:5px 0 0 0 ; border:1px solid #dbdbdb; border-bottom-color:#ffffff; border-right-color:#ffffff; } .search_text{ float:left; width:110px; padding:8px 0 0 15px; color:#999999; } .search_text a{ text-decoration:none; color:#999999;
Mobile Shop Page 82

} .search_bt{ float:left; padding:2px 0 0 15px; } .languages{ float:right; width:150px; padding:8px 0 0 0; } .lang_text{ float:left; padding:0 5px 0 0; color:#b3adad; } a.lang{ display:block; float:left; padding:0 5px 0 5px; } #header{ width:1000px; height:173px; background:url(images/header_bg.jpg) no-repeat center; background-position:0px 0px;
Mobile Shop Page 83

margin:auto; } #logo{ float:left; padding:15px; } /*------------------------------oferte_content-----------------------*/ .oferte_content{ width:600px; height:164px; float:left; padding:0 0 0 50px; } .top_divider{ float:left; width:1px; height:164px; } .oferta{ width:538px; float:left; padding:15px 30px 0 30px; } .oferta_img{ float:left;
Mobile Shop Page 84

padding:0 0 10px 0; } .oferta_title{ font-size:15px; color:#b72c24; font-weight:bold; } .oferta_details{ width:400px; float:left; padding:0 0 0 30px; } .oferta_text{ padding:5px 0 5px 0; font-size:12px; color:#FFFFFF; text-align:justify; line-height:15px; } a.details{ width:83px; height:21px; display:block; float:right; margin:5px 0 0 0;
Mobile Shop Page 85

padding-left:5px; background:url(images/details_bt_bg.gif) no-repeat center; text-align:center; line-height:21px; text-decoration:none; color:#000000; } /*---------------------oferta_pagination-----------------------------*/

div.oferta_pagination { clear:both; padding:10px 0 0 0; _padding:0px 0 0 0; margin:5px; text-align:center; float:left; font-size:10px; }

div.oferta_pagination a { width:22px; height:22px; display:block; float:left; margin:0 0 0 5px;


Mobile Shop Page 86

_margin:0 0 0 3px; line-height:23px; text-align:center; background:url(images/pag_bg.gif) no-repeat center; text-decoration:none; color:#9d8b8b; } div.oferta_pagination a:hover, div.pagination a:active { width:22px; height:22px; display:block; float:left; line-height:23px; text-align:center; background:url(images/pag_bg_a.gif) no-repeat center; text-decoration:none; color:#ad1614; } div.oferta_pagination span.current { width:22px; height:22px; display:block; float:left; line-height:23px; text-align:center;
Mobile Shop Page 87

background:url(images/pag_bg_a.gif) no-repeat center; text-decoration:none; color:#ad1614; } #main_content{ clear:both; } /*---------------- menu tab----------------------*/ #menu_tab{ width:1000px; height:50px; background-color:#fff; } .left_menu_corner{ width:9px; height:50px; float:left; background:url(images/menu_left.gif) no-repeat center; } .right_menu_corner{ width:9px; height:50px; float:left; background:url(images/menu_right.gif) no-repeat center; }
Mobile Shop Page 88

ul.menu { list-style-type:none; float:left; display:block; width:982px; margin:0px; padding:0px;background:url(images/menu_bg.gif) repeat-x;}

ul.menu li { display:inline; font-size:11px; font-weight:bold; line-height:50px; } ul.menu li.divider { display:inline; width:2px; height:50px; float:left; background:url(images/menu_divider.gif) no-repeat center; }

a.nav1:link, a.nav1:visited { display:block; float:left; padding:0px 8px 0px 22px; margin:0 14px 0 14px;height:50px;text-decoration:none; background:url(images/home.png) no-repeat left; color:#676d77;} a.nav2:link, a.nav2:visited { display:block; float:left; padding:0px 8px 0px 22px; margin:0 14px 0 14px;height:50px;text-decoration:none; background:url(images/services.png) no-repeat left; color:#676d77;}

Mobile Shop

Page 89

a.nav3:link, a.nav3:visited { display:block; float:left; padding:0px 8px 0px 22px; margin:0 14px 0 14px;height:50px;text-decoration:none; background:url(images/favs.png) norepeat left; color:#676d77;} a.nav4:link, a.nav4:visited { display:block; float:left; padding:0px 8px 0px 22px; margin:0 14px 0 14px;height:50px;text-decoration:none; background:url(images/user_add.png) no-repeat left; color:#676d77;} a.nav5:link, a.nav5:visited { display:block; float:left; padding:0px 8px 0px 22px; margin:0 14px 0 14px;height:50px;text-decoration:none; background:url(images/car.png) norepeat left; color:#676d77;} a.nav6:link, a.nav6:visited { display:block; float:left; padding:0px 8px 0px 22px; margin:0 14px 0 14px;height:50px;text-decoration:none; background:url(images/contactnew.png) no-repeat left; color:#676d77;}

a.nav1:hover, a.nav2:hover, a.nav3:hover, a.nav4:hover, a.nav5:hover, a.nav6:hover { color:#333333;}

li.currencies{ width:180px; float:left; padding:0 0 0 15px; _padding:12px 0 0 15px; color:#676d77;

Mobile Shop

Page 90

font-size:11px; font-weight:bold; } /*----------------crumb_navigation-------------*/ .crumb_navigation{ width:980px; height:15px; padding:5px 10px 0 20px; color:#333333; background:url(images/navbullet.png) no-repeat left; background-position:5px 6px; } .crumb_navigation a{ color:#0fa0dd; text-decoration:underline; } span.current{ color:#0fa0dd; }

/*-------------left_content------------------*/ .left_content{ width:196px; float:left; }


Mobile Shop Page 91

.title_box{ width:196px; height:30px; margin:5px 0 0 0; background:url(images/menu_title_bg.gif) no-repeat center; text-align:center; font-size:13px; font-weight:bold; color:#fff; line-height:30px; } /*--------left menu---------*/ ul.left_menu{ width:196px; padding:0px; margin:0px; list-style:none; } ul.left_menu li{ margin:0px; list-style:none; } ul.left_menu li.odd a{ width:166px;height:25px;display:block;background:url(images/checked.png) no-repeat left #dad0d0; background-position:5px 5px;border-bottom:1px #FFFFFF solid;
Mobile Shop Page 92

text-decoration:none;color:#504b4b;padding:0 0 0 30px; line-height:25px; } ul.left_menu li.even a{ width:166px;height:25px;display:block;background:url(images/checked.png) no-repeat left #eee6e6;background-position:5px 5px;border-bottom:1px #FFFFFF solid; text-decoration:none;color:#504b4b;padding:0 0 0 30px; line-height:25px; } ul.left_menu li.even a:hover, ul.left_menu li.odd a:hover{ background:url(images/checked.png) no-repeat left #7bbcc7; color:#FFFFFF;background-position:5px 5px; }

.border_box{ width:194px; height:auto; text-align:center; border:1px #6da6b1 solid; } .product_title{ color:#ea2222; padding:5px 0 5px 0; font-weight:bold; } .product_title a{ text-decoration:none;

Mobile Shop

Page 93

color:#ea2222; padding:5px 0 5px 0; font-weight:bold; } .product_title a:hover{ color:#064E5A; } .product_img{ padding:5px 0 5px 0; } .prod_price{ padding:5px 0 5px 0; } span.reduce{ color:#999999; text-decoration:line-through; } span.price{ color:#ea2222; } /*----------newsletter--------------*/ input.newsletter_input{ width:160px; height:16px; border:1px #ddd9d9 solid;
Mobile Shop Page 94

margin:10px 0 5px 0; font-size:12px; padding:3px; color:#999999; } a.join{ width:17px; display:block; margin:5px 0 5px 140px; _margin:5px 0 5px 130px; background:url(images/blue-add.png) no-repeat left; padding:0 0 0 20px; text-decoration:none; color:#1c4a52; } .banner_adds{ width:194px; text-align:center; padding:10px 0 10px 0; }

/*center content--------------------------*/ .center_content{ width:585px; float:left;


Mobile Shop Page 95

padding:5px 10px; } .center_title_bar{ width:520px; height:33px; float:left; padding:0 0 0 40px; margin:0 0 0 12px; _margin:0 0 0 6px; line-height:33px; font-size:12px; color:#847676; font-weight:bold; background:url(images/bar_bg.gif) no-repeat center; }

/*----------------------right content--------------*/ .right_content{ width:196px; float:left; padding:5px 0 0 0; } .shopping_cart{ width:195px; height:84px;


Mobile Shop Page 96

text-align:center; background:url(images/cart_bg.gif) no-repeat center; } .cart_title{ font-size:12px; font-size:12px; color:#847676; font-weight:bold; padding:8px 0 0 0; } .cart_details{ width:115px; float:left; padding:5px 0 0 15px; text-align:left; } .cart_icon{ float:left; padding:5px 0 0 5px; } span.border_cart{ width:100px; height:1px; margin:3px 0 3px 0; display:block;
Mobile Shop Page 97

border-top:1px #999999 dashed; } /*---------prod_box----------*/ .prod_box{ width:173px; height:auto; float:left; padding:10px 10px 10px 11px; } .top_prod_box{ width:173px;height:12px;background:url(images/product_box_top.gif) norepeat center bottom;float:left; padding:0px; margin:0px; } .bottom_prod_box{ width:173px;height:10px;background:url(images/product_box_bottom.gif) norepeat center top;float:left;padding:0px; margin:0px; } .center_prod_box{ width:173px;height: auto;background:url(images/product_box_center.gif) repeat-y;float:left; text-align:center;padding:0px; margin:0px; } .prod_details_tab{ width:173px; height:31px; float:left; background:url(images/products_details_bg.gif) no-repeat center;

Mobile Shop

Page 98

margin:3px 0 0 0; } img.left_bt{ float:left; padding:6px 0 0 6px; } a.prod_details{ width:25px; display:block; float:left; background:url(images/square-blue-add.gif) no-repeat left; padding:0 0 0 20px; margin:7px 0 0 38px; _margin:6px 0 0 35px; text-decoration:none; color:#0fa0dd; } /*---------prod_box_big----------*/ .prod_box_big{ width:554px; height:auto; float:left; padding:10px 10px 10px 15px; } .top_prod_box_big{
Mobile Shop Page 99

width:554px;height:12px;background:url(images/details_box_top.gif) norepeat center bottom;float:left; padding:0px; margin:0px; } .bottom_prod_box_big{ width:554px;height:12px;background:url(images/details_box_bottom.gif) norepeat center top;float:left;padding:0px; margin:0px; } .center_prod_box_big{ width:554px;height: auto;background:url(images/details_box_center.gif) repeat-y;float:left; text-align:center;padding:0px; margin:0px; } .product_img_big{ width:170px; padding:5px 0 5px 10px; float:left; } .details_big_box{ width:345px; float:left; padding:0 0 0 15px; text-align:left; } .product_title_big{ color:#ea2222; padding:5px 0 5px 0; font-weight:bold;

Mobile Shop

Page 100

font-size:14px; } .specifications{ font-size:12px; font-weight:bold; line-height:18px; } .thumbs{ padding:8px 5px 8px 5px; border:1px #DFD1D1 solid; margin:3px 0 0 0; } .thumbs a{ padding:3px; } .prod_price_big{ padding:5px 0 5px 0; font-size:16px; } span.reduce{ color:#999999; text-decoration:line-through; } span.price{ color:#ea2222;
Mobile Shop Page 101

} a.addtocart{ width:76px; height:27px; display:block; float:left; background:url(images/addtocart.gif) no-repeat left; padding:0 0 0 33px; text-decoration:none; line-height:27px; color:#1c4a52; } a.compare{ width:76px; height:27px; display:block; float:left; margin:0 0 0 10px; background:url(images/compare.gif) no-repeat left; padding:0 0 0 33px; text-decoration:none; line-height:27px; color:#1c4a52; } span.blue{
Mobile Shop Page 102

color:#5F9FAB; } /*---------------contact_form------------------*/ .contact_form{ width:355px; float:left; padding:0px 0 0 75px; } .form_row{ width:335px; clear:both; padding:10px 0 10px 0; _padding:5px 0 5px 0; color:#a53d17; } label.contact{ width:75px; float:left; font-size:12px; text-align:right; padding:4px 5px 0 0; color: #333333; } input.contact_input{ width:253px;
Mobile Shop Page 103

height:18px; background-color:#fff; color:#999999; border:1px #DFDFDF solid; float:left; } textarea.contact_textarea{ width:253px; height:50px; font-family:Arial, Helvetica, sans-serif; font-size:12px; color: #999999; background-color:#fff; border:1px #DFDFDF solid; float:left; } a.contact{ width:99px; height:27px; display:block; float:right; margin:0 0 0 10px; background:url(images/contact_bt.gif) no-repeat left; padding:0 0 0 10px; text-decoration:none;
Mobile Shop Page 104

line-height:27px; color:#1c4a52; } /*--------------footer----------------*/ .footer{ width:1000px; clear:both; height:65px; background:url(images/footer_bg.gif) repeat-x top; } .left_footer{ float:left; width:300px; padding:5px 0 0 10px; } .right_footer{ float:right; padding:15px 30px 0 0; } .right_footer a{ padding:0 0 0 7px; text-decoration:none; color: #666666; } .right_footer a:hover{
Mobile Shop Page 105

text-decoration:underline; }

.center_footer{ float:left; width:200px; text-align:center; color:#666666; padding:10px 0 0 60px; }

.top { border-top:thin solid; border-color:black; }

.bottom { border-bottom:thin solid; border-color:black; }

.left { border-left:thin solid; border-color:black; }


Mobile Shop Page 106

.right { border-right:thin solid; border-color:black; }

/*-----------forms----------------*/ .outter{ border:3px #E0F0E8 solid; background-color:#F5FAF9; } .note{ font-family:tahoma; font-size:12px; color:#333333; border:1px #55917A dashed; } .input{ font-family:Verdana, Arial, Helvetica, sans-serif; font-weight:normal; font-size:12px; border:1px #A7BEB7 solid; } .text{ font-family:tahoma;
Mobile Shop Page 107

font-size:11px; color:#617E78; }

.formHeading{ font-family:Arial, Helvetica, sans-serif; font-size:18px; color:#55917A; }

Mobile Shop

Page 108

12. CONCLUSIONS
The Online Mobile Shop is designed to provide a web based application that would make searching, viewing and selection of a product easier. The search engine provides an easy and convenient way to search for products where a user can Search for a product interactively and the search engine would refine the products available based on the users input. The user can then view the complete specification of each product. They can also view the product reviews and also write their own reviews

12.1 Limitations
This application does not have a built in check out process. An external checkout package has to be integrated in to this application. Also users cannot save the shopping carts so that they can access later i.e. they cannot create wish lists which they can access later. This application does not have features by which user can set price ranges for products and receive alerts once the price reaches the particular range.

12.2 Scope for Future Work


The following things can be done in future. The current system can be extended to allow the users to create accounts and save products in to wish list. The users could subscribe for price alerts which would enable them to receive messages when price for products fall below a particular level. The current system is confined only to the shopping cart process. It can be extended to have an easy to use check out process.

Mobile Shop

Page 109

Users can have multiple shipping and billing information saved. During checkout they can use the drag and drop feature to select shipping and billing information.

12. Bibliography.
All about Microsoft controls in C# http://www.msdn.microsoft.com/ Wikipedia for various diagrams & testing methods http://www.wikipedia.org/ Cool text for Images and Buttons http://cooltext.com/ http://krex.k-state.edu/dspace/handle/2097/959 http://www.smartdraw.com/ (Smart Draw for drawing all the Diagrams used in this report.) http://www.NewEgg.com http://www.projectsmart.co.uk http://ewebarchitecture.com/ecommerce/ http://www.computerhope.com/htmcolor.htm

Mobile Shop

Page 110

Вам также может понравиться