public function render(Varien_Object $row) { $sure = "you Sure?"; if ($row->getCheckStatus() == Ced_CsMarketplace_Model_Vproducts::APPROVED_STATUS) { $html = '<a href="' . $this->getUrl('adminhtml/adminhtml_vproducts/changeStatus/status/0/id/' . $row->getId()) . '" title="' . $this->__("Click to Disapprove") . '" onclick="return confirm(\'Are you sure, You want to disapprove?\')">' . $this->__("Disapprove") . '</a>'; } if ($row->getCheckStatus() == Ced_CsMarketplace_Model_Vproducts::PENDING_STATUS) { $html = '<a href="' . $this->getUrl('adminhtml/adminhtml_vproducts/changeStatus/status/1/id/' . $row->getId()) . '" title="' . $this->__("Click to Approve") . '" onclick="return confirm(\'Are you sure, You want to approve?\')">' . $this->__("Approve") . '</a> | <a href="' . $this->getUrl('adminhtml/adminhtml_vproducts/changeStatus/status/0/id/' . $row->getId()) . '" title="' . $this->__("Click to Disapprove") . '" onclick="return confirm(\'Are you sure, You want to disapprove?\')">' . $this->__("Disapprove") . '</a>'; } if ($row->getCheckStatus() == Ced_CsMarketplace_Model_Vproducts::NOT_APPROVED_STATUS) { $html = '<a href="' . $this->getUrl('adminhtml/adminhtml_vproducts/changeStatus/status/1/id/' . $row->getId()) . '" title="' . $this->__("Click to Approve") . '" onclick="return confirm(\'Are you sure, You want to approve?\')">' . $this->__("Approve") . '</a>'; } return $html; }