type ahead search in scheduling playlists dialog.
This commit is contained in:
parent
8b2b2d934c
commit
aee0b09749
5 changed files with 40 additions and 37 deletions
|
@ -155,7 +155,7 @@ class Playlist {
|
|||
{
|
||||
$con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME);
|
||||
|
||||
$sql = "SELECT sub.login, plt.length, pl.state, pl.description, pl.name, pl.id
|
||||
$sql = "SELECT sub.login, plt.length, pl.state, pl.creator, pl.description, pl.name, pl.id
|
||||
FROM cc_playlist AS pl LEFT JOIN cc_playlisttimes AS plt USING(id) LEFT JOIN cc_subjs AS sub ON pl.editedby = sub.id
|
||||
WHERE plt.length <= '{$p_length}' ";
|
||||
|
||||
|
@ -167,7 +167,7 @@ class Playlist {
|
|||
{
|
||||
$con = Propel::getConnection(CcPlaylistPeer::DATABASE_NAME);
|
||||
|
||||
$sql = "SELECT sub.login, plt.length, pl.state, pl.description, pl.name, pl.id
|
||||
$sql = "SELECT sub.login, plt.length, pl.state, pl.creator, pl.description, pl.name, pl.id
|
||||
FROM cc_playlist AS pl LEFT JOIN cc_playlisttimes AS plt USING(id) LEFT JOIN cc_subjs AS sub ON pl.editedby = sub.id
|
||||
WHERE plt.length <= '{$p_length}' ";
|
||||
|
||||
|
@ -175,7 +175,7 @@ class Playlist {
|
|||
if(!is_null($search)) {
|
||||
$keywords = explode(" ", $search);
|
||||
|
||||
$categories = array("pl.description", "pl.name", "pl.creator");
|
||||
$categories = array("pl.description", "pl.name", "pl.creator", "sub.login");
|
||||
|
||||
for($group_id=1; $group_id <= count($keywords); $group_id++) {
|
||||
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
<li class="ui-widget-content">
|
||||
<li id="sp_<?php echo $this->id ?>" class="ui-widget-content">
|
||||
<div><?php echo $this->name ?></div>
|
||||
<div><?php echo $this->description ?></div>
|
||||
<div><?php echo $this->length ?></div>
|
||||
<?php if($this->state === "edited") : ?>
|
||||
<div>edited by: <?php echo $this->login ?></div>
|
||||
<?php endif ?>
|
||||
<div>
|
||||
<span>Creator: <?php echo $this->creator ?></span>
|
||||
<?php if($this->state === "edited") : ?>
|
||||
<span>Editing: <?php echo $this->login ?></span>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</li>
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
echo $this->partialLoop('schedule/find-playlists-partial.phtml', $this->playlists);
|
||||
?>
|
||||
</ul>
|
||||
<ul id="schedule_playlist_chosen"></ul>
|
||||
<ul id="schedule_playlist_chosen">No Playlists</ul>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue