示例#1
0
 protected function _prepareLayout()
 {
     $this->setChild('store_switcher', $this->getLayout()->createBlock('adminhtml/store_switcher')->setUseConfirm(false)->setSwitchUrl($this->getUrl('*/*/*', array('store' => null)))->setTemplate('report/store/switcher.phtml'));
     $this->setChild('refresh_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('adminhtml')->__('Refresh'), 'onclick' => $this->getRefreshButtonCallback(), 'class' => 'task')));
     parent::_prepareLayout();
     return $this;
 }
示例#2
0
 protected function _prepareLayout()
 {
     $this->setChild('export_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('adminhtml')->__('Export'), 'onclick' => $this->getJsObjectName() . '.doExport()', 'class' => 'task')));
     $this->setChild('reset_filter_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('adminhtml')->__('Reset Filter'), 'onclick' => $this->getJsObjectName() . '.resetFilter()')));
     $this->setChild('search_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('adminhtml')->__('Search'), 'onclick' => $this->getJsObjectName() . '.doFilter()', 'class' => 'task')));
     return parent::_prepareLayout();
 }
示例#3
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     $this->setExportVisibility('true');
     $this->setChild('import_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('amfeed')->__('Add by Template'), 'onclick' => 'amFeedImportObject.load($(\'am_templates_select\').value);', 'class' => 'task')));
     return $this;
 }
示例#4
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     $this->unsetChild('search_button');
     $this->unsetChild('reset_filter_button');
     return $this;
 }
示例#5
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     $this->unsetChild('reset_filter_button');
     $this->unsetChild('search_button');
     $this->setChild('search_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => $this->__('Use Default Image'), 'onclick' => 'awfBForm.setProductImage(' . $this->getRequest()->getParam('pid') . ', ' . $this->getRequest()->getParam('blockId') . ', -1);', 'class' => 'save')));
     return $this;
 }
示例#6
0
 protected function _prepareLayout()
 {
     $slider = $this->_getSlider();
     if ($slider && $slider->getId()) {
         $url = $this->getUrl('*/*/addSlide', array('sid' => $slider->getId()));
         $this->setChild('addSlideButton', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('revslider')->__('Add Slide'), 'onclick' => "setLocation('{$url}')", 'class' => 'scale add')));
     }
     return parent::_prepareLayout();
 }
示例#7
0
 protected function _prepareLayout()
 {
     if ($this->getRequest()->getParam('archive')) {
         $this->setChild('archive_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => $this->__('Hide Archived'), 'onclick' => "{$this->getJsObjectName()}.addVarToUrl('archive', 0); {$this->getJsObjectName()}.reload();", 'class' => 'task')));
     } else {
         $this->setChild('archive_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => $this->__('Show Archived'), 'onclick' => "{$this->getJsObjectName()}.addVarToUrl('archive', 1); {$this->getJsObjectName()}.reload();", 'class' => 'task')));
     }
     return parent::_prepareLayout();
 }
 protected function _prepareLayout()
 {
     $productType = Mage::registry('product')->getTypeId();
     $name = sprintf('ZetaPrints %s products creation', $productType);
     $profileId = $this->_getProfileId($name);
     if ($profileId) {
         $this->_addSourceButton($profileId);
     }
     return parent::_prepareLayout();
 }
 protected function _prepareLayout()
 {
     $result = parent::_prepareLayout();
     $this->unsetChild('reset_filter_button');
     $this->unsetChild('search_button');
     $this->unsetChild('export_button');
     $this->_pagerVisibility = false;
     $this->_filterVisibility = false;
     return $result;
 }
 protected function _prepareLayout()
 {
     $totalProductRecieved = Mage::helper('inventorypurchasing/purchaseorder')->getDataByPurchaseOrderId($this->getRequest()->getParam('id'), 'total_products_recieved');
     $purchaseOrderId = $this->getRequest()->getParam('id');
     $purchaseOrder = Mage::getModel('inventorypurchasing/purchaseorder')->load($purchaseOrderId);
     if ($totalProductRecieved > 0 && $this->checkCreateReturn()) {
         $this->setChild('return_order_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('inventorypurchasing')->__('Return Order'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/newreturnorder', array('purchaseorder_id' => $this->getRequest()->getParam('id'), 'warehouse_ids' => $purchaseOrder->getWarehouseId(), 'action' => 'newreturnorder', '_current' => false)) . '\')', 'class' => 'add', 'style' => 'float:right')));
     }
     if ($totalProductRecieved > 0 && $this->checkCreateReturnAll()) {
         $this->setChild('return_all_order_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('inventorypurchasing')->__('Return All Orders'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/returnallorder', array('purchaseorder_id' => $this->getRequest()->getParam('id'), 'warehouse_ids' => $purchaseOrder->getWarehouseId(), 'action' => 'newreturnorder', '_current' => false)) . '\')', 'class' => 'add', 'style' => 'float:right')));
     }
     return parent::_prepareLayout();
 }
示例#11
0
	protected function _prepareLayout()
	{
		$result = parent::_prepareLayout();
	
		$this->unsetChild('reset_filter_button');
		$this->unsetChild('search_button');
		$this->unsetChild('export_button');

		$this->_pagerVisibility = false;
		$this->_filterVisibility = false;
		
//		$this->setGridHeader('WordPress Integration Results');
	
		return $result;
	}
示例#12
0
 protected function _prepareLayout()
 {
     //$this->unsetChild('reset_filter_button');
     //$this->unsetChild('search_button');
     $thisId = $this->getRequest()->getParam('id');
     $this->setChild('save_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('adminhtml')->__('Add Customers'), 'onclick' => 'massAdd();', 'class' => 'add')));
     /*
     $this->setChild('email_button',
     	$this->getLayout()->createBlock('adminhtml/widget_button')
     		->setData(array(
     			'label'     => Mage::helper('adminhtml')->__('Send Mail to Customers'),
     			//'onclick'   => "setLocation('".$this->getUrl('common/index/sendmail/id/'.$thisId, array('_current'=>true))."')",
     			'onclick'   => "setLocation('".$this->getUrl('aitindividpromo/index/sendmail/id/'.$thisId, array('_current'=>true))."')",
     			'class' => 'save',
     		))
     );
     */
     return parent::_prepareLayout();
 }
示例#13
0
 protected function _prepareLayout()
 {
     if ($purchaseOrderId = $this->getRequest()->getParam('id')) {
         $purchaseOrder = Mage::getModel('inventorypurchasing/purchaseorder')->load($purchaseOrderId);
         $resource = Mage::getSingleton('core/resource');
         $readConnection = $resource->getConnection('core_read');
         $sql = 'SELECT purchase_order_product_id from ' . $resource->getTableName("erp_inventory_purchase_order_product") . ' WHERE (purchase_order_id = ' . $this->getRequest()->getParam("id") . ') AND (qty_recieved < qty)';
         $results = $readConnection->fetchAll($sql);
         if ($purchaseOrder->getStatus() == '6' || !$results || count($results) < 1) {
             return parent::_prepareLayout();
         }
         if ($this->checkCreateAllDelivery() && $purchaseOrder->getStatus() != 7) {
             $this->setChild('create_all_delivery_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('inventorypurchasing')->__('Create all deliveries'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/alldelivery', array('purchaseorder_id' => $this->getRequest()->getParam('id'), 'action' => 'alldelivery', '_current' => false)) . '\')', 'class' => 'add', 'style' => 'float:right')));
         }
         if ($this->checkCreateNewDelivery() && $purchaseOrder->getStatus() != 7) {
             $this->setChild('create_delivery_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('inventorypurchasing')->__('Create a new delivery'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/newdelivery', array('purchaseorder_id' => $this->getRequest()->getParam('id'), 'warehouse_ids' => $purchaseOrder->getWarehouseId(), 'action' => 'newdelivery', '_current' => false)) . '\')', 'class' => 'add', 'style' => 'float:right')));
         }
     }
     return parent::_prepareLayout();
 }
示例#14
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
 }
示例#15
0
 protected function _prepareLayout()
 {
     //------------------------------
     $data = array('id' => 'save_filter_btn', 'label' => Mage::helper('M2ePro')->__('Save Filter'), 'class' => 'success', 'onclick' => 'EbayMotorAddItemGridHandlerObj.saveFilter()');
     $saveFilterBtn = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
     $this->setChild('save_filter', $saveFilterBtn);
     //------------------------------
     //------------------------------
     $data = array('id' => 'add_custom_motors_record_button', 'label' => Mage::helper('M2ePro')->__('Add New ' . $this->getItemTitle()), 'class' => 'success', 'style' => 'display: none;', 'onclick' => 'EbayMotorsHandlerObj.openAddRecordPopup()');
     $addCustomMotorsRecordBtn = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
     $this->setChild('add_custom_motors_record_button', $addCustomMotorsRecordBtn);
     //------------------------------
     return parent::_prepareLayout();
 }
示例#16
0
文件: Grid.php 项目: rajarshc/Rooja
 protected function _prepareLayout()
 {
     $this->setChild('clear_selections_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('adminhtml')->__('Clear Selections'), 'onclick' => 'clearGridSelections(\'review_id\')')));
     return parent::_prepareLayout();
 }
示例#17
0
 /**
  * Insert the Add New button
  *
  * @return $this
  */
 protected function _prepareLayout()
 {
     $this->setChild('add_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('adminhtml')->__('Add New Slides'), 'class' => 'add', 'onclick' => "setLocation('" . $this->getUrl('*/banners_slides/new') . "');")));
     return parent::_prepareLayout();
 }
示例#18
0
 protected function _prepareLayout()
 {
     $this->setPagerVisibility(false);
     return parent::_prepareLayout();
 }
示例#19
0
	public function _prepareLayout(){
		parent::_prepareLayout();
	}
示例#20
0
 /**
  * prepare layout
  *
  * @return Mage_Adminhtml_Block_Widget_Grid
  */
 protected function _prepareLayout()
 {
     $this->setChild('items', $this->getLayout()->createBlock('enterprise_staging/adminhtml_staging_edit_tabs_item')->setFieldNameSuffix('map[staging_items]'));
     $this->setChild('schedule', $this->getLayout()->createBlock('enterprise_staging/adminhtml_staging_edit_tabs_schedule')->setFieldNameSuffix('map[schedule]')->setStagingJsObjectName($this->getJsObjectName()));
     return parent::_prepareLayout();
 }
示例#21
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     $this->setChild('addfilter_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('adminhtml')->__('Add Attribute'), 'onclick' => "mepAttributeSettingsDialog.openDialog('" . $this->getUrl('*/profile/popup', array('profile_id' => $this->getProfileId())) . "')", 'class' => 'add')));
     return $this;
 }
示例#22
0
 protected function _prepareLayout()
 {
     $this->setChild('backButton', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('adminhtml')->__('Back'), 'onclick' => 'window.location.href=\'' . $this->getUrl('*/*/') . '\'', 'class' => 'back')));
     return parent::_prepareLayout();
 }
 protected function _prepareLayout()
 {
     Mage::dispatchEvent('warehouse_product_prepare_layout', array('block' => $this));
     return parent::_prepareLayout();
 }
示例#24
0
 protected function _prepareLayout()
 {
     $url = $this->getUrl('rewardsadmin/manage_promo_catalog/new', array('type' => 1));
     $this->setChild('new_dRule', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('adminhtml')->__('New Earning Rule'), 'onclick' => "setLocation('{$url}')", 'class' => 'add')));
     return parent::_prepareLayout();
 }
示例#25
0
 protected function _prepareLayout()
 {
     $this->getLayout()->getBlock('head')->addItem('skin_css', 'css/digitalpianism/modulesmanager/styles.css');
     $this->getLayout()->getBlock('head')->addItem('skin_js', 'js/digitalpianism/modulesmanager/script.js');
     return parent::_prepareLayout();
 }
示例#26
0
 protected function _prepareLayout()
 {
     $this->setChild('refresh_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('id' => 'description_template_refresh_btn', 'label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => $this->getJsObjectName() . '.reload()')));
     return parent::_prepareLayout();
 }
示例#27
0
文件: Points.php 项目: rajarshc/Rooja
 protected function _prepareLayout()
 {
     //        $this->setChild('clear_selections_button',
     //            $this->getLayout()->createBlock('adminhtml/widget_button')
     //                ->setData(array(
     //                    'label'     => Mage::helper('adminhtml')->__('Clear Selections'),
     //                    'onclick'   => 'clearGridSelections(\'reference_transfer_id\')',
     //                ))
     //        );
     return parent::_prepareLayout();
 }
示例#28
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     $this->setChild('update_stock', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('adminhtml')->__('Update'), 'onclick' => 'javascript:updateStockQty(\'' . Mage::helper('adminhtml')->getUrl('*/*/update') . '\')', 'class' => 'task')));
     return $this;
 }
示例#29
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     return $this;
 }
示例#30
0
 public function _prepareLayout()
 {
     return parent::_prepareLayout();
 }