예제 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->_removeButton('reset');
     $this->_removeButton('save');
     $this->_removeButton('back');
     $this->_removeButton('saveandreload');
 }
예제 #2
0
 public function __construct()
 {
     parent::__construct();
     $this->_removeButton('reset');
     $this->_removeButton('delete');
     $this->_removeButton('save');
     $this->_removeButton('saveandreload');
     $this->_addButton('back', array('label' => $this->__('Back'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/') . '\')', 'class' => 'back'), -1);
     $this->_addButton('delete', array('label' => $this->__('Delete'), 'onclick' => 'confirmSetLocation(\'' . $this->__('Are you sure?') . '\', \'' . $this->getUrl('*/*/delete', array('_current' => true)) . '\')', 'class' => 'delete'), -1);
     $this->_addButton('download', array('label' => $this->__('Download'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/download', array('_current' => true)) . '\')'));
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct();
     $this->_removeButton('reset');
     $this->_removeButton('save');
     if ($this->getMessage()->getState() == 'unread') {
         $this->_addButton('markRead', array('label' => $this->__('Mark as Read'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/markRead', array('id' => $this->getMessage()->getId())) . '\')', 'class' => ''));
     }
     if ($this->getMessage()->getUrl()) {
         $this->_addButton('viewUrl', array('label' => $this->__('Visit Url'), 'onclick' => 'window.open(\'' . $this->getUrl('*/*/goto', array('id' => $this->getMessage()->getId())) . '\', \'message_site\')', 'class' => 'add'));
     }
 }
예제 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('extendware/ewcore/frontend/widget/form/container.phtml');
 }
예제 #5
0
 public function __construct()
 {
     parent::__construct();
 }