Habe diesen Kalender eingebaut und funktioniert soweit einwandfrei!
Möchte jedoch das beim anklicken der einzelnen Tage sich der link jeweils in einem neuem Fenster öffnet! Wie und wo muß ich dies ändern?
Zum Kalender: Weihnachtskalender
Gruß Tifker

Code: Alles auswählen
http://de.youtube.com/watch?v=l_s-7Gfw150 TARGET=_blank
Code: Alles auswählen
<a href="http://de.youtube.com/watch?v=l_s-7Gfw150" TARGET=_blank>Video</a>
echo "<TD align=center height='70'><a href='awswcalload.php?id=$day' class='gensmall'><font size='5' color='$awswcolor' face='Arial Black'>$day</font></a></TD>";
}
else
{
echo "<TD height='70'> </TD>";
}
}
echo "</TR>";
for ($i = 8; $i <= 42; $i ++)
{
echo "<TR>";
$n = $i + 7;
for ($i; $i < $n; $i++)
{
$day = $i - $offset;
if ($day < 29)
{
echo "<TD align=center height='70'><a href='awswcalload.php?id=$day' class='gensmall'><font size='5' color='$awswcolor' face='Arial Black'>$day</font></a></TD>";
}
else
{
$current = mktime (12, 0, 0, $month, $day, $year);
$date = getdate ($current);
if ($date[mon] == $month)
{
echo "<TD align=center height='70'><a href='awswcalload.php?id=$day' class='gensmall'><font size='5' color='$awswcolor' face='Arial Black'>$date[mday]</font></a></TD>";
echo "<TD align=center height='70'><a href='awswcalload.php?id=$day' target='_blank' class='gensmall'><font size='5' color='$awswcolor' face='Arial Black'>$day</font></a></TD>";
}
else
{
echo "<TD height='70'> </TD>";
}
}
echo "</TR>";
for ($i = 8; $i <= 42; $i ++)
{
echo "<TR>";
$n = $i + 7;
for ($i; $i < $n; $i++)
{
$day = $i - $offset;
if ($day < 29)
{
echo "<TD align=center height='70'><a href='awswcalload.php?id=$day' target='_blank' class='gensmall'><font size='5' color='$awswcolor' face='Arial Black'>$day</font></a></TD>";
}
else
{
$current = mktime (12, 0, 0, $month, $day, $year);
$date = getdate ($current);
if ($date[mon] == $month)
{
echo "<TD align=center height='70'><a href='awswcalload.php?id=$day' target='_blank' class='gensmall'><font size='5' color='$awswcolor' face='Arial Black'>$date[mday]</font></a></TD>";
Code: Alles auswählen
<?php
/***************************************************************************
* awswcal.php
* ----------------
* begin : Monday, Dec 26, 2003
* copyright : (C) 2003 AWSW
* url : http://www.awsw.de
*
* $Id: awswcal.php,v 1.00 2003/12/26 12:00:00 AWSW Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
define('SHOW_ONLINE', true);
$page_title = "AWSW Calendar";
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
function ShowMonth ($month, $year)
{
// original calendar function by http://www.cgidienst.de
$awswcolor = "FFFFFF";
$months = array ();
$months[0] = 'Dezember';
$months[1] = 'Januar';
$months[2] = 'Februar';
$months[3] = 'März';
$months[4] = 'April';
$months[5] = 'Mai';
$months[6] = 'Juni';
$months[7] = 'Juli';
$months[8] = 'August';
$months[9] = 'September';
$months[10] = 'Oktober';
$months[11] = 'November';
$months[12] = 'Dezember';
$days = array ();
$days[0] = 'So.';
$days[1] = 'Mo.';
$days[2] = 'Di.';
$days[3] = 'Mi.';
$days[4] = 'Do.';
$days[5] = 'Fr.';
$days[6] = 'Sa.';
$days[7] = 'So.';
$now = time ();
$today = getdate ($now);
if (! $month)
{
$month = $today[mon];
}
if (! $year)
{
$year = $today[year];
}
$data[month] = $month;
$data[year] = $year;
echo '<center><table border="1" style="background-image:url(./images/awswcal/awswsnow_23122002.jpg)" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="640">';
echo '<TR bgcolor=""><TH colspan="7" align="center">';
echo "$months[$month] $year";
echo '</TH></TR>';
echo '<TR bgcolor="">';
for ($i = 1; $i <= 7; $i ++)
{
echo "<TH>$days[$i]</TH>";
}
echo '</TR>';
$first = mktime (12, 0, 0, $month, 1, $year);
$date = getdate ($first);
if ($date[wday] == 0) { $date[wday] = 7; }
$offset = $date[wday] - 1;
echo "<TR>";
for ($i = 1; $i <= 7; $i ++)
{
if ($i > $offset)
{
$day = $i - $offset;
echo "<TD align=center height='70'><a href='awswcalload.php?id=$day' class='gensmall'><font size='5' color='$awswcolor' face='Arial Black'>$day</font></a></TD>";
}
else
{
echo "<TD height='70'> </TD>";
}
}
echo "</TR>";
for ($i = 8; $i <= 42; $i ++)
{
echo "<TR>";
$n = $i + 7;
for ($i; $i < $n; $i++)
{
$day = $i - $offset;
if ($day < 29)
{
echo "<TD align=center height='70'><a href='awswcalload.php?id=$day' class='gensmall'><font size='5' color='$awswcolor' face='Arial Black'>$day</font></a></TD>";
}
else
{
$current = mktime (12, 0, 0, $month, $day, $year);
$date = getdate ($current);
if ($date[mon] == $month)
{
echo "<TD align=center height='70'><a href='awswcalload.php?id=$day' class='gensmall'><font size='5' color='$awswcolor' face='Arial Black'>$date[mday]</font></a></TD>";
}
else
{
echo "<TD></TD>";
}
}
}
$i --;
echo "</TR>";
}
echo '</TABLE></center>';
$data[month] = $month;
$data[year] = $year;
return $data;
}
ShowMonth (0,0);
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Code: Alles auswählen
<a href='awswcalload.php?id=$day' class='gensmall'>
Code: Alles auswählen
<a href='awswcalload.php?id=$day' target='_blank' class='gensmall'>