<?php
opentable("Dain7 topas");
$num = 40;
$result = dbquery("SELECT * FROM ".$db_prefix."charts ORDER BY `vote` DESC LIMIT ".$num."");
$query = mysql_num_rows($result);
if (iMEMBER) {
if ($query == $num) {
echo "<table width='100%' class='tbl'>
<tr>
<td class='tbl2'><b>".$locale['ctbs003']."</b></td>
<td class='tbl2'><b>".$locale['ctbs004']."</td></b>
<td class='tbl2'><b>".$locale['ctbs005']."</td></b>
<td class='tbl2'><b><center>".$locale['ctbs006']."</center></td></b>
<td class='tbl2'><center><b>".$locale['ctbs007']."</center></td></b>
</tr>";
if (isset($_COOKIE['fusion_songs'])) {
$disable = "enable";
}
else
{
$disable = "enable";
}
$x = 0;
while ($data = dbarray($result)) {
$x++;
$votes = $data['vote'];
echo "<form action='".$PHP_SELF."' method='post'>
<input type='hidden' name='art_id' value='".$data['id']."'>
<input type='hidden' name='votes' value='".$data['vote']."'>
<tr>
<td class='tbl2'>".$x.".</td>
<td class='tbl2'>".$data['artist']."</td>
<td class='tbl2'><a href=\"../../mp3/".$data['titel'].".mp3\">".$data['titel']."</a></td>
<td class='tbl2'><center>".$votes."</center></td>
<td class='tbl2'><center><input type='submit' value='".$locale['ctbs007']."' name='send' class='button' $disable></center></td>
</form>
</tr>";
}
echo "</table>";
}else{
echo $locale['ctbs029'];
}
}else{
redirect("../../news.php");
}
closetable();
?>