Migrate "where" page to Smarty3