Search found 25 matches

Return to advanced search

Re: next three months

PS. one thing I forgot to ask.... how did you "find" this script?


I googled a bit, tried a few and ended up here:

http://www.hotscripts.com/Detailed/76885.html
by boldfish
Wed Apr 09, 2008 5:41 pm
 
Forum: General
Topic: next three months
Replies: 52
Views: 23606

Re: next three months

I went with my amendments in the end.

see:
http://www.lanzluxuryvillas.com/propdetail.php?id=105

note the "more availability" buttons bottom right for stepping 12 months at a time into the future.

;o)
by boldfish
Wed Apr 09, 2008 4:25 pm
 
Forum: General
Topic: next three months
Replies: 52
Views: 23606

Re: database housekeeping

Makes sense.

(I have other housekeeping issues, so it would probably roll into those as well)

…and we won't worry about the unix timestamp bug in 2038 then either.

;o)

Great script BTW and excellent support too!
by boldfish
Wed Apr 09, 2008 2:56 pm
 
Forum: General
Topic: database housekeeping
Replies: 2
Views: 2127

database housekeeping

Is there any provision in the script for clearing old entries from the booking table? I'm just wondering about ten years from now when the database grinds to a halt… what would you suggest? A user option? or something that deletes bookings over x months old when you change an entry, or something els...
by boldfish
Wed Apr 09, 2008 1:43 pm
 
Forum: General
Topic: database housekeeping
Replies: 2
Views: 2127

Re: next three months

timing and post crossover!

will look at your code.

;)
by boldfish
Wed Apr 09, 2008 1:06 pm
 
Forum: General
Topic: next three months
Replies: 52
Views: 23606

Re: next three months

Okay. I made a couple of changes to your posted code and it now rolls over in a 1 month at a time scenario and shows 12 months at a time too. from: // define LAST block - START $last_month_start = (START_MONTH-MONTHS_TO_SHOW); # remove months_to_show x 2 to go back this block and then 1 more $last_y...
by boldfish
Wed Apr 09, 2008 1:04 pm
 
Forum: General
Topic: next three months
Replies: 52
Views: 23606

Re: next three months

There's a bug somewhere.

if you set months to 12 it doesn't work properly.

setting months to 1 shows the issue on year rollover. when you get to november the last month is 10 but the next month is next year month 0 which isn't right.

I'll see if I can figure it out.
by boldfish
Wed Apr 09, 2008 11:53 am
 
Forum: General
Topic: next three months
Replies: 52
Views: 23606

Re: next three months

There's an issue with the current day highlighting - you need a tweak to account for the year. I added: $cur_year = date('Y'); to function draw_cal and amended: if( ($day_counter==$cur_day) && ($month==$cur_month) ) $border='style="border: 2px solid #99cc00"'; to if( ($day_counter=...
by boldfish
Wed Apr 09, 2008 11:22 am
 
Forum: General
Topic: next three months
Replies: 52
Views: 23606

Re: Half day bookings different key to choose

you missed out adding: elseif($booked_days[$this_date]=="prv") $day_image='cal_prv_'.$day_counter.'.png'; to function draw_cal in the " check if day is available " section other than that it seems to work fine. Many thanks... (now to update the live site and sort out showing +12 ...
by boldfish
Wed Apr 09, 2008 9:51 am
 
Forum: General
Topic: Half day bookings different key to choose
Replies: 32
Views: 12841

Re: Half day bookings different key to choose

yep, that's working now.

AFAICT

can I get the code and images?
by boldfish
Wed Apr 09, 2008 1:02 am
 
Forum: General
Topic: Half day bookings different key to choose
Replies: 32
Views: 12841
Next

Return to advanced search

cron