Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /home/inri/public_html/daCode-HEAD/daCode/src/phplib/themes/wm/html.php3
daCode -

Htmlwm

Html
   |
  +-- Htmlwm

WindowMaker-like theme

 

private class Htmlwm extends Html

WindowMaker-like theme

daCode http://www.dacode.org
src/phplib/html.php3
$Id: html.php3,v 1.58 2002/05/14 21:11:09 jbcombes Exp $

All HTML design will be put here

header($title) Return the header with $title as title.
footer() Return footer.
newsbox($title, $news, $icon, $urls, footer) Return the box.

Depends: Config Redirect Utils User

 

Methods inherited from Html

parsetemplate, newsbox_posted_by, newsbox_show_links, size_unit, newsbox_show_attachments, newsbox_count_comments, linkto_topic

Public Method Summary

void

Htmlwm()

Class constructor
string

header(string $title, [ boolean $nobanner ])

Returns the HTML header
string

footer([ string $text, boolean $nobanner ])

Returns the footer
string

sidebox(string $title, string $text, [ string $type ])

Return HTML code for side box with $text
string

simplebox(string $text, [ string $width ])

Return HTML code for simple box with $text
string

newsbox(array $row, [ integer $preview ])

Return HTML code for news box with $row from news table
string

commentbanner(integer $score, integer $res_type)

Function to print comment top banner

Private Method Summary

string

titlebar(string $title, string $style, boolean $buttons)

Creates the HTML for the title
string

bottombar()

Creates the bottom bar of a news box
string

gtkbox(string $content, string $color)

What is it???

Private Field Summary

unknown

$session

unknown

$redirect

unknown

$hits

unknown

$fortune

unknown

$utils

Public Method Details

Htmlwm

public void Htmlwm( )

  Class constructor

Returns void


header

public string header( string $title, [ boolean $nobanner ] )

  Returns the HTML header

Parameter
string $title
of the page
boolean $nobanner = >>false<<
if there shall be no banner on top of page
Returns string

the HTML for the header (including doctype)


footer

public string footer( [ string $text, boolean $nobanner ] )

  Returns the footer

Parameter
string $text = >>""<<
to add at the bottom of the page, if $nobanner is false
boolean $nobanner = >>false<<
true, do nbot print standard footer
Returns string

the HTML for the footer


sidebox

public string sidebox( string $title, string $text, [ string $type ] )

  Return HTML code for side box with $text

Parameter
string $title
of the box
string $text
of the box
string $type = >>""<<
of the box (for HTML comment, not displayed)
Returns string

the HTML for the box


simplebox

public string simplebox( string $text, [ string $width ] )

  Return HTML code for simple box with $text

Parameter
string $text
of the box
string $width = >>"100%"<<
content of the HTML width attribute
Returns string

the HTML for the box


newsbox

public string newsbox( array $row, [ integer $preview ] )

  Return HTML code for news box with $row from news table

Parameter
array $row
from news table
integer $preview = >>0<<
1, special mode for preview (?!)
Returns string

the HTML for news box


commentbanner

public string commentbanner( integer $score, integer $res_type )

  Function to print comment top banner

Parameter
integer $score
score threshold
integer $res_type
type of resource
Returns string

the HTML code


Private Method Details

titlebar

private string titlebar( string $title, string $style, boolean $buttons )

  Creates the HTML for the title

Parameter
string $title
text of the title
string $style
name of the CSS class used for title
boolean $buttons
Returns string

the HTML for the title


bottombar

private string bottombar( )

  Creates the bottom bar of a news box

Returns string

the HTML


gtkbox

private string gtkbox( string $content, string $color )

  What is it???

Parameter
string $content
of the box
string $color
of the box
Returns string

HTML code


Private Field Details

$session

private unknown $session

>><<



$redirect

private unknown $redirect

>><<



$hits

private unknown $hits

>><<



$fortune

private unknown $fortune

>><<



$utils

private unknown $utils

>><<




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta