box Class Reference

Inheritance diagram for box:

Inheritance graph
[legend]
Collaboration diagram for box:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 box ()
 infoBox ($heading, $contents)
 menuBox ($heading, $contents)

Public Attributes

 $table_border = '0'
 $table_width = '100%'
 $table_cellspacing = '0'
 $table_cellpadding = '2'
 $table_parameters = ''
 $table_row_parameters = ''
 $table_data_parameters = ''

Detailed Description

Definition at line 26 of file box.php.


Constructor & Destructor Documentation

box::box  ) 
 

Definition at line 27 of file box.php.

00027                    {
00028       $this->heading = array();
00029       $this->contents = array();
00030     }


Member Function Documentation

box::infoBox heading,
contents
 

Definition at line 32 of file box.php.

References tableBlock::tableBlock().

00032                                           {
00033       $this->table_row_parameters = 'class="infoBoxHeading"';
00034       $this->table_data_parameters = 'class="infoBoxHeading"';
00035       $this->heading = $this->tableBlock($heading);
00036 
00037       $this->table_row_parameters = '';
00038       $this->table_data_parameters = 'class="infoBoxContent"';
00039       $this->contents = $this->tableBlock($contents);
00040 
00041       return $this->heading . $this->contents;
00042     }

box::menuBox heading,
contents
 

Definition at line 44 of file box.php.

References $contents, $heading, $menu_dhtml, nbsp, onmouseover, tableBlock::tableBlock(), and text.

00044                                           {
00045 
00046     global $menu_dhtml;              // add for dhtml_menu
00047     if ($menu_dhtml == false ) {     // add for dhtml_menu
00048 
00049       $this->table_data_parameters = 'class="menuBoxHeading"';
00050       if ($heading[0]['link']) {
00051         $this->table_data_parameters .= ' onmouseover="this.style.cursor=\'hand\'" onclick="document.location.href=\'' . $heading[0]['link'] . '\'"';
00052         $heading[0]['text'] = '&nbsp;<a href="' . $heading[0]['link'] . '" class="menuBoxHeadingLink">' . $heading[0]['text'] . '</a>&nbsp;';
00053       } else {
00054         $heading[0]['text'] = '&nbsp;' . $heading[0]['text'] . '&nbsp;';
00055       }
00056       $this->heading = $this->tableBlock($heading);
00057       $this->table_data_parameters = 'class="menuBoxContent"';
00058       $this->contents = $this->tableBlock($contents);
00059       return $this->heading . $this->contents . $dhtml_contents;
00060 // ## add for dhtml_menu
00061     } else {
00062       $selected = substr(strrchr ($heading[0]['link'], '='), 1);
00063       $dhtml_contents = $contents[0]['text'];
00064       $change_style = array ('<br>'=>' ','<BR>'=>' ', 'a href='=> 'a class="menuItem" href=','class="menuBoxContentLink"'=>' ');
00065       $dhtml_contents = strtr($dhtml_contents,$change_style);
00066       $dhtml_contents = '<div id="'.$selected.'Menu" class="menu" onmouseover="menuMouseover(event)">'. $dhtml_contents . '</div>';
00067       return $dhtml_contents;
00068       }
00069 // ## eof add for dhtml_menu
00070     }


Member Data Documentation

tableBlock::$table_border = '0' [inherited]
 

Definition at line 14 of file table_block.php.

tableBlock::$table_cellpadding = '2' [inherited]
 

Definition at line 17 of file table_block.php.

tableBlock::$table_cellspacing = '0' [inherited]
 

Definition at line 16 of file table_block.php.

tableBlock::$table_data_parameters = '' [inherited]
 

Definition at line 20 of file table_block.php.

tableBlock::$table_parameters = '' [inherited]
 

Definition at line 18 of file table_block.php.

tableBlock::$table_row_parameters = '' [inherited]
 

Definition at line 19 of file table_block.php.

tableBlock::$table_width = '100%' [inherited]
 

Definition at line 15 of file table_block.php.


The documentation for this class was generated from the following file:
Generated on Fri Mar 17 14:51:06 2006 for CRE Loaded 6.2 Pro by  doxygen 1.4.4