tslid Posted March 27, 2011 Share Posted March 27, 2011 Hello guys I am developing my own system with event calendar but I stucked in the part where I should mark in the same way event which continue more than one day.What is my point - lets take for example google calendar, here you can see how the bar is purple for all 3 days marked for street cleaning : http://www.file-extensions.org/imgs/app-picture/6718/google-calendar.jpg Can you give me only an idea how I should proceed,what to use to achieve such result,what are my best options ? Thank you Quote Link to comment Share on other sites More sharing options...
harristweed Posted March 27, 2011 Share Posted March 27, 2011 Without knowing what your code is and the structure of your database, how can anyone answer? Quote Link to comment Share on other sites More sharing options...
tslid Posted March 28, 2011 Author Share Posted March 28, 2011 Sorry for absence of code block which in the case would help but my thought was has anyone idea how google did this,I just need an idea how to implement such feature - I will deal with the code but I cant figure it out. Regards Quote Link to comment Share on other sites More sharing options...
tslid Posted March 29, 2011 Author Share Posted March 29, 2011 Please anyone - just an idea how to structure code for such events,any ideas how google did it (link above) ? I just cant figure it out what to use to get this result ... Regards Quote Link to comment Share on other sites More sharing options...
Psycho Posted March 29, 2011 Share Posted March 29, 2011 Simple, in your database for events have a startdate and enddate. If an event is only for a single day you could leave the enddate null or you could populate it with the same date as startdate. Or, alternatively, you could have startdate and days, where days is the number of days for the event. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.