function post_generate(&$code) { if (!count($this->actions)) { parent::post_generate($code); } $selector_id = uniqid(''); $code->write_html("\n <select id='{$selector_id}'>\n <option value=''>"); $code->write_php("echo strings :: get('choose_any')"); $code->write_html("</option>"); foreach ($this->actions as $option) { $action_path = $this->get_action_path($option); $code->write_html("<option value='{$action_path}'>"); if (isset($option['locale_value'])) { $locale_file = ''; if (isset($option['locale_file'])) { $locale_file = "','{$option['locale_file']}"; } $code->write_php("echo strings :: get('" . $option['locale_value'] . $locale_file . "')"); } else { $code->write_html($option['name']); } $code->write_html("</option>"); } $code->write_html("</select>"); $this->render_button($code, $selector_id); parent::post_generate($code); }
function post_generate(&$code) { if ($this->is_debug_enabled()) { $code->write_html('</div>'); } parent::post_generate($code); }
function post_generate(&$code) { if(!count($this->actions)) parent :: post_generate($code); $code->write_html("<script>arr_actions['{$this->grid_list_id}'] = {"); foreach($this->actions as $action_name => $action) { $action_path = $this->get_action_path($action); $code->write_html("'{$action_name}':{'href':'{$action_path}', 'name': '"); if(isset($action['locale_value'])) { $locale_file = ''; if(isset($action['locale_file'])) $locale_file = "','{$action['locale_file']}"; $code->write_php("echo strings :: get('" . $action['locale_value'] . $locale_file ."')"); } else $code->write_html($action['name']); $code->write_html("'},"); } $code->write_html("'_' : {}}</script>"); $code->write_html("<span id='{$this->grid_list_id}' behavior='CDDGridAction' ddalign='vbr'><img alt='' src='/shared/images/marker/1.gif'> "); $code->write_php("echo strings :: get('actions_for_selected');"); $code->write_html("</span>"); parent :: post_generate($code); }
function post_generate(&$code) { $code->write_html("</a></td> </tr> </table> </td> "); parent :: post_generate($code); }
/** * * @param code $ _writer * @return void * @access protected */ function post_generate(&$code) { $code->write_php('}'); $emptychild =& $this->find_child_by_class('list_default_tag'); if ($emptychild) { $code->write_php(' else { '); $emptychild->generate_now($code); $code->write_php('}'); } parent::post_generate($code); }
function post_generate(&$code) { $tab_class = $this->parent->tab_class; $code->write_html(" </td> </tr> </table> "); parent :: post_generate($code); }
function post_generate(&$code) { $js = ''; if (isset($this->attributes['active_tab'])) { $active_tab = $this->attributes['active_tab']; } else { $active_tab = reset($this->tabs); } if (!$this->tabs || !$active_tab || !in_array($active_tab, $this->tabs)) { error('INVALID_TABS_DECLARATION', __FILE__ . ' : ' . __LINE__ . ' : ' . __FUNCTION__, array('tag' => $this->tag, 'description' => 'check your tabs settings', 'file' => $this->source_file, 'line' => $this->starting_line_no)); } foreach ($this->tabs as $id) { $js .= "var tab_data={'id':'{$id}'};\n tabs.register_tab_item(tab_data);\n"; } if ($this->use_cookie) { $js .= "if (active_tab = get_cookie('active_tab'))\n\r\n tabs.activate(active_tab);\n\r\n else\r\n tabs.activate('{$active_tab}');\n"; } else { $js .= "tabs.activate('{$active_tab}');\n"; } $code->write_html("\r\n <script type='text/javascript'>\r\n var tabs = new tabs_container();\r\n {$js}\r\n </script>"); parent::post_generate($code); }
function post_generate(&$code) { if(!count($this->actions)) parent :: post_generate($code); $buttons_count = 0; if(isset($this->attributes['buttons'])) $buttons_count = (int)$this->attributes['buttons']; $code->write_html(" <table border='0' cellspacing='0' cellpadding='0'> <tr> <td style='padding:0 6px 0 14px'><img src='/shared/images/icon/common/12/action.gif'></td> "); $i = 0; foreach($this->actions as $option) { $action_path = $this->_get_action_path($option); $action_name = $this->_get_action_name($option); if($i >= $buttons_count) { if($i == $buttons_count) { $code->write_html("<td><select id='" . uniqid('') . "'><option value=''>"); $code->write_php("echo strings :: get('choose_any')"); $code->write_html("</option>"); } $code->write_html("<option value='{$action_path}' onclick='submit_form(this.form, this.value)'>"); $code->write_php("echo {$action_name}"); $code->write_html("</option>"); if($i == count($this->actions)) $code->write_html("</select></td>"); } else { $code->write_html("<td><button class='button' onclick='submit_form(this.form, \"{$action_path}\");'>"); $code->write_php("echo {$action_name}"); $code->write_html("</button></td>"); } $i ++; } $code->write_html(" </tr> </table> "); parent :: post_generate($code); }
function post_generate(&$code) { $js = ''; if(isset($link->attributes['active_tab'])) $active_tab = $link->attributes['active_tab']; else $active_tab = reset($this->tabs); if(!$this->tabs || !$active_tab || !in_array($active_tab, $this->tabs)) { error('INVALID_TABS_DECLARATION', __FILE__ . ' : ' . __LINE__ . ' : ' . __FUNCTION__, array('tag' => $this->tag, 'description' => 'check your tabs settings', 'file' => $this->source_file, 'line' => $this->starting_line_no)); } foreach($this->tabs as $id) $js .= "tabs.register_tab_item('{$id}');\n"; $js .= "tabs.activate('{$active_tab}');\n"; $code->write_html(" <script type='text/javascript'> var tabs = new tabs_container(); {$js} </script>"); parent :: post_generate($code); }
function post_generate(&$code) { $code->write_html(' </td></tr> </table> </div>'); parent::post_generate($code); }
/** * * @param code $ _writer * @return void * @access protected */ function post_generate(&$code) { $code->write_php('}'); parent::post_generate($code); }
function post_generate(&$code) { $tab_class = $this->parent->tab_class; $code->write_html("\n \t\t</td>\r\n \t</tr>\r\n \t</table>\t\n\t "); parent::post_generate($code); }
function post_generate(&$code) { $code->write_html("</div>"); parent :: post_generate($code); }
function post_generate(&$code) { $code->write_html("</a></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t</table>\t\r\n\t\t\t\t</td>\n\t\t"); parent::post_generate($code); }