Tidy up "diag_patterns.php" XHTML

Close INPUT tags
Move closing FORM tag to correct place