You can use the following template to include your complete Javascript code in your PHP-Nuke module:
<?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
// 0 : do not show right blocks - 1:show right blocks
$index = 0;
include("header.php");
?>
// PUT HTML OR JAVASCRIPT CODE HERE,
// OR GET RID OF THE ?> AND <?php ABOVE AND BELOW THIS LINE
// AND USE <acronym>PHP</acronym> CODE HERE INSTEAD.
<?php
include("footer.php");
?>
Javascript with PHP
If you decide to use PHP code ("echo"s) to enter your Javascript code, you should take into account the rules presented in Section
21.9.1.
Javascript codebase
You may need to add the following line to your Javascript applet: