Example #1
0
 public function parentAction()
 {
     $this->_helper->layout->disableLayout();
     if ($this->getRequest()->isPost()) {
         $Data = $this->getRequest()->getPost();
         if ($Data['album'] && $Data['page']) {
             Zwe_Model_Album::parentAlbum((int) $Data['album'], (int) $Data['page']);
             $this->view->message = "Album parent page changes successfully";
         }
     }
 }
Example #2
0
 public function indexAction()
 {
     $IDAlbum = $this->_getParam('album');
     if (!isset($IDAlbum)) {
         $this->_helper->redirector('index', 'gallery');
     }
     $this->view->album = Zwe_Model_Album::getAlbumByID($IDAlbum);
     $this->view->uploadForm = new Admin_Form_Photo_Upload();
     $this->view->uploadForm->getElement('album')->setValue($IDAlbum);
     $this->view->deleteForm = new Admin_Form_Photo_Delete();
     $this->view->deleteForm->getElement('delete')->addMultiOptions($this->view->album->Photos);
 }
Example #3
0
 protected function specificPageInit()
 {
     $this->_albums = Zwe_Model_Album::getPageAlbums($this->IDPage);
 }