Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > Customizations (Themes / Templates)

Customizations (Themes / Templates) Help with customizing the themes and templates. Post your own custom themes for others to enjoy.

Closed Thread
 
Thread Tools Search this Thread Display Modes

Displaying Months as Table Heading in List View
Old 09-14-2009, 05:09 PM   #1
cgrodriguez
Calendar User
 
cgrodriguez is offline
Join Date: Sep 2009
Posts: 10
Default Displaying Months as Table Heading in List View

Hi

I am a newbie so I apologize if this has been done before but I need to be able to display the calendar in full year view in list mode.

What I need is to be able to display the month and year as the heading of the table for each month displayed. It should look like this:

September 2009
-----------------------------------------------------
16 Sep Mon - Event 1
22 Sep Mon - Event 2

October 2009
-----------------------------------------------------
19 Oct Mon - Event 3
24 Oct Mon - Event 4

I was able to change the calendar to full year and also format the date/event this way. I am not sure how to implement the month headings before starting each month.

Was wondering if I can do this with one calendar or do I implement this as multiple calendars (one per month)?

Many thanks

Christine
 

Old 09-14-2009, 05:25 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Can you write a little PHP code?

You should be able to run a for/next loop for the 12 months and create your own headers while setting the calendar $mo variable to match the month and setting the options to list all events for the month.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 09-14-2009, 08:33 PM   #3
cgrodriguez
Calendar User
 
cgrodriguez is offline
Join Date: Sep 2009
Posts: 10
Default

Thanks for the quick response. I believe this should work for me.
-Christine
 

Old 10-07-2009, 01:55 AM   #4
dave_gordon
Calendar User
 
dave_gordon is offline
Join Date: May 2005
Posts: 33
Default

Hi Christine,
This is exactly what I'm looking for. If developed, is there any chance you could share the code?
Many thanks
Dave
 

Old 10-07-2009, 10:27 AM   #5
cgrodriguez
Calendar User
 
cgrodriguez is offline
Join Date: Sep 2009
Posts: 10
Default

Hi Dave

Here's the code. Let me know if you have problems. Make sure to replace the template name and use the correct path for your calendar.

<?php

// print each months string name (i.e. January 2009)
$year = "2009";
for ($mo=1; $mo<=12; $mo++) {
// print month headers
$monthStr = date("F Y", mktime(0, 0, 0, $mo, 1, $year));
echo $monthStr."<br>";

// print each months events
$epcListMouseover=1; // use pop ups
$LIST=1;
$DF = "d M D";
$template="mytemplate.php";
require("../calendar/calendar.php");
}

?>

-Christine
 

Old 10-07-2009, 10:45 AM   #6
dave_gordon
Calendar User
 
dave_gordon is offline
Join Date: May 2005
Posts: 33
Default

Thanks Christine, you're a star
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
List Mode Table??? daddylogan General Support 2 09-22-2009 01:44 AM
How can I show future months in list view? sjhill7 Customizations (Themes / Templates) 1 08-29-2008 07:13 PM
Events not Displaying in Blog + List View strobogirl Customizations (Themes / Templates) 4 05-23-2007 12:30 PM
disable img tags in list view ashleek007 Customizations (Themes / Templates) 2 11-13-2006 05:09 PM
TOC view to List View Up To date Customizations (Themes / Templates) 3 01-22-2006 07:08 PM



All times are GMT -4. The time now is 05:59 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |