public function __construct() { parent::__construct(); $this->_addButton('back', array('label' => Mage::helper('adminhtml')->__('Back'), 'onclick' => 'window.location.href=\'' . $this->getUrl('*/*/log') . '\'', 'class' => 'back')); $this->_removeButton('edit'); $this->_headerText = 'E-mail Message View'; }
public function __construct() { parent::__construct(); // Initialization block //------------------------------ $this->setId('config'); $this->_blockGroup = 'M2ePro'; $this->_controller = 'adminhtml_config'; //------------------------------ // Set header text //------------------------------ if (Mage::registry('m2epro_config_mode') == 'ess') { $this->_headerText = Mage::helper('M2ePro')->__('ESS Config Data'); } else { $this->_headerText = Mage::helper('M2ePro')->__('M2ePro Config Data'); } //------------------------------ // Set buttons actions //------------------------------ $this->removeButton('back'); $this->removeButton('reset'); $this->removeButton('delete'); $this->removeButton('add'); $this->removeButton('save'); $this->removeButton('edit'); //------------------------------ }
public function __construct() { parent::__construct(); // Initialization block //------------------------------ $this->setId('listingsAddStepTwoCategories'); $this->_blockGroup = 'M2ePro'; $this->_controller = 'adminhtml_listings_categories'; //------------------------------ // Set header text //------------------------------ $this->_headerText = Mage::helper('M2ePro')->__('Add Listing [Select Categories]'); //------------------------------ // Set buttons actions //------------------------------ $this->removeButton('back'); $this->removeButton('reset'); $this->removeButton('delete'); $this->removeButton('add'); $this->removeButton('save'); $this->removeButton('edit'); $this->_addButton('back', array('label' => Mage::helper('M2ePro')->__('Back'), 'onclick' => 'CategoriesTreeHandlersObj.back_click(\'' . $this->getUrl('*/*/add', array('step' => '1')) . '\')', 'class' => 'back')); $this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'CategoriesTreeHandlersObj.reset_click()', 'class' => 'reset')); $this->_addButton('save_and_next', array('label' => Mage::helper('M2ePro')->__('Next'), 'onclick' => 'CategoriesTreeHandlersObj.save_click(\'' . $this->getUrl('*/*/add', array('step' => '2', 'remember_categories' => 'yes')) . '\')', 'class' => 'next save_and_next_button')); $this->_addButton('save_and_go_to_listings_list', array('label' => Mage::helper('M2ePro')->__('Save'), 'onclick' => 'CategoriesTreeHandlersObj.save_click(\'' . $this->getUrl('*/*/add', array('step' => '2', 'save' => 'yes', 'back' => 'list')) . '\')', 'class' => 'save save_and_go_to_listings_list_button')); $this->_addButton('save_and_go_to_listing_view', array('label' => Mage::helper('M2ePro')->__('Save And View Listing'), 'onclick' => 'CategoriesTreeHandlersObj.save_click(\'' . $this->getUrl('*/*/add', array('step' => '2', 'save' => 'yes', 'back' => 'view')) . '\')', 'class' => 'save save_and_go_to_listing_view_button')); //------------------------------ }
/** * Constructor. * * @return void */ public function __construct() { $this->_blockGroup = 'realtimedespatch'; $this->_controller = 'adminhtml_imports_view'; parent::__construct(); $this->_removeButton('edit'); }
public function __construct() { parent::__construct(); $this->_removeButton('edit'); $this->_removeButton('back'); $this->_headerText = $this->__('Ticket Status Statistics'); }
public function __construct() { parent::__construct(); $this->_removeButton('edit'); $this->_removeButton('back'); $this->_headerText = $this->__('Workload Report'); }
public function __construct() { parent::__construct(); $this->_headerText = Mage::helper('amaudit')->__('Action Log'); $this->_removeButton('save'); $this->_removeButton('reset'); $this->_removeButton('delete'); $this->_removeButton('edit'); }
/** * Construct */ public function __construct() { $this->_objectId = 'id'; $this->_controller = 'adminhtml_logs'; $this->_mode = 'view'; $this->_headerText = Mage::helper('ratepaypayment')->__('Log'); parent::__construct(); $this->_removeButton('edit'); }
public function __construct() { $this->_controller = 'adminhtml_help'; $this->_blockGroup = 'mailchimp'; $this->_headerText = Mage::helper('mailchimp')->__('MailChimp - HELP'); parent::__construct(); $this->_removeButton('edit'); $this->_removeButton('back'); }
public function __construct() { parent::__construct(); $this->_objectId = 'about_id'; $this->_blockGroup = 'about'; $this->_controller = 'adminhtml'; $this->setTemplate('translate/about.phtml'); $this->removebutton('edit'); }
/** * */ public function __construct() { $this->_objectId = 'id'; $this->_controller = 'adminhtml_configuration_wizard_page'; parent::__construct(); $this->_removeButton('edit'); $this->_removeButton('back'); $this->_addButton('cancel', array('label' => Mage::helper('adminhtml')->__('Cancel'), 'onclick' => 'parent.window.wizardPopup.close()', 'class' => 'default')); $this->_addButton('back', array('label' => Mage::helper('adminhtml')->__('Back'), 'onclick' => 'window.location.href=\'' . $this->getBackUrl() . '\'', 'class' => 'default')); $this->_addButton('save', array('label' => Mage::helper('adminhtml')->__('Continue'), 'class' => 'default', 'onclick' => 'window.location.href=\'' . $this->getNextUrl() . '\'')); $this->setId('wizard_page_view'); }
public function __construct() { parent::__construct(); $this->_objectId = 'test_id'; $this->_blockGroup = 'translate'; $this->_controller = 'adminhtml'; $this->setTemplate('translate/container.phtml'); $this->removebutton('edit'); // TODO: buttons to truncate and remove duplicates $this->_addButton('truncate', array('label' => Mage::helper('adminhtml')->__('Truncate log table'), 'onclick' => 'window.location.href=\'' . $this->getUrl('*/*/truncate/') . '\'', 'class' => 'delete', 'title' => Mage::helper('adminhtml')->__('Remove all the records from the "untransalated strings" table'))); $this->_addButton('remove_duplicate', array('label' => Mage::helper('adminhtml')->__('Remove duplicates in log table'), 'class' => 'go', 'onclick' => 'window.location.href=\'' . $this->getUrl('*/*/removeDuplicate/') . '\'', 'title' => Mage::helper('adminhtml')->__('Remove duplicate strings that are in the system and "untranslated strings" table'))); }
public function __construct() { parent::__construct(); $this->_removeButton('edit'); $standard = Mage::getModel('epay/standard'); $this->_headerText = Mage::helper('epay')->__('Payment request'); $paymentrequest_id = $this->getRequest()->getParam('id'); $paymentRequest = Mage::getModel('epay/paymentrequest')->load($paymentrequest_id)->getData(); $soapClient = new SoapClient("https://paymentrequest.api.epay.eu/v1/PaymentRequestSOAP.svc?wsdl"); $params = array(); $params["authentication"] = array(); $params["authentication"]["merchantnumber"] = $standard->getConfigData('merchantnumber'); $params["authentication"]["password"] = $standard->getConfigData('remoteinterfacepassword'); $params["paymentrequest"] = array(); $params["paymentrequest"]["paymentrequestid"] = $paymentRequest["paymentrequestid"]; $getPaymentRequest = $soapClient->getpaymentrequest(array('getpaymentrequestrequest' => $params)); if ($getPaymentRequest->getpaymentrequestResult->result) { $this->setPaymentrequestId($paymentRequest["paymentrequestid"]); $this->setPaymentrequest($getPaymentRequest->getpaymentrequestResult); } $this->setTemplate('epay/paymentrequest/view.phtml'); }
public function __construct() { parent::__construct(); // Initialization block //------------------------------ $this->setId('translationView'); $this->_blockGroup = 'M2ePro'; $this->_controller = 'adminhtml_translation'; //------------------------------ // Set header text //------------------------------ $this->_headerText = Mage::helper('M2ePro')->__('Translation'); //------------------------------ // Set buttons actions //------------------------------ $this->removeButton('back'); $this->removeButton('reset'); $this->removeButton('delete'); $this->removeButton('add'); $this->removeButton('save'); $this->removeButton('edit'); $this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'CommonHandlerObj.reset_click()', 'class' => 'reset')); //------------------------------ }
public function __construct() { parent::__construct(); // $this->setTemplate('widget/view/container.phtml'); $this->_removeButton('edit'); $this->_removeButton('back'); $files = array('crossitem.csv' => true, 'department.csv' => true, 'images.csv' => true, 'longbullet.csv' => true, 'masitem.csv' => true, 'productoption.csv' => true, 'webdata.csv' => true); // $id = Mage::app()->getRequest()->getParam('id'); $DIR = Mage::getBaseDir() . "/custom/add_products/csv/"; $folder = scandir($DIR); foreach ($folder as $file) { if ($file[0] == '.') { continue; } if (isset($files[$file])) { unset($files[$file]); } } $disabled = $files ? true : false; $class = $disabled ? 'save disabled' : 'save'; $this->_addButton('start', array('label' => Mage::helper('adminhtml')->__('Start Import'), 'class' => $class, 'onclick' => 'window.location.href=\'' . $this->getUrl('*/*/start') . '\'', 'disabled' => $disabled)); $this->_addButton('related', array('label' => Mage::helper('adminhtml')->__('Import Related Items'), 'class' => $class, 'onclick' => 'window.location.href=\'' . $this->getUrl('*/*/related') . '\'', 'disabled' => $disabled)); $this->_headerText = Mage::helper('maxfurniture')->__('Import Products'); }