00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 class Mage_Adminhtml_Block_Urlrewrite_Product_Grid extends Mage_Adminhtml_Block_Catalog_Product_Grid
00035 {
00036
00037
00038
00039
00040
00041 protected function _prepareMassaction()
00042 {
00043 return $this;
00044 }
00045
00046
00047
00048
00049
00050
00051 protected function _prepareColumns()
00052 {
00053 $this->addColumn('entity_id',
00054 array(
00055 'header'=> Mage::helper('adminhtml')->__('ID'),
00056 'width' => 50,
00057 'index' => 'entity_id',
00058 ));
00059
00060 $this->addColumn('name',
00061 array(
00062 'header'=> Mage::helper('adminhtml')->__('Name'),
00063 'index' => 'name',
00064 ));
00065
00066 $this->addColumn('sku',
00067 array(
00068 'header'=> Mage::helper('adminhtml')->__('SKU'),
00069 'width' => 80,
00070 'index' => 'sku',
00071 ));
00072 $this->addColumn('status',
00073 array(
00074 'header'=> Mage::helper('adminhtml')->__('Status'),
00075 'width' => 50,
00076 'index' => 'status',
00077 'type' => 'options',
00078 'options' => Mage::getSingleton('catalog/product_status')->getOptionArray(),
00079 ));
00080 return $this;
00081 }
00082
00083
00084
00085
00086
00087
00088 public function getGridUrl()
00089 {
00090 return $this->getUrl('*/*/productGrid', array('_current' => true));
00091 }
00092
00093
00094
00095
00096
00097
00098 public function getRowUrl($row)
00099 {
00100 return $this->getUrl('*/*/edit', array('product' => $row->getId())) . 'category';
00101 }
00102 }