Update of /cvsroot/phpvortex/phpvortex
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25543
Modified Files:
SEC_Page.class.php
Log Message:
Added an onLoad parameter to SEC_Page
Index: SEC_Page.class.php
===================================================================
RCS file: /cvsroot/phpvortex/phpvortex/SEC_Page.class.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SEC_Page.class.php 6 Oct 2004 17:25:45 -0000 1.2
--- SEC_Page.class.php 6 Oct 2004 19:52:49 -0000 1.3
***************
*** 36,39 ****
--- 36,46 ----
/**
+ * JavaScript to run on the onLoad event of the BODY tag.
+ *
+ * @var string
+ */
+ var $onload = '';
+
+ /**
* Array with the layout of the page.
*
***************
*** 74,78 ****
$this->AddSection('header', $this->header['class'], $this->header['opts']);
}
! $this->AddSection('body_open', 'SEC_Static', array('code' => "<body>\n"));
if (!empty($this->layout)) {
foreach ($layout as $sect) {
--- 81,85 ----
$this->AddSection('header', $this->header['class'], $this->header['opts']);
}
! $this->AddSection('body_open', 'SEC_Static', array('code' => "<body>".(!empty($this->onload)?" onload='{$this->onload}'":'')."\n"));
if (!empty($this->layout)) {
foreach ($layout as $sect) {
|