Tidy up "diag_patterns.php" XHTML

Close INPUT tags
Move closing FORM tag to correct place
Merge pull request #518 from ExolonDX/branch_12

Tidy up "diag_patterns.php" XHTML