这是一篇来自澳洲的关于完成几个项目Assignment 3的代码代写
Task a) [4 marks] Create Repository on GitHub and Host Website
Create a private repository within the rmit-wp-s2-2022 organisation using your student ID followed by -a3 as shown below:
Repository
s3973862-a3
GitHub URL
https://github.com/rmit-wp-s2-2022/s3973862-a3
You must host your test files at the location shown below:
Website URL
https://titan.csit.rmit.edu.au/~s3973862/wp/a3/index.php
Password protect the URL with .htaccess file. Ensure both yourself and RMIT staff are allowed access with the .htaccess file used.
If the test files are not hosted you will receive ZERO for the whole test.
IMPORTANT NOTE: You should perform regular commits to your repository as you proceed throughout the assessment. It is required that your repository have multiple commits present, a minimum of 5 commits is expected. After completing a task, you should make a commit with an appropriate message.
Task b) [4 marks] Index Page with Sitemap and External CSS
Create the index page (index.php) and include a sitemap at the bottom of the page with the following hierarchal structure:
Assignment 3
View All Orders (links to index.php)
Create Product (links to create.php)
GitHub
Repository (links to https://github.com/rmit-wp-s2-2022/s3973862-a3)
The sitemap can be implemented using JavaScript or PHP. This sitemap should be included at the bottom of every page throughout the test.
The CSS must be within an external file (a3.css). The use of Bootstrap is allowed.
NOTE: All pages throughout this test should be styled and display user-friendly content. Consider spacing between elements,themes / colours, contrast, layout / positioning of content, headings, etc… pages with no style applied will receive deductions.
Task c) [6 marks] Consume REST Web-Service on Index Page
Consume the following web-service using PHP on the index page:
https://titan.csit.rmit.edu.au/~e103884/wp/.services/.orders/
You can contact the web-service using HTTPS or HTTP.
Display all the fields of every order on the index page.
Task d) [5 marks] Create Product Page with Form and Form Validation
Create the create.php page. On this page provide a form using the POST method to submit data with all the fields listed below to facilitate creating a product.
NOTE: The create.php page is linked within the sitemap.
Using PHP perform the following server-side validation:
- Product ID: Must be a positive whole number (greater than 0). Decimal places are not allowed. For example: 1
- Name: Must start with an upper-case letter and only contain letters, numbers and spaces. For example: Vanilla Yoghurt 1 KG
- Price: Must be a positive number between 1 and 1000 inclusive. Decimal places are allowed. For example: 19.95
Separate the validation code to an external file called functions.php using require_once.
IMPORTANT NOTE: Do not use HTML5 or client-side validation. All validation must be performed with PHP.
When the form is submitted and a field is invalid then display a user-friendly error message for that field on this page with the form fields retaining their entered values.
When the form is submitted and all fields pass validation then the user should be re-directed to the index page. The product data entered is not required to be persisted or stored.
Task e) [6 marks] Consume REST Web-Service on Details Page
On the index page, add a link called View Products linking to details.php for every order. This link should include the order’s orderID as a query string variable.
Create the details.php page. Consume the following web-service using PHP on this page:
https://titan.csit.rmit.edu.au/~e103884/wp/.services/.orders/?id=<id>
You can contact the web-service using HTTPS or HTTP.
The orderID query string value passed to the details.php page should be used as the id value provided to the web-service.
Display a heading “Order #<orderID>” for example “Order #1000” and display all the fields of every product within the order on the details.php page.
Submission Instructions
Submit your Website URL to Canvas under Assignments to Assignment 3.
Academic Integrity and Plagiarism (Standard RMIT Warning)
Your code will be automatically checked for similarity against other submissions so please make sure your submitted project is entirely your own work.
Academic integrity is about honest presentation of your academic work. It means acknowledging the work of others while developing your own insights, knowledge, and ideas. You should take extreme care that you have:
- Acknowledged words, data, diagrams, models, frameworks and / or ideas of others you have quoted (i.e., directly copied),summarised, paraphrased, discussed, or mentioned in your assessment through the appropriate referencing methods.
- Provided a reference list of the publication details so your reader can locate the source if necessary. This includes material taken from internet sites.
If you do not acknowledge the sources of your material, you may be accused of plagiarism because you have passed off the work and ideas of another person without appropriate referencing, as if they were your own.
RMIT University treats plagiarism as a very serious offence constituting misconduct. Plagiarism covers a variety of inappropriate behaviours, including:
- Failure to properly document a source.
- Copyright material from the internet or databases.
- Collusion between students.
For further information on our policies and procedures, please refer to the University website.