View | Annotate | Download (4.8 KB)
Update copyright date to 2010
Add optional $db argument
Add addPurchase and addPurchaseItem methods
Forgot to actually set the $club_id
Centralize the purchases
Removed pagination, and implemented searching and sorting on all pages. Fixes feature 77
Fixed permissions back to the way they were before I messed them up :)
Proper escaping of characters when inserted into database
This was only happening for the '&' character (upon inserting a new business), because the values were being passed along via $_GET over AJAX. I changed it to use $_POST instead, using the jQuery ajax framework (since I don't know how to use the prototype one).
Updated the copyright to be the current year.
Paginated the viewPurchases page.
Added businesses, repairs, and purchases to the summary. removed some unnecessary code as well.