/    Sign up×
Community /Pin to ProfileBookmark

Edit a calendar in PHP script!

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();

?>
[/CODE]

I write the next code in a new thread…

to post a comment
PHP

7 Comments(s)

Copy linkTweet thisAlerts:
@BaxxterauthorMay 25.2012 — The text is obviosly to long for it to post here, so i will find a way later since i got to go from this computer now....

But in interest for anyone who knows and want t ocheck it up, the calendar is downloaded from http://www.apphp.com/. And it is the basic calendar.
Copy linkTweet thisAlerts:
@g0dzuki99May 25.2012 — 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...
Copy linkTweet thisAlerts:
@kbduvallMay 27.2012 — What kind of edits do you want to do on the date/days?
Copy linkTweet thisAlerts:
@BaxxterauthorMay 27.2012 — 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...[/QUOTE]

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
Copy linkTweet thisAlerts:
@BaxxterauthorMay 27.2012 — What kind of edits do you want to do on the date/days?[/QUOTE]

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.

Anyway here is the code uploaded, if you would like to help:

http://www.sendspace.com/file/izdyl1
Copy linkTweet thisAlerts:
@BaxxterauthorMay 27.2012 — The PHP code with the classes and all that is uploaded here:

http://www.sendspace.com/file/izdyl1

Please do take a look, and help me ?.
Copy linkTweet thisAlerts:
@BaxxterauthorJun 04.2012 — Noone huh...
×

Success!

Help @Baxxter spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...