'; if ($isNotLogin){ print "Welcome to $WELCOME \n
\n
\n"; } else { print 'Welcome '.ucwords($_SESSION['firstname']).' '.ucwords($_SESSION['lastname'])." to $WELCOME"; } print ''."\n"; print ''."\n"; print '
'."\n"; global $CLASS_HOME; if ($isNotLogin){ print '['; print 'class home page'."\n"; print '  |  '; print 'main'."\n"; print '  |  '; print 'login'."\n"; print ']'; } else{ print '['; print 'class home page'."\n"; print '  |  '; print 'main'."\n"; print '  |  '; print 'logout'."\n"; print ']'; } print '

'; print "
\n"; ////////////////////// END HEADLINE ///////////////////////// if (isset($_GET['aview'])){ $asgn = getAssignmentInfor($_GET['aview']); } else{ $asgn = NULL; } if (!isset($asgn)){ ///////////////////// START ASSIGNMENT LIST //////////////// printAssignmentList($_SERVER['PHP_SELF']); ////////////////////// END ASSIGNMENT LIST ////////////////// } else{ ///////////////////// START ASSIGNMENT SHOW //////////////// if (!$isNotLogin){ printAssignmentStatus($_SESSION['firstname'],$_SESSION['lastname'],$asgn); } printAssignment($asgn); ////////////////////// END ASSIGNMENT SHOW ////////////////// } ?>