[Solved] Display multiple rows on calendar Question |
12-19-2015, 04:03 AM
(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! |
Messages In This Thread |
[Solved] Display multiple rows on calendar Question - by wolfgang1983 - 12-19-2015, 02:09 AM
RE: Display multiple rows on calendar Question - by Happy Camper - 12-19-2015, 04:03 AM
RE: Display multiple rows on calendar Question - by wolfgang1983 - 12-19-2015, 07:14 PM
RE: Display multiple rows on calendar Question - by John_Betong - 12-19-2015, 08:01 PM
RE: Display multiple rows on calendar Question - by wolfgang1983 - 12-19-2015, 11:24 PM
|