Location: PHPKode > projects > phpMUR Multi User Randomizer > tpl/andreas02/trash.tpl.php
<div class='trash_title' id="trash_title">
<input type="button" onClick="document.body.removeChild(document.getElementById('trashSong'));" value="X" style='float:right;'>
<h3 style='display:inline;'>Trash - <?php eent($args['artist'].' - '.$args['title']); ?></h3>
</div>
<div style='overflow: auto; width: 100%; background: #FFF;' id="trash_contents">
<form method="post" id="trash_song_info">
<input type="hidden" name="fid" value="<?php echo $args['fid']; ?>">
<?php
	if (is_admin()) {
		eent(dirname($args['filename']));
		?><br /><?php
		eent(basename($args['filename']));
		?><br /><?php
		$reasons = array(
			'It Sucks',
			'Duplicate',
			'Wrong Speed',
			'Clicks and Chirps'
		);
		?>
		<div id="admin_confirm" style='display:none;'><br />
		<table border="0">
			<tr>
				<td>Admin Username:</td>
				<td>
					<?php
					$admins = array();
					foreach ($_SESSION['users'] as $uid=>$uinfo) {
						if ($uinfo['admin']) {
							$admins["$uid"] = $uinfo['uname'];
						}
					}
					echo $html->select(
						array('name' => 'admin[uid]'),
						$admins,
						$_SESSION['remember_trash']['uid']);
					?>
				</td>
			</tr>
			<tr>
				<td>Admin Password:</td>
				<td><input name="admin[pword]" type="password" value="<?php eent($_SESSION['remember_trash']['pword']); ?>"></td>
			</tr>
			<tr>
				<td>Remember:</td>
				<td><?php
				echo $html->checkbox(
					array(
						'name' => 'admin[remember]',
						'id' => 'admin[remember]'
					),
					$_SESSION['remember_trash']['enabled'],
					'Remember admin info (security risk)',
					$label = true,
					$orient = 'right'
				);
				?></td>
			</tr>
			<tr>
				<td>Reason:</td>
				<td><input name="admin[reason]" id="admin[reason]" type="text"></td>
			</tr>

			<tr>
				<td></td>
				<td>
					<?php
					foreach ($reasons as $r) {
						?><a onClick="document.getElementById('admin[reason]').value='<?php eent($r); ?>';"><?php eent($r); ?></a><br />
					<?php
					}
					?>
				</td>
			</tr>
		</table>
		</div>
		<?php
	}
	echo $html->checkbox(
		array(
			'name' => 'delete_from_hd',
			'id' => 'delete_from_hd',
			'onClick' => 'if (this.checked == true) { document.getElementById("admin_confirm").style.display = "block"; } else { document.getElementById("admin_confirm").style.display = "none"; }'
		),
		true,
		'Delete from hard drive?',
		$label = true,
		$orient = 'right'
	);
	?><h3>Rate 0</h3><?php
	foreach ($_SESSION['users'] as $uid=>$uinfo) {
		echo $html->checkbox(
			array(
				'name' => 'zero['.$uid.']',
				'id' => 'zero['.$uid.']'
			),
			false,
			$uinfo['uname'],
			$label = true,
			$orient = 'left'),'<br />';
	}
?>
<center><input type="button" onClick="xajax_confirmed_trash(xajax.getFormValues('trash_song_info'));" value='Trash It!'>
<input type="button" onClick="document.body.removeChild(document.getElementById('trashSong'));" value='Cancel'></center>
</form>
</div>
Return current item: phpMUR Multi User Randomizer