コード例 #1
0
 protected function _prepareColumns()
 {
     $this->addColumn('effect_id', array('header' => Mage::helper('banner')->__('ID'), 'align' => 'center', 'width' => '30px', 'index' => 'effect_id'));
     $this->addColumn('effect_name', array('header' => Mage::helper('banner')->__('Effect Name'), 'align' => 'center', 'width' => '150px', 'index' => 'effect_name'));
     $this->addColumn('action', array('header' => Mage::helper('banner')->__('Action'), 'width' => '80', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => Mage::helper('banner')->__('Edit'), 'url' => array('base' => '*/*/edit'), 'field' => 'id')), 'filter' => false, 'sortable' => false, 'index' => 'stores', 'is_system' => true));
     return parent::_prepareColumns();
 }
コード例 #2
0
 protected function _prepareColumns()
 {
     $this->addColumn('image_id', array('header' => Mage::helper('catalog')->__('ID'), 'sortable' => true, 'width' => '50', 'align' => 'center', 'index' => 'image_id'));
     $this->addColumn('filename', array('header' => Mage::helper('banner')->__('Image'), 'align' => 'center', 'index' => 'filename', 'type' => 'banner', 'escape' => true, 'sortable' => false, 'width' => '150px'));
     $this->addColumn('title', array('header' => Mage::helper('catalog')->__('Title'), 'index' => 'title', 'align' => 'left'));
     $this->addColumn('link', array('header' => Mage::helper('banner')->__('Link'), 'width' => '200px', 'index' => 'link'));
     $this->addColumn('sort_order', array('header' => Mage::helper('banner')->__('Sort Order'), 'width' => '80px', 'index' => 'sort_order', 'align' => 'center'));
     return parent::_prepareColumns();
 }
コード例 #3
0
ファイル: Banner.php プロジェクト: amaton/alexdress
 protected function _prepareColumns()
 {
     $this->addColumn('banner_triggers', array('header_css_class' => 'a-center', 'type' => 'checkbox', 'values' => $this->_getSelectedBanners(), 'align' => 'center', 'index' => 'banner_id'));
     $this->addColumn('banner_id', array('header' => Mage::helper('catalog')->__('ID'), 'sortable' => true, 'width' => '50', 'align' => 'center', 'index' => 'banner_id'));
     $this->addColumn('filename', array('header' => Mage::helper('banner')->__('Image'), 'align' => 'center', 'index' => 'filename', 'type' => 'banner', 'escape' => true, 'sortable' => false, 'width' => '150px'));
     $this->addColumn('title', array('header' => Mage::helper('catalog')->__('Title'), 'index' => 'title', 'align' => 'left'));
     $this->addColumn('link', array('header' => Mage::helper('banner')->__('Link'), 'width' => '200px', 'index' => 'link'));
     $this->addColumn('banner_type', array('header' => Mage::helper('banner')->__('Type'), 'width' => '100px', 'index' => 'banner_type', 'type' => 'options', 'options' => array(0 => 'Image', 1 => 'Html')));
     $this->addColumn('sort_order', array('header' => Mage::helper('banner')->__('Sort Order'), 'width' => '80px', 'index' => 'sort_order', 'align' => 'center'));
     return parent::_prepareColumns();
 }
コード例 #4
0
 protected function _prepareColumns()
 {
     $this->addColumn('image_id', array('header' => Mage::helper('banner')->__('ID'), 'align' => 'center', 'width' => '30px', 'index' => 'image_id'));
     $this->addColumn('filename', array('header' => Mage::helper('banner')->__('Image'), 'align' => 'center', 'index' => 'filename', 'type' => 'banner', 'escape' => true, 'sortable' => false, 'width' => '150px'));
     $this->addColumn('title', array('header' => Mage::helper('banner')->__('Title'), 'index' => 'title'));
     $this->addColumn('link', array('header' => Mage::helper('banner')->__('Web Url'), 'width' => '150px', 'index' => 'link'));
     $this->addColumn('sort_order', array('header' => Mage::helper('banner')->__('Sort Order'), 'width' => '80px', 'index' => 'sort_order', 'align' => 'center'));
     $this->addColumn('status', array('header' => Mage::helper('banner')->__('Status'), 'align' => 'left', 'width' => '80px', 'index' => 'status', 'type' => 'options', 'options' => array(1 => 'Enabled', 2 => 'Disabled')));
     $this->addColumn('action', array('header' => Mage::helper('banner')->__('Action'), 'width' => '80', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => Mage::helper('banner')->__('Edit'), 'url' => array('base' => '*/*/edit'), 'field' => 'id')), 'filter' => false, 'sortable' => false, 'index' => 'stores', 'is_system' => true));
     $this->addExportType('*/*/exportCsv', Mage::helper('banner')->__('CSV'));
     $this->addExportType('*/*/exportXml', Mage::helper('banner')->__('XML'));
     return parent::_prepareColumns();
 }