Tidy up "diag_smart.php" XHTML

Add PHP "closehead" variable
Add CDATA sections and TYPE to STYLE tag
Add SUMMARY to TABLES
Update HTML Boolean operators
Tidy up OPTION tags