cvs: pear /HTML_Page2 package.xml /HTML_Page2/Page2 Frameset.php /HTML_Page2/Page2/Frameset Frame.php /HTML_Page2/examples Page2_Frameset.php
| From: | Klaus Guenther | Date: | Thu, 24 Jun 2004 17:23:08 +0000 |
| Subject: | cvs: pear /HTML_Page2 package.xml /HTML_Page2/Page2 Frameset.php /HTML_Page2/Page2/Frameset Frame.php /HTML_Page2/examples Page2_Frameset.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-21089@lists.php.net to get a copy of this message | ||
thesaur Thu Jun 24 13:23:08 2004 EDT
Added files:
/pear/HTML_Page2/examples Page2_Frameset.php
Modified files:
/pear/HTML_Page2 package.xml
/pear/HTML_Page2/Page2 Frameset.php
/pear/HTML_Page2/Page2/Frameset Frame.php
Log:
Fixed some typos
Added example for framesets
http://cvs.php.net/diff.php/pear/HTML_Page2/package.xml?r1=1.6&r2=1.7&ty=u
Index: pear/HTML_Page2/package.xml
diff -u pear/HTML_Page2/package.xml:1.6 pear/HTML_Page2/package.xml:1.7
--- pear/HTML_Page2/package.xml:1.6 Thu Jun 24 10:26:53 2004
+++ pear/HTML_Page2/package.xml Thu Jun 24 13:23:08 2004
@@ -53,6 +53,7 @@
<file role="doc" name="Page2_NoDoctype.php" />
<file role="doc" name="Page2_Simple.php" />
<file role="doc" name="Page2_Complex.php" />
+ <file role="doc" name="Page2_Frameset.php" />
</dir>
</dir>
</filelist>
http://cvs.php.net/diff.php/pear/HTML_Page2/Page2/Frameset.php?r1=1.1&r2=1.2&ty=u
Index: pear/HTML_Page2/Page2/Frameset.php
diff -u pear/HTML_Page2/Page2/Frameset.php:1.1 pear/HTML_Page2/Page2/Frameset.php:1.2
--- pear/HTML_Page2/Page2/Frameset.php:1.1 Thu Jun 24 10:26:53 2004
+++ pear/HTML_Page2/Page2/Frameset.php Thu Jun 24 13:23:08 2004
@@ -16,7 +16,7 @@
// | Author: Klaus Guenther <klaus@capitalfocus.org> |
// +----------------------------------------------------------------------+
//
-// $Id: Frameset.php,v 1.1 2004/06/24 14:26:53 thesaur Exp $
+// $Id: Frameset.php,v 1.2 2004/06/24 17:23:08 thesaur Exp $
/**
* The PEAR::HTML_Page2 package provides a simple interface for generating an XHTML compliant page
@@ -24,7 +24,7 @@
* @category HTML
* @package HTML_Page2
* @version @package_version@
- * @version $Id: Frameset.php,v 1.1 2004/06/24 14:26:53 thesaur Exp $
+ * @version $Id: Frameset.php,v 1.2 2004/06/24 17:23:08 thesaur Exp $
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
* @author Klaus Guenther <klaus@capitalfocus.org>
*/
@@ -43,7 +43,7 @@
class HTML_Page2_Frameset extends HTML_Common
{
- var $_master = true;
+ var $_master = false;
var $_rows = array();
var $_cols = array();
var $_type = '';
@@ -89,7 +89,7 @@
function addFrameset($name)
{
- $this->name = new HTML_Page2_Frameset();
+ $this->$name = new HTML_Page2_Frameset();
} // end func addFrame
function toHTML()
@@ -122,15 +122,17 @@
$this->$name->setTabOffset($offset + 1);
$this->$name->setTab($tab);
$this->$name->setLineEnd($lnEnd);
+ $this->$name->xhtml = $this->xhtml;
// fetch the
$strHtml .= $this->$name->toHtml();
} else {
+ $this->$name->xhtml = $this->xhtml;
$strHtml .= $tabs . $tab . $this->$name->toHtml() . $lnEnd;
}
}
if (!$this->_master) {
- $strHtml = $tabs . '</frameset>' . $lnEnd;
+ $strHtml .= $tabs . '</frameset>' . $lnEnd;
}
return $strHtml;
http://cvs.php.net/diff.php/pear/HTML_Page2/Page2/Frameset/Frame.php?r1=1.1&r2=1.2&ty=u
Index: pear/HTML_Page2/Page2/Frameset/Frame.php
diff -u pear/HTML_Page2/Page2/Frameset/Frame.php:1.1 pear/HTML_Page2/Page2/Frameset/Frame.php:1.2
--- pear/HTML_Page2/Page2/Frameset/Frame.php:1.1 Thu Jun 24 10:26:53 2004
+++ pear/HTML_Page2/Page2/Frameset/Frame.php Thu Jun 24 13:23:08 2004
@@ -16,7 +16,7 @@
// | Author: Klaus Guenther <klaus@capitalfocus.org> |
// +----------------------------------------------------------------------+
//
-// $Id: Frame.php,v 1.1 2004/06/24 14:26:53 thesaur Exp $
+// $Id: Frame.php,v 1.2 2004/06/24 17:23:08 thesaur Exp $
/**
* The PEAR::HTML_Page2 package provides a simple interface for generating an XHTML compliant page
@@ -24,13 +24,12 @@
* @category HTML
* @package HTML_Page2
* @version @package_version@
- * @version $Id: Frame.php,v 1.1 2004/06/24 14:26:53 thesaur Exp $
+ * @version $Id: Frame.php,v 1.2 2004/06/24 17:23:08 thesaur Exp $
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
* @author Adam Daniel <adaniel1@eesus.jnj.com>
* @author Klaus Guenther <klaus@capitalfocus.org>
* @since PHP 4.0.3pl1
*/
-
/**
* Include HTML_Common class
http://cvs.php.net/co.php/pear/HTML_Page2/examples/Page2_Frameset.php?r=1.1&p=1
Index: pear/HTML_Page2/examples/Page2_Frameset.php
+++ pear/HTML_Page2/examples/Page2_Frameset.php
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | HTML_Page2 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997 - 2004 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 3.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/3_0.txt.
|
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Author: Klaus Guenther <klaus@capitalfocus.org> |
// +----------------------------------------------------------------------+
//
// $Id: Page2_Frameset.php,v 1.1 2004/06/24 17:23:08 thesaur Exp $
require_once 'HTML/Page2.php';
$page = new HTML_Page2(array(
'doctype' => 'XHTML 1.0 Frameset',
'tab' => ' '
));
// Page title defaults to "New XHTML 1.0 Frameset Compliant Page"
$page->addBodyContent('<p>Your browser does not support frames.</p>');
$page->frameset->addRows(array('logo' => 200, 'bottom' =>
'*'));
$page->frameset->addFrame('logo', 'logo.htm');
$page->frameset->logo->setScrolling('no');
$page->frameset->addFrameset('bottom');
$page->frameset->bottom->addColumns(array('menu' => 200, 'main'
=> '*'));
$page->frameset->bottom->addFrame('menu', 'menu.htm',
'main');
$page->frameset->bottom->addFrame('main', 'main.htm',
'main');
$page->display();
?>