availabilty_calendar

所属分类:WEB开发
开发工具:PHP
文件大小:129KB
下载次数:42
上传日期:2009-08-02 18:31:28
上 传 者issuoow
说明:  这个程序使用php和AJAX编写的实用可修改的日历如酒店预订等
(Php and use this procedure to prepare the practical AJAX can modify the calendar, such as hotel reservations, etc.)

文件列表:
update_cal.ajax.php (2192, 2008-03-23)
css\calendar.css (859, 2008-03-27)
images\cal_am_1.png (290, 2008-03-23)
images\cal_am_10.png (375, 2008-03-23)
images\cal_am_11.png (332, 2008-03-23)
images\cal_am_12.png (362, 2008-03-23)
images\cal_am_13.png (388, 2008-03-23)
images\cal_am_14.png (352, 2008-03-23)
images\cal_am_15.png (361, 2008-03-23)
images\cal_am_16.png (377, 2008-03-23)
images\cal_am_17.png (349, 2008-03-23)
images\cal_am_18.png (380, 2008-03-23)
images\cal_am_19.png (383, 2008-03-23)
images\cal_am_2.png (330, 2008-03-23)
images\cal_am_20.png (400, 2008-03-23)
images\cal_am_21.png (363, 2008-03-23)
images\cal_am_22.png (385, 2008-03-23)
images\cal_am_23.png (408, 2008-03-23)
images\cal_am_24.png (381, 2008-03-23)
images\cal_am_25.png (389, 2008-03-23)
images\cal_am_26.png (412, 2008-03-23)
images\cal_am_27.png (380, 2008-03-23)
images\cal_am_28.png (409, 2008-03-23)
images\cal_am_29.png (405, 2008-03-23)
images\cal_am_3.png (356, 2008-03-23)
images\cal_am_30.png (414, 2008-03-23)
images\cal_am_31.png (391, 2008-03-23)
images\cal_am_4.png (333, 2008-03-23)
images\cal_am_5.png (348, 2008-03-23)
images\cal_am_6.png (363, 2008-03-23)
images\cal_am_7.png (330, 2008-03-23)
images\cal_am_8.png (361, 2008-03-23)
images\cal_am_9.png (367, 2008-03-23)
images\cal_no_day.png (206, 2008-03-23)
images\cal_numbers.png (64771, 2008-03-23)
images\cal_off_1.png (241, 2008-03-23)
images\cal_off_10.png (298, 2008-03-23)
images\cal_off_11.png (267, 2008-03-23)
images\cal_off_12.png (305, 2008-03-23)
images\cal_off_13.png (312, 2008-03-23)
... ...

This script created by www.cbolson.com 2008-03-26 Version - 2.1 This is a script from www.cbolson.com. Terms of use: You are free to use this script without restrictions however it would be good if you could leave a link back to the original. Thank you! www.cbolson.com Chris Bolson Any (paypal) donations will be greatfully accepted at cbolson@teleline.es, thanks :) Notes: This simple script uses php and AJAX to create a modifiable "availability" calendar which could be used for hotel room bookings etc PHP - to draw calendar and get data from the db AJAX - to dynamically update the db with date availability status. This demo version actually shows a full 12 months (from current month) - this could easily be adjusted to suit your needs Calendar currently starts on Monday - a future version might create a variable to define this though a small grasp of php will enable you to modify this yourself. INSTRUCTIONS New Install: 1. - Upload all files to your ftp 2. - Modify the includes/config.inc.php file with your db data and other values (paths, defaults etc.) 3. - Open "install/index.php" in your browser, this will create the availabilty table in your db 4. - navigate to "index.php" to see your calendar in action - click on dates to modify their state. NOTE - you may also need to modify the "js/update_cal.js" slightly to set your image paths, type and size if you decide to use diferrent ones than those provided UPDATE from Version 1 to Version 2 1. - Upload all files to ftp 2. - Open "install/update_v1-v2.php" in your browser, this will alter your current calander adding the new "state" column. NOTE - running this file should not alter your current data, however I recomend that you make a backup copy of your existing table data before running this script CHANGE LOG 2008-03-26 Version 2.1 BUGS - FIXED (thanks to adc124 via forum) * November and December are spelt incorrectly in the english language file. * Thursday is also spelt incorrectly in the english language file. * The title of the A tag for modifying the availability status of dates is always in spanish. * The variable image_dir in the update_cal.js file isn't actually used (I had to modify this myself). * It also isn't very clear for less experienced programmers that there are variables that may need modifying in this update_cal.js file. UPDATED js file to better use variables and modify instructions 2008-03-23 Version 2.0 Release NEW - now has the ability to define morning or afternoon bookings : "click" to change state from available to booked or from any state to available : "alt+click" for morning bookings : "ctrl+click" for afternoon bookings Tested in Firefox and IE7 NEW - multiple language support - includes english, spanish - no limit on number of languages NEW - define week start day (sunday or monday) Version 1.1 NEW - ability to define number of months to show BUG - month sarting on Sunday not showing correctly - FIXED NEW - ability to define in function if the calendar should show links or not on each date

近期下载者

相关文件


收藏者