L
Lukasz
Hallo ich erweitere mein Admin Menü! Achtet bitte auf die ersten Zeilen.
Ich lese einen Wert aus, und möchte je nach Wert eine Variable den Wert online oder offline zuweisen.
In diesem fall $statusa="online"
Ziemlich weit unten möchte ich ein Bild ausgeben aus images/$statusa.gif
Aber er weis nicht was $statusa ist, wie könnte ich ihm das beibringen?
Danke!
Ich lese einen Wert aus, und möchte je nach Wert eine Variable den Wert online oder offline zuweisen.
In diesem fall $statusa="online"
Ziemlich weit unten möchte ich ein Bild ausgeben aus images/$statusa.gif
Aber er weis nicht was $statusa ist, wie könnte ich ihm das beibringen?
PHP:
?php
$lines1 = file("ceck/forumstat.txt");
{
IF ("$lines1[0]" == "0") { $statusa = 'offline'; } else { $statusa = 'online';}
}
$site_body.='
<table class=standard cellspacing=1 cellpadding=4 width="100%">
<tr>
<td class="heads" colspan="2">Module online/offline schalten.</td>
</tr>
</table>
<table cellspacing="1" cellpadding="2" width="100%">
<tr>
<td align="right"><font class="small">Hiermit können Sie einzelne Seiten oflline schalten. Erweiterung (c)Lukasz Ceglarski 2004<br /><br /></font></td>
</tr>
</table>
<table class="standard" cellspacing="1" cellpadding="4" width="100%">
<tr>
<td class="heads" colspan="4">Steuerbare Module:</td>
</tr>
<tr>
<td class="highlight" width="25%"><font class="small">Modul<font></td>
<td class="highlight" width="50%"><font class="small">Kennung<font></td>
<td class="highlight" width="20%" align="center"><font class="small"><center>do<font></td>
<td class="highlight" width="5%" align="center"><font class="small">Status<font></td>
</tr>
<tr>
<td class="nav" width="25%"><font class="small">Forum<font></td>
<td class="nav" width="50%"><font class="small"><a href="http://lukasz.nerdcamp.net/h2/include.php?path=forum/main.php">http://lukasz.nerdcamp.net/h2/include.php?path=forum/main.php</a><font></td>
<td class="nav" width="20%"><font class="small">Modul<font></td>
<td class="nav" width="5%"><font class="small"><img src=images/$statusa.gif border=0><font></td>
<td>
</table>'
?>
Danke!