* Licensed under the GNU GPL. For full terms see the file COPYING. * * Functions to edit an event. * * $Id$ */ require_once('calendar_data.php'); require_once('functions.php'); chdir('..'); require_once('../src/validate.php'); require_once('../functions/strings.php'); require_once('../functions/date.php'); require_once('../config/config.php'); require_once('../functions/page_header.php'); require_once('../src/load_prefs.php'); // update event info function show_event_form() { global $color, $editor_size, $year, $day, $month, $hour, $minute, $calendardata; $tmparray = $calendardata["$month$day$year"]["$hour$minute"]; echo "\n
\n"; } // self explenatory function confirm_update() { global $calself, $year, $month, $day, $hour, $minute, $calendardata, $color, $event_year, $event_month, $event_day, $event_hour, $event_minute, $event_length, $event_priority, $event_title, $event_text; $tmparray = $calendardata["$month$day$year"]["$hour$minute"]; echo "\n".
_("Do you really want to change this event from:") . " \n". " | |
---|---|
" . _("Date:") . " | \n". "$month/$day/$year |
" . _("Time:") . " | \n". "$hour:$minute |
" . _("Priority:") . " | \n". "$tmparray[priority] |
" . _("Title:") . " | \n". "$tmparray[title] |
" . _("Message:") . " | \n". "$tmparray[message] |
\n".
_("to:") . " \n". " | |
" . _("Date:") . " | \n". "$event_month/$event_day/$event_year |
" . ("Time:") . " | \n". "$event_hour:$event_minute |
" . _("Priority:") . " | \n". "$event_priority |
" . _("Title:") . " | \n". "$event_title |
" . _("Message:") . " | \n". "$event_text |
\n". " \n". " | \n". " \n". " |
' . date_intl( 'l, F d Y', mktime(0, 0, 0, $month, $day, $year)) . ' | |
" . _("Event updated!") . " | |
" . _("Day View") ." |