Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     $this->_removeButton('edit');
     $this->_removeButton('back');
     $this->_headerText = $this->__('Ticket Status Statistics');
 }
Exemplo n.º 2
0
 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';
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     $this->_removeButton('edit');
     $this->_removeButton('back');
     $this->_headerText = $this->__('Workload Report');
 }
Exemplo n.º 4
0
 /**
  * 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');
 }
Exemplo n.º 5
0
 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');
 }
Exemplo n.º 6
0
 public function __construct()
 {
     parent::__construct();
     $this->_objectId = 'about_id';
     $this->_blockGroup = 'about';
     $this->_controller = 'adminhtml';
     $this->setTemplate('translate/about.phtml');
     $this->removebutton('edit');
 }
Exemplo n.º 7
0
 /**
  *
  */
 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');
 }
Exemplo n.º 8
0
 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')));
 }
Exemplo n.º 9
0
    protected function _toHtml()
    {
        if (is_null($this->getData('active_language'))) {
            $this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'CommonHandlerObj.reset_click()', 'class' => 'reset'));
            $emptyBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_translation_view_emptyLanguage');
            return parent::_toHtml() . $emptyBlock->toHtml();
        }
        $languagesCollection = Mage::getModel('M2ePro/Translation_Language')->getCollection();
        $languagesCollection->addFieldToFilter('code', $this->getData('active_language'));
        $languageId = $languagesCollection->getFirstItem()->getId();
        $textsCollection = Mage::getModel('M2ePro/Translation_Text')->getCollection();
        $textsCollection->addFieldToFilter('language_id', $languageId);
        if ($textsCollection->getSize() <= 0) {
            $this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'CommonHandlerObj.reset_click()', 'class' => 'reset'));
            $emptyBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_translation_view_emptyText');
            return parent::_toHtml() . $emptyBlock->toHtml();
        }
        $addSuggestionUrl = $this->getUrl("*/adminhtml_translation/addSuggestion");
        $removeSuggestionUrl = $this->getUrl("*/adminhtml_translation/removeSuggestion");
        $emptyNewSuggestionMessage = Mage::helper('M2ePro')->__('Please, enter new suggestion text.');
        $confirmMessage = Mage::helper('M2ePro')->__('Are you sure?');
        $javascriptMain = <<<JAVASCRIPT

<script type="text/javascript">

    M2ePro = {};
    M2ePro.url = {};
    M2ePro.formData = {};
    M2ePro.customData = {};
    M2ePro.text = {};

    M2ePro.url.addSuggestion = '{$addSuggestionUrl}';
    M2ePro.url.removeSuggestion = '{$removeSuggestionUrl}';

    M2ePro.text.empty_new_suggestion = '{$emptyNewSuggestionMessage}';
    M2ePro.text.confirm_message = '{$confirmMessage}';

    Event.observe(window, 'load', function() {
            TranslationHandlerObj = new TranslationHandler(M2ePro);
    });

</script>

JAVASCRIPT;
        $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_translation_view_help');
        $filterBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_translation_view_filter');
        $gridBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_translation_view_grid', '', array('active_language' => $this->getData('active_language')));
        return parent::_toHtml() . $javascriptMain . $helpBlock->toHtml() . $filterBlock->toHtml() . $gridBlock->toHtml();
    }
Exemplo n.º 10
0
 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');
 }
Exemplo n.º 11
0
 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');
 }
Exemplo n.º 12
0
 protected function _toHtml()
 {
     return parent::_toHtml() . $this->getChildHtml('categories_tree');
 }
Exemplo n.º 13
0
 protected function _beforeToHtml()
 {
     $this->setChild('edit', $this->getLayout()->createBlock('M2ePro/adminhtml_config_edit'));
     $this->setChild('view', $this->getLayout()->createBlock('M2ePro/adminhtml_config_view'));
     return parent::_beforeToHtml();
 }
Exemplo n.º 14
0
 protected function _prepareLayout()
 {
     $this->addButton('back', array('label' => Mage::helper('adminhtml')->__('Back'), 'onclick' => 'setLocation(\'' . Mage::helper('adminhtml')->getUrl('*/*/') . '\')', 'class' => 'back', 'level' => -1), 0, 100, 'header');
     return parent::_prepareLayout();
 }
Exemplo n.º 15
0
 public function getHeaderCssClass()
 {
     return 'payone-adminhtml-head ' . parent::getHeaderCssClass();
 }
 /**
  * {@inheritdoc}
  */
 protected function _toHtml()
 {
     $this->getChild('plane')->setImport($this->getImport())->setReferenceLabel($this->getReferenceLabel())->setChild('lines', $this->getLayout()->createBlock('realtimedespatch/adminhtml_imports_lines_grid'));
     return parent::_toHtml();
 }