protected function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column('recipient', trlKwf('Recipient'), 200)); $this->_columns->add(new Kwf_Grid_Column_Datetime('date', trlKwf('Date'), 100)); $this->_columns->add(new Kwf_Grid_Column('ip', trlKwf('IP-Address'), 100)); }
protected function _initColumns() { $this->_columns->add(new Kwf_Grid_Column('id')); $this->_columns->add(new Kwf_Grid_Column('name')); if ($this->_getParam('id')) { $subRootComponentId = $this->_getParam('id'); } else { if ($this->_getParam('parent_id')) { $subRootComponentId = $this->_getParam('parent_id'); } else { if ($this->_getParam('componentId')) { $subRootComponentId = $this->_getParam('componentId'); } else { throw new Kwf_Exception("componentId, id or parent_id required"); } } } $data = array(); $gen = Kwc_Abstract::getSetting($this->_getParam('class'), 'generators'); foreach ($gen['child']['component'] as $name => $class) { if (!$class) { continue; } $admin = Kwc_Admin::getInstance($class); $forms = $admin->getCardForms(); foreach ($admin->getVisibleCardForms($subRootComponentId) as $k) { $id = count($forms) == 1 ? $name : $name . '_' . $k; $data[] = array('id' => $id, 'name' => $forms[$k]['title']); } } $this->_model = new Kwf_Model_FnF(array('data' => $data)); parent::_initColumns(); }
protected function _initColumns() { parent::_initColumns(); $this->_filters['text'] = array('type' => 'TextField', 'width' => 85); // alle erlaubten haupt-rollen in variable $roles = array(); $acl = Kwf_Registry::get('acl'); $userRole = Kwf_Registry::get('userModel')->getAuthedUserRole(); foreach ($acl->getAllowedEditRolesByRole($userRole) as $role) { $roleName = Kwf_Trl::getInstance()->trlStaticExecute($role->getRoleName()); $roles[] = array($role->getRoleId(), $roleName); } $this->_filters['role'] = array('type' => 'ComboBox', 'width' => 120, 'label' => trlKwf('Rights') . ':', 'defaultText' => trlKwf('all'), 'skipWhere' => true, 'data' => $roles); $this->_columns->add(new Kwf_Grid_Column_Button('edit', trlKwf('Edit'))); $this->_columns->add(new Kwf_Grid_Column('id', 'ID', 50)); $this->_columns->add(new Kwf_Grid_Column('email', trlKwf('Email'), 140)); $this->_columns->add(new Kwf_Grid_Column('role', trlKwf('Rights')))->setData(new Kwf_Controller_Action_User_Users_RoleData()); $this->_columns->add(new Kwf_Grid_Column('gender', trlKwf('Gender'), 70))->setRenderer('genderIcon'); $this->_columns->add(new Kwf_Grid_Column('title', trlKwf('Title'), 80)); $this->_columns->add(new Kwf_Grid_Column('firstname', trlKwf('First name'), 110)); $this->_columns->add(new Kwf_Grid_Column('lastname', trlKwf('Last name'), 110)); if (isset($this->_getAuthData()->language)) { $this->_columns->add(new Kwf_Grid_Column('language', trlKwf('lang'), 30)); } $this->_columns->add(new Kwf_Grid_Column('password', trlKwf('Activated'), 60))->setRenderer('boolean')->setShowIn(Kwf_Grid_Column::SHOW_IN_ALL ^ Kwf_Grid_Column::SHOW_IN_XLS); $this->_columns->add(new Kwf_Grid_Column_Button('resend_mails', trlKwf('E-Mails')))->setTooltip(trlKwf('Sent E-Mail again'))->setButtonIcon(new Kwf_Asset('email_go.png')); }
protected function _initColumns() { $this->setModel(Kwf_Model_Abstract::getInstance('Kwf_Component_Generator_Plugin_Tags_Trl_AdminModel')); $this->_columns->add(new Kwf_Grid_Column('text', trlKwf('Tag'), 300))->setEditor(new Kwf_Form_Field_TextField()); $this->_columns->add(new Kwf_Grid_Column('original_text', trlKwf('Original Tag'), 300)); parent::_initColumns(); }
protected function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column('name', trlKwf('Name'), 290)); $this->_columns->add(new Kwf_Grid_Column('settings_controller_url')); $this->_columns->add(new Kwf_Grid_Column('edit_components'))->setData(new Kwc_Mail_Editable_ComponentsController_EditComponentsData()); }
protected function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column('save_date', trlKwf('Date'), 110))->setRenderer('localizedDatetime'); $this->_columns->add(new Kwf_Grid_Column('subject', trlKwf('Subject'), 230)); $this->_columns->add(new Kwf_Grid_Column('from_mail_data', trlKwf('From'), 180))->setData(new Kwf_Controller_Action_Enquiries_EnquiryFromData()); }
protected function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column('firstname')); $this->_columns->add(new Kwf_Grid_Column('lastname')); $this->_columns->add(new Kwf_Grid_Column('role'))->setData(new Kwf_Controller_Action_User_Users_RoleData()); $this->_columns->add(new Kwf_Grid_Column('email')); }
protected function _initColumns() { parent::_initColumns(); $this->_filters['text'] = array('type' => 'TextField', 'width' => 85); $this->_columns->add(new Kwf_Grid_Column('email', trlKwf('E-Mail'), 200))->setData(new Kwc_Newsletter_Detail_UserData('email')); $this->_columns->add(new Kwf_Grid_Column('firstname', trlKwf('Firstname'), 140))->setData(new Kwc_Newsletter_Detail_UserData('firstname')); $this->_columns->add(new Kwf_Grid_Column('lastname', trlKwf('Lastname'), 140))->setData(new Kwc_Newsletter_Detail_UserData('lastname')); }
protected function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column('type', trlKwf('Typ'), 30))->setData(new Kwc_Advanced_DownloadsTree_Data_Fileicon())->setRenderer('image'); $this->_columns->add(new Kwf_Grid_Column('text', trlKwf('Document'), 320))->setData(new Kwc_Advanced_DownloadsTree_ViewDownloadsControllerDownloadData($this->_getParam('componentId')))->setRenderer('raw'); $this->_columns->add(new Kwf_Grid_Column('filesize', trlKwf('Size'), 60))->setData(new Kwc_Advanced_DownloadsTree_Data_Filesize())->setRenderer('fileSize'); $this->_columns->add(new Kwf_Grid_Column_Date('date', trlKwf('Date'))); }
protected function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column_Date('date', trlKwf('Date')))->setEditor(new Kwf_Form_Field_DateField()); $this->_columns->add(new Kwf_Grid_Column('amount', trlcKwf('Amount of Money', 'Amount'), 50))->setRenderer('euroMoney')->setEditor(new Kwf_Form_Field_NumberField()); $ed = new Kwf_Form_Field_TextArea(); $ed->setWidth(300)->setHeight(70); $this->_columns->add(new Kwf_Grid_Column('comment', trlKwf('Comment'), 300))->setRenderer('nl2br')->setEditor($ed); }
protected function _initColumns() { $this->_filters['value'] = array('type' => 'Button', 'skipWhere' => true, 'text' => 'Filter'); $this->_columns->add(new Kwf_Grid_Column('id', 'Id', 50)); $this->_columns->add(new Kwf_Grid_Column('value', 'Context', 100)); $this->_columns->add(new Kwf_Grid_Column('value2', 'Context2', 100)); $this->_columns->add(new Kwf_Grid_Column('type', 'Type', 50)); parent::_initColumns(); }
protected function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column('pos')); $this->_columns->add(new Kwf_Grid_Column('link', trlKwf('Link'), 600)); $this->_columns->add(new Kwf_Grid_Column('title', trlKwf('Title'), 200)); $this->_columns->add(new Kwf_Grid_Column('count', trlKwf('Count'), 50))->setCssClass('kwf-renderer-decimal'); $this->_columns->add(new Kwf_Grid_Column('percent', trlKwf('[%]'), 50)); }
protected function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column_Date('date', trlKwf('Date'))); $this->_columns->add(new Kwf_Grid_Column('code', trlKwf('Code'))); $this->_columns->add(new Kwf_Grid_Column('amount', trlcKwf('Amount of Money', 'Amount'), 50))->setRenderer('euroMoney'); $this->_columns->add(new Kwf_Grid_Column('used_amount', trlcKwf('Amount of Money', 'Used Amount'), 50))->setType('float')->setRenderer('euroMoney'); $this->_columns->add(new Kwf_Grid_Column('comment', trlKwf('Comment')))->setRenderer('nl2br'); }
protected function _initColumns() { parent::_initColumns(); $columns = $this->_columns; $columns->add(new Kwf_Grid_Column('id')); $columns->add(new Kwf_Grid_Column('firstname'))->setData(new Kwc_Newsletter_Detail_SubscriberData()); $columns->add(new Kwf_Grid_Column('lastname'))->setData(new Kwc_Newsletter_Detail_SubscriberData()); $columns->add(new Kwf_Grid_Column('email'))->setData(new Kwc_Newsletter_Detail_SubscriberData()); }
protected function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column('class', 'Class', 100)); $this->_columns->add(new Kwf_Grid_Column('name', 'Name', 100)); $this->_columns->add(new Kwf_Grid_Column('parentClass', 'Parent Class', 100)); $this->_columns->add(new Kwf_Grid_Column('hasTemplate', 'web tpl', 50))->setRenderer('boolean'); $this->_columns->add(new Kwf_Grid_Column('hasCss', 'web css', 50))->setRenderer('boolean'); }
protected function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column('type', trlKwf('Typ'), 30))->setData(new Kwc_Advanced_DownloadsTree_Data_Fileicon())->setRenderer('image'); $this->_columns->add(new Kwf_Grid_Column('text', trlKwf('Document'), 350)); $this->_columns->add(new Kwf_Grid_Column('filename', trlKwf('Filename'), 100))->setData(new Kwc_Advanced_DownloadsTree_Data_Filename()); $this->_columns->add(new Kwf_Grid_Column('filesize', trlKwf('Size'), 100))->setData(new Kwc_Advanced_DownloadsTree_Data_Filesize())->setRenderer('fileSize'); $this->_columns->add(new Kwf_Grid_Column_Date('date', trlKwf('Date'))); $this->_columns->add(new Kwf_Grid_Column_Visible()); }
protected function _initColumns() { $this->_filters['text'] = array('type' => 'TextField', 'width' => 80); $config = Zend_Registry::get('config'); $weblang = $config->webCodeLanguage; $this->_columns->add(new Kwf_Grid_Column('id')); $this->_columns->add(new Kwf_Grid_Column('context', trlKwf('Context')))->setWidth(50); $languages = array(); $languages[] = $weblang; $plural = array(); $role = $this->_getAuthData()->role; $user_lang = $this->_getAuthData()->language; $showAllLanguages = $role == 'admin' || $this->_showAllLanguages; //defintion der zu übersetzenden sprachen if ($showAllLanguages) { if ($config->languages) { foreach ($config->languages as $language) { if ($language != $weblang) { $languages[] = $language; } } } } else { if ($user_lang != $weblang) { $languages[] = $user_lang; } } //ausgabe der einzahl Felder foreach ($languages as $lang) { //Singular if ($lang == $weblang) { $this->_columns->add(new Kwf_Grid_Column($lang, $lang . " " . trlKwf("Singular")))->setWidth(200)->setRenderer('notEditable'); $this->_colNames[] = $lang; } else { if ($lang == $user_lang || $showAllLanguages) { $this->_columns->add(new Kwf_Grid_Column($lang, $lang . " " . trlKwf("Singular")))->setEditor(new Kwf_Form_Field_TextField())->setWidth(200); $this->_colNames[] = $lang; } } } //Ausgabe der Plural felder foreach ($languages as $lang) { //Plural if ($lang == $weblang) { $this->_columns->add(new Kwf_Grid_Column($lang . "_plural", $lang . " " . trlKwf("Plural")))->setWidth(200)->setRenderer('notEditable'); $this->_colNames[] = $lang . "_plural"; } else { if ($lang == $user_lang || $showAllLanguages) { $this->_columns->add(new Kwf_Grid_Column($lang . "_plural", $lang . " " . trlKwf("Plural")))->setEditor(new Kwf_Form_Field_TextField())->setWidth(200); $this->_colNames[] = $lang . "_plural"; } } } parent::_initColumns(); }
protected function _initColumns() { $this->_filters['date'] = array('type' => 'DateRange', 'width' => 80); $this->_columns->add(new Kwf_Grid_Column('title', trlKwf('Title'), 200)); $this->_columns->add(new Kwf_Grid_Column_Date('date', trlKwf('Publication'))); $this->_columns->add(new Kwf_Grid_Column('vi_nr', trlKwf('VI-Nr'), 50)); $this->_columns->add(new Kwf_Grid_Column('is_top', ' ', 25))->setRenderer('booleanIcon')->setIcon('/assets/silkicons/exclamation.png')->setTooltip('Top-Thema'); $this->_columns->add(new Kwf_Grid_Column('read_required', ' ', 25))->setRenderer('booleanIcon')->setIcon('/assets/silkicons/stop.png')->setTooltip('Lesepflichtig'); $this->_columns->add(new Kwf_Grid_Column('only_intern', ' ', 25))->setRenderer('booleanIcon')->setIcon('/assets/silkicons/eye.png')->setTooltip('Nur Intern'); parent::_initColumns(); }
public function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column('name', trlKwf('Name'), 190)); $this->_columns->add(new Kwf_Grid_Column('street', trlKwf('Street'), 150))->setHidden(true); $this->_columns->add(new Kwf_Grid_Column('zip', trlKwf('ZIP'), 55)); $this->_columns->add(new Kwf_Grid_Column('city', trlKwf('City'), 120)); $this->_columns->add(new Kwf_Grid_Column('phone', trlKwf('Phone'), 120))->setHidden(true); $this->_columns->add(new Kwf_Grid_Column('fax', trlKwf('Fax'), 120))->setHidden(true); $this->_columns->add(new Kwf_Grid_Column('email', trlKwf('E-Mail'), 120))->setHidden(true); $this->_columns->add(new Kwf_Grid_Column('website', trlKwf('Website'), 120))->setHidden(true); }
protected function _initColumns() { parent::_initColumns(); $this->_filters['type'] = array('type' => 'ComboBox', 'text' => trlKwf('Type'), 'data' => array(array('error', trlKwf('Error')), array('accessdenied', trlKwf('Access Denied')), array('notfound', trlKwf('Not Found'))), 'width' => 100); $this->_filters['text'] = array('type' => 'TextField', 'width' => 300); $columns = $this->_columns; $columns->add(new Kwf_Grid_Column_Datetime('date')); $columns->add(new Kwf_Grid_Column('type', trlKwf('Type'), 80)); $columns->add(new Kwf_Grid_Column('message', trlKwf('Message'), 300)); $columns->add(new Kwf_Grid_Column('request_uri', 'Uri', 200))->setRenderer('clickableLink'); $columns->add(new Kwf_Grid_Column('http_referer', 'Referer', 200))->setRenderer('clickableLink'); $columns->add(new Kwf_Grid_Column('user', trlKwf('User'), 200)); }
protected function _initColumns() { parent::_initColumns(); $this->_model = new Kwf_Model_Mail(array('componentClass' => $this->_getParam('class'), 'mailerClass' => 'Kwf_Mail')); $this->_columns->add(new Kwf_Grid_Column('id', trlKwf('Number'), 50)); $this->_columns->add(new Kwf_Grid_Column_Datetime('save_date', trlKwf('Date'))); $c = Kwf_Component_Data_Root::getInstance()->getComponentByDbId($this->_getParam('componentId'), array('ignoreVisible' => true, 'limit' => 1)); foreach ($c->getChildComponent('-paragraphs')->getRecursiveChildComponents(array('flags' => array('formField' => true))) as $c) { $f = $c->getComponent()->getFormField(); if ($f instanceof Kwf_Form_Field_SimpleAbstract) { $this->_columns->add(new Kwf_Grid_Column($f->getFieldName(), $f->getFieldLabel()))->setSortable(false); } } }
protected function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column_Visible('active')); $domains = Kwf_Controller_Action_Redirects_RedirectController::getDomains(); if ($domains && count($domains) > 1) { $this->_columns->add(new Kwf_Grid_Column('domain_component_id', trlKwf('Domain'), 70)); $values = array(); foreach ($domains as $k => $i) { $values[] = array($k, $i); } $this->_filters['domain_component_id'] = array('type' => 'ComboBox', 'data' => $values, 'width' => 100); } $this->_columns->add(new Kwf_Grid_Column('source', trlKwf('Source'), 200)); $this->_columns->add(new Kwf_Grid_Column('comment', trlKwf('Comment'), 150)); }
protected function _initColumns() { parent::_initColumns(); $c = Kwf_Component_Data_Root::getInstance()->getComponentByDbId($this->_getParam('componentId'), array('limit' => 1, 'ignoreVisible' => true)); $c = $c->getChildComponent('-paragraphs'); $data = array(); $formFields = $c->getRecursiveChildComponents(array('flags' => array('formField' => true), 'ignoreVisible' => true)); foreach ($formFields as $f) { if (is_instance_of($f->componentClass, 'Kwc_Form_Field_TextField_Component')) { $row = $f->getComponent()->getRow(); if ($row->vtype == 'email') { $data[] = array('id' => $f->dbId, 'name' => $row->field_label); } } } $this->_model = new Kwf_Model_FnF(array('data' => $data)); $this->_columns->add(new Kwf_Grid_Column('id')); $this->_columns->add(new Kwf_Grid_Column('name')); }
protected function _initColumns() { $lang = $this->_getLanguage(); $this->_filters['text'] = array('type' => 'TextField', 'width' => 180, 'queryFields' => array($lang, $lang . '_plural')); $this->_filters['empty'] = array('type' => 'Button', 'text' => trlKwf('only empty'), 'icon' => new Kwf_Asset('textfield'), 'cls' => 'x2-btn-text-icon', 'skipWhere' => true); $this->_columns->add(new Kwf_Grid_Column_Button('edit')); $this->_columns->add(new Kwf_Grid_Column('id', 'Id', 50)); $this->_columns->add(new Kwf_Grid_Column('context', trlKwf('Context'), 100)); $this->_columns->add(new Kwf_Grid_Column($lang, $lang . ' ' . trlKwf('Singular'), 350)); $this->_columns->add(new Kwf_Grid_Column($lang . '_plural', $lang . ' ' . trlKwf('Plural'), 150)); $langs = self::getLanguages(); if ($langs) { foreach ($langs as $lang) { if ($lang != $this->_getLanguage()) { $this->_columns->add(new Kwf_Grid_Column($lang, $lang . ' ' . trlKwf('Singular'), 350)); $this->_columns->add(new Kwf_Grid_Column($lang . '_plural', $lang . ' ' . trlKwf('Plural'), 150)); } } } parent::_initColumns(); }
protected function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column('name', 'Name', 100)); }
protected function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column('message_date', trlKwf('Date'), 110))->setRenderer('localizedDatetime'); $this->_columns->add(new Kwf_Grid_Column('message', trlKwf('Message'), 400))->setData(new Kwf_Controller_Action_User_Users_LogMessageData()); }
protected function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column('title')); $this->_columns->add(new Kwf_Grid_Column('publish_date')); }
protected function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column('message_date', trlKwf('Date'), 110))->setRenderer('localizedDatetime'); $this->_columns->add(new Kwf_Grid_Column('message', trlKwf('Comment'), 450))->setEditor(new Kwf_Form_Field_TextField()); }
protected function _initColumns() { parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column('text', trlKwf('Tag')))->setEditor(new Kwf_Form_Field_TextField()); }