Exemple #1
0
</h2>
		<ul>
		<!--<span style="font-size:8pt;">(<a href="#" onclick="parent.IframeGoToPage( 'allsongs.php' );return false;" title="Click to go back to all songs.">Back to All Songs</a>)</span>-->
		<?php 
    mysql_query("set names 'utf8'");
    $trackselectsql = "SELECT kx.id as `trackid`, kx.keycode as `trackkeycode`, ti.trackname as `trackname`, " . "ti.artist as `trackartist`, ti.album as `trackalbum` FROM keyxref kx " . "INNER JOIN trackinfo ti ON ti.id = kx.id " . "WHERE kx.ownerid = {$ownerid} ";
    $result = mysql_query($trackselectsql);
    $num_rows = mysql_num_rows($result);
    if ($num_rows >= 1) {
        while ($row = mysql_fetch_array($result)) {
            $trackid = $row['trackid'];
            $trackkeycode = $row['trackkeycode'];
            $trackname = $row['trackname'];
            $trackartist = $row['trackartist'];
            $trackalbum = $row['trackalbum'];
            echo "\r\n<li data-keycode='{$trackkeycode}' data-title='{$trackname}' data-trackid='{$trackid}' data-artist='{$trackartist}' data-album='{$trackalbum}' ondblclick='CallParentSetTrackToPlay(this);ClearSelection();'><div class='leftinfo'>" . "<div class='track-artwork-frame'><img src='art/" . FetchAlbumArtPath($trackalbum) . "' class='albumart-small' /></div>" . "<div class='track-title'>{$trackname}</div>" . "<div class='track-meta'>{$trackartist} &middot; <a href='album/{$trackalbum}'>{$trackalbum}</a></div></div><div class='rightinfo'>" . "<div class='playthis-button' data-keycode='{$trackkeycode}' data-title='{$trackname}' data-trackid='{$trackid}' data-artist='{$trackartist}' data-album='{$trackalbum}' onclick='CallParentSetTrackToPlay(this);'>+</div>" . "</div>" . "</li>";
        }
    } else {
        // no results? maybe write that out...
    }
    ?>
		</ul>
		<br style="clear:both;" />
		<?php 
    include 'sp-footer.php';
    ?>
	</div>
</div>
<br style="clear:both;" />
</body>
</html>
Exemple #2
0
	background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#fafafa), to(#ededed));background-image:-webkit-linear-gradient(top, #fafafa, #ededed);background-image:linear-gradient(top, #fafafa, #ededed);background-repeat:repeat-x; }
.sp-function-btn:hover { background-image:none; background-color:white; }
</style>
</head>

<body class="subpage-body">
<div id="subpage-wrapper">
	<div id="albumresultlist">
		<?php 
    include 'sp-header.php';
    ?>
		<div id="np-wrapper">
			<div class="sp-np-left">
				<div class="sp-track-artwork-frame">
					<img src="../../art/<?php 
    echo FetchAlbumArtPath($albumname);
    ?>
" class="albumart-large" /> 
				</div>
			</div>
			<div class="sp-np-right">
				<div class="sp-track-title"><?php 
    echo $albumname;
    ?>
</div>
				<div class="sp-track-meta">
					Album by <a id="sp-track-artist" href="../artist/<?php 
    echo $artist;
    ?>
"><?php 
    echo $artist;