Packageindex Classtrees Modulegroups Elementlist Report XML Files

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

Html

Html

Class to handle HTML page template

 

private class Html

Class to handle HTML page template
This class is derived by themes

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

 
Direct known subclasses: Htmldaweb, Htmlkde2, Htmllinuxfr, Htmllynx, Htmlnexen, Htmlphpnukeopenmind, Htmlprintable, Htmlslashdot, Htmlwm, Htmlbeos6

Public Method Summary

string

parsetemplate(string $template)

Parses a template

Private Method Summary

string

newsbox_posted_by(array $row, integer $preview)

The 'posted by' header in a news box
string

newsbox_show_links(array $row, integer $preview)

Creates the html for news links
string

size_unit(integer $file_size)

Computes the file size in the correct unit (Mo if size > 1 Mo, Ko otherwise)
string

newsbox_show_attachments(array $row)

Creates links to attachements
string

newsbox_count_comments(array $row, string $section, string $topic, integer $year, integer $month, integer $day)

Creates the HTML for "1 comment in 654"
string

linkto_topic(string $topic)

Creates a lonk to a topic (withg pretty image)

Public Method Details

parsetemplate

public string parsetemplate( string $template )

  Parses a template
Read a template file, replace all <!-- daCode: ... -->
expressions by PHP expressions, displays output text and
returns this text
Called in every access script

Parameter
string $template
of the template
Returns string

the template, with substitutions made.


Private Method Details

newsbox_posted_by

private string newsbox_posted_by( array $row, integer $preview )

  The 'posted by' header in a news box

Parameter
array $row
row of news table
integer $preview
1, displays Proposed instead of Approved
Returns string

the HTML for the header.


newsbox_show_links

private string newsbox_show_links( array $row, integer $preview )

  Creates the html for news links

Parameter
array $row
row of news table
integer $preview
1, displays Proposed instead of Approved
Returns string

the HTML for the links.


size_unit

private string size_unit( integer $file_size )

  Computes the file size in the correct unit (Mo if size > 1 Mo, Ko otherwise)

Parameter
integer $file_size
file size
Returns string

file size converted, with prefix (Mega- or Kilo-) appended.


newsbox_show_attachments

private string newsbox_show_attachments( array $row )

  Creates links to attachements

Parameter
array $row
row in the attachement table.
Returns string

the HTML code.


newsbox_count_comments

private string newsbox_count_comments( array $row, string $section, string $topic, integer $year, integer $month, integer $day )

  Creates the HTML for "1 comment in 654"

Parameter
array $row
???
string $section
section
string $topic
topic
integer $year
year of publication
integer $month
month of publication
integer $day
day of publication
Returns string

HTML code


linkto_topic

private string linkto_topic( string $topic )

  Creates a lonk to a topic (withg pretty image)

Parameter
string $topic
name ofthe topic
Returns string

HTML code for the link.



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta