Homepage

\n"; if(isset($machine_row['nickname'])){ print "Machine: {$machine_row['nickname']}

\n"; } else{ print "Machine: {$machine_row['name']}

\n"; } print "Test dates:
\n\n"; mysql_free_result($previous_query); } /***************************************************** * * sidebar for test page * * print out link to homepage, then find links to the next 7 * days and the previous 7 dates. Also * link to machine page. * ******************************************************/ else if($machine!=-1 && $night !=-1){ $machine_row=getMachineInfo($machine); $today_row = getNightInfo($night); $cur_date = $today_row['added']; print "Homepage

\n"; if(isset($machine_row['nickname'])){ print "Machine: {$machine_row['nickname']}

\n"; } else{ print "Machine: {$machine_row['name']}

\n"; } print "Test dates:
\n\n"; mysql_free_result($previous_query); $next_query = getNightsIDs($machine); print "
\n"; print "\n"; print "
\n"; print "\n"; print "
\n"; } /***************************************************** * * This is the sidebar for the machine page * * Print out a link to the homepage then print * out links to the last 20 tests * ******************************************************/ elseif($machine != -1 && $night == -1){ print "Homepage

\n"; print "Test dates:
\n\n"; mysql_free_result($machine_nights); $next_query = getNightsResource($machine); print "
\n"; print "\n"; print "
\n"; print "\n"; print "
\n"; mysql_free_result($next_query); } /***************************************************** * * This is the sidebar for the index * * Print out link to homepage, then a link to machine page, * then link to every machine. * ******************************************************/ else{ /*if($machine ==-1 && night ==-1)*/ print "Homepage

\n"; $list_o_machines = getRecentMachineResource(); print "Test Machines With
Recent Submissions:
\n\n"; mysql_free_result($list_o_machines); print "All Test Machines:
\n\n"; mysql_free_result($list_o_machines); } $this_url = $this_url = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; print "
Link to this page

\n"; ?>