You can be copying all of the labs to date into a brand new folder and making a web page out of all of them (we tried to have them loosely associated :).
Create a brand new folder named lab6 in your cs008 folder Copy your file named lab1.php to the lab6 folder naming it index.php Copy your file named lab2.php to the lab6 folder naming it information.php Copy your file named lab3.php to the lab6 folder naming it contest.php Copy your file named lab4.php to the lab6 folder naming it artwork.php Copy your file named lab5.php to the lab6 folder naming it climate.php Replace your web site map with a hyperlink to this lab. Edit you css/customized.css file as wanted (DO NOT MAKE ANOTHER ONE). Let’s add extra stations to our knowledge file. Obtain the file or use the instructions from Lab 5 to go to NOAA. In Step 2, seek for Cities as a substitute of Stations and now while you add Burlington, VT to your cart and click on View Full Particulars, the Stations hyperlink on the left ought to show:

BURLINGTON WEATHER SERVICE OFFICE AIRPORT, VT US
ESSEX JUNCTION 1 N, VT US
SOUTH HERO, VT US
WILLSBORO 1 N, NY US

While you obtain the file, transfer it to the lab6 folder and title it climate.csv Make one other copy your file named lab5.php to the lab6 folder naming it weather-detail.php Add all of the embrace recordsdata (prime.php, header.php, nav.php, footer.php) to every of the above recordsdata. Edit nav.php to have hyperlinks to all of the recordsdata(artwork, contest, index, information and climate). Your navigation ought to seem like this (various it may be horizontal with out numbers):
Now it will get tough (however enjoyable:).
Edit the file climate.php (a lot of the code is identical we’re simply modifying the show).
Show a listing of the completely different climate stations (there are 4) present in column B. You do that by including a Flag variable and an IF assertion (similar to the timber from the lecture notes). Make every climate station a hyperlink to weather-detail.php (solely web page not on the nav as a result of it’s a must to go to climate.php first) sending the title of the climate station within the GET array. Create a web page known as weather-detail.php (contains prime header nav footer in fact). Within the file weather-detail.php, sanitize the variable containing the worth of the climate station. Within the file weather-detail.php, Open and Learn the csv file climate.csv (assume embrace read-weather-data.php). Within the file weather-detail.php, show solely the information for that climate station (assume if assertion in your for every loop). Lab 5 printed the entire variety of information however within the file weather-detail.php we solely show a number of the knowledge. Replace the rely to mirror solely the entire variety of information we print. Run your recordsdata in NetBeans which is able to POST them. Be certain that your pages move w3c Html Validation Be certain that your pages move w3c CSS Validation Submit your task in blackboard: add all recordsdata for the task, put the url to your web site as a remark and the rest you wish to inform the grader. 

Published by
Write
View all posts