当前位置: 首页>>代码示例>>PHP>>正文


PHP Mage_Adminhtml_Block_Widget_Grid::_prepareColumns方法代码示例

本文整理汇总了PHP中Mage_Adminhtml_Block_Widget_Grid::_prepareColumns方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Widget_Grid::_prepareColumns方法的具体用法?PHP Mage_Adminhtml_Block_Widget_Grid::_prepareColumns怎么用?PHP Mage_Adminhtml_Block_Widget_Grid::_prepareColumns使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mage_Adminhtml_Block_Widget_Grid的用法示例。


在下文中一共展示了Mage_Adminhtml_Block_Widget_Grid::_prepareColumns方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _prepareColumns

 protected function _prepareColumns()
 {
     $this->addColumn('id', array('header' => Mage::helper('M2ePro')->__('ID'), 'width' => '50px', 'align' => 'left', 'type' => 'text', 'index' => 'id', 'escape' => true, 'sortable' => false, 'filter' => false));
     $this->addColumn('name', array('header' => Mage::helper('M2ePro')->__('Name'), 'align' => 'left', 'type' => 'text', 'index' => 'name', 'escape' => true, 'sortable' => false, 'filter' => false));
     $this->addColumn('action', array('header' => Mage::helper('M2ePro')->__('Action'), 'align' => 'left', 'width' => '50px', 'type' => 'text', 'sortable' => false, 'filter' => false, 'actions' => array(0 => array('label' => Mage::helper('M2ePro')->__('Select'), 'value' => 'selectNewCharity')), 'frame_callback' => array($this, 'callbackColumnActions')));
     return parent::_prepareColumns();
 }
开发者ID:technomagegithub,项目名称:magento,代码行数:7,代码来源:Grid.php

示例2: _prepareColumns

 /**
  * Prepare grid columns
  *
  * @return Mage_Adminhtml_Block_System_Variable_Grid
  */
 protected function _prepareColumns()
 {
     $this->addColumn('variable_id', array('header' => Mage::helper('adminhtml')->__('Variable ID'), 'width' => '1', 'index' => 'variable_id'));
     $this->addColumn('code', array('header' => Mage::helper('adminhtml')->__('Variable Code'), 'index' => 'code'));
     $this->addColumn('name', array('header' => Mage::helper('adminhtml')->__('Name'), 'index' => 'name'));
     return parent::_prepareColumns();
 }
开发者ID:hyhoocchan,项目名称:mage-local,代码行数:12,代码来源:Grid.php

示例3: _prepareColumns

 /**
  * Configuration of grid
  */
 protected function _prepareColumns()
 {
     $this->addColumn('time', array('header' => Mage::helper('customer')->__('ID'), 'width' => '50px', 'align' => 'right', 'index' => 'customer_group_id'));
     $this->addColumn('type', array('header' => Mage::helper('customer')->__('Group Name'), 'index' => 'customer_group_code'));
     $this->addColumn('class_name', array('header' => Mage::helper('customer')->__('Tax Class'), 'index' => 'class_name', 'width' => '200px'));
     return parent::_prepareColumns();
 }
开发者ID:hyhoocchan,项目名称:mage-local,代码行数:10,代码来源:Grid.php

示例4: _prepareColumns

 protected function _prepareColumns()
 {
     foreach ($this->_columns as $_column) {
         $_column->setSortable(false);
     }
     parent::_prepareColumns();
 }
开发者ID:usamatahir,项目名称:BulletProof,代码行数:7,代码来源:Grid.php

示例5: _prepareColumns

 protected function _prepareColumns()
 {
     $this->addColumn('website_title', array('header' => Mage::helper('core')->__('Website Name'), 'align' => 'left', 'index' => 'name', 'filter_index' => 'main_table.name', 'renderer' => 'adminhtml/system_store_grid_render_website'));
     $this->addColumn('group_title', array('header' => Mage::helper('core')->__('Store Name'), 'align' => 'left', 'index' => 'group_title', 'filter_index' => 'group_table.name', 'renderer' => 'adminhtml/system_store_grid_render_group'));
     $this->addColumn('store_title', array('header' => Mage::helper('core')->__('Store View Name'), 'align' => 'left', 'index' => 'store_title', 'filter_index' => 'store_table.name', 'renderer' => 'adminhtml/system_store_grid_render_store'));
     return parent::_prepareColumns();
 }
开发者ID:cnglobal-sl,项目名称:caterez,代码行数:7,代码来源:Grid.php

示例6: _prepareColumns

 /**
  * Preparing colums for grid
  *
  * @return Testimonial_Block_Adminhtml_Testimonial_Grid
  */
 protected function _prepareColumns()
 {
     $this->addColumn('testimonial_id', array('header' => Mage::helper('testimonial')->__('ID'), 'align' => 'right', 'width' => '50px', 'index' => 'testimonial_id'));
     $this->addColumn('testimonial_name', array('header' => Mage::helper('testimonial')->__('Name'), 'align' => 'left', 'width' => '100px', 'index' => 'testimonial_name'));
     $this->addColumn('order_id', array('header' => Mage::helper('testimonial')->__('Order ID'), 'align' => 'left', 'width' => '100px', 'index' => 'order_id'));
     $this->addColumn('testimonial_text', array('header' => Mage::helper('testimonial')->__('Comment'), 'align' => 'left', 'width' => '300px', 'index' => 'testimonial_text'));
     /*	$this->addColumn('testimonial_image', array(
                 'header'    => Mage::helper('testimonial')->__('Photo'),
                 'align'     =>'left',
     			'width'     => '50px',
                 'index'     => 'testimonial_image',
     			'renderer'  => 'testimonial/adminhtml_testimonial_renderer_image'
             ));
     */
     $this->addColumn('country', array('header' => Mage::helper('testimonial')->__('Country'), 'align' => 'left', 'width' => '50px', 'index' => 'country'));
     $this->addColumn('email', array('header' => Mage::helper('testimonial')->__('Email ID'), 'align' => 'left', 'width' => '50px', 'index' => 'email'));
     $this->addColumn('address', array('header' => Mage::helper('testimonial')->__('Street Address'), 'align' => 'left', 'width' => '50px', 'index' => 'address'));
     $this->addColumn('created_time', array('header' => Mage::helper('testimonial')->__('Creation Time'), 'align' => 'left', 'width' => '70px', 'type' => 'date', 'default' => '--', 'index' => 'created_time'));
     $this->addColumn('update_time', array('header' => Mage::helper('testimonial')->__('Update Time'), 'align' => 'left', 'width' => '70px', 'type' => 'date', 'default' => '--', 'index' => 'update_time'));
     $this->addColumn('status', array('header' => Mage::helper('testimonial')->__('Status'), 'align' => 'left', 'width' => '70px', 'index' => 'status', 'type' => 'options', 'options' => array(1 => 'Enabled', 2 => 'Disabled')));
     $this->addColumn('action', array('header' => Mage::helper('testimonial')->__('Action'), 'width' => '70', 'align' => 'center', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => Mage::helper('testimonial')->__('Edit'), 'url' => array('base' => '*/*/edit'), 'field' => 'id')), 'filter' => false, 'sortable' => false, 'index' => 'stores', 'is_system' => true));
     $this->addExportType('*/*/exportCsv', Mage::helper('testimonial')->__('CSV'));
     $this->addExportType('*/*/exportXml', Mage::helper('testimonial')->__('XML'));
     return parent::_prepareColumns();
 }
开发者ID:supravatweb,项目名称:magento_extensions,代码行数:30,代码来源:Grid.php

示例7: _prepareColumns

 protected function _prepareColumns()
 {
     $this->addColumn('synonym_id', array('header' => Mage::helper('searchsphinx')->__('ID'), 'align' => 'right', 'width' => '50px', 'index' => 'synonym_id'));
     $this->addColumn('synonyms', array('header' => Mage::helper('searchsphinx')->__('Synonyms'), 'align' => 'left', 'index' => 'synonyms', 'renderer' => 'Mirasvit_SearchSphinx_Block_Adminhtml_Synonym_Grid_Renderer_Synonyms'));
     $this->addColumn('store', array('header' => Mage::helper('searchsphinx')->__('Store'), 'align' => 'left', 'width' => '200px', 'index' => 'store', 'type' => 'options', 'options' => Mage::getSingleton('adminhtml/system_store')->getStoreOptionHash()));
     return parent::_prepareColumns();
 }
开发者ID:guohuadeng,项目名称:aototechweb,代码行数:7,代码来源:Grid.php

示例8: _prepareColumns

 /**
  * Preparation of the requested columns of the grid
  *
  * @return $this
  */
 protected function _prepareColumns()
 {
     $viewHelper = $this->helper('aoe_scheduler/data');
     $this->addColumn('schedule_id', array('header' => $this->__('Id'), 'index' => 'schedule_id'));
     $config = array('header' => $this->__('Job'), 'index' => 'job_code');
     switch (Mage::getStoreConfig('system/cron/listCodeFilterType')) {
         case Aoe_Scheduler_Model_Adminhtml_System_Config_Source_List_Code_Filtertype::SELECT:
             $config['type'] = 'options';
             $config['options'] = Mage::getSingleton('aoe_scheduler/job')->getCollection()->toOptionHash('job_code', 'name');
             break;
         case Aoe_Scheduler_Model_Adminhtml_System_Config_Source_List_Code_Filtertype::TEXT:
         default:
             $config['type'] = 'text';
     }
     $this->addColumn('job_code', $config);
     $this->addColumn('created_at', array('header' => $this->__('Created'), 'index' => 'created_at', 'type' => 'datetime'));
     $this->addColumn('scheduled_at', array('header' => $this->__('Scheduled'), 'index' => 'scheduled_at', 'type' => 'datetime'));
     $this->addColumn('executed_at', array('header' => $this->__('Executed'), 'index' => 'executed_at', 'type' => 'datetime'));
     $this->addColumn('last_seen', array('header' => $this->__('Last seen'), 'index' => 'last_seen', 'type' => 'datetime'));
     $this->addColumn('eta', array('header' => $this->__('ETA'), 'index' => 'eta', 'type' => 'datetime'));
     $this->addColumn('finished_at', array('header' => $this->__('Finished'), 'index' => 'finished_at', 'type' => 'datetime'));
     $this->addColumn('messages', array('header' => $this->__('Messages'), 'index' => 'messages', 'frame_callback' => array($this, 'decorateMessages')));
     $this->addColumn('host', array('header' => $this->__('Host'), 'index' => 'host'));
     $this->addColumn('pid', array('header' => $this->__('Pid'), 'index' => 'pid', 'width' => '50'));
     $this->addColumn('status', array('header' => $this->__('Status'), 'index' => 'status', 'frame_callback' => array($viewHelper, 'decorateStatus'), 'type' => 'options', 'options' => Mage::getSingleton('cron/schedule')->getStatuses()));
     return parent::_prepareColumns();
 }
开发者ID:xantin,项目名称:Aoe_Scheduler,代码行数:32,代码来源:Grid.php

示例9: _prepareColumns

 protected function _prepareColumns()
 {
     $this->addColumn('entity_id', array('header' => Mage::helper('customer')->__('ID'), 'width' => '50px', 'index' => 'entity_id', 'type' => 'number'));
     /*$this->addColumn('firstname', array(
           'header'    => Mage::helper('customer')->__('First Name'),
           'index'     => 'firstname'
       ));
       $this->addColumn('lastname', array(
           'header'    => Mage::helper('customer')->__('Last Name'),
           'index'     => 'lastname'
       ));*/
     $this->addColumn('name', array('header' => Mage::helper('customer')->__('Name'), 'index' => 'name'));
     $this->addColumn('email', array('header' => Mage::helper('customer')->__('Email'), 'width' => '150', 'index' => 'email'));
     $groups = Mage::getResourceModel('customer/group_collection')->addFieldToFilter('customer_group_id', array('gt' => 0))->load()->toOptionHash();
     $this->addColumn('group', array('header' => Mage::helper('customer')->__('Group'), 'width' => '100', 'index' => 'group_id', 'type' => 'options', 'options' => $groups));
     $this->addColumn('Telephone', array('header' => Mage::helper('customer')->__('Telephone'), 'width' => '100', 'index' => 'billing_telephone'));
     $this->addColumn('billing_postcode', array('header' => Mage::helper('customer')->__('ZIP'), 'width' => '90', 'index' => 'billing_postcode'));
     $this->addColumn('billing_country_id', array('header' => Mage::helper('customer')->__('Country'), 'width' => '100', 'type' => 'country', 'index' => 'billing_country_id'));
     $this->addColumn('billing_region', array('header' => Mage::helper('customer')->__('State/Province'), 'width' => '100', 'index' => 'billing_region'));
     $this->addColumn('customer_since', array('header' => Mage::helper('customer')->__('Customer Since'), 'type' => 'datetime', 'align' => 'center', 'index' => 'created_at', 'gmtoffset' => true));
     if (!Mage::app()->isSingleStoreMode()) {
         $this->addColumn('website_id', array('header' => Mage::helper('customer')->__('Website'), 'align' => 'center', 'width' => '80px', 'type' => 'options', 'options' => Mage::getSingleton('adminhtml/system_store')->getWebsiteOptionHash(true), 'index' => 'website_id'));
     }
     $this->addColumn('action', array('header' => Mage::helper('customer')->__('Action'), 'width' => '100', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => Mage::helper('customer')->__('Edit'), 'url' => array('base' => '*/*/edit'), 'field' => 'id')), 'filter' => false, 'sortable' => false, 'index' => 'stores', 'is_system' => true));
     $this->addExportType('*/*/exportCsv', Mage::helper('customer')->__('CSV'));
     $this->addExportType('*/*/exportXml', Mage::helper('customer')->__('Excel XML'));
     return parent::_prepareColumns();
 }
开发者ID:SalesOneGit,项目名称:s1_magento,代码行数:28,代码来源:Grid.php

示例10: _prepareColumns

 protected function _prepareColumns()
 {
     $this->addColumn('customer_id', array('header' => Mage::helper('affiliate')->__('#'), 'align' => 'right', 'width' => '25px', 'index' => 'customer_id'));
     $this->addColumn('affiliate_name', array('header' => Mage::helper('affiliate')->__('Name'), 'align' => 'left', 'index' => 'customer_id', 'width' => '250px', 'renderer' => 'affiliate/adminhtml_renderer_name', 'filter_condition_callback' => array($this, '_filterReferralnameCondition')));
     $this->addColumn('referral_code', array('header' => Mage::helper('affiliate')->__('Referral Code'), 'align' => 'left', 'index' => 'referral_code', 'width' => '250px'));
     $this->addColumn('affiliate_email', array('header' => Mage::helper('affiliate')->__('Email'), 'align' => 'left', 'index' => 'customer_id', 'width' => '200px', 'renderer' => 'affiliate/adminhtml_renderer_emailreferral', 'filter_condition_callback' => array($this, '_filterReferralemailCondition')));
     //        $this->addColumn('action',
     //            array(
     //                'header'    =>  Mage::helper('affiliate')->__('Action'),
     //                'width'     => '100',
     //                'type'      => 'action',
     //                'getter'    => 'getId',
     //                'actions'   => array(
     //                    array(
     //                        'caption'   => Mage::helper('affiliate')->__('Run Report'),
     //                        'url'       => array('base'=> '*/*/run'),
     //                        'field'     => 'customer_id'
     //                    )
     //                ),
     //                'filter'    => false,
     //                'sortable'  => false,
     //                'is_system' => true,
     //        ));
     //
     $this->addColumn('group_name', array('header' => Mage::helper('affiliate')->__('Group Name'), 'align' => 'left', 'index' => 'customer_id', 'filter' => false, 'renderer' => 'affiliate/adminhtml_renderer_affiliategroup'));
     $this->addColumn('affiliate_report', array('header' => '', 'align' => 'left', 'index' => 'customer_id', 'width' => '200px', 'filter' => false, 'renderer' => 'affiliate/adminhtml_renderer_residualreport'));
     //
     //
     //        $this->addExportType('*/*/exportbinaryresidualCsv', Mage::helper('affiliate')->__('CSV'));
     //        $this->addExportType('*/*/exportbinaryresidualXml', Mage::helper('affiliate')->__('XML'));
     //
     return parent::_prepareColumns();
 }
开发者ID:Gilbertoavitia1,项目名称:AHBS,代码行数:33,代码来源:Grid.php

示例11: _prepareColumns

 /**
  * Prepare grid colunms
  *
  * @return Mage_GoogleShopping_Block_Adminhtml_Types_Grid
  */
 protected function _prepareColumns()
 {
     $this->addColumn('attribute_set_name', array('header' => $this->__('Attributes Set'), 'index' => 'attribute_set_name'));
     $this->addColumn('target_country', array('header' => $this->__('Target Country'), 'width' => '150px', 'index' => 'target_country', 'renderer' => 'Mage_GoogleShopping_Block_Adminhtml_Types_Renderer_Country', 'filter' => false));
     $this->addColumn('items_total', array('header' => Mage::helper('Mage_Catalog_Helper_Data')->__('Total Qty Content Items'), 'width' => '150px', 'index' => 'items_total', 'filter' => false));
     return parent::_prepareColumns();
 }
开发者ID:relue,项目名称:magento2,代码行数:12,代码来源:Grid.php

示例12: _prepareColumns

 protected function _prepareColumns()
 {
     $this->addColumn('thumbnail', array('renderer' => 'orderapproval/customercart_edit_grid_column_renderer_image', 'width' => '80', 'align' => 'center', 'index' => 'item', 'sortable' => false));
     $this->addColumn('product-name', array('header' => $this->__('Product Name'), 'renderer' => 'orderapproval/customercart_edit_grid_column_renderer_productoptions', 'align' => 'left', 'index' => 'item', 'sortable' => false));
     $this->addColumn('price', array('header' => $this->__('Price'), 'renderer' => 'orderapproval/customercart_edit_grid_column_renderer_price', 'width' => '60', 'align' => 'right', 'index' => 'item', 'sortable' => false));
     $this->addColumn('qty', array('header' => $this->__('Qty'), 'renderer' => 'orderapproval/customercart_edit_grid_column_renderer_qty', 'width' => '40', 'align' => 'center', 'index' => 'item', 'sortable' => false));
     $this->addColumn('subtotal', array('header' => $this->__('Total Price'), 'renderer' => 'orderapproval/customercart_edit_grid_column_renderer_subtotal', 'width' => '60', 'align' => 'right', 'index' => 'item', 'sortable' => false));
     /*  $this->addColumn('approve_item', array(
           'header'    =>  $this->__('Action'),
           'width'     => '60',
           'align'     => 'center',
           'type'      => 'action',
           'getter'    => 'getId',
           'actions'   => array(
             array(
               'caption' => $this->__('Approve'),
               'url' => array(  
              'base' => 'updateApprovalState',
                 'params' => array(
                   'state' => ZetaPrints_OrderApproval_Helper_Data::APPROVED)),
               'field'     => 'item' ),
             array(
               'caption' => $this->__('Decline'),
               'url' => array(
                 'base' => 'updateApprovalState',
                 'params' => array(
                   'state' => ZetaPrints_OrderApproval_Helper_Data::DECLINED)),
               'field'     => 'item' ),
           ),
           'filter'    => false,
           'sortable'  => false,
           ));
        * */
     return parent::_prepareColumns();
 }
开发者ID:shebin512,项目名称:Magento_Zoff,代码行数:35,代码来源:Grid.php

示例13: _prepareColumns

 protected function _prepareColumns()
 {
     $helper = Mage::helper('adyen_subscription');
     $this->addColumn('entity_id', ['header' => $helper->__('ID'), 'align' => 'right', 'width' => 1, 'index' => 'entity_id', 'filter_index' => 'main_table.entity_id']);
     $this->addColumn('increment_id', ['header' => $helper->__('Increment ID'), 'align' => 'right', 'width' => 1, 'index' => 'increment_id', 'filter_index' => 'main_table.increment_id']);
     $this->addColumn('error_message', ['header' => $helper->__('Error Message'), 'index' => 'error_message']);
     if (!Mage::getStoreConfig(Mage_Customer_Model_Customer::XML_PATH_GENERATE_HUMAN_FRIENDLY_ID)) {
         $this->addColumn('customer_id', ['header' => $helper->__('Customer ID'), 'index' => 'customer_id']);
     } else {
         $this->addColumn('customer_increment_id', ['header' => $helper->__('Customer Inc.'), 'index' => 'customer_increment_id', 'filter_condition_callback' => array($this, '_customCustomerIncrementIdSort')]);
     }
     $this->addColumn('customer_email', ['header' => $helper->__('Customer Email'), 'index' => 'customer_email', 'filter_index' => 'ce.email']);
     $this->addColumn('customer_name', ['header' => $helper->__('Name'), 'index' => 'customer_name']);
     $this->addColumn('ba_method_code', ['type' => 'options', 'header' => $helper->__('Payment method'), 'index' => 'ba_method_code', 'options' => Mage::helper('payment')->getAllBillingAgreementMethods(), 'filter_index' => 'ba.method_code']);
     $this->addColumn('ba_reference_id', ['header' => $helper->__('Billing Agreement'), 'index' => 'ba_reference_id', 'filter_index' => 'ba.reference_id']);
     $this->addColumn('created_at', ['header' => $helper->__('Created at'), 'index' => 'created_at', 'filter_index' => 'main_table.created_at', 'type' => 'datetime']);
     //        $this->addColumn('ends_at', [
     //            'header'    => $helper->__('Ends at'),
     //            'index'     => 'ends_at',
     //            'type'      => 'datetime'
     //        ]);
     //
     //        $this->addColumn('next_order_at', [
     //            'header'    => $helper->__('Next shipment'),
     //            'index'     => 'next_order_at',
     //            'type'      => 'datetime'
     //        ]);
     $this->addColumn('status', ['header' => $helper->__('Status'), 'index' => 'status', 'type' => 'options', 'options' => Adyen_Subscription_Model_Subscription::getStatuses(), 'renderer' => 'Adyen_Subscription_Block_Adminhtml_Subscription_Renderer_Status', 'filter_index' => 'main_table.status']);
     $this->addColumn('action', ['header' => $helper->__('Actions'), 'width' => '1', 'type' => 'action', 'getter' => 'getId', 'actions' => [['caption' => $helper->__('View'), 'url' => ['base' => '*/subscription/view', 'params' => ['store' => $this->getRequest()->getParam('store')]], 'field' => 'id']], 'filter' => false, 'sortable' => false]);
     return parent::_prepareColumns();
 }
开发者ID:Adyen,项目名称:adyen-magento-subscription,代码行数:31,代码来源:Grid.php

示例14: _prepareColumns

 protected function _prepareColumns()
 {
     $this->addColumn('real_order_id', array('header' => Mage::helper('sales')->__('Order #'), 'width' => '80px', 'index' => 'increment_id'));
     if (!Mage::app()->isSingleStoreMode()) {
         $this->addColumn('store_id', array('header' => Mage::helper('sales')->__('Purchased from (store)'), 'index' => 'store_id', 'type' => 'store', 'display_deleted' => true));
     }
     $this->addColumn('created_at', array('header' => Mage::helper('sales')->__('Purchased On'), 'index' => 'created_at', 'type' => 'datetime', 'width' => '100px'));
     /*$this->addColumn('billing_firstname', array(
                 'header' => Mage::helper('sales')->__('Bill to First name'),
                 'index' => 'billing_firstname',
             ));
     
             $this->addColumn('billing_lastname', array(
                 'header' => Mage::helper('sales')->__('Bill to Last name'),
                 'index' => 'billing_lastname',
             ));*/
     $this->addColumn('billing_name', array('header' => Mage::helper('sales')->__('Bill to Name'), 'index' => 'billing_name'));
     /*$this->addColumn('shipping_firstname', array(
                 'header' => Mage::helper('sales')->__('Ship to First name'),
                 'index' => 'shipping_firstname',
             ));
     
             $this->addColumn('shipping_lastname', array(
                 'header' => Mage::helper('sales')->__('Ship to Last name'),
                 'index' => 'shipping_lastname',
             ));*/
     $this->addColumn('shipping_name', array('header' => Mage::helper('sales')->__('Ship to Name'), 'index' => 'shipping_name'));
     $this->addColumn('base_grand_total', array('header' => Mage::helper('sales')->__('G.T. (Base)'), 'index' => 'base_grand_total', 'type' => 'currency', 'currency' => 'store_currency_code'));
     $this->addColumn('grand_total', array('header' => Mage::helper('sales')->__('G.T. (Purchased)'), 'index' => 'grand_total', 'type' => 'currency', 'currency' => 'order_currency_code'));
     $this->addColumn('status', array('header' => Mage::helper('sales')->__('Status'), 'index' => 'status', 'type' => 'options', 'width' => '70px', 'options' => Mage::getSingleton('sales/order_config')->getStatuses()));
     $this->addColumn('action', array('header' => Mage::helper('sales')->__('Action'), 'width' => '50px', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => Mage::helper('sales')->__('View'), 'url' => array('base' => '*/*/view'), 'field' => 'order_id')), 'filter' => false, 'sortable' => false, 'index' => 'stores', 'is_system' => true));
     $this->addRssList('rss/order/new', Mage::helper('sales')->__('New Order RSS'));
     return parent::_prepareColumns();
 }
开发者ID:arslbbt,项目名称:mangentovies,代码行数:34,代码来源:Grid.php

示例15: _prepareColumns

 protected function _prepareColumns()
 {
     $this->addColumn('id', array('header' => 'ID', 'width' => 50, 'sortable' => false, 'index' => 'id', 'type' => 'int'));
     $this->addColumn('adminuser_name', array('header' => 'Name', 'sortable' => false, 'index' => 'adminuser_name', 'type' => 'string'));
     $this->addColumn('adminuser_email', array('header' => 'eMail', 'sortable' => false, 'index' => 'adminuser_email', 'type' => 'string'));
     $this->addColumn('scope', array('header' => 'Scope', 'sortable' => false, 'index' => 'scope', 'type' => 'string'));
     $this->addColumn('scope_id', array('header' => 'ScopeID', 'sortable' => false, 'index' => 'scope_id', 'type' => 'int'));
     $this->addColumn('settings_path', array('header' => 'ScopeID', 'sortable' => true, 'index' => 'settings_path', 'type' => 'string'));
     $this->addColumn('oldvalue', array('header' => 'OldValue', 'sortable' => false, 'index' => 'oldvalue', 'type' => 'string'));
     $this->addColumn('newvalue', array('header' => 'NewValue', 'sortable' => false, 'index' => 'newvalue', 'type' => 'string'));
     //        $this->addColumn('action', array(
     //            'header'  => 'Action',
     //            'type'    => 'action',
     //            'getter'  => 'getId',
     //            'filter'  => false,
     //            'actions' => array(
     //                array(
     //                    'caption' => 'Edit',
     //                    'url'     => array(
     //                        'base' => '*/*/edit',
     //                    ),
     //                    'field'   => 'id',
     //                )
     //            ),
     //        ));
     return parent::_prepareColumns();
 }
开发者ID:kkrieger85,项目名称:Mod14v_Logsettings,代码行数:27,代码来源:Grid.php


注:本文中的Mage_Adminhtml_Block_Widget_Grid::_prepareColumns方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。