working on schedule dialog, reqorked get remaining time function in a show to be better.

This commit is contained in:
Naomi 2011-02-02 13:39:33 -05:00
parent 3adbbf4163
commit 0bcf69985e
4 changed files with 44 additions and 50 deletions

View file

@ -255,11 +255,12 @@ class ScheduleController extends Zend_Controller_Action
{
$show_id = $this->sched_sess->showId;
$start_timestamp = $this->sched_sess->showStart;
$end_timestamp = $this->sched_sess->showEnd;
$post = $this->getRequest()->getPost();
$userInfo = Zend_Auth::getInstance()->getStorage()->read();
$show = new Show(new User($userInfo->id, $userInfo->type), $show_id);
$playlists = $show->searchPlaylistsForShow($start_timestamp, $post);
$playlists = $show->searchPlaylistsForShow($start_timestamp, $end_timestamp, $post);
//for datatables
die(json_encode($playlists));