1 |
jonen |
1.1 |
<?php |
2 |
|
|
|
3 |
|
|
include_once( "localinc.php" ); |
4 |
|
|
|
5 |
|
|
$page = new HTMLPageClass("lame"); |
6 |
|
|
$theme = $_GET["theme"]; |
7 |
|
|
if ($theme == "") { |
8 |
|
|
$page->add_css_link( "/css/defaulttheme.php"); |
9 |
|
|
} else if ($theme == "blue") { |
10 |
|
|
$page->add_css_link( "/css/bluetheme.php"); |
11 |
|
|
} else if ($theme == "red") { |
12 |
|
|
$page->add_css_link( "/css/redtheme.php"); |
13 |
|
|
} |
14 |
|
|
|
15 |
|
|
if ($_GET["debug"]) { |
16 |
|
|
$page->set_text_debug(TRUE); |
17 |
|
|
|
18 |
|
|
} |
19 |
|
|
|
20 |
|
|
$base_link = $_SERVER["PHP_SELF"]; |
21 |
|
|
|
22 |
|
|
$info = new InfoTable("test", "300"); |
23 |
|
|
$info->add_row("test", "foo"); |
24 |
|
|
$info->add_row("test", "foo"); |
25 |
|
|
$info->add_row("test", "foo"); |
26 |
|
|
|
27 |
|
|
$page->add( $info, html_br(2) ); |
28 |
|
|
|
29 |
|
|
$textcss = new TextCSSNav; |
30 |
|
|
$textcss->add($base_link, "Home", "home dude"); |
31 |
|
|
$textcss->add($base_link, "something", |
32 |
|
|
"This is like..another link"); |
33 |
|
|
|
34 |
|
|
$page->add( $textcss, html_br(2) ); |
35 |
|
|
|
36 |
|
|
$navtable = new NavTable("Something", "more here", 300); |
37 |
|
|
$navtable->add($base_link, "Home"); |
38 |
|
|
$navtable->add($base_link, "Click ME!"); |
39 |
|
|
$navtable->add_blank(); |
40 |
|
|
$navtable->add($base_link, "Click ME!"); |
41 |
|
|
|
42 |
|
|
$page->add( $navtable, html_br(2) ); |
43 |
|
|
|
44 |
|
|
$info2 = new InfoTable("Some lame table", 400); |
45 |
|
|
$info2->add_column_header("foo", 200); |
46 |
|
|
$info2->add_column_header("bar", 100); |
47 |
|
|
$info2->add_column_header("blah blah", 100); |
48 |
|
|
|
49 |
|
|
$info2->add_row("123", "456", 789); |
50 |
|
|
$info2->add_row("hrmm", "what?", 0123); |
51 |
|
|
$info2->add_row("test", "ing", 123); |
52 |
|
|
|
53 |
|
|
$page->add( $info2, html_br(2) ); |
54 |
|
|
|
55 |
|
|
|
56 |
|
|
$nav = new VerticalCSSNavTable("Some title", "Some lame subtitle", 300); |
57 |
|
|
$nav->add($base_link, "Home","Go home dude!"); |
58 |
|
|
$nav->add($base_link, "Something","Go Somewhere else"); |
59 |
|
|
$nav->add($base_link, "Home Depot","Head to get some stuff!"); |
60 |
|
|
|
61 |
|
|
$page->add( $nav, html_br(2) ); |
62 |
|
|
|
63 |
|
|
|
64 |
|
|
$footernav = new FooterNav("Qualys"); |
65 |
|
|
$footernav->set_legalnotice_url("foo.html"); |
66 |
|
|
$footernav->set_privacypolicy_url("foo.html"); |
67 |
|
|
$footernav->set_webmaster_email("you@suck.com"); |
68 |
|
|
|
69 |
|
|
$footernav->add($base_link, "Home"); |
70 |
|
|
$footernav->add($base_link, "Login"); |
71 |
|
|
if ($theme) { |
72 |
|
|
$link .= $base_link."?theme=".$theme."&debug=1"; |
73 |
|
|
} else { |
74 |
|
|
$link .= $base_link."?debug=1"; |
75 |
|
|
} |
76 |
|
|
$footernav->add($link, "DEBUG THIS PAGE"); |
77 |
|
|
|
78 |
|
|
|
79 |
|
|
$page->push( $footernav ); |
80 |
|
|
|
81 |
|
|
print $page->render(); |
82 |
|
|
?> |