Script pour affichage de nom d'émission radio
Résolu
amine_tn
Messages postés
20
Statut
Membre
-
puylouradio.fr -
puylouradio.fr -
Bonjour,
Je cherche un script pour afficher le nom d'une émission radio en cours ainsi que son intervalle de temps et son image.
Exemple: http://img11.hostingpics.net/pics/974871radio.png
Cordialement.
Je cherche un script pour afficher le nom d'une émission radio en cours ainsi que son intervalle de temps et son image.
Exemple: http://img11.hostingpics.net/pics/974871radio.png
Cordialement.
A voir également:
- Exemple de synopsis d'une émission radio
- Tableau word exemple - Guide
- Exemple de code ascii - Guide
- Url exemple - Guide
- Comment regarder une émission en replay - Guide
- Station de radio - Télécharger - Médias et Actualité
5 réponses
Re,
J'ai trouvé mon code <3
Je le partage avec vous :)
J'ai trouvé mon code <3
Je le partage avec vous :)
<?php
$h = date('G'); //set variable $h to the hour of the day
$d = date('w'); //set variable $d to the day of the week.
$year = date('Y'); //set variable $year to the current year
//G is the date key for hours in 24 format (not 12), with no leading 0s, like 02.
// Adjust 2 hour offset for MST below.
$h = $h+1;
switch ($d) {
case 0: //sunday
if ($h >= 6 && $h < 9) $img = 'http://static.php.net/www.php.net/images/php.gif';
if ($h >= 9 && $h < 12) $img = 'http://static.php.net/www.php.net/images/php.gif';
if ($h >= 12 && $h < 15) $img = 'http://static.php.net/www.php.net/images/php.gif';
if ($h >= 15 && $h < 18) $img = 'http://static.php.net/www.php.net/images/php.gif';
if ($h >= 18 && $h < 21) $img = 'http://static.php.net/www.php.net/images/php.gif';
if ($h >= 21 && $h < 24) $img = 'http://www.scriptsearch.com/img/logo.gif';
break;
case 1: // Monday
if ($h >= 6 && $h < 9) $dj = $JacodeWet;
if ($h >= 9 && $h < 12) $dj = $SusanBooysen;
if ($h >= 12 && $h < 15) $dj = $JacodeWet;
if ($h >= 15 && $h < 18) $dj = $SusanBooysen;
if ($h >= 18 && $h < 21) $dj = $JacodeWet;
if ($h >= 21 && $h < 24) $dj = $SusanBooysen;
break;
case 2: //Tuesday
if ($h >= 6 && $h < 9) $dj = $JacodeWet;
if ($h >= 9 && $h < 12) $dj = $SusanBooysen;
if ($h >= 12 && $h < 15) $dj = $JacodeWet;
if ($h >= 15 && $h < 18) $dj = $SusanBooysen;
if ($h >= 18 && $h < 21) $dj = $JacodeWet;
if ($h >= 21 && $h < 24) $dj = $SusanBooysen;
break;
case 3: // Wednesday
if ($h >= 6 && $h < 9) $dj = $JacodeWet;
if ($h >= 9 && $h < 12) $dj = $SusanBooysen;
if ($h >= 12 && $h < 15) $dj = $JacodeWet;
if ($h >= 15 && $h < 18) $dj = $SusanBooysen;
if ($h >= 18 && $h < 21) $dj = $JacodeWet;
if ($h >= 21 && $h < 24) $dj = $SusanBooysen;
break;
case 4: // Thursday
if ($h >= 6 && $h < 9) $dj = $JacodeWet;
if ($h >= 9 && $h < 12) $dj = $SusanBooysen;
if ($h >= 12 && $h < 15) $dj = $JacodeWet;
if ($h >= 15 && $h < 18) $dj = $SusanBooysen;
if ($h >= 18 && $h < 21) $dj = $JacodeWet;
if ($h >= 21 && $h < 24) $dj = $SusanBooysen;
break;
case 5: // Friday
if ($h >= 6 && $h < 9) $dj = $JacodeWet;
if ($h >= 9 && $h < 12) $dj = $SusanBooysen;
if ($h >= 12 && $h < 15) $dj = $JacodeWet;
if ($h >= 15 && $h < 18) $dj = $SusanBooysen;
if ($h >= 18 && $h < 21) $dj = $JacodeWet;
if ($h >= 21 && $h < 24) $dj = $SusanBooysen;
break;
case 6: // Saturday
if ($h >= 6 && $h < 9) $dj = $JacodeWet;
if ($h >= 9 && $h < 12) $dj = $SusanBooysen;
if ($h >= 12 && $h < 15) $dj = $JacodeWet;
if ($h >= 15 && $h < 18) $dj = $SusanBooysen;
if ($h >= 18 && $h < 21) $dj = $JacodeWet;
if ($h >= 21 && $h < 24) $dj = $SusanBooysen;
break;
default:
// no weekday found, must be a bogus call
}
?>
puylouradio.fr
Ton code ne fonctionne pas