PHP project (with Smarty, MySQL and Javascript/JQuery)