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". - " \n". - " \n". - " \n". - " \n". - " \n". - " \n". - " \n". - " \n". - " \n". - " \n". - "
\n". - _("Do you really want to delete this event?") . "
" . _("Date:") . "$dmonth/$dday/$dyear
" . _("Time:") . "$dhour:$dminute
" . _("Title:") . "$tmparray[title]
" . _("Message:") . "$tmparray[message]
\n". - "
\n". - " \n". - " \n". - " \n". - " \n". - " \n". - " \n". - " \n". - " \n". - " \n". - ' \n". - "
\n". - "
\n". - "
\n". - " \n". - " \n". - " \n". - ' \n". - "
\n". - "
\n"; - - + echo html_tag( 'table', + html_tag( 'tr', + html_tag( 'th', _("Do you really want to delete this event?") . '
', '', $color[4], 'colspan="2"' ) + ) . + html_tag( 'tr', + html_tag( 'td', _("Date:"), 'right', $color[4] ) . + html_tag( 'td', $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( 'tr', + html_tag( 'td', _("Title:"), 'right', $color[4] ) . + html_tag( 'td', $tmparray[title], 'left', $color[4] ) + ) . + html_tag( 'tr', + html_tag( 'td', _("Message:"), 'right', $color[4] ) . + html_tag( 'td', $tmparray[message], 'left', $color[4] ) + ) . + html_tag( 'tr', + html_tag( 'td', + "
\n". + " \n". + " \n". + " \n". + " \n". + " \n". + " \n". + " \n". + " \n". + " \n". + ' \n". + "
\n" , + 'right', $color[4] ) . + html_tag( 'td', + "
\n". + " \n". + " \n". + " \n". + ' \n". + "
\n" , + 'left', $color[4] ) + ) , + '', $color[0], 'border="0" cellpadding="2" cellspacing="1"' ); } if ($month <= 0){ @@ -79,16 +90,18 @@ displayPageHeader($color, 'None'); //load calendar menu calendar_header(); -echo "". - "". - '
'. +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();