X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fcalendar%2Fevent_delete.php;h=189ff2355a7e70292bfa5c26a6f82852728cfc79;hp=7ad4eaaa0fd4b6c656e987e6f325757eba2095f5;hb=b01b21d00c21c47620a86a8412918b287676eca7;hpb=d55c0f66fc0f73d886fc2040936a28d7a17fa1ea diff --git a/plugins/calendar/event_delete.php b/plugins/calendar/event_delete.php index 7ad4eaaa..189ff235 100644 --- a/plugins/calendar/event_delete.php +++ b/plugins/calendar/event_delete.php @@ -19,6 +19,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'); function confirm_deletion() { @@ -26,41 +27,51 @@ function confirm_deletion() $tmparray = $calendardata["$dmonth$dday$dyear"]["$dhour$dminute"]; - echo "
\n".
- _("Do you really want to delete this event?") . " | \n".
- " |
---|---|
" . _("Date:") . " | \n". - "$dmonth/$dday/$dyear |
" . _("Time:") . " | \n". - "$dhour:$dminute |
" . _("Title:") . " | \n". - "$tmparray[title] |
" . _("Message:") . " | \n". - "$tmparray[message] |
\n". - " \n". - " | \n". - " \n". - " |
'.
+echo html_tag( 'tr', '', '', $color[0] ) .
+ html_tag( 'td' ) .
+ html_tag( 'table', '', '', $color[0], 'width="100%" border="0" cellpadding="2" cellspacing="1"' ) .
+ html_tag( 'tr' ) .
+ html_tag( 'td', '', 'left' ) .
date_intl( 'l, F d Y', mktime(0, 0, 0, $month, $day, $year));
if (isset($dyear) && isset($dmonth) && isset($dday) && isset($dhour) && isset($dminute)){
if (isset($confirmed)){
delete_event("$dmonth$dday$dyear", "$dhour$dminute");
- echo ' ' . _("Event deleted!") . " \n"; - echo "" . - _("Day View") . "\n"; + echo ' ' . _("Event deleted!") . " \n"; + echo "" . + _("Day View") . "\n"; } else { readcalendardata(); confirm_deletion(); |