예제 #1
0
파일: Grid.php 프로젝트: xiaoguizhidao/beut
 protected function _prepareMassaction()
 {
     // Set massaction identifiers
     //--------------------------------
     $this->setMassactionIdField('main_table.id');
     $this->getMassactionBlock()->setFormFieldName('ids');
     //--------------------------------
     // Set delete action
     //--------------------------------
     $this->getMassactionBlock()->addItem('delete', array('label' => Mage::helper('M2ePro')->__('Delete'), 'url' => $this->getUrl('*/*/delete'), 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     //--------------------------------
     return parent::_prepareMassaction();
 }
예제 #2
0
파일: Grid.php 프로젝트: xiaoguizhidao/beut
 protected function _prepareMassaction()
 {
     // Set massaction identifiers
     //--------------------------------
     $this->setMassactionIdField('main_table.id');
     $this->getMassactionBlock()->setFormFieldName('ids');
     //--------------------------------
     // Set delete action
     //--------------------------------
     $confirm = 'Be attentive! By deleting account you delete all information on it from M2E Pro server. ';
     $confirm .= 'This will cause inappropriate work of all accounts\' copies.';
     $confirm = Mage::helper('M2ePro')->__($confirm);
     $this->getMassactionBlock()->addItem('delete', array('label' => Mage::helper('M2ePro')->__('Delete'), 'url' => $this->getUrl('*/*/delete'), 'confirm' => $confirm));
     //--------------------------------
     return parent::_prepareMassaction();
 }