00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 class Mage_Adminhtml_Block_Sales_Order_Create_Sidebar extends Mage_Adminhtml_Block_Sales_Order_Create_Abstract
00036 {
00037 protected function _prepareLayout()
00038 {
00039 if ($this->getCustomerId()) {
00040 $button = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array(
00041 'label' => Mage::helper('sales')->__('Update Changes'),
00042 'onclick' => 'order.sidebarApplyChanges()',
00043 'before_html' => '<div class="sub-btn-set">',
00044 'after_html' => '</div>'
00045 ));
00046 $this->setChild('top_button', $button);
00047 }
00048
00049 if ($this->getCustomerId()) {
00050 $button = clone $button;
00051 $button->unsId();
00052 $this->setChild('bottom_button', $button);
00053 }
00054 return parent::_prepareLayout();
00055 }
00056
00057 public function canDisplay($child)
00058 {
00059 if (method_exists($child, 'canDisplay')) {
00060 return $child->canDisplay();
00061 }
00062 return true;
00063 }
00064 }