<?
header( 'Content-Type: text/html; charset=UTF-8' );
// Datenbankverbindung herstellen
include( "files/mysql.php" );
$db = new dbc( "files/config.php", $prefix );
$time = time();
$timeend = $time + 86400;
$sel_plan1 = mysql_query("SELECT * FROM rjpanel_sendeplan WHERE status = '1' AND datum > $time AND datum < $timeend ORDER BY datum LIMIT 4");
while($plan1 = mysql_fetch_array($sel_plan1)) {
//ausgabe erstellen
$ausgabe = '
';
//Zählen
if(strlen($ausgabe) <= '200')
{
echo"
";
}
else
{
//echo' - mit <marquee></marquee><br><br>';
echo substr($ausgabe, 0, 200);
echo'';
}
//Sendung
echo'<div style="
background-image: url(tag/send.png);
background-repeat: no-repeat;
width: 310px;
height: 51px;
margin: auto;
">
<table><tr>
<td style="width:48px;" valign="top">
<div style="">
<div style="margin-top: -12px;">
<div style="
background-image: url(http://www.habbo.de/habbo-imaging/avatarimage?user='.$plan1[user].'&direction=2&head_direction=3&gesture=sml&size=s);
width: 33px;
height: 56px;
">
</div></div>
</td>
<td style="width:203px;" valign="top">
<div style="padding-top: 10px;">
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 10px; font-weight: bold; color: #A0A0A0;">
'.$plan1[user].'
</div>
<div style="font-family: Verdana, Geneva, sans-serif; font-size: 9px; padding-top: 2px; font-weight: bold; color: #A0A0A0;">
<i>'.$plan1[thema].'</i>
</div>
</div>
</td>
<td style="width:59px;" valign="top">
<div style="padding-top: 4px; padding-left: 7px; font-family: Verdana, Geneva, sans-serif; font-size: 11px; color: white; text-shadow: 1px 1px 0px black;">
'.date('H', $plan1[datum]).' Uhr
</td>
</tr></table>
</div>';
}
?>