Fix indentation and spaces
Remove unused vars
From multiple 'if' to 'switch'
Fix html charset
Add thead, tbody, th
Fix localization
Fix indentation, remove alternative php syntax, fix misplaced DIVs
Merge pull request #1807 from mlocati/fix-form-download

Fix form download
remove duplicate tr tag