*
* Functions to delete a event.
*
* $Id$
*/
require_once('calendar_data.php');
require_once('functions.php');
chdir('..');
define('SM_PATH','../');
/* SquirrelMail required files. */
require_once(SM_PATH . 'include/validate.php');
require_once(SM_PATH . 'functions/strings.php');
require_once(SM_PATH . 'functions/date.php');
require_once(SM_PATH . 'config/config.php');
require_once(SM_PATH . 'functions/page_header.php');
require_once(SM_PATH . 'src/load_prefs.php');
require_once(SM_PATH . 'functions/html.php');
function confirm_deletion()
{
global $calself, $dyear, $dmonth, $dday, $dhour, $dminute, $calendardata, $color, $year, $month, $day;
$tmparray = $calendardata["$dmonth$dday$dyear"]["$dhour$dminute"];
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',
"