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

Old 01-15-2004, 02:07 PM   #1
dmoore1200
Calendar User
 
dmoore1200 is offline
Join Date: Jan 2004
Posts: 1
Default

Hi All, Was wondering if anyone has posted multiple calendars on the same page, all with different events.

Would I need to do 3 diff installs? or will 1 install with mods work?

Thanks
 

Old 01-15-2004, 06:34 PM   #2
tomB
Calendar User
 
tomB's Avatar
 
tomB is offline
Join Date: Oct 2003
Location: Santa Rosa, CA
Posts: 68
Send a message via AIM to tomB Send a message via MSN to tomB Send a message via Yahoo to tomB
Default

Just one install should work fine. There are probably hundereds of different ways to do this. One way is to have three different text files or data tables, and pass to escal.php which you want for each calendar.

For example:

Calling code would be something like (simplified)
Code:
 
<table>
 &nbsp; <tr>
 &nbsp; &nbsp; &nbsp;<td> <?php $name_sel=1; include("escal.php"); ?> </td>
 &nbsp; &nbsp; &nbsp;<td> <?php $name_sel=2; include("escal.php"); ?> </td>
 &nbsp; &nbsp; &nbsp;<td> <?php $name_sel=3; include("escal.php"); ?> </td>
 &nbsp; &nbsp;</tr>
</table>
in escal.php add
Code:
switch ($name_sel) {
 &nbsp; &nbsp;case 1:
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $textFile="file1.txt";
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sqlTable="table1";
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
 &nbsp; &nbsp;case 2:
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $textFile="file2.txt";
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sqlTable="table2";
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
 &nbsp; &nbsp;case 3:
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $textFile="file3.txt";
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sqlTable="table3";
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
}
You may have to experiment a bit, but this is a general approach.

tomB
 
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
Category plugin makes page disappear andrejak General Support 3 07-18-2005 01:30 PM
6 months of calendars on one page?? gtojon General Support 10 04-14-2005 06:53 PM
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
Adding the calander to a existing php page cyberchick General Support 7 01-28-2004 04:11 AM



All times are GMT -4. The time now is 06:24 AM.


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 |