-
Notifications
You must be signed in to change notification settings - Fork 0
/
widget.php
55 lines (53 loc) · 2.34 KB
/
widget.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
$keyword="";
if(isset($_GET['addid']) && !empty($_GET['addid']))
$id=filter_var($_GET['addid'], FILTER_SANITIZE_ENCODED);
else header("Location: index.php");
?>
<?php include_once('functions.php');?>
<?php include_once('inc.php');?>
<?php
$albumcontents=explode("%2C",$id);
?>
<?php echo '<base href="'.$urlhead.'">'; ?>
<link href="css/bootstrap.min.css" rel="stylesheet">
<style>#tp1{width:400px !important}</style>
<div id="sidebar">
<?php include('preset/head.txt'); ?>
<?php
$albumtitlem = "Songsbro Playlist";
$albumyear="2016";
$albumimg="di/200/";
//var_dump($albumcontents);
$pcount=count($albumcontents);
$counter=0;$fstring='
<div class="plylst content" id="content-8">
<ul>';
foreach($albumcontents as $single)
{
issong($single);
$songinfo = getsong($single);
if($songinfo[2]){
$xmlsong[]=array("SONG_ID"=>$songinfo[0],"album_id"=>$songinfo[1],"url"=>$urlhead.'song/'.$songinfo[0],"SONG_NAME"=>$songinfo[2],"album_name"=>$songinfo[3],"FILE_PATH"=>$songinfo[4]);
$fstring.='<li id="active_'.$counter.'"><div class="fl pic"><div class="pic"><div id="toltpl_'.$counter.'" class="toltp1" title="Play Song"><a id=\'song_'.$counter.'\' class="play"><img src="'.$urlhead.$songinfo[4].'" width="46" height="46" border="0" alt=""><span></span></a></div></div></div><div class="fl picdesc pt10 "><strong id="sd_'.$counter.'" class="sd_'.$counter.'" >'.$songinfo[2].'</strong>'.$songinfo[3].'</div>
<div class="fr pt10">
<a href="'.$urlhead.'song/'.$songinfo[0].'" target="_blank" class="toltp" title="Download Song"><img src="player/download.png" width="15" height="21" border="0" alt=""></a> <!--<a href="#" class="toltp" title="Share Song"><img src="player/share2.png" width="18" height="21" border="0" alt=""></a>-->
</div><div class="cl"></div>
</li>';
$counter++;
}
}
echo "<script type=\"text/javascript\">
//<![CDATA[
var arr = eval('".json_encode($xmlsong)."');
//]]>
</script>";
?>
<?php include('preset/mid.txt');
echo '<div id="main_song" class="song">'.$albumtitlem.'</div><div class="movie">Count of Songs : '.$pcount.'</div>';
include('preset/mid2.txt');
$fstring.='</ul><input type="hidden" id="main_song_id" name="main_song_id" value="" />
</div>';
echo $fstring;
include('preset/foot.txt'); ?>
</div>