Location: PHPKode > projects > phpMUR Multi User Randomizer > tpl/andreas02/song_item.tpl.php
<?php
	?><tr class="playlistItem" id="pl_<?php echo $f['fid']; ?>" style='<?php
		if ($_SESSION['currentItem'] == $k) {
			?>color:red;<?php
		}
	?>'>
		<td style="text-align:right;"><?php echo ($k+1); ?>.</td>
		<td>
			<?php
				if (is_admin()) {
				?><div id="id3[<?php echo $f['fid']; ?>]" style="position:absolute; display:none; background: #FFF; z-index: 5; overflow:auto;"><form method="post" id="id3_form[<?php echo $f['fid']; ?>]">
					<table border="1" style="background: #FFF;">
						<tr>
							<td colspan="2"><a style='float:right;' onClick="document.getElementById('id3[<?php echo $f['fid']; ?>]').style.display='none';reverse_sync_playlist();"><img src="widget/close.png" border="0"></a><?php eent(dirname($f['filename']).'/'); ?>&nbsp;&nbsp;<br />
							<?php eent(basename($f['filename'])); ?>
							</td>
						</tr>
						<tr>
							<td>Artist</td>
							<td><input type="text" name="artist" value="<?php eent($f['artist']); ?>"></td>
						</tr>
						<tr>
							<td>Title</td>
							<td><input type="text" name="title" value="<?php eent($f['title']); ?>"></td>
						</tr>
						<tr>
							<td>Genre</td>
							<td><input type="text" name="genre" id="genre[<?php echo $f['fid']; ?>]" value="<?php eent($f['genre']); ?>"><br />
							<div id="genre_select[<?php echo $f['fid']; ?>]"></div></td>
						</tr>
						<tr>
							<td colspan="2"><input style="float:right;" type="button" value="Save" onClick="xajax_save_id3(<?php echo $f['fid']; ?>,xajax.getFormValues('id3_form[<?php echo $f['fid']; ?>]'));"><span style="color:green;" id="id3_status[<?php echo $f['fid']; ?>]"></span></td>
						</tr>
					</table>
					</form>
				</div><?php
				/*
					<a onClick="document.getElementById('id3[<?php echo $f['fid']; ?>]').style.display='block';genres.open(<?php echo $f['fid'] ?>,<?php echo $f['gid'] ?>);"><img src="widget/open.png" align="left" border="0"></a><?php
				*/
			} ?>
			<a class="pl" onClick="sendEvent('playitem',<?php echo $k; ?>);"<?php
			if ($_SESSION['currentItem'] == $k) {
				?> style="color:red;"<?php
			}
			?>><?php eent($f['artist'].' - '.$f['title']); ?></a><?php
				if (is_admin() && isset($_SESSION['seeqpod']['qued']["{$f['fid']}"]['mp3_url_id'])) {
					?> <a onClick="xajax_seeqpod_cue_download('<?php echo $_SESSION['seeqpod']['qued']["{$f['fid']}"]['mp3_url_id']; ?>');">[download]</a><?php
					?> <a onClick="xajax_seeqpod_download('<?php echo $_SESSION['seeqpod']['qued']["{$f['fid']}"]['mp3_url_id']; ?>');">[download now]</a><?php
					// eent($_SESSION['seeqpod']['qued']["{$f['fid']}"]);
					// echo $_SESSION['seeqpod']['qued']["{$f['fid']}"]['mp3_url_id'];
					// echo $_SESSION['seeqpod']['qued']["{$f['fid']}"]['id'];
				}
			?>
		</td>
		<?php
			if (!empty($f['users'])) {
				foreach ($f['users'] as $uid=>$uinfo) {
				?><td style="text-align:center;"><?php
					if ($_SESSION['qued_for']["{$f['fid']}"] == $uid) {
						?><b><?php
					}
					echo build_rating_select('playlist' , $f['fid'], $uid, $uinfo['rating'], true);
					if ($_SESSION['qued_for']["{$f['fid']}"] == $uid) {
						?></b><?php
					}
				?></td><?php
				}

			}
			?><td><?php
			if (is_admin()) {
				?><a onClick="document.getElementById('id3[<?php echo $f['fid']; ?>]').style.display='block';genres.open(<?php echo $f['fid'] ?>,<?php echo $f['gid'] ?>);"><?php
			}
			eent($f['genre']);
			if (is_admin()) {
				?></a><?php
			}
			?></td><?php
			if (is_admin()) {
				?><td><?php
				?><input type="checkbox" onClick="xajax_add_to_cd(<?php echo $f['fid']; ?>,this.checked);"<?php
					if ($f['add_to_cd'] == 1) {
						?> checked<?php
					}
				?>><?
				?></td><?php
			}
		?>
		<td><?php
			if ($f['sample_rate'] != '44100') {
				?><div onMouseOver="document.getElementById('convert[<?php echo $f['fid']; ?>]').style.display='block'" onMouseOut="document.getElementById('convert[<?php echo $f['fid']; ?>]').style.display='none'"><a onClick="xajax_force_convert(<?php echo $f['fid']; ?>);">?</a><div id="convert[<?php echo $f['fid']; ?>]" style="position:absolute; background: #FFF; display:none; border: 1px solid;"><?php eent($f['artist'].' - '.$f['title']); ?><br />Played at the wrong speed.</div></div><?php
			}
		?></td>
		<?php
			if ($_SESSION['users']) {
				?><td>
					<a class="pl" onClick="xajax_trash(<?php echo $f['fid']; ?>);"><img src="tpl/andreas02/trash.png"></a>
				</td><?php
			}
		?>
		<td><a onClick="removeItem(<?php echo $k; ?>);"><img border="0" src="widget/close.png" align="right"></a></td>
		<?php /* <td><?php eent($f['fid']); ?></td> */ ?>
	</tr><?php
?>
Return current item: phpMUR Multi User Randomizer