while ($fdata = fgetcsv ($fp, 4096, '|')) {
$calendardata[$fdata[0]][$fdata[1]] = array( 'length' => $fdata[2],
'priority' => $fdata[3],
- 'title' => $fdata[4],
+ 'title' => str_replace("\n",' ',calendar_readmultiline($fdata[4])),
'message' => calendar_readmultiline($fdata[5]),
'reminder' => $fdata[6] );
}
}
/**
- * same as delete but not saves calendar
+ * same as delete but does not save calendar
* saving is done inside event_edit.php
* @return void
* @access private
} else {
$calbar=$calfoo['value'];
if ($calbar['length']!=0){
- $elength = '-'.date('H:i',mktime($ehour,$eminute+$calbar['length'],0,1,1,0));
+ $elength = '-'.date_intl(_("H:i"),mktime($ehour,$eminute+$calbar['length'],0,1,1,0));
} else {
$elength='';
}
echo html_tag( 'tr', '', '', $color[$eo] ) .
- html_tag( 'td', $ehour . ':' . $eminute . $elength, 'left' ) .
+ html_tag( 'td', date_intl(_("H:i"),mktime($ehour,$eminute,0,1,1,0)) . $elength, 'left' ) .
html_tag( 'td', '', 'left' ) . '[';
echo ($calbar['priority']==1) ?
"<font color=\"$color[1]\">".htmlspecialchars($calbar['title']).'</font>' :
) .
html_tag( 'tr',
html_tag( 'td', _("Date:"), 'right', $color[4] ) . "\n" .
- html_tag( 'td', $month .'/'.$day.'/'.$year, 'left', $color[4] ) . "\n"
+ html_tag( 'td', date_intl(_("m/d/Y"),mktime(0,0,0,$month,$day,$year)), 'left', $color[4] ) . "\n"
) .
html_tag( 'tr',
html_tag( 'td', _("Time:"), 'right', $color[4] ) . "\n" .
- html_tag( 'td', $event_hour.':'.$event_minute, 'left', $color[4] ) . "\n"
+ html_tag( 'td', date_intl(_("H:i"),mktime($event_hour,$event_minute,0,$month,$day,$year)), 'left', $color[4] ) . "\n"
) .
html_tag( 'tr',
html_tag( 'td', _("Title:"), 'right', $color[4] ) . "\n" .
) .
html_tag( 'tr',
html_tag( 'td', _("Date:"), 'right', $color[4] ) .
- html_tag( 'td', $dmonth.'/'.$dday.'/'.$dyear, 'left', $color[4] )
+ html_tag( 'td', date_intl(_("m/d/Y"),mktime(0,0,0,$dmonth,$dday,$dyear)), 'left', $color[4] )
) .
html_tag( 'tr',
html_tag( 'td', _("Time:"), 'right', $color[4] ) .
- html_tag( 'td', $dhour.':'.$dminute, 'left', $color[4] )
+ html_tag( 'td', date_intl(_("H:i"),mktime($dhour,$dminute,0,$dmonth,$dday,$dyear)), 'left', $color[4] )
) .
html_tag( 'tr',
html_tag( 'td', _("Title:"), 'right', $color[4] ) .
) .
html_tag( 'tr',
html_tag( 'td', _("Date:") , 'right', $color[4] ) ."\n" .
- html_tag( 'td', $month.'/'.$day.'/'.$year , 'left', $color[4] ) ."\n"
+ html_tag( 'td', date_intl(_("m/d/Y"),mktime(0,0,0,$month,$day,$year)), 'left', $color[4] ) ."\n"
) .
html_tag( 'tr',
html_tag( 'td', _("Time:") , 'right', $color[4] ) ."\n" .
- html_tag( 'td', $hour.':'.$minute , 'left', $color[4] ) ."\n"
+ html_tag( 'td', date_intl(_("H:i"),mktime($hour,$minute,0,$month,$day,$year)) , 'left', $color[4] ) ."\n"
) .
html_tag( 'tr',
html_tag( 'td', _("Priority:") , 'right', $color[4] ) ."\n" .
html_tag( 'tr',
html_tag( 'td', _("Date:") , 'right', $color[4] ) ."\n" .
- html_tag( 'td', $event_month.'/'.$event_day.'/'.$event_year , 'left', $color[4] ) ."\n"
+ html_tag( 'td', date_intl(_("m/d/Y"),mktime(0,0,0,$event_month,$event_day,$event_year)), 'left', $color[4] ) ."\n"
) .
html_tag( 'tr',
html_tag( 'td', _("Time:") , 'right', $color[4] ) ."\n" .
- html_tag( 'td', $event_hour.':'.$event_minute , 'left', $color[4] ) ."\n"
+ html_tag( 'td', date_intl(_("H:i"),mktime($event_hour,$event_minute,0,$event_month,$event_day,$event_year)), 'left', $color[4] ) ."\n"
) .
html_tag( 'tr',
html_tag( 'td', _("Priority:") , 'right', $color[4] ) ."\n" .