i am working on a reservations component in joomla 1.6, i have to provide the client with a form where he can enter the door codes for the Lodges , the door code changes on every monday and remains the same for the whole week , the table that holds the door codes,is as follows.
Expand|Select|Wrap|Line Numbers
- id
- code
- date_start
- date_end
Now in the add new door code i have to provide the client with a drop-down that contains the list of the dates of every weeks Starting date up to 3 year in the future.
Any idea how to calculate the total mondays in a year as i need to loop and the loop needs to run up to Total mondays in the selected year,
Regards,
Omer Aslam