PHP Code:
<table id="footer" width="98%" align="center" cellpadding="<?=$tpadding?>" cellspacing="<?=$tspacing?>">
<tr>
<th align="center" height="28" background="images/bg_tt_2.gif">
<B><font color=#cf2e03 size=2>Bài hát ngẫu nhiên</font></B></th>
</tr>
<?
$top_kind = file("vars/kind_id.var"); $top_kind = explode("\t",$top_kind[0]);
$kind = mt_rand(1,$top_kind[0]);
$top_num = file("songs/$kind.id"); $top_num = explode("\t",$top_num[0]);
$song_id = mt_rand(1,$top_num[0]);
if (!$song_data = get_song_data($kind,$song_id)) {
$kind = "1";
$song_id = "1";
$song_data = get_song_data($kind,$song_id);
}
else $song_data = get_song_data($kind,$song_id);
if ($song_data['singer'] != "") $singer=$song_data['singer'];
else $singer= "</a>Không biết";
if ($song_data['file_type'] == 1 ) {
?><tr align=center><td class="td1">
<embed type="application/x-mplayer2" src="<?=$song_data[url]?>" ShowStatusBar=1 width="300" height="300" autostart=1 Volume=0></embed>
</td>
</tr>
<?
}?>
<?
if ($song_data['file_type'] == 2 ) {
?><tr align=center><td class="td1">
<embed type="application/x-mplayer2" src="<?=$song_data[url]?>" ShowStatusBar=1 width="300" height="67" autostart=1 Volume=0></embed>
</td>
</tr>
<?
}?>
<?
if ($song_data['file_type'] == 3 ) {
?><tr align=center><td class="td1">
<object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="300"><param name=movie value="<?=$song_data['url']?>">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
<param name="backgroundcolor" value="transparent">
<embed src="<?=$song_data['url']?>" width="300" height="300" play="true" loop="true" quality="high" backgroundcolor="transparent"></embed></object>
</td>
</tr>
<?
}?>
<?
if ($song_data['file_type'] == 4 ) {
?><tr align=center><td class="td1">
<object name="rpcontrol" width=300 height=300 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">
<param name="controls" value="ImageWindow,StatusBar,ControlPanel">
<param name="autostart" value="false">
<param name="src" value="<?=$song_data['url']?>"></object>
</td>
</tr>
<?
}?>
<tr><td class="td1" align="center"><span class="norm"> Ca Khúc : <a title="Nghe ca khúc" class="link2" href=?act=play&kind=<?=$kind?>&song_id=<?=$song_data['id']?>><b><?=$song_data['name']?></b></a> - Trình bày : </span><a class="link2" title="Xem các ca khúc khác của ca sĩ" href="?act=search&search=yes&kind=<?=$kind?>&searchmethod=singer&searched=<?=$singer?>"><b><?=$singer?></b></a></td></tr>
</table>
<br>
code như vậy thì có thiếu cái nào ko
anh mắt đêm fix cái