Example #1
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     if (!Mage::registry('current_customer')->isReadonly() && Mage::registry('current_customer')->getId() != "") {
         $this->_addButton('save_and_continue', array('label' => Mage::helper('customer')->__('Save and Continue Edit'), 'onclick' => 'diableValditaionClass();saveAndContinueEdit(\'' . $this->_getSaveAndContinueUrl() . '\')', 'class' => 'save'), 10);
     }
 }
Example #2
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     if ($this->getCustomerId()) {
         $this->_addButton('send_email', array('label' => Mage::helper('amemail')->__('Send Email...'), 'onclick' => "setLocation('{$this->_getSendEmailUrl()}')"), 12);
     }
     return $this;
 }
 public function __construct()
 {
     parent::__construct();
     if (Mage::helper('smvendors')->getVendorLogin()) {
         if ($this->getCustomerId() && Mage::getSingleton('admin/session')->isAllowed('smvendors/vendors_orders/actions/create')) {
             $this->_addButton('order', array('label' => Mage::helper('customer')->__('Create Order'), 'onclick' => 'setLocation(\'' . $this->getCreateVendorOrderUrl() . '\')', 'class' => 'add'), 0);
         }
         $this->_removeButton('delete');
     }
 }
Example #4
0
 /**
  * Get URL for back (reset) button
  *
  * @return string
  */
 public function getBackUrl()
 {
     $backUrl = Mage::app()->getRequest()->getParam('rback', null);
     return $backUrl ? base64_decode($backUrl) : parent::getBackUrl();
 }