Menu
Welcome, Guest
Username: Password: Secret Key Remember me
Welcome to the Developer forum!
Get all your questions answered here. Learn to integrate calendar in your application.
  • Page:
  • 1

TOPIC: get limite date range with getevents.php

get limite date range with getevents.php 13 years 3 months ago #384

  • superleon
  • superleon's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
Hi,

after few months my version of web2cal is working well, but my customer now to show the appointment prior to the actual date.
So I need to change this part of code:
/Get Events for the calendar... 
			$condition=array();
			$condition[\'calendar_id\']=$calendarId;
			$date_actu= date(\"Y-m-d-G:i:s\", strtotime(\"-1 week\"));
			$resEvents = $db->get_results(\"select * from jos_projectlog_projects where calendar_id=\".$calendarId.\" and start_time > \'\".$date_actu.\"\' ORDER BY `jos_projectlog_projects`.`start_time` ASC\" );  

How to get variable of time range? Something like Web2Cal.defaultSettings[\'timeZoneOffset\']?

Please Log in to join the conversation.

Re: get limite date range with getevents.php 13 years 2 months ago #388

  • superleon
  • superleon's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
closer from the solution:
function loadCalendarEvents(startTime, endTime) in calendar.php
Now i just need to import the values of startTime and endTime in the SQL request.

Please Log in to join the conversation.

  • Page:
  • 1
Time to create page: 0.616 seconds
Powered by Kunena Forum

LATEST IN FORUM

  • No posts to display.

ABOUT US