ATK Extensions: Difference between revisions
→Prototype window class javascript library: syntax highlighting |
→PHPMailer: highlighting |
||
| Line 27: | Line 27: | ||
See example below: | See example below: | ||
<syntaxhighlight lang="php"> | |||
$mailer = atknew('atk.utils.atkmailer'); | $mailer = atknew('atk.utils.atkmailer'); | ||
$mailer->AddAddress("mailto@mail.com"); | $mailer->AddAddress("mailto@mail.com"); | ||
| Line 37: | Line 38: | ||
The Team.'); | The Team.'); | ||
$mailer->Send(); | $mailer->Send(); | ||
</syntaxhighlight> | |||
You can use all the methods described in the PHPMailer documentation. | You can use all the methods described in the PHPMailer documentation. | ||
Revision as of 23:00, 24 January 2007
ADOdb Date Library, part of the ADOdb abstraction library
Description:
Usage:
URL: http://adodb.sourceforge.net/
Latest version in ATK: 4.54
Available since: ATK 4
Crossbrowser DHTML functions
Description:
Usage:
URL: http://www.wallner-software.com
Latest version in ATK: 1.0
Available since: ATK 2
FCKeditor
Description:
Usage:
URL: http://www.fckeditor.net/
Latest version in ATK: 2.2
Available since: ATK 5.2.0
PHPMailer
Description:
Usage:
You can use the PHPMailer by calling the atkMailer, which is a wrapper for the PHPMailer. See example below:
$mailer = atknew('atk.utils.atkmailer');
$mailer->AddAddress("mailto@mail.com");
$mailer->FromName = "ATK Application Mailer";
$mailer->From = 'mailer@achievo.org';
$mailer->Subject = 'Welcome to the ATK Application!';
$mailer->Body = 'Welcome to the ATK Application
We, the team, wish to thank you for making use of our ATK Application.<br />
Yours Truly,
The Team.');
$mailer->Send();
You can use all the methods described in the PHPMailer documentation.
URL: http://phpmailer.sourceforge.net/
Latest version in ATK: 1.73
Available since: ATK 5.6
PEAR::Services_JSON
Description:
Usage:
URL: http://pear.php.net/pepr/pepr-proposal-show.php?id=198
Latest version in ATK: 1.1
Available since: ATK saruman branch (unreleased)
Prototype javascript library
Description:
Usage:
URL: http://www.sergiopereira.com/articles/prototype.js.html
Latest version in ATK: 1.5.0_rc0
Available since: ATK 5.7 (unreleased)
Prototype window class javascript library
Description:
Usage:
Register neccesary javascript and style:
pfPage::register_javascript_file($config_platformroot."atk/javascript/window/window.js", false);
pfPage::register_stylesheet_file(".".$config_platformroot."atk/javascript/window/themes/default.css", false);
Register custom style:
pfPage::register_stylesheet_file(".".$config_platformroot."atk/javascript/window/themes/alphacube.css", false);
In javascript-file (see URL for other examples): <javascript>
Dialog.alert("Your alert dialog",
{
windowParameters: {className: 'alphacube', width:300, height:70}, okLabel: "close", ok:function(win) {return true;}
});
</javascript>
URL: http://prototype-window.xilinus.com/
Latest version in ATK: 0.96.2
Available since: ATK 5.7 (unreleased)
Script.aculo.us javascript library
Description:
Usage:
URL: http://script.aculo.us/
Latest version in ATK: 1.6.1
Available since: ATK 5.7 (unreleased)
Rico javascript library
Description:
Usage:
URL: http://openrico.org/
Latest version in ATK: 1.1.2
Available since: ATK 5.7 (unreleased)
Simpletest test framework
Description:
Usage:
URL: http://www.lastcraft.com/simple_test.php
Latest version in ATK: 1.0
Available since: ATK 5.2
Smarty
Description:
Usage:
URL: http://smarty.php.net/
Latest version in ATK: 2.6.11
Available since: ATK 5.0
The DHTML / JavaScript Calendar
Description:
Usage:
URL: http://www.dynarch.com/projects/calendar/
Latest version in ATK: 0.9.2
Available since: ATK 4
The PhpCaptcha class by Edward Eliot
Description:
Usage: the PhpCaptcha class is used in the atkcaptchaattribute
URL: http://www.ejeliot.com/
Latest version in ATK: no version information available
Available since: ATK 5.7 (unreleased)