X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fcalendar%2Fevent_create.php;h=a7ea83204919c4dea29bdd78618937b4a1163e25;hb=30460a05016c7e066ad7b28df7788539e4054a99;hp=c7583da957e0cda4ec9032f5f14800f618b13878;hpb=1c7143ad75c08368ea25ec57b3242d762cee31ca;p=squirrelmail.git diff --git a/plugins/calendar/event_create.php b/plugins/calendar/event_create.php index c7583da9..a7ea8320 100644 --- a/plugins/calendar/event_create.php +++ b/plugins/calendar/event_create.php @@ -3,18 +3,17 @@ /** * functions to create a event for calendar. * - * @copyright © 2002-2006 The SquirrelMail Project Team + * @copyright 2002-2009 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins * @subpackage calendar */ +/** + * Include the SquirrelMail initialization file. + */ +require('../../include/init.php'); -/** @ignore */ -define('SM_PATH','../../'); - -/* SquirrelMail required files. */ -include_once(SM_PATH . 'include/validate.php'); /* date_intl() */ include_once(SM_PATH . 'functions/date.php'); @@ -94,7 +93,7 @@ function show_event_form() { " \n". html_tag( 'tr', html_tag( 'td', - "" , + "" , 'left', $color[4], 'colspan="2"' ) ) ."\n" . html_tag( 'tr', @@ -123,7 +122,7 @@ if (!isset($hour) || $hour <= 0){ $calself=basename($PHP_SELF); -displayPageHeader($color, 'None'); +displayPageHeader($color); //load calendar menu calendar_header(); @@ -152,11 +151,11 @@ if(!isset($event_text)){ ) . 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" . @@ -176,4 +175,4 @@ if(!isset($event_text)){ ?> - \ No newline at end of file +