1. Engineering
  2. Computer Science
  3. use php to make the home webpage cp4 the post...

Question: use php to make the home webpage cp4 the post...

Question details

use PHP to make the home webpage

Homepage Template H.1 The homepage, for now, must be a simple page that welcomes users to the LMS. H.2. Create a file named index.php inside the folder named A1. a. You must use this file to create the homepage template. b. This page must be styled to have the same appearance as the posts template H.3. Use appropriate HTML elements to display the post in the file named homepage.txt that you have saved in the posts folder on the homepage. The post must be displayed in the format described below: a. Title must use heading level H3. b. Title must be followed by the posts author and date. i. You are not required to display the time on this template c. Post content: i. Display the post content as described in CP.4 The homepage must include a panel on one of the sides (either left or right) to include a Login form and a link to the Reporting issues functionalities (Refer to F.1 and F.2 for details), and for future features. H.4. The homepage must also include a header, navigation and footer (Refer to F.3, F.4 and F.5 for details) H.5.Expected Functionality / Features F.1. Login a. Your templates must include a login form b. The login form must have the following fields: i. A textbox to enter the username, with an appropriate title ii. A password-box to enter the password ii. A submit button with the text, Login c. Below the login form, include a link with the text, Forgot password. For the time being, ou may configure it to be an empty linlk The method attribute in the form should be set to post. The action attribute in the form should be set to the name of the PHP file in which this d. e. login form is being displayed. i. For example, if the login form is being displayed in index.php, the action should be set to index.php, and so on It must dynamically update to correspond to the PHP page that the user is currently viewing. (Hint: Check out PHP basename.) ii. f. Note: You will implement the login feature and the required PHP scripts in future assignments. F.2 Reporting issues a. Create a static page named report.php inside the folder named A1. b. This static page must have the same appearance as the course page template, however, you will not be displaying any post content. Instead, you must include a form with the following fields: i. A text field to enter a persons preferred name ii. A text field to enter email address ii. A dropdown list, which allows users to select the type of issue being reported.iv. This list of issues must include the following issues 1. 2. 3. Link not working Page not found Incorrect script A text box for the user to submit a detailed message v. vi. Submit and reset/clear buttons Make sure that all fields in the form are set to be required The method attribute in the form should be set to post The action attribute in the form should be set to report.php Note: You will implement the error reporting feature and the required PHP scripts in c. d. e. f. future assignments F.3. Header Create a folder named includes, inside the folder named A1 Create a file named header.php inside the folder named includes As discussed in class, header.php must contain the portion of the code at the beginning a. b. c. of the PHP script/HTML document, which will be reused in several other PHP files d. The header must also include any title banner elements (e.g. <header>) that you may include in your HTML e. header.php must also contain the navigation element, which is described in F.2 F.4. Navigation a. Navigation menus must be styled according to guidelines of the responsive framework that you have chosen b. The navigation menu must be in a <nav> tag, and this tag must be either included inside the <header> or just below it, if you have included a <header> tag The code for the navigation menu must be included in header.php The navigation menu must include three links to the following web pages c. d. i. ii. Homepage (index.php) - the link text in the menu should be Home My Courses (my-courses.php) - the link text in the menu should be Pests named My Courses. updated on 27 Jan 2019 ii. Reporting issues (report.php) - the link in the menu should be Report Issue e. When the user is on one of the web pages listed above in F.2.d, the navigation menu should highlight the link, i.e. set the appropriate menu item to be active* using styles specified in the framework that you have chosen

CP.4. The post template must use appropriate HTML elements to display the following:
a. Course post title
i. Using heading level H2.
ii. Formatted appropriately.
iii. Must be a link (use an empty link for now).
b. Course post author, date and time
i. Must be positioned below the post title.
ii. All may be contained in a paragraph.
iii. They must be well spaced to distinguish the three data items.
iv. The post author must be a link (use an empty link for now).F.5. Footer a. Create a file named footer.php inside the folder named includes. b. As discussed in class, footer.php must contain the portion of the code at the end of the PHP script/HTML document, which will be reused in several other PHP files. c. footer.php must include <footer elements and any other reusable elements that appear at the bottom of your templates. This must also include the closing body and html tags. Include any JavaScript links just above the closing body tag to reduce the delay in d. e. displaying your page on the browser window

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution