Example #1
0
 public static function menuBox($heading, $contents)
 {
     self::$table_data_parameters = 'class="menuBoxHeading"';
     if (isset($heading[0]['link'])) {
         self::$table_data_parameters .= ' onmouseover="this.style.cursor=\'pointer\'" onclick="document.location.href=\'' . $heading[0]['link'] . '\'"';
         $heading[0]['text'] = '&nbsp;<a href="' . $heading[0]['link'] . '" class="menuBoxHeadingLink">' . $heading[0]['text'] . '</a>&nbsp;';
     } else {
         $heading[0]['text'] = '&nbsp;' . $heading[0]['text'] . '&nbsp;';
     }
     self::$heading = parent::constructor($heading);
     self::$table_data_parameters = 'class="menuBoxContent"';
     self::$contents = parent::constructor($contents);
     return self::$heading . self::$contents;
 }