Finished (untested) details.php

Also added basic format to capacity PHP, and changed all _RESULT queries
to _GET