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,$mysql_link); $today_row = getNightInfo($night,$mysql_link); $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); } /***************************************************** * * 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); } /***************************************************** * * 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 = getMachineResource($mysql_link); print "Test machines:
\n\n"; mysql_free_result($list_o_machines); } ?>