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


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

6 months of calendars on one page??
Old 04-14-2005, 12:48 PM   #1
gtojon
Calendar User
 
gtojon is offline
Join Date: Apr 2005
Posts: 11
Smile 6 months of calendars on one page??

I have looked & a couple of post almost had what I wanted. I want to string 6 months of calendars on on page.

Thanks, Jon
 

Old 04-14-2005, 01:08 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Are you familiar with PHP for - next loops?

You could do something like:

for ($N=0; $N<6; $N++) {
$mo = $mo + $N;
if ($mo>12) {$mo=$mo-12; $yr++;}
require ("calendar/showCalendar.php");
}

[This is untested and probably won't work without some additional parameters.]

Did you see the 6-month display thread? There a lot of information in there.
__________________
-- Brian

Questions?

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

Old 04-14-2005, 01:20 PM   #3
gtojon
Calendar User
 
gtojon is offline
Join Date: Apr 2005
Posts: 11
Smile

Sorry, I'm not really a PHP programmer. I'll see what I can do. Thank you so much....I suppose I better purchase the product!! The support provided so far is worth every penny even if I didn't use the calendar!


Thanks, Jon
 

Old 04-14-2005, 01:31 PM   #4
gtojon
Calendar User
 
gtojon is offline
Join Date: Apr 2005
Posts: 11
Default

Oops, I'm not a PHP programmer...It's not working! I get an error!

http://www.jonsmithers.com/schedule2.php

Help!!

Thanks, Jon
 

Old 04-14-2005, 01:34 PM   #5
gtojon
Calendar User
 
gtojon is offline
Join Date: Apr 2005
Posts: 11
Default

This is the code that just displays one calendar.
<?php require ("calendar/showCalendar.php"); ?>

Here is the code that doesn't work!

<p>&nbsp;</p>

<?php for ($N=0; $N<6; $N++) {
$mo = $mo + $N;
if ($mo>12) {$mo=$mo-12; $yr++;}
require ("calendar/showCalendar.php"); ?>
<p>&nbsp;</p>
 

Old 04-14-2005, 01:53 PM   #6
gtojon
Calendar User
 
gtojon is offline
Join Date: Apr 2005
Posts: 11
Default

This line works to display one calendar.
<?php require ("calendar/showCalendar.php"); ?>

When I try to display a specific month I still get an error....
<?php require ("calendar/showCalendar.php?>mo=1&yr=2005");

Sorry about this!
 

Old 04-14-2005, 02:09 PM   #7
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Did you see this thread?

http://www.easyphpcalendar.com/forum...ead.php?t=2435

Near the bottom (post #16) is a full script that I wrote to display six months on a page...
__________________
-- Brian

Questions?

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

Old 04-14-2005, 04:23 PM   #8
gtojon
Calendar User
 
gtojon is offline
Join Date: Apr 2005
Posts: 11
Default

I looked at it and it scared the crap out of me....I haven't programmed anything like that in over 20 years....seriously !

Ok....that works....boy is that slow in loading. It would be nice if you could just display certaion months.....I tried that & it doesn't work.

Thanks for your help!
 

Old 04-14-2005, 06:23 PM   #9
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

You can display any months you need to. Just set the month and year variables before requiring the script.

PHP Code:
<?php

$mo
=6;
$yr=3005;
require(
"calendar/showCalendar.php");

$mo=6;
 
$yr=3005;
 require(
"calendar/showCalendar.php");

?>
This would print June and July...
__________________
-- Brian

Questions?

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

Old 04-14-2005, 06:52 PM   #10
gtojon
Calendar User
 
gtojon is offline
Join Date: Apr 2005
Posts: 11
Default

Thanks....that works better than the example from 2004. In PHP how do I have them side-by-side on the first 3, then down & then the other 3. I know I could study your Demp6.php, but I already have a head ache today.

Thanks a lot, Jon
 

Old 04-14-2005, 06:53 PM   #11
gtojon
Calendar User
 
gtojon is offline
Join Date: Apr 2005
Posts: 11
Default

Link to my example....
http://www.jonsmithers.com/schedule2.php
 
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
Multiple different calendars on the same page anthony General Support 6 04-07-2005 06:48 PM
two different calendars on same web page ??? Cappiels General Support 3 01-03-2005 08:50 PM
Display two months in same page bengao General Support 5 08-12-2004 01:04 PM
4 months on a page? adster General Support 1 01-14-2004 08:56 AM



All times are GMT -4. The time now is 04:04 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 |