listing show contents option works.

This commit is contained in:
naomiaro 2011-02-05 19:47:04 -05:00
parent 12cd80fe13
commit 3bbc84365e
1 changed files with 3 additions and 10 deletions

View File

@ -310,18 +310,11 @@ class ScheduleController extends Zend_Controller_Action
public function showContentDialogAction() public function showContentDialogAction()
{ {
$start_timestamp = $this->_getParam('start'); $showInstanceId = $this->_getParam('id');
$end_timestamp = $this->_getParam('end'); $show = new ShowInstance($showInstanceId);
$showId = $this->_getParam('id');
$userInfo = Zend_Auth::getInstance()->getStorage()->read(); $this->view->showContent = $show->getShowListContent();
$user = new User($userInfo->id, $userInfo->type);
$show = new Show($user, $showId);
$this->view->showContent = $show->getShowListContent($start_timestamp);
$this->view->dialog = $this->view->render('schedule/show-content-dialog.phtml'); $this->view->dialog = $this->view->render('schedule/show-content-dialog.phtml');
unset($this->view->showContent); unset($this->view->showContent);
} }