
function activate_dates(){
var dateStart=document.id('date');
$$('li.clickable').each(function(el){
if(!el.hasClass('booked')){
el.addEvent('click',function(){
var dateParts=this.id.split('-');
var dateFormat=dateParts[1]+'-'+dateParts[2]+''-'+dateParts[0];
dateStart.set('value',dateFormat);
}).setStyle('cursor','pointer');
}
})
}
var dateFormat=dateParts[1]+'-'+dateParts[2]+''-'+dateParts[0];
var dateFormat=dateParts[1]+'-'+dateParts[2]+'-'+dateParts[0];
// format date
function get_cal_update_date($id_item){
if(AC_DATE_DISPLAY_FORMAT=="us") $date_format = "%m-%d-%Y";
else $date_format = "%d-%m-%Y";
if(AC_DATE_DISPLAY_FORMAT=="us") $date_format = $month."/".$day_counter."/".$year;
else $date_format = $day_counter."/".$month."/".$year;
$date_format= strftime('%d %B %Y', strtotime("".$month."/".$day_counter."/".$year.""));
// format date for db modifying - the date is passed via ajax
$date_db = $year."-".sprintf("%02s",$month)."-".sprintf("%02s",$day_counter);
// format date for display only
if(AC_DATE_DISPLAY_FORMAT=="us")
$date_format = strftime('%B %d %Y', strtotime("".$month."/".$day_counter."/".$year.""));
// format for FR and ES
else $date_format = strftime('%d %B %Y', strtotime("".$month."/".$day_counter."/".$year.""));
Users browsing this forum: No registered users and 1 guest