var P : TPlayer; var Song : TSongInfo; var OldTime : DateTime; OldTime := Now; PAL.Loop := True; PAL.WaitForTime('+00:30:00'); P := SoundFX; if P <> nil then If (OldTime>T['07:00:00']) AND (OldTime<=T['00:00:00']) Then begin Song := CAT['Station IDs (All)'].ChooseSong(smRandom,NoRules); if Song <> nil then begin P.QueueSong(Song); // P.Play; end; end;
If (OldTime>T['00:00:00']) AND (OldTime<=T['07:00:00']) Then
$db->open("SELECT * FROM songlist WHERE artist = '". $song["artist"]."' OR genre = '".$song["genre"]."' "); while($song = $db->row()){ echo $song["artist"]; echo "тратата"; echo $song["title"]; }
function PutSongRow(&$song) { global $rc, $showpic, $darkrow, $lightrow, $showSiteRow, $showBuyRow; PrepareSong($song); $rc++; $bgcolor = $darkrow; if(($rc % 2)==0) $bgcolor = $lightrow; ?> <tr bgcolor="<? echo $bgcolor; ?>"> <td align="left" colspan="5"> <font size="3" color="#003366"><small><a href="/song=<? echo $song["songid"]; ?>" title='Информация о треке <? echo $song["combine"]; ?> скачать бесплатно и без регистрации'><? echo $song["combine"]; ?></a></small></font></td> <? }//PutSongRow /* ## ===================================================================== ## */ ?> <? require("config.php"); $db->open("SELECT * FROM songlist WHERE ID = $songid AND (songtype='S' OR songtype='V' OR songtype='C') AND (status=0)"); $song = $db->row(); $db->open("SELECT * FROM songlist WHERE artist = '". $song["artist"]."' OR genre = '".$song["genre"]."'AND (songtype='S' OR songtype='V' OR songtype='C') AND (status=0) ORDER BY RAND() LIMIT 7 "); PrepareSong($song); ?>
<tr bgcolor="#002E5B"> <td align="right" colspan="5" align="center" height="20" background="images/wmenu.gif"> <p align="center"><font color="#FFFFFF" size="2"><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Тебе это понравится!</font></b></font> </td> </tr> <?PHP $rc=0; while($song = $db->row()){ echo $song["artist"]; echo "-"; echo $song["title"]; PutSongRow($song); } ?>
while($song = $db->row()){ PutSongRow($song); }