Need help with the confusing PHP and jquery functionality

Printable View