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'm guessing the objCalendar's show() method has the HTML markup or at least points to another object or method that does. The HTML is in there somewhere...
"A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools."
-- Douglas Adams
I'm guessing the objCalendar's show() method has the HTML markup or at least points to another object or method that does. The HTML is in there somewhere...
Yes but this file is SO BIG, and i have not that good skills in PHP. I mean for example i cannot be sure for example if i want to edit a date, on where to put the html/javascript code for it in this file. If i want to edit ex. 27 may, i dont know where to find this in the code.
The thing i have not check it up from top to end, but it is so big. Anyway here is the file. I uploaded it to a site, it is too big to fit in the post here , it would take up many many post for the whole file. So download it from here to check: http://www.sendspace.com/file/izdyl1
What kind of edits do you want to do on the date/days?
I want to put some javascript code, for being able to add(with sql that is) and see events on dates. say i want to put up an event for tomorrow 28 May, but i am not sure WHERE to put in this code. Cause as you would understand it does not say "May" anywere, but it is classes and variables.
Bookmarks