HTML_Page2
[ class tree: HTML_Page2 ] [ index: HTML_Page2 ] [ all elements ]

Source for file Page2_Frameset.php

Documentation is available at Page2_Frameset.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4: */
  3. // +----------------------------------------------------------------------+
  4. // | HTML_Page2                                                           |
  5. // +----------------------------------------------------------------------+
  6. // | Copyright (c) 1997 - 2004 The PHP Group                              |
  7. // +----------------------------------------------------------------------+
  8. // | This source file is subject to version 3.0 of the PHP license,       |
  9. // | that is bundled with this package in the file LICENSE, and is        |
  10. // | available at through the world-wide-web at                           |
  11. // | http://www.php.net/license/3_0.txt.                                  |
  12. // | If you did not receive a copy of the PHP license and are unable to   |
  13. // | obtain it through the world-wide-web, please send a note to          |
  14. // | license@php.net so we can mail you a copy immediately.               |
  15. // +----------------------------------------------------------------------+
  16. // | Author: Klaus Guenther <klaus@capitalfocus.org>                      |
  17. // +----------------------------------------------------------------------+
  18. //
  19. // $Id$
  20.  
  21. require_once 'HTML/Page2.php';
  22.  
  23. $page = new HTML_Page2(array(
  24.                              'doctype' => 'XHTML 1.0 Frameset',
  25.                              'tab' => '  '
  26.                              ));
  27. // Page title defaults to "New XHTML 1.0 Frameset Compliant Page"
  28.  
  29. $page->addBodyContent('<p>Your browser does not support frames.</p>');
  30.  
  31. $page->frameset->addRows(array('logo' => 200'bottom' => '*'));
  32.  
  33. $page->frameset->addFrame('logo''logo.htm');
  34. $page->frameset->logo->setScrolling('no');
  35.  
  36. $page->frameset->addFrameset('bottom');
  37. $page->frameset->bottom->addColumns(array('menu' => 200'main' => '*'));
  38. $page->frameset->bottom->addFrame('menu''menu.htm''main');
  39. $page->frameset->bottom->addFrame('main''main.htm''main');
  40.  
  41. $page->display();
  42.  
  43. ?>

Documentation generated on Mon, 11 Mar 2019 16:03:54 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.