This commit is contained in:
parent
89bf477365
commit
01274b6d9c
2 changed files with 21 additions and 3 deletions
|
@ -786,6 +786,11 @@ class cbactions
|
|||
}
|
||||
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Function used to get playlist
|
||||
*/
|
||||
function get_playlist($id,$user=NULL)
|
||||
{
|
||||
global $db;
|
||||
|
@ -1124,6 +1129,8 @@ function get_playlist($id,$user=NULL)
|
|||
/**
|
||||
* Function used to get playlists
|
||||
*/
|
||||
|
||||
/*
|
||||
function get_playlists( $params = array() )
|
||||
{
|
||||
global $cb_columns;
|
||||
|
@ -1230,6 +1237,17 @@ function get_playlist($id,$user=NULL)
|
|||
return false;
|
||||
}
|
||||
|
||||
*/
|
||||
function get_playlists()
|
||||
{
|
||||
global $db;
|
||||
$result = $db->select(tbl($this->playlist_tbl),"*"," playlist_type='".$this->type."' AND userid='".userid()."'");
|
||||
|
||||
if($db->num_rows>0)
|
||||
return $result;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get playlist thumb
|
||||
|
|
|
@ -34,9 +34,9 @@
|
|||
<td width="25">
|
||||
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/>
|
||||
</td>
|
||||
<td>{lang code='title'}</td>
|
||||
<td width="130">{lang code='date_added'}</td>
|
||||
<td width="130" class="last_td">{lang code='total_items'}</td>
|
||||
<td><strong>{lang code='title'}</strong></td>
|
||||
<td width="130"><strong>{lang code='date_added'}</strong></td>
|
||||
<td width="130" class="last_td"><strong>{lang code='total_items'}</strong></td>
|
||||
</tr>
|
||||
{section name=plist loop=$playlists}
|
||||
<tr>
|
||||
|
|
Loading…
Add table
Reference in a new issue