X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fcalendar%2Fcalendar.php;h=fa27c48f201542ef66d4d27c67441413cb5d3efb;hb=77e6058f22e41b506fbc43697ce70aa76d831d00;hp=1c03cb6f6ee1139c0452572b6bf197373eb470bd;hpb=2c85de8f66702a488ea0c371f2576963c593d64d;p=squirrelmail.git diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index 1c03cb6f..fa27c48f 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -20,6 +20,7 @@ require_once('../functions/date.php'); require_once('../config/config.php'); require_once('../functions/page_header.php'); require_once('../src/load_prefs.php'); +require_once('../functions/html.php'); //display upper part of month calendar view function startcalendar() { @@ -32,28 +33,39 @@ function startcalendar() { $next_month = date( 'm', $next_date); $prev_year = date( 'Y', $prev_date); $next_year = date( 'Y', $next_date ); + $self = 'calendar.php'; - echo "
<< ".($year-1)." | \n". - "< " . - date_intl( 'M', $prev_date). " | \n". - "" . - date_intl( 'F Y', $act_date ) . " | \n" . - "" . - date_intl( 'M', $next_date) . " > | ". - "".($year+1)." >> | ". - '||
---|---|---|---|---|---|---|
" . _("Sunday") . ' | '. - "" . _("Monday") . ' | '. - "" . _("Tuesday") . ' | '. - "" . _("Wednesday") . ' | '. - "" . _("Thursday") . ' | '. - "" . _("Friday") . ' | '. - "" . _("Saturday") . ' | '. - '
\n" .
- " ";
+ echo html_tag( 'td', '', 'left', $color[4], 'height="50" valign="top"' ) ."\n".
+ html_tag( 'div', '', 'right' );
echo(($cdate==$todayis) ? "[ " . _("TODAY") . " ] " : "");
echo "$aday ";
} else {
- echo " | \n".
+ echo html_tag( 'td', '', 'left', $color[0]) ."\n".
" ";
}
if (isset($calendardata[$cdate])){
$i=0;
while ($calfoo = each($calendardata[$cdate])) {
- $calbar = $calendardata[$cdate][$calfoo[key]];
- echo ($calbar[priority]==1) ? "$calbar[title] \n" : "$calbar[title] \n"; + $calbar = $calendardata[$cdate][$calfoo['key']]; + echo ($calbar['priority']==1) ? "$calbar[title] \n" : "$calbar[title] \n"; $i=$i+1; if($i==2){ break; } } } - echo "\n | \n";
+ echo "\n\n";
$aday++;
}
echo '|||||
\n". + echo html_tag( 'tr' ) ."\n" . + html_tag( 'td', '', 'left', '', 'colspan="7"' ) ."\n" . " |