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 class Mage_Adminhtml_Block_Extensions_Mass_Upgrade extends Mage_Adminhtml_Block_Widget_Form
00035 {
00036 
00037     public function initForm()
00038     {
00039         $this->setTitle('Upgrade packages');
00040         $this->setTemplate('extensions/mass/upgrade.phtml');
00041 
00042         return $this;
00043     }
00044 
00045     public function getUpgradeAllButtonHtml()
00046     {
00047         $html = '';
00048 
00049         $html .= $this->getLayout()->createBlock('adminhtml/widget_button')->setType('button')
00050             ->setClass('add')->setLabel($this->__('Upgrade all packages'))
00051             ->setOnClick("upgradeAll()")
00052             ->toHtml();
00053 
00054         return $html;
00055     }
00056 
00057     public function getBackButtonHtml()
00058     {
00059         $html = '';
00060 
00061         $html .= $this->getLayout()->createBlock('adminhtml/widget_button')->setType('button')
00062             ->setClass('back')->setLabel($this->__('Back to local packages'))
00063             ->setOnClick("setLocation('" . $this->getUrl('*/extensions_local') . "')")
00064             ->toHtml();
00065 
00066         return $html;
00067     }
00068 
00069 }