Total Grade per Student display (very hackish)

First time to learn PHP so this is very hackish. Also added if statement
for requirements where it won't display editing.