PHP Programming Language - Cultural View

PHP Programming Language - Cultural View PHP Programming Language - Cultural View

culturalview.com
from culturalview.com More from this publisher
10.02.2013 Views

Active Agenda 2 External links • Active Agenda official website [1] • Active Agenda discussion forum [5] • Active Agenda Documentation wiki [6] • Active Agenda Sourceforge page [7] References [1] http://www.activeagenda.net/ [2] http://www.activeagenda.net/documentation/index.php?title=Category:Modules [3] "A Solution (R)evolution" (http://ehstoday.com/safety/ehs_imp_39437/index.html) [4] Fast Company FAST 50 (2007) (http://www.fastcompany.com/fast50_07/readers.html) [5] http://www.activeagenda.net/discussions/ [6] http://www.activeagenda.net/documentation/index.php?title=Main_Page [7] http://sourceforge.net/projects/activeagenda/ Active Calendar Active Calendar is a PHP class that generates calendars as HTML tables (XHTML-Valid). It can produce static calendars without any links or calendars with navigation controls, a date picker control, event days and content with event URLs, and linkable days (optionally URL or JavaScript). The layout can be configured using CSS, and JavaScript is not required. The supported dates (on systems using a 32-bit signed integer Unix time_t) are: 1902-2037 (Unix) and 1971-2037 (Windows), when using the default PHP native date functions, and 100-3000 and later, when using the ADOdb Date Library. Active Calendar is an open source project, licensed under the LGPL. Features The calendars created by this class: • can be static (without any links) • can optionally have navigation controls • can optionally have a date picker control • can optionally have linkable days (URL or javascript) • can optionally have 'event days' with 'event links' and own layout • can optionally have 'event content' with 'links' and own layout • support different GMT zones for the current date calculation • support month and day names, depending on your language • can be configured using CSS • do not require Javascript to be displayed or navigated (server side generation) • can be generated with just 2-3 lines of code screenshot2 640x480 Active Calendar is based on the PHP native date functions (default) and supports optionally the ADOdb Date Library [1] . Supported dates (on systems using a 32-bit signed integer Unix time_t):

Active Calendar 3 • Using PHP native date functions: 1902 - 2037 (UNIX) and 1971 - 2037 (Windows) • Using ADOdb Date Library: 100 - 3000 and later [limited by the computation time of adodb_mktime()] on both UNIX and Windows. To use the ADOdb Date Library just include it in your scripts. The Active Calendar class will use the library functions automatically. Usage Basic methods overview $cal = new activeCalendar([$year,$month,$day,$gmt_zone]); Create first a new object of the class. The parameters $year, $month and $day are optional. If these parameters are not set, the current year, month and day will be passed to the program. The parameter $year should have the form "yyyy" e.g. "2005" or "1996", the parameter $month should have the form "m" e.g. "1" for January or "10" for October and the parameter $day should have the form "d" e.g. "4" for the 4th month day or "24" for the 24th month day. So for the date e.g. 7 January 2005 please set $cal = new activeCalendar("2005","1","7"). The parameter $gmt_zone is optional as well. Use this parameter to set the GMT (Greenwich Mean Time) zone for the current date calculation (e.g. 9 for Osaka Japan, 2 for Athens Greece, - 5 for New York USA). If $gmt_zone is not set, the server local time will be used. $cal->enableMonthNav([$link,$arrowBack,$arrowForw]); Call this method, if you want the generated calendar to have month navigation controls (e.g. "previous month" and "next month"). The parameter $link is optional. You can use this parameter to set the URL for the calendar links (e.g. "mycalendar.php" or "mycalendar.php?mode=4&item=test", if you need more complex urls). You should modify the private method mkUrl(), if you want to change the general structure of the generated links. The parameters $arrowBack and $arrowForw are optional as well: they set other month navigation controls, than the ones set in the configuration (an image link can be set too). $cal->enableYearNav([$link,$arrowBack,$arrowForw]); Call this method, if you want the generated calendar to have year navigation controls (e.g. "previous year" and "next year"). The parameter $link is optional. You can use this parameter to set the URL for the calendar links (e.g. "mycalendar.php" or "mycalendar.php?mode=4&item=test", if you need more complex urls). You should modify the private method mkUrl(), if you want to change the general structure of the generated links. The parameters $arrowBack and $arrowForw are optional as well: they set other year navigation controls, than the ones set in the configuration (an image link can be set too). $cal->enableDatePicker([$startYear,$endYear,$link,$button]); Call this method, if you want the generated month calendar to have a date picker control. The parameters $startYear and $endYear define the range of the years, that can be selected (e.g. $startYear=2000, $endYear=2010). This range is limited by the private class variables $startYear and $endYear. Please modify them according to your configuration. The parameter $link is optional. You can use this parameter to set the URL for the calendar links (e.g. "mycalendar.php" or "mycalendar.php?mode=4&item=test", if you need more complex urls). You should modify the private method mkUrl(), if you want to change the general structure of the generated links. The parameter $button is optional as well: it sets some other value for the date picker submit button, than the one set in the configuration. $cal->enableDayLinks([$link,$javaScript]);

Active Calendar 3<br />

• Using <strong>PHP</strong> native date functions: 1902 - 2037 (UNIX) and 1971 - 2037 (Windows)<br />

• Using ADOdb Date Library: 100 - 3000 and later [limited by the computation time of adodb_mktime()] on both<br />

UNIX and Windows. To use the ADOdb Date Library just include it in your scripts. The Active Calendar class<br />

will use the library functions automatically.<br />

Usage<br />

Basic methods overview<br />

$cal = new activeCalendar([$year,$month,$day,$gmt_zone]);<br />

Create first a new object of the class. The parameters $year, $month and $day are optional. If these parameters are<br />

not set, the current year, month and day will be passed to the program. The parameter $year should have the form<br />

"yyyy" e.g. "2005" or "1996", the parameter $month should have the form "m" e.g. "1" for January or "10" for<br />

October and the parameter $day should have the form "d" e.g. "4" for the 4th month day or "24" for the 24th month<br />

day. So for the date e.g. 7 January 2005 please set $cal = new activeCalendar("2005","1","7"). The parameter<br />

$gmt_zone is optional as well. Use this parameter to set the GMT (Greenwich Mean Time) zone for the<br />

current date calculation (e.g. 9 for Osaka Japan, 2 for Athens Greece, - 5 for New York USA). If $gmt_zone is not<br />

set, the server local time will be used.<br />

$cal->enableMonthNav([$link,$arrowBack,$arrowForw]);<br />

Call this method, if you want the generated calendar to have month navigation controls (e.g. "previous month" and<br />

"next month"). The parameter $link is optional. You can use this parameter to set the URL for the calendar links<br />

(e.g. "mycalendar.php" or "mycalendar.php?mode=4&item=test", if you need more complex urls). You should<br />

modify the private method mkUrl(), if you want to change the general structure of the generated links. The<br />

parameters $arrowBack and $arrowForw are optional as well: they set other month navigation controls, than the<br />

ones set in the configuration (an image link can be set too).<br />

$cal->enableYearNav([$link,$arrowBack,$arrowForw]);<br />

Call this method, if you want the generated calendar to have year navigation controls (e.g. "previous year" and<br />

"next year"). The parameter $link is optional. You can use this parameter to set the URL for the calendar links<br />

(e.g. "mycalendar.php" or "mycalendar.php?mode=4&item=test", if you need more complex urls). You should<br />

modify the private method mkUrl(), if you want to change the general structure of the generated links. The<br />

parameters $arrowBack and $arrowForw are optional as well: they set other year navigation controls, than the<br />

ones set in the configuration (an image link can be set too).<br />

$cal->enableDatePicker([$startYear,$endYear,$link,$button]);<br />

Call this method, if you want the generated month calendar to have a date picker control. The parameters<br />

$startYear and $endYear define the range of the years, that can be selected (e.g. $startYear=2000,<br />

$endYear=2010). This range is limited by the private class variables $startYear and $endYear. Please modify them<br />

according to your configuration. The parameter $link is optional. You can use this parameter to set the URL for the<br />

calendar links (e.g. "mycalendar.php" or "mycalendar.php?mode=4&item=test", if you need more complex urls).<br />

You should modify the private method mkUrl(), if you want to change the general structure of the generated links.<br />

The parameter $button is optional as well: it sets some other value for the date picker submit button, than<br />

the one set in the configuration.<br />

$cal->enableDayLinks([$link,$javaScript]);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!