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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations)
Thu May 6 16:27:17 2004 UTC (20 years, 2 months ago) by jonen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
 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 jonen 1.3 * $Id: widget9.php,v 1.5 2003/08/12 23:08:56 hemna Exp $
9 jonen 1.1 *
10     * @author Walter A. Boring IV <waboring@buildabetterweb.com>
11     * @package phpHtmlLib
12     * @subpackage widget-examples
13     * @version 2.2.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     XHTML_TRANSITIONAL);
27    
28     //enable output debugging.
29 jonen 1.2 if (isset($_GET['debug'])) {
30     $page->set_text_debug( TRUE );
31     }
32 jonen 1.1
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 jonen 1.3 $page->add_css_link( "/phphtmllib/css/defaulttheme.php" );
37 jonen 1.1 $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     //subtitle of "some subtitle"
44     //overall width of 300 pixels ( u can use % as well )
45     $nav = new RoundTitleTable("Some lame title", "some subtitle", "300");
46    
47     $img_div = html_div("font10",
48     html_img("http://phphtmllib.newsblob.com/images/phphtmllib_logo.png") );
49     $img_div->set_style("text-align:center;");
50    
51    
52     $nav->add(html_div("font10bold", "foo bar blah"),
53     html_br(2), $img_div);
54    
55     $page->add( $nav );
56    
57    
58     //this will render the entire page
59     //with the content you have added
60     //wrapped inside all the required
61     //elements for a complete HTML/XHTML page.
62     //NOTE: all the objects in phphtmllib have
63     // the render() method. So you can call
64     // render on any phphtmlib object.
65     print $page->render();
66     ?>

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