Professional Documents
Culture Documents
Online shopping
Phoenix Name Authors Nguyen Manh Linh Pham Ngoc Duc Nguyen The Luc Date Instructor 10/04/2010
Page 1
Name Nguyen Manh Linh Pham Ngoc Duc Nguyen The Luc
Page 2
System Designs..........................................................................25
Context Diagram...............................................................................................25 Infrastructure.................................................................................................... 50 Entity Relationship Diagram..............................................................................50 50 51 Entity Details.....................................................................................................54 Database Design...............................................................................................54 3.5.1. Table Relationship Diagram..................................................................54 3.5.2. Table Details........................................................................................54 Hierarchical Function Diagram..........................................................................54 System Functions Design..................................................................................73 3.5.Prototype.................................................................................................... 73 Main source code..............................................................................................73
Deployment................................................................................73
Page 3
Acronyms
1. Problem Definition Problem Definition Arts is a stationary shop that sells arts, gift articles, greeting cards, dolls, files, hand bags, wallets, and as well some of the beauty products, etc. As there is a lot of demand for the greeting cards, gift articles, hand bags, etc. and in this busy world where one can hardly find time to go out for shopping and with the emerging new technologies where one can purchase products by placing an order through online by sitting at home/office either by credit cards or by VPP or through Cheque or through DD. Our client is a retail dealer of various products like gift articles, dolls, files, etc. The customers usually visit the shop in order to purchase the products. He has a huge variety of products at his shop. Also as there is an increase in the demand of these products and as well as there is a huge variety of combinations and products available, and as the number of retail dealers are increasing day by day, it has become difficult to withheld in the market and as well to retain the customers.
Also as they dont keep track of the products, it is hard to find how many products are available in the shop.
Page 4
Project Plan
Page 5
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti Customer Requirements Specification Customer Requirements In order to cope up in this competitive world, and to retain the customers, to automate the process, our client wants an application to be built meeting the current technology trend where the customers can place their order through online by sitting at their office/home, and providing the products as per the orders received by the dealer at the door steps of the customer He says that he wants that the application should hold the details of the products in detail like price, description of the product and each product is allocated with a unique 7 digit product id which includes 2 digit product code and 5 digit product number. Also he says that for fetching the details of the products, the customer need not be the registered one, but for placing an order one has to be the registered user of the site. After placing an order, the dealer would dispatch the order as per the type of delivery that the customer has chosen. He says that the application should generate a unique 16 digit order number (includes the type of the delivery (1 digit) that the user has opted for, Product id (7 digit), and the order number (8 digit)) as soon as the order is placed by the customer. For the order which is placed through the credit card payment or through cheque, the payment should be cleared first and then only the product will be dispatched to the customers premises. Also he has provided an option like if the customer is not satisfied by the product then the customer can either replace it (new product will not be sent) or he can return it back with in a week days time, so that he can get back his money which he has paid for that product. Also the warranty card will also be provided for the products which have some warranty. The dealer alone should be able to update the details of the employees, products and their details, and he can check the orders that are received based on the date, order type (delivery) and he alone has the right to create an employee profile like username or login id and the password. The employee should only be able to change his password, and he can check the details of the orders so that the products can be dispatched as per the customers request and that they can be delivered in time. Also he says that there should be an option on the web site where the customer can send their feedbacks regarding the services that they attain from them.
Page 6
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti Users of the System Admin-side: Login function Countries function Employees manager: Edit profile of admin, Create new Employee, Edit Employee profile, Remove employees, View list employees. Products manager: Insert product catalogs, Edit product catalogs, Remove product catalogs Insert product manufacturers, Edit product manufacturers, Remove product manufactures, Insert products, Edit products, Remove products, View list product catalogs/product manufacturers, products, view products/catalogs/manufacturers. Orders manager: View list of Orders, View Order details, Check payment type, Check about payment, Change status of Order, Delete Order. Feedbacks manager: View list of feedbacks, View feedbacks, Reply feedbacks, Delete feedbacks. Users manager: View list of user, View users details, Change users status, Delete users, view list feedbacks of user, view list orders of user Admin advance search. Payback function Logout function
Notes: Admin and employees will be maintained in only one table on database but they will be discriminated by a Boolean field of the table. Only admin can use function like Edit, create, delete. The employees can only view the information. Only admin can reply feedbacks or delete feedbacks. The admin can delete user provided that that user dont have any undelivered order. Employees will have a function to change their own password. There are 3 options of advance search that are products search, employees search, users search.
Page 7
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti Client-side: With guests: Register function Login function View products list View product details Search products With registered user: Logout function Change their own profiles View product list View product details View list orders placed View list feedbacks Place product to temporary cart Change cart: remove products from cart, change amount of products Place an order: Accept cart, update order information (deliver address, payment type, receivers information). Create feedbacks Payback function Search products
Page 8
System Functions Admin-side: 0 Function Name Login function Input - User name - Password Process Output Notes - Validate information - Show - Check username and successful message (if password from data is exist) database - If correct, show - Show failure message (if welcome message data is not and redirect to admin exist) homepage - If information is not exist, show failure message and redirect to admin login page Password - Check login (admin - Show Only admin can use this New account) successful - Check password message (if function Username (check the New Password - Validate new
Page 9
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti New infor username and password. Check Username (the existent) Update to database (if satisfy all conditions) Redirect to admin home page if success or to admin profile page if failure Check login Get data from database Redirect to list employees page Show all employees to the page Check login (admin account) Check password If the information input is correct, delete from database and redirect to employees list page If the information input is incorrect, show the failure message and redirect to employees list page Check login (admin account) Check admin password Validate username and password of employee Check username of employee (existent) If all are correct, insert data into database Show failure message and redirect to create employee page Check login information was updated into database) Show failure message (for each wrong case) session)
Click menu
from
Employees list
an
Show message to ask the confirmation of the admin Show successful message (if the employees accounts were deleted) Show failure message (for each wrong case) Show successful message (if the data was inserted into database) Show failure message (for each wrong case)
Employee
Old password
Show
Page 10
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti change password own New password (2 times) Check old password Validate new password If all are correct, update data to database Show failure message and redirect to change password page Check login (admin account) Check password Validate name of catalogue Check name of catalogue (existent) Generate ID of catalogue (if all are correct) and insert data into database If not show failure message and redirect to insert product catalogue page Check login (admin account) Check password Validate new name of catalogue Check name of catalogue (existent) Update data into database if all information is correct If not show failure message and redirect to admin homepage Check login (admin account) Check confirmation Check password Check products in this catalogues If all information is correct, delete data from database If not show failure successful message (if the data was inserted into database) Show failure message (for each wrong case) Show successful message (if the data was inserted into the database) Show failure message (for each wrong case) Only admin can use this function (check session)
of -
Select catalogue Password New name New image (optional) Choose classification
Show successful message (if the data was updated into the database) Show failure message (for each wrong case)
7 Remove product catalogues Select catalogue Click delete button Password C0710G Group 3 - 2010
Show message to ask the confirmation of the admin Show successful message (if data is deleted from database) Show failure
Page 11
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti message and redirect to list catalogues page Check login (admin account) Check password Validate name of manufacturer Check name of manufacturer (existent) Generate ID of manufacturer (if all are correct) and insert data into database If not show failure message and redirect to insert product manufacturer page Check login (admin account) Check password Validate new name of manufacturer Check name of manufacturer (existent) Update data into database if all are correct If not show failure message and redirect to list manufacturers Check login (admin account) Check confirmation Check password Check products in this manufacturer If all are correct, delete data from database If not show failure message and redirect to list manufacturers page Like manufacturer In delete function, message (for each wrong case) Show successful message (if data is inserted into database) Show failure message (for each wrong case)
Show successful message (if data is updated into database) Show failure message (for each wrong case)
10 Remove manufacturers
Classification
Like manufacturer
Show message to ask the confirmation of admin Show successful message (if the data was deleted from database) Show failure message (for each wrong case) Like manufacturer
Like manufacture
Page 12
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti check catalogues of the classification Check login (admin account) Check password Validate all information Check name of product (existent) If all are correct, insert data into database If not show failure message and redirect to admin homepage Check login Get data from database (according to the condition) Show data to list products page r Show successful message (if data was inserted into database) and show new product information Show failure message (for each wrong case) Show list product according to the condition Only admin can use this function (check session)
11 Insert Products
12 View products
list
Password Name of products Description of product (optional) Price Choose catalogue and manufacturer Representative image (optional) Select the options (according to catalogues, according to manufacturers, according to both of them or all of products) Select product from list Select product from list New name of product New description of product (optional) New price Choose new catalogue and manufacturer New representative image (optional) Password Select product Click to delete button Password
Check login Get data from database Check login (admin account) Check password Check name of product (existent) Insert data into database if all are correct. If not show failure message and redirect to this product information page
Show product information Show successful message if data is updated into database and show new information of product Show failure message (for each wrong case) Only admin can use this function (check session) If one of the information is blank, the database will be get the old information
15 Delete product
Page 13
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti Check this product has been still in any undelivered order or not Delete product from database if all are correct If not show failure message and redirect to list product page (all products) Check login Get data from database and show to list orders page (order by status and order date) Check login Get data from database and show it to order detail page Check login (admin account) Check confirmation Check password Change status of order and update into database if all are correct If not, show failure message and redirect to order details page Check login (admin account) Check confirmation Check password Check status of order. If the order hasnt paid and delivered, dont allow to delete. If all are correct, delete data from database Show failure message and stand in current page Check login Show successful message (if the data was deleted from database) Show failure message (for each wrong case) Show list of orders
of
orders
Select button Choose the options (according to time or all orders) Select order
Show details
order
order
19 Delete orders
Show confirmation message Show successful message (if data was updated into database) Show failure message (for each wrong case) Show confirmation message Show successful message (if data was deleted from database) Show failure message (for each wrong case) Show list of
Page 14
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti feedbacks Choose the options (according to date, or all feedback) Select feedback Get data from database and show it to list feedbacks page Check login Get data from database and show it to feedback content page Check login (admin account) Check confirmation Check password Send reply to user (insert into database) feedbacks
21 View feedback
Show feedback content Show confirmation message Show successful message (if the reply was send) Show failure message (for each wrong case) Show confirmation message Show successful message (if the feedback was deleted from database) Show failure message (for each wrong case) Show list of users Show confirmation message Show successful message (if data was updated into Only admin can use this function (check session) Only admin can use this function (check session)
22 Reply feedback
23 Delete feedback
Select button
25 Change status
user
Check login (admin account) Check confirmation Check password Check feedback status. Dont allow delete if the feedback has not been replied If all are correct, delete data from database If not, show failure message and redirect to list feedbacks page Check login Get data from database and show it to list users page Check login (admin account) Check confirmation Check password Change data and update into database if all are correct
Page 15
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti If not, show failure message and redirect to this user details page Check login (admin account) Check confirmation Check password Check orders and feedbacks of this user. If exist order(s) or feedback(s) of this user, dont allow to delete. Ask administrator to delete orders and feedbacks or not. If yes, redirect to list orders or list feedback of this user (list orders is higher priority) If all are correct, delete user from database If not, show failure message and redirect to this user details Check login Get data from database and show it to users details page Check login Get data from database and show it to users list of orders page Check login Get data from database and show it to users list of feedbacks page Check login Find data from database according the option was chosen. Show the fetched data to result page database) Show failure message (for each wrong case) Show confirmation message Show successful message (if data was delete from database) Show failure message (For each wrong case)
26 Delete user
Select button Choose option (accord to date or all orders) Select button Choose option (According to date or all feedbacks) Keyword Choose the options (products, users, or employees) Choose
Page 16
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti advance options (if option is products): according to catalogues or manufacturers or price or combination of them Choose absolute or relative Click to button
Logout function -
Client-side: 1 Function Name Register Input Process Output notes - User name - Validate the - Show - Only - Password information successful available - Check username message (if if session - Address data was username and e-mail (optional) inserted into is null (existent) - Phone number database) (there is - If all are correct, (optional) no user insert data into - Show failure - Full name login) message (for database and show - Date of birth
Page 17
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti Sex E-mail Password level 2 Secret question Answer of secret question ID card (optional) Credit card or Cheque number (optional) Username Password successful message. Redirect to client homepage If not, show failure message and redirect to register page each case) wrong
Login
Logout
View list
products
Validate information Check username and password from database (existent) If user is exist, login to system, change session username as this username. Redirect to client homepage. Show logout, profile and view cart options. Hide login and register options. If not, show failure message and redirect to login page Set session username as null Redirect to client homepage Hide logout, profile and show cart options Show register and login options. Get data from database according the options were chosen by user and show it to list products page
Welcome message (if login success) Show failure message (for each wrong case)
Show products
list Each product will be showed by name, represent image and price.
Page 18
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti Each product will have a button to place Show If one of the information is successful message and blank, new profile if database will data was get old data updated to database Show failure message (for each wrong case)
Change profile
Click to change password button Old password Password level 2 New password (2 times)
Click to change password level 2 button Old password level 2 New password level 2 (2 times) Secret question Answer of secret question
Check login Validate profile information Check password If all are correct, update data into database. Show successful message and redirect to profile page If not, show failure message and redirect to profile page Check login Validate Check old password level 1 and password level 2 If all are correct, change password level 1 and update into database. Show successful message and redirect to profile page If not, show failure message and redirect to change password level 1 page Check login Validate Check old password level 2 Check secret question If all are correct, change password level 2 and update into database. Show successful message and redirect to profile page If not, show failure message and
Show successful message (if data was updated into database) Show failure message (for each wrong case)
Show successful message (if data was updated into database) Show failure message (for each wrong case)
Page 19
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti redirect to change password level 2 page Check username and e-mail from database (existent) If correct, send password level 1 to this e-mail. Show report page. If not, show failure message and redirect to forget password page Check login Get the information of this user from database and show it to profile page
Forget password
Show report page (your password is sent to your email) Show failure message (for each wrong case) Information of The profile page will have user change password 1 button, change password 2 button, show orders list, show feedbacks list Information of The information product are name, representative image, description, price and have a button to add this to cart Only registered user can place an order
View profile
10 View details
products
11 Add to function
cart
Check login If the guest is not login, show failure message and redirect to login page Add product to temporary cart with amount is 1. Calculate the cost of cart Check login Redirect to shopping cart page Show the
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti information of temporary cart Check login Validate amount of products (more than 0, be integer not characters) If correct, change it in temporary cart. Calculate the price again. Redirect to view shopping cart page If not, show failure message and redirect to view shopping cart page (with old values) Check login Remove products from temporary cart Redirect to show shopping cart page (new values) Check login Set value of temporary cart as null Redirect to shopping cart page Check login Validate feedback subject and content If all are correct, insert data to database and redirect to profile page. Show successful message If not, back to current page and show failure message Check login Select from database feedbacks of this user (according time if chosen) Redirect to list
Show new shopping cart with new values if success Show failure message (for each wrong case)
Select products that user want to remove Click to update button Click to remove all button
Show cart
Only registered user can place an order Only registered user can place an order
16 Create feedbacks
the (in
Show successful message (if the feedback was sent) Show failure message (for each wrong case)
Show the Only feedbacks the registered user have user has sent feedbacks
Page 21
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti feedbacks and show the feedbacks Check login Select the feedback from database Select reply from database If the feedback has not replied, show report message If it replied, show the reply content Check login Select the orders of this user from database (according time if chosen) Redirect to the list order page. Check login Check amount Insert return to database
19 View orders
list
of
Show list of Only orders of this registered user have user orders
20 Return Order Select Order(In profile) Select Return Button Select product in order and return amount Type of return (return /exchange) Return reason Select option (according to catalogue, according to manufacturer or both of them) Keyword Select payment option -
Show list of Only orders of this registered user have user orders
21 Search products
Select from database products satisfy the conditions Show them to page
the
22 Payment Type
23 Credit (Payment
card type
Credit type
card
Check login Redirect to complete order page For each payment type the user choose will be process with difference ways Check login Validate field
Show next step Only registered to place order user have orders
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti process) Credit Card Number Expiration Date Card Security Code If the Payment Information different than user information Full name Address City State(optional) Zip/Post Code Country Phone Number Email Address DD number Bank name Which branch of the bank Address of the bank Amount of the DD Date on which DD is taken Insert data to database (credit information) if all are correct. Redirect to complete order page If not, show failure message, redirect to type payment page Show failure user message (for orders each wrong case) have
Check login Validate field DD number, Bank name, Which branch of the bank, Address of the bank, Amount of the DD, Date on which DD is taken. Insert data to database (credit information) if all are correct. Redirect to complete order page If not, show failure message, redirect to type payment page
Show next step to place order Show failure message (for each wrong case)
Notes: All function have check login in process, if the check login case is fail, the page will be redirected to login page with a message. Validate pattern: Password is more than 8 characters (0-9, a-z) and set case-sensitive
Page 23
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti Username is more than 8 characters(0-9, a-z), begin with character and set casesensitive Phone number have to be number Full name is more than 4 characters (0-9, a-z) not set case-sensitive Date time field is formatted: m/d/y Sex is radio button (default male) E-mail field have to well-form in e-mail formatted Fields arent optional field is all required Credit card type is required Credit card number has 12 digits Credit card security code has 3 digits
Field of lists and options of few pages: Employees lists fields: ID, Username, Password, Delete button Product lists fields: ID, Product name, Catalogue name, Manufacturer name, view details button, delete button Product catalogues lists fields: ID, Catalogue name, Classification name, Image, Edit, View list products of catalogue, delete button Product manufacturers lists fields: ID, Manufacturer name, Image, Edit, View list products of manufacturer, delete button Product classification lists fields: ID, Classification name, Image, Edit, View list products of manufacturer, delete button User lists field: ID, Username, Full name, Status, View users details button, delete button Orders lists fields: ID, Username, Receiver name, Type of payment, Amount of products (type), total price, order status, order details button, delete button Receiver information will be showed in order details page Options of product details: Edit, Delete
All list can be ordered by one of all field One page will show max 10 records
Page 24
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti Profile page have other interface, and have link to back to homepage Profile page components: Information of user Feedbacks manager Orders manager
Also regarding the payment through DD, the customer must first place an order, which will be succeeded only after the details of the demand draft for the total ordered amount is entered (like the DD number, Bank name, which branch of the bank, address of the bank, amount of the DD, date on which DD is taken). Once the DD is received by the shop owner, the shop owner will withdraw the money, and once the money is withdrawn, he/she will then deliver the products to that respective customer to the specified address Return products: Customer only return the products which place in that week. The return product will be returned amount to product table. If customer see the products which they placed isnt similar the descriptions in website or broken when deliver, they can exchange the products. When the products are exchanged, they will be added to low quality products table.
Page 25
Level 0
Page 26
Page 27
User management
Order management
Page 28
Product management
Page 29
Page 30
Feedback management
Page 31
Register
Page 32
Profile of user
Place order
Page 33
Page 34
Catalogue management
Page 35
Product management
Page 36
Manufacturer management
Page 37
Classification management
Page 38
Employee management
Page 39
Feedback management
Level 3
C0710G Group 3 - 2010 Page 40
Edit profile
Page 41
Page 42
Cart information
Page 43
Page 44
Add catalogue
Edit catalogue
Page 45
Add product
Edit product
Page 46
Add manufacturer
Edit manufacturer
Page 47
Add classification
Edit classification
Page 48
Add employee
Edit employee
Page 49
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti Infrastructure Entity Relationship Diagram
Page 50
Page 51
Page 52
Page 53
Database Design
a cu trc Database Diagram vo
3.5.1. Table Relationship Diagram 3.5.2. Table Details Hierarchical Function Diagram 3.4.1. Login
Page 54
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti 3.4.2. Change admin profile
Page 55
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti 3.4.3. Create employee account
Page 56
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti 3.4.4. Change employee password
Page 57
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti 3.4.5. Add classification/manufacturer
Page 58
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti 3.4.6. Add catalogue
Page 59
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti 3.4.7. Add product
Page 60
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti 3.4.8. Edit classification/manufacturer/catalogue/product
Page 61
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti 3.4.9. Reply feedback
Page 62
Page 63
3.4.11. Logout
Page 64
3.4.12. Register
Page 65
Page 66
Page 67
Page 68
Page 69
Page 70
Page 71
Page 72
System Functions Design 3.5. Prototype a vo nu c Main source code Task Sheet
Cn a cc task sheet chnh vo y sau ny cn test kim th
Testing Test Plan C gng ln plan draft Test Case Test Repor
Deployment
Page 73