ich hab ein problem mit einem meiner scripte. es ist ein kalender und der schaltet sich automatisch um, also von monat zu monat. das klappt auch einwandfrei (hab ich getestet in dem ich die uhr meines pc umgestellt habe), bloß befindet sich oben drüber noch eine auswahl aller links so das der besucher auch zu den anderen monaten springen kann, und das klappt bei mir nicht. problem: ich bräuchte es wenn es möglich wäre bis heute abend, soll heute noch online. danke.
Code
<body>
<table width="100%" height="18" bgcolor="#404070" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="middle">
<font class="seitentitel">[b]Terminplan 06/07[/b]</font>
</td>
</tr>
</table>
<div align="center">
</p>
<?
$timestamp = time();
$date = date("m.Y",$timestamp);
if($date == "08.2006" OR $month == "2006_08") { $file2006 = "2006_08.php"; }
if($date == "09.2006" OR $month == "2006_09") { $file2006 = "2006_09.php"; }
if($date == "10.2006" OR $month == "2006_10") { $file2006 = "2006_10.php"; }
if($date == "11.2006" OR $month == "2006_11") { $file2006 = "2006_11.php"; }
if($date == "12.2006" OR $month == "2006_12") { $file2006 = "2006_12.php"; }
if($date == "01.2007" OR $month == "2007_01") { $file2007 = "2007_01.php"; }
if($date == "02.2007" OR $month == "2007_02") { $file2007 = "2007_02.php"; }
if($date == "03.2007" OR $month == "2007_03") { $file2007 = "2007_03.php"; }
if($date == "04.2007" OR $month == "2007_04") { $file2007 = "2007_04.php"; }
if($date == "05.2007" OR $month == "2007_05") { $file2007 = "2007_05.php"; }
if($date == "06.2007" OR $month == "2007_06") { $file2007 = "2007_06.php"; }
if($date == "07.2007" OR $month == "2007_07") { $file2007 = "2007_07.php"; }
if($date == "08.2007" OR $month == "2007_08") { $file2007 = "2007_08.php"; }
if(empty($page))
{
echo "
<table width='200' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td align='center'>[url='index.php?year=2006']Jahr 2006[/url]</td>
<td align='center'>[url='index.php?year=2007']Jahr 2007[/url]</td>
</tr>
</table>
<p style='margin-top: 20'>
";
}
if($year == "2006" OR isset($file2006))
{
unset($file2007);
echo "
<table width='600' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td align='center'>[url='index.php?month=2006_08']August '06[/url]</td>
<td align='center'>[url='index.php?month=2006_09']September '06[/url]</td>
<td align='center'>[url='index.php?month=2006_10']Oktober '06[/url]</td>
<td align='center'>[url='index.php?month=2006_11']November '06[/url]</td>
<td align='center'>[url='index.php?month=2006_12']Dezember '06[/url]</td>
</tr>
</table>
<p style='margin-top: 40'>
";
if(isset($file2006))
{
include($file2006);
}
}
if($year == "2007" OR isset($file2007))
{
unset($file2006);
echo "
<table width='600' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td align='center' width='16%'>[url='index.php?month=2007_01']Januar '07[/url]</td>
<td align='center' width='16%'>[url='index.php?month=2007_02']Februar '07[/url]</td>
<td align='center' width='16%'>[url='index.php?month=2007_03']März '07[/url]</td>
<td align='center' width='16%'>[url='index.php?month=2007_04']April '07[/url]</td>
<td width='36%'></td>
</tr>
</table>
<p style='margin-top: 5'>
<table width='600' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='36%'></td>
<td align='center' width='16%'>[url='index.php?month=2007_05']Mai '07[/url]</td>
<td align='center' width='16%'>[url='index.php?month=2007_06']Juni '07[/url]</td>
<td align='center' width='16%'>[url='index.php?month=2007_07']Juli '07[/url]</td>
<td align='center' width='16%'>[url='index.php?month=2007_08']August '07[/url]</td>
</tr>
</table>
<p style='margin-top: 40'>
";
if(isset($file2007))
{
include($file2007);
}
}
?>
</p>
</div>
</body>
</html>
Alles anzeigen