id = $id; $this->rows = array(); } function addAction($label, $action, $icon, $details) { $this->rows[] = array($label, $action, $icon, $details); } function getHtml() { $html .= "
"; $html .= "id\" class=\"actionlist\" cellspacing=\"0\" style=\"width: 100%;\">\n"; $color = False; $color_actions .= " onmousedown=\"this.className = 'actionlist_line_down'\""; $color_actions .= " onmouseup=\"this.className = 'actionlist_line_over'\""; $color_actions .= " onmouseover=\"this.className = 'actionlist_line_over'\""; $color_actions .= " onmouseout=\"this.className = 'actionlist_color_line'\""; $plain_actions .= " onmousedown=\"this.className = 'actionlist_line_down'\""; $plain_actions .= " onmouseup=\"this.className = 'actionlist_line_over'\""; $plain_actions .= " onmouseover=\"this.className = 'actionlist_line_over'\""; $plain_actions .= " onmouseout=\"this.className = 'actionlist_plain_line'\""; for($i = 0; $i < count($this->rows); $i++) { if($color) { $html .= "rows[$i][1]\" $color_actions>\n"; $color = False; } else { $html .= "rows[$i][1]\" $plain_actions>\n"; $color = True; } $html .= "\n"; $html .= "\n"; } $html .= "
\n"; $html .= "rows[$i][2]."\" border=\"0\">".$this->rows[$i][0]."\n"; $html .= "
\n"; $html .= "
"; return $html; } } ?>