Welcome Guest, Not a member yet? Register   Sign In
[Solved] Calendar - Event text within table cells
#1

[eluser]LifeSteala[/eluser]
Hi all,
I'm currently building a script where members of a site can add events to a database which can then be looped out and be displayed within a Calendar. So far, I have events going in and looping out. I have it so in the cells, where the day is displayed, ie, 4 (4th of this month) is a link which goes to the event page.

To do this I am setting up an array and passing it to the calendar class. Example:

Code:
$temp = array('4' => 'http://www.mysite.com/events/2009/09/04');

What I am after is the ability to display text within the cell and not link the actual day number (4). So in the cell that displays the 4th day of the month, it will say 'My Birthday Party' and this will be the link to go to my event page.

So I am after this type of array:

Code:
$temp = array('4' => array('My Birthday Party', 'http://www.mysite.com/events/2009/09/04'));

How can this be achieved?

I hope what I am asking makes sense!

Thanks!


Messages In This Thread
[Solved] Calendar - Event text within table cells - by El Forum - 09-07-2009, 12:23 AM
[Solved] Calendar - Event text within table cells - by El Forum - 09-07-2009, 02:06 AM
[Solved] Calendar - Event text within table cells - by El Forum - 09-07-2009, 02:48 AM
[Solved] Calendar - Event text within table cells - by El Forum - 09-07-2009, 03:07 AM
[Solved] Calendar - Event text within table cells - by El Forum - 09-07-2009, 03:36 AM
[Solved] Calendar - Event text within table cells - by El Forum - 09-07-2009, 04:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB