KIT202 project PART 1 &2
Our Client – Y.E.O.M (Your Excellent On-time Meals) PtyLtd
INTRODUCTION
Y.E.O.M.Pty.Ltd.hasboughtoutLazenbys,TheRefandTheTradeTableatUniversityofTasmania (UTas). In discussion with the staff and students at UTas, it was discovered that the biggest complaint was having to wait in long queues during peak times when they have just a short time to get a meal orbeverage.
To address this issue, it has been decided to develop a web site where food and drink can be pre- ordered and pre-paid so that clients can quickly collect their meals.
DETAILS
Each café will have its own menu displayed by the system.
There will be a “Master List of Food & Beverages”. This list will contain the ONLY items that may appear on a menu.
Eachcafémanagerwillberesponsibleforselectingitemsfromthe“MasterListofFood&Beverages” thatwillappearontheircafesmenu(i.e.themanagerforTheRefcanselectitemstoappearonthe menu for The Ref, but NOT for Lazenbys or The Trade Tablemenus).
The Director of The Board will be responsible for security access for the Board Members. The Board Members of Y.E.O.M.:
· willcontrolwhatwillbeavailableattheUTascafes,sowillbetheonlypeoplewhocancreate and modify the master list of food anddrinks.
· will be responsible for employment and security access at thecafes.
Each café will have at least 2 staff members (numbers are determined by a Board Member), one of whom will be assigned (by a Board Member) to be that cafes manager. Staff and managers can be rostered to work at any café, but there can be only one manager at each café at a time.
Tousetheonlinemenusystem,UTasstaffandstudentsmustfirstregisterbyprovidingtheirName, Student/Staff ID, E-mail address, mobile phone number, credit card details and password. After registering, an e-mail will be sent to the users e-mail that contains a link that is used to confirm registration (for the purposes of testing you should use your own e-mailaccount).
Payment for menu items will come from a pre-paid account. All users will have an account created at registration that they must deposit funds into to purchase items from a menu (i.e. like the caps printing system).
When ordering from a menu, users will be able to add comments to any item ordered. This will be tospecifyanyitemspecificse.g.iforderingcoffee,adescriptionofthetypeofcoffeemaybesupplied such as “large soy latte +3 sugars”. Each menu is for the followingday.
User ID Ranges:
User Type
ID format (CCnnnn)
Director of the Board
DBnnnn (e.g. DB2123)
Board Members
BMnnnn (e.g. BM0234)
Café Managers
CMnnnn (e.g. CM3122)
Café Staff
CSnnnn (e.g. CS1898)
UTas Students
USnnnn (e.g. US3212)
UTas Employees
UEnnnn (e.g. UE1234)
PLANNING & DEVELOPMENT CONSIDERATIONS
Planning the site.
· Planasiteoverallinthefirstplaceisacrucialsteptoconstructasite.Understandtheclient’s needsandplanaccordingly.Forexample,planningadesignthemeforthesitewithvariations of the theme that may be used for sub sections is arecommendation.
Develop using the appropriate tools.
· HTML 5 for staticcontent.
· CSS forformatting.
· JavaScript, Ajax and jQuery for client-sideinteractivity.
· PHP for dynamic content and server-sideinteractivity.
· MySQL for data storage andretrieval.
Apply consistent structure.
The files needed for the web site will be included in a single folder (directory) – the name of thisfolderisthesameasyouralacritasusername. Thefilesmustbeorganizedintosensibly chosen sub-folders (i.e. sub-folder for CSS or sub-folder for images,etc.).
All semantic structure of the website is controlled by “HTML”. Pay close attention to the elementsthatyouuse–makesurethatyouusethemostappropriateelementforthekindof text you are markingup.
All layout and other details of the appearance of the website are controlled by valid CSS (Cascading Style Sheets) rules. You place the overall CSS rules in an external style sheet.
All client side behavior of the website (the response to mouse clicking or keyboard reaction) are controlled by valid JavaScript / Ajax / jQuery.
All data is stored in the MySQL database.
Description of Task – Part 1 (15%)
HOME PAGE
This is the starting / entry point to the café menu system which will have:
· links to each of the café menus.
· A link to a registration page.
· login/logout section.
For project 1 (Part 1) the login/logout section does not need to authenticate a user, it just needs to change the security state/level (i.e. no database access is required).
REGISTRATION PAGE
This is where new users can register to use the system. Further details are in the DETAILS section above.
Proper input validation must be applied at this point including:
· double entry password check
· password is:
o 6 to 12 characters in length
o Contains at least 1 lower case letter, 1 uppercase letter, 1 number and one of the following special characters ~ ! # $
Café staff and managers do not register, they are added to the system by a Board Member. Once added to the system, café staff can also use the menu system to order food and beverages.
For Part 1 the registration page does not need to store the registration data (i.e. no database access is required).
CAFÉ MENU PAGE
It will display:
· The opening and closing times of the café,
· the list of food and beverage items available at that café,
· their cost and an initial associated order quantity of 0 (zero).
If a user is not logged in, they can only view the menu items. The comment and quantity fields for each item cannot be viewed, and an order cannot be submitted.
If a user is logged in, they can view a menu and change any items quantity and submit it as an order.
For Part 1 the café menu page does not need to store a submitted order (i.e. no database access is required).
MASTER FOOD & BEVERAGE LIST PAGE
This is where a Board Member creates, edits or removes items in the list of food and beverages that will be available for selection by the café managers to use in their menus.
A Board Member also allocates the purchase price for each item and sets the date that the menu applies to.
For Part 1 the master food and beverage list page does not need to store any changes to the list or the items in it (i.e. no database access is required).
Description of Task – Part 2a (20%)
HOME PAGE
For Part 2 the login/logout section WILL need to authenticate a user (i.e. database access IS
required).
REGISTRATION PAGE
For Part 2 the registration page WILL need to store the registration data (i.e. database access IS
required).
CAFÉ MENU PAGE
It will display a total cost of all items selected to be ordered.
It will display a user’s account balance which will decrease or increase in value as menu items are added or removed from an order.
There must be an order collection time selected from a drop-down list. All order collection times will be on the quarter hour e.g. 8:30am,10:45am,12:30pm. All order collection times must be at least 30 minutes after opening and at least 60 minutes before closing.
It will not allow a user to order more than their account balance can pay for.
For Part 2 the café menu page WILL need to store a submitted order and update a user’s account balance as required (i.e. database access IS required).
USER ACCOUNT PAGE
This page can only be accessed while a user is logged in.
Here a user can view their account balance and deposit more funds.
For Part 2 the user account page WILL need to retrieve and update a user’s account details as required (i.e. database access IS required).
MENU MANAGEMENT PAGE
This page can only be accessed while the café manager is logged in.
Here the café manager can add or remove items from the menu and can change the café opening and closing times. Opening and closing times must be on the quarter hour.
USER MANAGEMENT PAGE
Here:
· users can change their password, mobile number or e-mail address,
· a Board Member can
o add or remove café staff,
o allocate café staff to be managers,
o allocate staff to a café.
MASTER FOOD & BEVERAGE LIST PAGE
For Part 2 the master food & beverage list page WILL need to modify the list of food and beverages that will be available for selection by the café managers to use in their menus (i.e. database access IS required).
CAFÉ ORDERS PAGE
This page is only available to the café staff and café manager, and lists all orders and the order details placed. Only the current days orders will be visible.
Description of Task – Part 2b Additional Features (5%)
Part 2b Additional Features is self-directed learning and as such there will not be any formal instruction on how to achieve it – you will need to conduct your own research and self-study.
To attempt the last 5 marks, the following 8 attributes/features must be applied to Part 1 and Part 2a of the project (0.625 marks for each).
You are advised not to attempt these modifications until you have achieved a fully featured and correctly functioning website that meets all of the Part 1 and Part 2a criteria.
1. Order discounts will apply:
User
Discount
Director of the Board
100%
Board Members
80%
Café managers
15%
Café staff
10%
UTas Students
7%
UTas Employees
0%
2. All order totals are rounded to the nearest cent (i.e. a student order totalling $15.50 gets a discount of $1.085 making the new order total $14.415, which would be recorded/processed as $14.42
3. Challenge response is required for registration.
4. Forgot password feature is required.
5. Can top up account balance during an order and not lose the order details.
6. Pictures of users, food and beverages will be stored and displayed in appropriate areas.
Note: There is a storage limit in alacritas. Be careful not to exceed the allowance.
7. A
案例CS之HTML CSS Javascript café menu system website
2018-02-26