示例#1
0
 /**
  * Composes a container with several buttons in it
  *
  * @param array $titles
  * @return Mage_Adminhtml_Block_Widget_Container
  */
 protected function _buildBlock($titles)
 {
     $layout = new Mage_Core_Model_Layout();
     $block = new Mage_Adminhtml_Block_Widget_Container();
     foreach ($titles as $id => $title) {
         $block->addButton($id, array('title' => $title));
     }
     $layout->addBlock($block, 'block');
     return $block;
 }
 public function __construct()
 {
     $this->_controller = 'adminhtml_printbarcode';
     $this->_blockGroup = 'inventorybarcode';
     $this->_headerText = Mage::helper('inventorybarcode')->__('Print Barcodes');
     parent::__construct();
 }
 protected function _prepareLayout()
 {
     if ($this->_blockGroup && $this->_controller) {
         $this->setChild('form', $this->getLayout()->createBlock($this->_blockGroup . '/' . $this->_controller . '_' . $this->_mode . 'form'));
     }
     return Mage_Adminhtml_Block_Widget_Container::_prepareLayout();
 }
示例#4
0
 public function __construct()
 {
     $this->_setHeaderText();
     $block_module_groupname = "ReverbSync";
     $this->_objectId = 'reverb_product_sync_container';
     $this->setTemplate('widget/view/container.phtml');
     parent::__construct();
     $bulk_sync_process_button = array('action_url' => Mage::getModel('adminhtml/url')->getUrl('adminhtml/ReverbSync_listings_sync/bulkSync'), 'label' => 'Bulk Product Sync');
     $clear_all_tasks_button = array('action_url' => Mage::getModel('adminhtml/url')->getUrl('adminhtml/ReverbSync_listings_sync/clearAllTasks'), 'label' => 'Clear All Sync Tasks');
     $clear_successful_tasks_button = array('action_url' => Mage::getModel('adminhtml/url')->getUrl('adminhtml/ReverbSync_listings_sync/clearSuccessfulTasks'), 'label' => 'Clear Successful Sync Tasks');
     $action_buttons_array['bulk_product_sync'] = $bulk_sync_process_button;
     $action_buttons_array['clear_all_sync_tasks'] = $clear_all_tasks_button;
     $action_buttons_array['clear_successful_sync_tasks'] = $clear_successful_tasks_button;
     foreach ($action_buttons_array as $button_id => $button_data) {
         $button_action_url = isset($button_data['action_url']) ? $button_data['action_url'] : '';
         if (empty($button_action_url)) {
             // Require label to be defined
             continue;
         }
         $button_label = isset($button_data['label']) ? $button_data['label'] : '';
         if (empty($button_label)) {
             // Require label to be defined
             continue;
         }
         $this->_addButton($button_id, array('label' => Mage::helper($block_module_groupname)->__($button_label), 'onclick' => "document.location='" . $button_action_url . "'", 'level' => -1));
     }
 }
示例#5
0
 protected function _toHtml()
 {
     $this->setJobIdHtml($this->escapeHtml($this->_job->getId()));
     $this->setJobNameHtml($this->escapeHtml($this->_job->getName()));
     $this->setJobNameHtml($this->escapeHtml($this->_job->getName()));
     $storeId = $this->_job->getStoreId();
     $store = Mage::app()->getStore($storeId);
     $this->setStoreNameHtml($this->escapeHtml($store->getName()));
     $this->setJobQueueHtml($this->escapeHtml($this->_job->getQueue()));
     $this->setAttemptsHtml($this->escapeHtml($this->_job->getAttempts()));
     $runAt = strtotime($this->_job->getRunAt()) ? $this->formatDate($this->_job->getRunAt(), Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true) : $this->__('N/A');
     $this->setRunAtHtml($this->escapeHtml($runAt));
     $status = $this->__("Pending");
     if ($this->_job->getFailedAt()) {
         $status = $this->__('Failed');
     } else {
         if ($this->_job->getLockedAt()) {
             $status = $this->__('In Process');
         }
     }
     $this->setStatusHtml($this->escapeHtml($status));
     $this->setErrorHtml($this->escapeHtml($this->_job->getError()));
     $createdAt = strtotime($this->_job->getCreatedAt()) ? $this->formatDate($this->_job->getCreatedAt(), Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true) : $this->__('N/A');
     $this->setCreatedAtHtml($this->escapeHtml($createdAt));
     return parent::_toHtml();
 }
示例#6
0
 public function __construct()
 {
     parent::__construct();
     $this->_objectId = 'moderator_id';
     $this->_blockGroup = 'moderator';
     $this->_controller = 'adminhtml_moderators';
 }
示例#7
0
 /**
  * Set title and a hack for tabs container
  *
  * @return Mage_Sales_Block_Adminhtml_Recurring_Profile_View
  */
 protected function _beforeToHtml()
 {
     $profile = Mage::registry('current_recurring_profile');
     $this->_headerText = Mage::helper('sales')->__('Recurring Profile # %s', $profile->getReferenceId());
     $this->setViewHtml('<div id="' . $this->getDestElementId() . '"></div>');
     return parent::_beforeToHtml();
 }
示例#8
0
 public function __construct()
 {
     $this->_controller = "adminhtml_chart";
     $this->_blockGroup = "watchlog";
     parent::__construct();
     $this->setTemplate('watchlog/chart.phtml');
 }
示例#9
0
 public function __construct()
 {
     $this->_setHeaderText();
     $block_module_groupname = "ReverbSync";
     $this->_objectId = 'reverb_orders_sync_container';
     parent::__construct();
     $this->setTemplate('ReverbSync/sales/order/index/container.phtml');
     $bulk_orders_sync_process_button = array('action_url' => Mage::getModel('adminhtml/url')->getUrl('adminhtml/ReverbSync_orders_sync/bulkSync'), 'label' => $this->_retrieveAndProcessTasksButtonLabel());
     $process_downloaded_tasks_button = array('action_url' => Mage::getModel('adminhtml/url')->getUrl('adminhtml/ReverbSync_orders_sync/syncDownloaded'), 'label' => $this->_processDownloadedTasksButtonLabel());
     $action_buttons_array['bulk_orders_sync'] = $bulk_orders_sync_process_button;
     $action_buttons_array['sync_downloaded_tasks'] = $process_downloaded_tasks_button;
     foreach ($action_buttons_array as $button_id => $button_data) {
         $button_action_url = isset($button_data['action_url']) ? $button_data['action_url'] : '';
         if (empty($button_action_url)) {
             // Require label to be defined
             continue;
         }
         $button_label = isset($button_data['label']) ? $button_data['label'] : '';
         if (empty($button_label)) {
             // Require label to be defined
             continue;
         }
         $this->_addButton($button_id, array('label' => Mage::helper($block_module_groupname)->__($button_label), 'onclick' => "document.location='" . $button_action_url . "'", 'level' => -1));
     }
 }
示例#10
0
 protected function _prepareLayout()
 {
     if ($this->_blockGroup && $this->_controller && $this->_mode) {
         $this->setChild('form', $this->getLayout()->createBlock($this->_blockGroup . '/' . $this->_controller . '_' . $this->_mode . '_form'));
     }
     return parent::_prepareLayout();
 }
示例#11
0
 protected function _beforeToHtml()
 {
     $ticket = $this->getTicket();
     $this->_headerText = Mage::helper('inchoo_tickets')->__('Ticket #%s - %s', $ticket->getTicketId(), $this->escapeHtml($ticket->getSubject()));
     $this->setViewHtml('<div id="' . $this->getDestElementId() . '"></div>');
     return parent::_beforeToHtml();
 }
示例#12
0
 protected function _beforeToHtml()
 {
     // Magento order data
     // ---------------
     $this->realMagentoOrderId = NULL;
     $magentoOrder = $this->order->getMagentoOrder();
     if (!is_null($magentoOrder)) {
         $this->realMagentoOrderId = $magentoOrder->getRealOrderId();
     }
     // ---------------
     // ---------------
     if (!is_null($magentoOrder) && $magentoOrder->hasShipments()) {
         $url = $this->getUrl('*/adminhtml_order/resubmitShippingInfo', array('id' => $this->order->getId()));
         $data = array('class' => '', 'label' => Mage::helper('M2ePro')->__('Resend Shipping Information'), 'onclick' => 'setLocation(\'' . $url . '\');');
         $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
         $this->setChild('resubmit_shipping_info', $buttonBlock);
     }
     // ---------------
     // Shipping data
     // ---------------
     /** @var $shippingAddress Ess_M2ePro_Model_Buy_Order_ShippingAddress */
     $shippingAddress = $this->order->getShippingAddress();
     $this->shippingAddress = $shippingAddress->getData();
     $this->shippingAddress['country_name'] = $shippingAddress->getCountryName();
     $this->shippingAddress['phone'] = $this->order->getChildObject()->getBillingAddress()->getData('phone');
     $this->shippingAddress['company'] = $this->order->getChildObject()->getBillingAddress()->getData('company');
     // ---------------
     $this->setChild('item', $this->getLayout()->createBlock('M2ePro/adminhtml_common_buy_order_view_item'));
     $this->setChild('item_edit', $this->getLayout()->createBlock('M2ePro/adminhtml_order_item_edit'));
     $this->setChild('log', $this->getLayout()->createBlock('M2ePro/adminhtml_order_view_log_grid'));
     return parent::_beforeToHtml();
 }
示例#13
0
 protected function _beforeToHtml()
 {
     parent::_beforeToHtml();
     // --------------------------------------
     $listing = Mage::helper('M2ePro/Component_Ebay')->getCachedObject('Listing', $this->getRequest()->getParam('listing_id'));
     $viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing));
     $this->setChild('view_header', $viewHeaderBlock);
     // --------------------------------------
     // --------------------------------------
     $listingData = Mage::helper('M2ePro/Data_Global')->getValue('temp_data');
     $categoryMode = $this->getData('category_mode');
     $categoryValue = $this->getData('category_value');
     $internalData = $this->getData('internal_data');
     $specifics = $this->getData('specifics');
     $specificBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_category_specific');
     $specificBlock->setMarketplaceId($listingData['marketplace_id']);
     $specificBlock->setCategoryMode($categoryMode);
     $specificBlock->setCategoryValue($categoryValue);
     if (!empty($internalData)) {
         $specificBlock->setInternalData($internalData);
     }
     if (!empty($specifics)) {
         $specificBlock->setSelectedSpecifics($specifics);
     }
     $this->setChild('category_specific', $specificBlock);
     // --------------------------------------
     // --------------------------------------
     if ($categoryMode == Ess_M2ePro_Model_Ebay_Template_Category::CATEGORY_MODE_EBAY) {
         $this->_selectedCategoryPath = Mage::helper('M2ePro/Component_Ebay_Category_Ebay')->getPath($categoryValue, $listingData['marketplace_id']);
     } else {
         $attributeLabel = Mage::helper('M2ePro/Magento_Attribute')->getAttributeLabel($categoryValue);
         $this->_selectedCategoryPath = Mage::helper('M2ePro')->__('Magento Attribute') . ' > ' . $attributeLabel;
     }
     // --------------------------------------
 }
示例#14
0
 protected function _prepareLayout()
 {
     if ($this->_blockGroup && $this->_controller && $this->_mode) {
         $this->setChild('form', $this->getLayout()->createBlock($this->_blockGroup . '_Block_' . str_replace(' ', '_', ucwords(str_replace('_', ' ', $this->_controller . '_' . $this->_mode))) . '_Form'));
     }
     return parent::_prepareLayout();
 }
示例#15
0
文件: Add.php 项目: ppkowalski/M2E
 protected function _beforeToHtml()
 {
     if (is_null($this->compatibilityType)) {
         throw new LogicException('Compatibility type was not set.');
     }
     return parent::_beforeToHtml();
 }
 /**
  * Initialize button
  */
 public function __construct()
 {
     $this->_controller = 'adminhtml_urlrewrite';
     $this->_headerText = $this->__('URL Redirect');
     parent::__construct();
     $this->_addButton('back', array('label' => $this->__('Back'), 'onclick' => sprintf("setLocation('%s')", $this->getBackUrl()), 'class' => 'back'), -1);
 }
示例#17
0
 protected function _prepareLayout()
 {
     $��� = $this->{"_getSlider"}()->{"getStyle"}();
     switch ($���) {
         case WP_AdvancedSlider_Model_Source_Style::STYLE_STANDARD:
             $���� = $this->{"getLayout"}()->{"createBlock"}(chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(114) . chr(47) . chr(97) . chr(100) . chr(109) . chr(105) . chr(110) . chr(104) . chr(116) . chr(109) . chr(108) . chr(95) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(115) . chr(95) . chr(101) . chr(100) . chr(105) . chr(116) . chr(95) . chr(116) . chr(97) . chr(98) . chr(95) . chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(115) . chr(116) . chr(97) . chr(110) . chr(100) . chr(97) . chr(114) . chr(100));
             break;
         case WP_AdvancedSlider_Model_Source_Style::STYLE_NICOLE:
             $���� = $this->{"getLayout"}()->{"createBlock"}(chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(114) . chr(47) . chr(97) . chr(100) . chr(109) . chr(105) . chr(110) . chr(104) . chr(116) . chr(109) . chr(108) . chr(95) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(115) . chr(95) . chr(101) . chr(100) . chr(105) . chr(116) . chr(95) . chr(116) . chr(97) . chr(98) . chr(95) . chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(110) . chr(105) . chr(99) . chr(111) . chr(108) . chr(101));
             break;
         case WP_AdvancedSlider_Model_Source_Style::STYLE_KRISTA:
             $���� = $this->{"getLayout"}()->{"createBlock"}(chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(114) . chr(47) . chr(97) . chr(100) . chr(109) . chr(105) . chr(110) . chr(104) . chr(116) . chr(109) . chr(108) . chr(95) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(115) . chr(95) . chr(101) . chr(100) . chr(105) . chr(116) . chr(95) . chr(116) . chr(97) . chr(98) . chr(95) . chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(107) . chr(114) . chr(105) . chr(115) . chr(116) . chr(97));
             break;
         case WP_AdvancedSlider_Model_Source_Style::STYLE_XANDRA:
             $���� = $this->{"getLayout"}()->{"createBlock"}(chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(114) . chr(47) . chr(97) . chr(100) . chr(109) . chr(105) . chr(110) . chr(104) . chr(116) . chr(109) . chr(108) . chr(95) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(115) . chr(95) . chr(101) . chr(100) . chr(105) . chr(116) . chr(95) . chr(116) . chr(97) . chr(98) . chr(95) . chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(120) . chr(97) . chr(110) . chr(100) . chr(114) . chr(97));
             break;
         case WP_AdvancedSlider_Model_Source_Style::STYLE_TRISHA:
             $���� = $this->{"getLayout"}()->{"createBlock"}(chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(114) . chr(47) . chr(97) . chr(100) . chr(109) . chr(105) . chr(110) . chr(104) . chr(116) . chr(109) . chr(108) . chr(95) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(115) . chr(95) . chr(101) . chr(100) . chr(105) . chr(116) . chr(95) . chr(116) . chr(97) . chr(98) . chr(95) . chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(116) . chr(114) . chr(105) . chr(115) . chr(104) . chr(97));
             break;
         case WP_AdvancedSlider_Model_Source_Style::STYLE_SAMANTA:
             $���� = $this->{"getLayout"}()->{"createBlock"}(chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(114) . chr(47) . chr(97) . chr(100) . chr(109) . chr(105) . chr(110) . chr(104) . chr(116) . chr(109) . chr(108) . chr(95) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(115) . chr(95) . chr(101) . chr(100) . chr(105) . chr(116) . chr(95) . chr(116) . chr(97) . chr(98) . chr(95) . chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(115) . chr(97) . chr(109) . chr(97) . chr(110) . chr(116) . chr(97));
             break;
         case WP_AdvancedSlider_Model_Source_Style::STYLE_AMANDA:
             $���� = $this->{"getLayout"}()->{"createBlock"}(chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(114) . chr(47) . chr(97) . chr(100) . chr(109) . chr(105) . chr(110) . chr(104) . chr(116) . chr(109) . chr(108) . chr(95) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(115) . chr(95) . chr(101) . chr(100) . chr(105) . chr(116) . chr(95) . chr(116) . chr(97) . chr(98) . chr(95) . chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(97) . chr(109) . chr(97) . chr(110) . chr(100) . chr(97));
             break;
     }
     if ($this->{"_getSlide"}()->{"getId"}()) {
         $����� = unserialize($this->{"_getSlide"}()->{"getStyleOptions"}());
         $����->{"setOptions"}($�����);
     } else {
         $����->{"setOptionsDefault"}();
     }
     $this->{"setChild"}(chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115), $����);
     return parent::_prepareLayout();
 }
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('searchindex/validation/container.phtml');
     $this->_controller = 'adminhtml_validation';
     $this->_headerText = $this->__('Search Validation');
 }
示例#19
0
 protected function _prepareLayout()
 {
     $this->_addButton('back_button', array('label' => Mage::helper('seosuite')->__('Back'), 'onclick' => "setLocation('{$this->getUrl('*/*/index')}')", 'class' => 'back'));
     $this->_addButton('generate', array('label' => Mage::helper('seosuite')->__('Generate'), 'onclick' => "setLocation('{$this->getUrl('*/*/generate')}')", 'class' => 'generate'));
     $this->setChild('grid', $this->getLayout()->createBlock('mageworx/seosuite_report_product_duplicate_view_grid', 'seosuite.report.product.duplicate.view.grid'));
     return parent::_prepareLayout();
 }
示例#20
0
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('supportContainer');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml';
     $this->_mode = 'support';
     //------------------------------
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Support');
     //------------------------------
     // Set template
     //------------------------------
     $this->setTemplate('M2ePro/support.phtml');
     //------------------------------
     // Set buttons actions
     //------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     $this->_addButton('goto_cmd', array('label' => 'CMD', 'onclick' => 'setLocation(\'' . $this->getUrl('*/adminhtml_cmd/index') . '\')', 'class' => 'button_link cmd', 'style' => is_null($this->getRequest()->getParam('show_cmd')) ? 'display: none;' : ''));
     $this->_addButton('goto_about', array('label' => Mage::helper('M2ePro')->__('About'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/adminhtml_about/index') . '\')', 'class' => 'button_link'));
     $videoLink = Mage::helper('M2ePro/Module')->getConfig()->getGroupValue('/video_tutorials/', 'baseurl');
     $this->_addButton('goto_video_tutorials', array('label' => Mage::helper('M2ePro')->__('Video Tutorials'), 'onclick' => 'window.open(\'' . $videoLink . '\', \'_blank\'); return false;', 'class' => 'button_link'));
     $docsLink = Mage::helper('M2ePro/Module')->getConfig()->getGroupValue('/documentation/', 'baseurl');
     $this->_addButton('goto_docs', array('label' => Mage::helper('M2ePro')->__('Documentation'), 'onclick' => 'window.open(\'' . $docsLink . '\', \'_blank\'); return false;', 'class' => 'button_link'));
     $this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'SupportHandlerObj.reset_click()', 'class' => 'reset'));
     //------------------------------
 }
示例#21
0
 protected function _toHtml()
 {
     $connRead = Mage::getSingleton('core/resource')->getConnection('core_read');
     $migrationTable = Mage::getSingleton('core/resource')->getTableName('m2epro_migration_v6');
     $html = $connRead->select()->from($migrationTable, 'data')->where('`component` = \'*\'')->where('`group` = \'notes\'')->query()->fetchColumn();
     return parent::_toHtml() . $html;
 }
 /**
  * Prepare layout
  *
  * @return Aoe_Scheduler_Block_Adminhtml_Cron
  */
 protected function _prepareLayout()
 {
     $this->removeButton('add');
     $this->_addButton('add_new', array('label' => Mage::helper('aoe_scheduler')->__('Generate Schedule'), 'onclick' => "setLocation('{$this->getUrl('*/*/generateSchedule')}')"));
     $this->_addButton('configure', array('label' => Mage::helper('aoe_scheduler')->__('Cron Configuration'), 'onclick' => "setLocation('{$this->getUrl('adminhtml/system_config/edit', array('section' => 'system'))}#system_cron')"));
     return parent::_prepareLayout();
 }
示例#23
0
 protected function _beforeToHtml()
 {
     //-------------------------------
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('M2ePro')->__('Continue'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/adminhtml_ebay_listing/confirmTutorial') . '\');', 'class' => 'confirm_tutorial'));
     $this->setChild('confirm_tutorial', $buttonBlock);
     //-------------------------------
     return parent::_beforeToHtml();
 }
示例#24
0
文件: Header.php 项目: rcclaudrey/dev
 function __construct()
 {
     parent::__construct();
     if (!$this->hasData('template')) {
         $this->setTemplate('colorswatch/header.phtml');
     }
     $this->_headerText = Mage::helper('colorswatch')->__('Welcome to SMDesign ColorSwatch');
 }
示例#25
0
 protected function _toHtml()
 {
     $treeSettings = array('show_products_amount' => true, 'hide_products_this_listing' => true);
     $categoryTreeBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_category_tree', '', array('component' => Ess_M2ePro_Helper_Component_Buy::NICK, 'tree_settings' => $treeSettings));
     $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_buy_listing_product_category_help');
     $categoryBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_buy_listing_product_category_edit');
     return '<div id="add_products_progress_bar"></div>' . '<div id="add_products_container">' . parent::_toHtml() . $helpBlock->toHtml() . $categoryTreeBlock->toHtml() . $categoryBlock->toHtml() . '</div>';
 }
示例#26
0
 protected function _prepareLayout()
 {
     $selected = $this->getData('selected_categories');
     $uniqId = Mage::helper('core')->uniqHash('categories') . 'Tree';
     $categoriesTree = $this->getLayout()->createBlock('advancedslider/adminhtml_widget_categorychooser')->setId($uniqId)->setSelectedCategories($selected);
     $this->setChild('categories', $categoriesTree);
     return parent::_prepareLayout();
 }
示例#27
0
 public function __construct()
 {
     parent::__construct();
     $this->_controller = 'adminhtml_logger_api';
     $this->_headerText = $this->__('Amazon API call');
     $this->setTemplate('creativestyle/checkoutbyamazon/logger/api/view.phtml');
     $this->_addButton('back', array('label' => Mage::helper('adminhtml')->__('Back'), 'onclick' => 'window.location.href=\'' . $this->getUrl('*/*/') . '\'', 'class' => 'back'));
 }
示例#28
0
 /**
  * Prepare button and grid
  *
  * @return Mage_Adminhtml_Block_Catalog_Product
  */
 protected function _prepareLayout()
 {
     $this->_addButton('add_new', array('label' => Mage::helper('catalog')->__('Add Product'), 'onclick' => "setLocation('{$this->getUrl('*/*/new')}')", 'class' => 'add'));
     $this->_addButton('update_zip', array('label' => Mage::helper('catalog')->__('Update Products Zip Codes'), 'onclick' => "setLocation('{$this->getUrl('*/*/update_zip')}')", 'class' => 'add'));
     $this->_addButton('update_stock', array('label' => Mage::helper('catalog')->__('Update Stock'), 'onclick' => "setLocation('{$this->getUrl('*/*/update_vendor_stock')}')", 'class' => 'add'));
     $this->setChild('grid', $this->getLayout()->createBlock('adminhtml/catalog_product_grid', 'product.grid'));
     return parent::_prepareLayout();
 }
示例#29
0
 protected function _construct()
 {
     parent::_construct();
     $this->_addButton('back', array('label' => Mage::helper('aoe_profiler')->__('Back'), 'onclick' => 'setLocation(\'' . $this->getBackUrl() . '\')', 'class' => 'back'), -1);
     if ($this->getStack()->getId()) {
         $this->_addButton('delete', array('label' => Mage::helper('aoe_profiler')->__('Delete'), 'class' => 'delete', 'onclick' => 'deleteConfirm(\'' . Mage::helper('aoe_profiler')->__('Are you sure you want to do this?') . '\', \'' . $this->getDeleteUrl() . '\')'));
     }
 }
示例#30
0
 public function __construct()
 {
     $this->_controller = 'adminhtml_tenbucks';
     $this->_blockGroup = 'tenbucks_connect';
     $this->_headerText = Mage::helper('tenbucks_connect')->__('My Applications');
     $this->_addButton('standalone', array('label' => Mage::helper('tenbucks_connect')->__('Standalone Mode'), 'onclick' => "window.open('" . $this->getIframeUrl(true) . "')", 'class' => 'add-widget'));
     parent::__construct();
 }