/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/examples/widget11.php
ViewVC logotype

Annotation of /nfo/php/libs/com.newsblob.phphtmllib/examples/widget11.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Thu May 6 16:57:23 2004 UTC (20 years, 2 months ago) by jonen
Branch: MAIN
CVS Tags: HEAD
 updated all to v2.4.1 - Apr 01, 2004

1 jonen 1.1 <?php
2    
3     /**
4     * This example illustrates the use of the
5     * RoundTitleTable widget.
6     *
7     *
8     * $Id: widget11.php,v 1.3 2004/02/03 23:46:50 hemna Exp $
9     *
10     * @author Walter A. Boring IV <waboring@buildabetterweb.com>
11     * @package phpHtmlLib
12     * @subpackage widget-examples
13     * @version 2.4.0
14     *
15     */
16    
17     /**
18     * Include the phphtmllib libraries
19     *
20     */
21     include_once("includes.inc");
22    
23    
24     //create the page object
25     $page = new HTMLPageClass("phpHtmlLib Widgets - RoundTable",
26     HTML);
27    
28     //enable output debugging.
29     if (isset($_GET['debug'])) {
30     $page->set_text_debug( TRUE );
31     }
32    
33     //add the css link to the default theme which will
34     //automatically generate the css classes used
35     //by the Navtable widget, as well as the other widgets.
36     $page->add_css_link( "/phphtmllib/css/defaulttheme.php" );
37     $page->add_css_link( "/css/fonts.css" );
38    
39    
40     //create the RoundTitleTable Object
41     //create the widget with a
42     //title of "Some lame title"
43     //overall width of 300 pixels ( u can use % as well )
44     $dialog = new StandardDialogWidget("Some title", "300", "center");
45     //$dialog->add_button();
46    
47     $dialog->add_block("TESTING","This is a message");
48     $dialog->add("This is a message");
49    
50    
51     $page->add( $dialog );
52    
53    
54     //this will render the entire page
55     //with the content you have added
56     //wrapped inside all the required
57     //elements for a complete HTML/XHTML page.
58     //NOTE: all the objects in phphtmllib have
59     // the render() method. So you can call
60     // render on any phphtmlib object.
61     print $page->render();
62     ?>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed