TimeCapsule/tagada/jukebox/index.php

165 lines
5.9 KiB
PHP
Raw Normal View History

2023-07-31 21:21:28 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>TAGADA's JuKeBoX</title>
<script type="text/javascript" src="ajax.js"></script>
<script type="text/javascript" src="etoiles.js"></script>
<link href="design.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
mysql_connect('mysql5-2.bdb', 'crystalynet', 'pentium4');
mysql_select_db('crystalynet');
mysql_query('SET NAMES UTF8');
$reponse = mysql_query('SELECT * FROM mp3 ORDER BY RAND() LIMIT 10');
$award = mysql_fetch_array(mysql_query('SELECT * FROM mp3 ORDER BY nb_vote DESC LIMIT 1'));
$last = mysql_fetch_array(mysql_query('SELECT * FROM mp3 ORDER BY id DESC LIMIT 1'));
$nb_mp3 = mysql_fetch_row(mysql_query('SELECT COUNT(*) FROM mp3'));
$tab = array();
while ($donnees = mysql_fetch_array($reponse)){
$tab = array_merge_recursive($tab, $donnees);
}
mysql_close();
?>
<table>
<tr id="titre">
<td colspan="3">
<span style="color: aqua;">JuKeBoX</span>&nbsp;
<span style="color: fuchsia;">TAGADA</span>
</td>
</tr>
<tr>
<td><a href="upload.html" style="color: red;">Envoyez VOS mp3</a></td>
<td><a href="#" onclick="window.open('mp3', '', '');" style="color: yellow;">Repository</a></td>
<td><a href="mailto:xefir@crystalyx.net?subject=TAGADA's JuKeBoX">Contact</a></td>
</tr>
<tr>
<td colspan="3" id="lecteur">
<object data="dewplayer-multi.swf?son=
<?php
for ($i=0; $i < 10; $i++) {
echo 'generer.php?id='. $tab['id'][$i] .'|';
}
?>
&amp;autostart=1" type="application/x-shockwave-flash" width="240" height="20">
<param name="movie" value="dewplayer-multi.swf?son=
<?php
for ($i=0; $i < 10; $i++) {
echo 'generer.php?id='. $tab['id'][$i] .'|';
}
?>
&amp;autostart=1" />
<param name="wmode" value="transparent" />
</object>
</td>
</tr>
<tr id="avoter">
<td colspan="3" class="export">Merci d'avoir voté !</td>
</tr>
</table>
<div><br /></div>
<table>
<tr class="playlist">
<td colspan="3">PlayList</td>
</tr>
<?php
for ($i=0; $i < 10; $i++) {
$nb_caract = strlen($tab['titre'][$i]);
echo '<tr><td class="acolspan"><a href="#" title="'. $tab['titre'][$i] .'" onclick="charge_mp3('. $tab['id'][$i] .');">';
if ($nb_caract > 25) {
echo substr($tab['titre'][$i], 0, 25). ' ...';
}
else {
echo $tab['titre'][$i];
}
echo '</a></td><td class="avoter"><a href="#" title="Votez !" onclick="vote('. $tab['id'][$i] .');">
<img src="imgs/icone_aime.gif" alt="" />&nbsp;'. $tab['nb_vote'][$i] .'&nbsp;</a></td>
<td class="ddl"><img title="Télécharger '. $tab['titre'][$i] .'" onclick="window.open(\'generer.php?id='. $tab['id'][$i] .'\', \'\', \'\');" src="imgs/downloadicon.gif" alt="" /></td></tr>';
}
?>
<tr>
<td colspan="3"><a href="index.php" style="color: purple;">Changer de PlayList</a></td>
</tr>
</table>
<div><br /></div>
<table>
<tr class="playlist">
<td colspan="4">Stats</td>
</tr>
<tr>
<td class="export">Meilleure :</td>
<td><a href="#" title="<?php echo $award['titre']; ?>" onclick="charge_mp3(<?php echo $award['id']; ?>);"><?php echo substr($award['titre'], 0, 20); ?> ...</a></td>
<td class="ddl"><img title="Télécharger <?php echo $award['titre']; ?>" onclick="window.open('generer.php?id=<?php echo $award['id']; ?>', '', '');" src="imgs/downloadicon.gif" alt="" /></td>
</tr>
<tr>
<td class="export">Dernière :</td>
<td><a href="#" title="<?php echo $last['titre']; ?>" onclick="charge_mp3(<?php echo $last['id']; ?>);"><?php echo substr($last['titre'], 0, 20); ?> ...</a></td>
<td class="ddl"><img title="Télécharger <?php echo $last['titre']; ?>" onclick="window.open('generer.php?id=<?php echo $last['id']; ?>', '', '');" src="imgs/downloadicon.gif" alt="" /></td>
</tr>
<tr>
<td colspan="3" style="color: lime;">Total : <span style="font-size: small;"><?php echo $nb_mp3[0]; ?></span> mp3 !</td>
</tr>
</table>
<div><br /></div>
<table>
<tr class="playlist">
<td>Recherche</td>
</tr>
<tr>
<td>
<form method="get" action="search.php" style="margin: 0px;">
<div>
<input id="recherche" name="recherche" type="text" size="40" />
<input style="font-size: 10px; height: 18px;" type="submit" value="OK" />
</div>
</form>
</td>
</tr>
</table>
<div><br /></div>
<table>
<tr class="playlist">
<td colspan="2">Exporter</td>
</tr>
<tr>
<td class="export">Sur un forum :</td>
<td>
<input id="export_forum" name="export_forum" size="25" readonly="readonly" type="text" onclick="select();" value="[flash(200,20)]http://tagada.crystalyx.net/jukebox/dewplayer-multi.swf?son=http://tagada.crystalyx.net/jukebox/generer.php?id=<?php echo $tab['id'][0]; ?>[/flash]" />
</td>
</tr>
<tr>
<td class="export">Sur une page web :</td>
<td>
<input id="export_site" name="export_site" size="25" readonly="readonly" type="text" onclick="select();" value='&lt;object data="http://tagada.crystalyx.net/jukebox/dewplayer-multi.swf?son=http://tagada.crystalyx.net/jukebox/generer.php?id=<?php echo $tab['id'][0]; ?>" type="application/x-shockwave-flash" width="200" height="20"&gt;&lt;param name="movie" value="http://tagada.crystalyx.net/jukebox/dewplayer-multi.swf?son=http://tagada.crystalyx.net/jukebox/generer.php?id=<?php echo $tab['id'][0]; ?>" /&gt;&lt;param name="wmode" value="transparent" /&gt;&lt;/object&gt;' />
</td>
</tr>
</table>
<div><br /></div>
<p>
<span id="w3c"><a href="#" onclick="window.open('http://www.dilandau.com/', '', '');"><img src="imgs/dilandau.gif" alt="" height="30" width="110" /></a><br />
<a href="#" onclick="window.open('http://validator.w3.org/check?uri=referer', '', '');"><img src="imgs/xhtml1_1.gif" alt="Valid XHTML 1.1" /></a></span>
<a id="fraise" href="#" onclick="window.open('http://tagada.super-forum.net/', '', '');" title="Forum TAGADA"><img src="imgs/fraises007.gif" alt="" /></a>
</p>
</body>
</html>