Definition at line 112 of file panel_view.inc.
◆ button()
PanelView::button |
( |
|
$icon, |
|
|
|
$text, |
|
|
|
$tooltip, |
|
|
|
$action |
|
) |
| |
◆ commandMenu()
PanelView::commandMenu |
( |
| ) |
|
Definition at line 193 of file panel_view.inc.
195 $this->menu =
new ContextMenu($this->
id .
"_menu",
"#{$this->id}_menu_button");
196 $this->menu->trigger =
"click";
◆ control()
PanelView::control |
( |
|
$control | ) |
|
◆ drawView()
Definition at line 201 of file panel_view.inc.
203 if ($this->menu) $this->dialogs .= $this->menu->writeMenu();
209 <?echo $this->dialogs?>
211 <span
class=
"tearoff_title" style=
"display:none"><?echo
$title?></span>
212 <div
id=
"<?echo $this->id?>_header" class=
"panel_header">
217 <img
id=
"<?echo $this->id?>_menu_button" src=
"/fakoli/images/data_view_menu.png" alt=
"Panel Menu" style=
"border: none; display:inline-block;vertical-align: middle"/>
221 if (is_object($this->
title))
223 $this->
title->drawControl();
230 if (count($this->buttons) > 0)
233 <div
id=
"<?echo $this->id?>_buttons" class=
"panel_buttons">
235 foreach($this->buttons as
$button)
244 if (count($this->controls) > 0)
246 foreach($this->controls as $control)
248 $control->drawControl();
253 <div
style=
"height: 0; clear: both"></div>
255 if (count($this->toolbars) > 0)
257 foreach($this->toolbars as $toolbar)
259 $toolbar->drawToolbar();
264 <div
id=
"<?echo $this->id?>_body" class=
"panel_body">
265 <?echo $this->content?>
268 $out = ob_get_contents();
◆ PanelView()
PanelView::PanelView |
( |
|
$id, |
|
|
|
$title |
|
) |
| |
Definition at line 125 of file panel_view.inc.
130 $this->buttons = array();
131 $this->controls = array();
◆ toolbar()
PanelView::toolbar |
( |
|
$toolbar | ) |
|
◆ writeScript()
PanelView::writeScript |
( |
| ) |
|
Definition at line 152 of file panel_view.inc.
156 $this->script .= $this->menu->writeScript();
159 $this->script .= <<<ENDSCRIPT
160 <script type=
"text/javascript">
161 var {$this->
id}_body = document.id(
'{$this->id}_body');
162 if ({$this->
id}_body.panel)
164 var panel = {$this->
id}_body.panel;
166 panel.body = {$this->
id}_body;
167 panel.header = document.id(
'{$this->id}_header');
172 if (count($this->controls) > 0)
174 foreach($this->controls as $control)
176 $this->script .= $control->writeScript();
180 if (count($this->toolbars) > 0)
182 foreach($this->toolbars as $toolbar)
184 $this->script .= $toolbar->writeScript();
◆ $buttons
◆ $content
◆ $controls
◆ $dialogs
◆ $id
◆ $menu
◆ $script
◆ $title
◆ $toolbars
The documentation for this class was generated from the following file: