/**
* calendar.php
*
- * Copyright (c) 2002 The SquirrelMail Project Team
+ * Copyright (c) 2002-2003 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Originally contrubuted by Michal Szczotka <michal@tuxy.org>
* Displays the main calendar page (month view).
*
* $Id$
+ * @package plugins
+ * @subpackage calendar
*/
+
+/**
+*/
define('SM_PATH','../../');
/* Calender plugin required files. */
html_tag( 'table', '', '', $color[0], 'width="100%" border="0" cellpadding="2" cellspacing="1"' ) .
html_tag( 'tr', "\n".
html_tag( 'th',
- "<a href=\"$self?year=".($year-1)."&month=$month\"><< ".($year-1)."</a>"
+ "<a href=\"$self?year=".($year-1)."&month=$month\"><< ".($year-1)."</a>"
) . "\n".
html_tag( 'th',
- "<a href=\"$self?year=$prev_year&month=$prev_month\">< " .
+ "<a href=\"$self?year=$prev_year&month=$prev_month\">< " .
date_intl( 'M', $prev_date). "</a>"
) . "\n".
html_tag( 'th', date_intl( 'F Y', $act_date ), '', $color[0], 'colspan="3"') .
html_tag( 'th',
- "<a href=\"$self?year=$next_year&month=$next_month\">" .
+ "<a href=\"$self?year=$next_year&month=$next_month\">" .
date_intl( 'M', $next_date) . " ></a>"
) . "\n".
html_tag( 'th',
- "<a href=\"$self?year=".($year+1)."&month=$month\">".($year+1)." >></a>"
+ "<a href=\"$self?year=".($year+1)."&month=$month\">".($year+1)." >></a>"
)
) . "\n".
html_tag( 'tr',
echo html_tag( 'td', '', 'left', $color[4], 'height="50" valign="top"' ) ."\n".
html_tag( 'div', '', 'right' );
echo(($cdate==$todayis) ? "<font size=-1 color=$color[1]>[ " . _("TODAY") . " ] " : "<font size=-1>");
- echo "<a href=day.php?year=$year&month=$month&day=";
+ echo "<a href=day.php?year=$year&month=$month&day=";
echo(($aday<10) ? "0" : "");
echo "$aday>$aday</a></font></div>";
} else {
$i=0;
while ($calfoo = each($calendardata[$cdate])) {
$calbar = $calendardata[$cdate][$calfoo['key']];
- echo ($calbar['priority']==1) ? "<FONT COLOR=\"$color[1]\">$calbar[title]</FONT><br>\n" : "$calbar[title]<br>\n";
+ $title = '['. $calfoo['key']. '] ' .$calbar['message'];
+ echo ($calbar['priority']==1) ? "<a href=\"#\" style=\"text-decoration:none; color: $color[1]\" title=\"$title\">$calbar[title]</a><br>\n" : "<a href=\"#\" style=\"text-decoration:none; color: $color[6]\" title=\"$title\">$calbar[title]</a><br>\n";
$i=$i+1;
if($i==2){
break;