public function postGenerate($code) { if(!count($this->_actions)) parent :: postGenerate($code); $selector_id = uniqid(''); $code->writeHtml(" <select id='{$selector_id}'> <option value=''>"); $code->writePhp("echo strings :: get('choose_action_for_selected_rows')"); $code->writeHtml("</option>"); foreach($this->_actions as $option) { $action_path = $this->_getActionPath($option); $code->writeHtml("<option value='{$action_path}'>"); if(isset($option['locale_value'])) { $locale_file = ''; if(isset($option['locale_file'])) $locale_file = "','{$option['locale_file']}"; $code->writePhp("echo strings :: get('" . $option['locale_value'] . $locale_file ."')"); } else $code->writeHtml($option['name']); $code->writeHtml("</option>"); } $code->writeHtml("</select>"); $this->_renderButton($code, $selector_id); parent :: postGenerate($code); }
public function postGenerate($code) { if($this->isDebugEnabled()) { $code->writeHtml('</div>'); } parent :: postGenerate($code); }
function postGenerate(&$code) { if (!$this->hide_for_current_page) { $parent =& $this->findParentByClass('LimbPagerNavigatorTag'); $code->writePhp('if (' . $parent->getComponentRefCode() . '->hasNext()) {'); } parent::postGenerate($code); $code->writePhp('}'); }
public function postGenerate($code) { $code->writePhp('}'); $emptychild = $this->findChildByClass('grid_default_tag'); if ($emptychild) { $code->writePhp(' else { '); $emptychild->generateNow($code); $code->writePhp('}'); } parent::postGenerate($code); }
function postGenerate($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)) { return throw_error(new WactException('invalid tabs declaration. Check your tabs settings', array('tag' => $this->tag, 'file' => $this->source_file, 'line' => $this->starting_line_no))); } foreach ($this->tabs as $id) { $js .= "var tab_data={'id':'{$id}'};\n tabs.registerTabItem(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->writeHtml("\r\n <script type='text/javascript'>\r\n var tabs = new tabs_container();\r\n {$js}\r\n </script>"); parent::postGenerate($code); }
public function postGenerate($code) { $code->writePhp('}'); parent::postGenerate($code); }
public function postGenerate($code) { $code->writeHtml("</div>"); parent::postGenerate($code); }
function postGenerate($code) { $tab_class = $this->parent->tab_class; $code->writeHtml("\r\n </td>\r\n </tr>\r\n </table>\r\n "); parent::postGenerate($code); }
function postGenerate(&$code) { parent::postGenerate($code); $code->writePhp('}'. "\n"); }
public function postGenerate($code) { $code->writeHtml(' </td></tr> </table> </div>'); parent::postGenerate($code); }
/** * @param CodeWriter * @return void * @access protected */ function postGenerate(&$code) { $code->writePHP('}'); parent::postGenerate($code); }
function postGenerate($code) { $code->writeHtml("</a></td>\r\n </tr>\r\n </table>\r\n </td>\r\n "); parent::postGenerate($code); }