Question: (PHP) Your PHP code should render a calendar page similar to the one shown here. The top of the calendar states the day and time
(PHP)
Your PHP code should render a calendar page similar to the one shown here. The top of the calendar states the day and time being displayed. The calendar is a table where the first column lists hours starting from the current hour to a final hour (where the final hour is the current hour + some number between 0 and 12). For example, if the time is now is 5.32pm, the first hour should read 5.00pm and the last hour is determined by a variable called hours_to_show. If hours_to_show is set at 12, then the last hour shown in the column should be 5.00am. The subsequent columns correspond to people. In the example, I have used 3 people: You may have as few as two or as many people as you like.
Your calendar must be generated by PHP script.
By default when your page is loaded it should display current day, date and time as shown in the example.
Your program must use a function called get_hour_string to get the hours for the first column of the calendar table. This function takes a single argument of a timestamp and returns a string indicating an hour. For example, the value returned might be: "8.00am".
The table is rendered by PHP the number of rows displayed is determined by a variable hours_to_show, which you may set equal to 12.
The rows should aleternate in background color.
/p>
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
xmlns:v="urn:schemas-microsoft-com:vml">
Bruin Family Schedule for Mon, July 30, 2018, 4:57 pm
| Andy | Abby | Elsie | |
|---|---|---|---|
| 4.00pm | |||
| 5.00pm | |||
| 6.00pm | |||
| 7.00pm | |||
| 8.00pm | |||
| 9.00pm | |||
| 10.00pm | |||
| 11.00pm | |||
| 12.00am | |||
| 1.00am | |||
| 2.00am | |||
| 3.00am | |||
| 4.00am |

Bruin Family Schedule for Mon, July 30, 2018, 5:01 pm Joanna Joe Lil Cub 5.00pm 6.00pm 7.00pm 8.00pm 9.00pm 10.00pm 11.00pm 12.00am 1.00am 2.00am 3.00am 4.00am 5.00am
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
