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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Sat Feb 22 21:07:23 2003 UTC (21 years, 4 months ago) by jonen
Branch: MAIN
+ updated whole lib to version 2.2.1 (new FormProcessing since 2.2.0!)

1 <?php
2
3 /**
4 * This example illustrates the use of the
5 * RoundTitleTable widget.
6 *
7 *
8 * $Id: widget9.php,v 1.2 2003/02/21 00:33:00 hemna Exp $
9 *
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 $page->set_text_debug( $_GET["debug"] );
30
31 //add the css link to the default theme which will
32 //automatically generate the css classes used
33 //by the Navtable widget, as well as the other widgets.
34 $page->add_css_link( "/css/defaulttheme.php" );
35 $page->add_css_link( "/css/fonts.css" );
36
37
38 //create the RoundTitleTable Object
39 //create the widget with a
40 //title of "Some lame title"
41 //subtitle of "some subtitle"
42 //overall width of 300 pixels ( u can use % as well )
43 $nav = new RoundTitleTable("Some lame title", "some subtitle", "300");
44
45 $img_div = html_div("font10",
46 html_img("http://phphtmllib.newsblob.com/images/phphtmllib_logo.png") );
47 $img_div->set_style("text-align:center;");
48
49
50 $nav->add(html_div("font10bold", "foo bar blah"),
51 html_br(2), $img_div);
52
53 $page->add( $nav );
54
55
56 //this will render the entire page
57 //with the content you have added
58 //wrapped inside all the required
59 //elements for a complete HTML/XHTML page.
60 //NOTE: all the objects in phphtmllib have
61 // the render() method. So you can call
62 // render on any phphtmlib object.
63 print $page->render();
64 ?>

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