Welcome Guest, Not a member yet? Register   Sign In
[Solved] Display multiple rows on calendar Question
#2

(This post was last modified: 12-19-2015, 04:57 AM by Happy Camper. Edit Reason: Fixing typo )

Hello,

The way I did this in the past was to have each cell in the calendar contain an unordered list  with a list item for each event happening on a particular day.

So assuming there were 2 events happening on a particular day the cells data would be like this

PHP Code:
$cell_data ='<ul><li>' .$event1'</li><li>' .$event2'</li></ul>'

Where $cell_data is constructed within a foreach loop

You will need an extra function in your model to return all events happening on a given day which the previously mentioned foreach will loop through.

Hope this helps!
Reply


Messages In This Thread
RE: Display multiple rows on calendar Question - by Happy Camper - 12-19-2015, 04:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB