show will open dialog properly showing scheduled content if there is any
This commit is contained in:
parent
a8f24952bd
commit
f312ea0d60
6 changed files with 34 additions and 16 deletions
|
@ -146,6 +146,11 @@ class ScheduleController extends Zend_Controller_Action
|
|||
$end = $this->_getParam('end');
|
||||
$showId = $this->_getParam('showId');
|
||||
$day = $this->_getParam('day');
|
||||
$search = $this->_getParam('search', null);
|
||||
|
||||
if($search == "") {
|
||||
$search = null;
|
||||
}
|
||||
|
||||
$userInfo = Zend_Auth::getInstance()->getStorage()->read();
|
||||
|
||||
|
@ -159,7 +164,7 @@ class ScheduleController extends Zend_Controller_Action
|
|||
$show->scheduleShow($start, array($plId));
|
||||
}
|
||||
|
||||
$this->view->playlists = $show->searchPlaylistsForShow($day);
|
||||
$this->view->playlists = $show->searchPlaylistsForShow($day, $search);
|
||||
$this->view->showContent = $show->getShowContent($start);
|
||||
|
||||
$this->view->choice = $this->view->render('schedule/find-playlists.phtml');
|
||||
|
|
|
@ -2,4 +2,7 @@
|
|||
if(count($this->playlists) > 0) {
|
||||
echo $this->partialLoop('schedule/find-playlists-partial.phtml', $this->playlists);
|
||||
}
|
||||
else {
|
||||
echo "No Playlists Fit Duration";
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -2,4 +2,7 @@
|
|||
if(count($this->playlists) > 0) {
|
||||
echo $this->partialLoop('schedule/find-playlists-partial.phtml', $this->playlists);
|
||||
}
|
||||
else {
|
||||
echo "No Playlists Fit Duration";
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
<div id="schedule_playlist_dialog">
|
||||
<input id="schedule_playlist_search" type="text"></input>
|
||||
<ul id="schedule_playlist_choice">
|
||||
<?php
|
||||
echo $this->partialLoop('schedule/find-playlists-partial.phtml', $this->playlists);
|
||||
?>
|
||||
</ul>
|
||||
<ul id="schedule_playlist_chosen">No Playlists</ul>
|
||||
<ul id="schedule_playlist_choice"></ul>
|
||||
<ul id="schedule_playlist_chosen"></ul>
|
||||
</div>
|
||||
|
|
|
@ -20,5 +20,7 @@
|
|||
</div>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
<?php else : ?>
|
||||
<li>No Playlists</li>
|
||||
<?php endif; ?>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue