Hello,
I am using a calendar written in PHP i found o nthe net. Im now trying to make some editing to the dates/days in the code. The thing is there is no html code available, (except when someone is looking up the source through a browser that is) and the code is used with php as “echo”.
So i have an idnex file, wich has a “require_once” file – a php-file with all the classes of the calendar.
I am going to post both the php code for the php file page, and the php with the classes. It is pretty much, and i hope someone can help me ?.
php code in a page php file for the site:
[CODE]
<?php
## +—————————————————————————+
## | 1. Creating & Calling: |
## +—————————————————————————+
// invlude calendar class
require_once(“calendar.class.php”);
// create calendar object
$objCalendar = new Calendar();
## +—————————————————————————+
## | 2. General Settings: |
## +—————————————————————————+
## *** set calendar width and height
$objCalendar->SetCalendarDimensions(“400px”, “200px”);
## *** set week day name length – “short” or “long”
$objCalendar->SetWeekDayNameLength(“long”);
## *** set start day of week: from 1 (Sanday) to 7 (Saturday)
$objCalendar->SetWeekStartedDay(“1”);
## *** set calendar caption
//$objCalendar->SetCaption(“ApPHP Calendar v”.Calendar::Version());
## +—————————————————————————+
## | 3. Draw Calendar: |
## +—————————————————————————+
$objCalendar->Show();
?>
I write the next code in a new thread…