コード例 #1
0
ファイル: Grid.php プロジェクト: protechhelp/gamamba
 protected function _prepareColumns()
 {
     $this->addColumn('id', array('header' => $this->__('ID'), 'align' => 'right', 'width' => '50px', 'index' => 'id'));
     $this->addColumn('is_active', array('header' => $this->__('Status'), 'align' => 'right', 'width' => '50px', 'index' => 'is_active', 'type' => 'options', 'options' => AW_Helpdesk3_Model_Source_Status::toOptionHash()));
     $this->addColumn('title', array('header' => $this->__('Title'), 'align' => 'left', 'index' => 'title'));
     $this->addColumn('store_ids', array('header' => $this->__('Store'), 'align' => 'left', 'index' => 'store_ids', 'type' => 'store', 'sortable' => false, 'renderer' => 'aw_hdu3/adminhtml_widget_grid_renderer_storeIds', 'filter_condition_callback' => array($this, 'filterStore'), 'width' => 200));
     $this->addColumn('action', array('header' => $this->__('Action'), 'width' => '100', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => $this->__('Delete'), 'url' => array('base' => '*/*/delete'), 'confirm' => $this->__('Are you sure you want do this?'), 'field' => 'id'), array('caption' => $this->__('Edit'), 'url' => array('base' => '*/*/edit'), 'field' => 'id')), 'filter' => false, 'sortable' => false, 'is_system' => true));
     return parent::_prepareColumns();
 }
コード例 #2
0
ファイル: Grid.php プロジェクト: protechhelp/gamamba
 protected function _prepareColumns()
 {
     $this->addColumn('id', array('header' => $this->__('ID'), 'width' => '100px', 'index' => 'id'));
     $this->addColumn('title', array('header' => $this->__('Name'), 'index' => 'title'));
     $this->addColumn('is_active', array('header' => $this->__('Status'), 'index' => 'is_active', 'type' => 'options', 'options' => AW_Helpdesk3_Model_Source_Status::toOptionHash(), 'width' => '100px'));
     $this->addColumn('types', array('header' => $this->__('Scope'), 'index' => 'types', 'type' => 'options', 'renderer' => 'aw_hdu3/adminhtml_rejecting_pattern_grid_renderer_types', 'filter_condition_callback' => array($this, '_filterTypes'), 'options' => AW_Helpdesk3_Model_Source_Gateway_Mail_RejectPattern::toOptionHash()));
     $this->addColumn('pattern', array('header' => $this->__('Pattern'), 'index' => 'pattern'));
     $this->addColumn('actions', array('header' => $this->__('Actions'), 'width' => '150px', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => $this->__('Edit'), 'url' => array('base' => '*/*/edit'), 'field' => 'id'), array('caption' => $this->__('Delete'), 'url' => array('base' => '*/*/delete'), 'field' => 'id', 'confirm' => $this->__('Are you sure you want do this?'))), 'filter' => false, 'sortable' => false, 'is_system' => true));
     return parent::_prepareColumns();
 }
コード例 #3
0
ファイル: Grid.php プロジェクト: protechhelp/gamamba
 protected function _prepareColumns()
 {
     $this->addColumn('id', array('header' => $this->__('ID'), 'align' => 'right', 'width' => '50px', 'index' => 'id'));
     $this->addColumn('status', array('header' => $this->__('Status'), 'align' => 'left', 'width' => '200px', 'index' => 'status', 'type' => 'options', 'options' => AW_Helpdesk3_Model_Source_Status::toOptionHash()));
     $this->addColumn('value', array('header' => $this->__('Title'), 'align' => 'left', 'width' => '200px', 'index' => 'value'));
     $this->addColumn('font_color', array('header' => $this->__('Font Color'), 'align' => 'left', 'width' => '200px', 'index' => 'font_color'));
     $this->addColumn('background_color', array('header' => $this->__('Background Color'), 'align' => 'left', 'width' => '200px', 'index' => 'background_color'));
     $this->addColumn('is_system', array('header' => $this->__('Is System'), 'align' => 'left', 'width' => '200px', 'index' => 'is_system', 'type' => 'options', 'options' => AW_Helpdesk3_Model_Source_Yesno::toOptionHash()));
     $this->addColumn('action', array('header' => $this->__('Action'), 'width' => '100', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => $this->__('Delete'), 'url' => array('base' => '*/*/delete'), 'confirm' => $this->__('Are you sure you want do this?'), 'field' => 'id', 'type' => 'delete'), array('caption' => $this->__('Edit'), 'url' => array('base' => '*/*/edit'), 'field' => 'id')), 'renderer' => 'aw_hdu3/adminhtml_widget_grid_renderer_statusActions', 'filter' => false, 'sortable' => false, 'is_system' => true));
     return parent::_prepareColumns();
 }
コード例 #4
0
ファイル: Grid.php プロジェクト: protechhelp/gamamba
 protected function _prepareColumns()
 {
     $this->addColumn('id', array('header' => $this->__('ID'), 'align' => 'right', 'width' => '50px', 'index' => 'id'));
     $this->addColumn('status', array('header' => $this->__('Status'), 'align' => 'left', 'width' => '200px', 'index' => 'status', 'type' => 'options', 'options' => AW_Helpdesk3_Model_Source_Status::toOptionHash()));
     $this->addColumn('title', array('header' => $this->__('Title'), 'align' => 'left', 'index' => 'title'));
     $stores = Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(true, true);
     $stores = array_merge(array('label' => 'Not Visible', 'value' => ''), $stores);
     $this->addColumn('store_ids', array('header' => $this->__('Visible on'), 'align' => 'left', 'index' => 'store_ids', 'type' => 'store', 'display_not_set' => true, 'store_all' => true, 'empty_stores' => true, 'sortable' => false, 'renderer' => 'aw_hdu3/adminhtml_widget_grid_renderer_storeIds', 'filter' => 'aw_hdu3/adminhtml_widget_grid_filter_storeIds', 'width' => 200, 'options' => $stores));
     $this->addColumn('sort_order', array('header' => $this->__('Sort Order'), 'align' => 'right', 'width' => '50px', 'index' => 'sort_order'));
     $this->addColumn('action', array('header' => $this->__('Action'), 'width' => '100px', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => $this->__('Delete'), 'url' => array('base' => '*/*/delete'), 'confirm' => $this->__('Are you sure you want do this?'), 'field' => 'id', 'type' => 'delete'), array('caption' => $this->__('Edit'), 'url' => array('base' => '*/*/edit'), 'field' => 'id')), 'renderer' => 'aw_hdu3/adminhtml_widget_grid_renderer_departmentActions', 'filter' => false, 'sortable' => false, 'is_system' => true));
     return parent::_prepareColumns();
 }