X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fcalendar%2Fevent_create.php;h=889aa0fb580ec1d983236fe8647cb015b5d43994;hp=72386ae9445a42720c84319d24d7e0580146211c;hb=b01b21d00c21c47620a86a8412918b287676eca7;hpb=d55c0f66fc0f73d886fc2040936a28d7a17fa1ea
diff --git a/plugins/calendar/event_create.php b/plugins/calendar/event_create.php
index 72386ae9..889aa0fb 100644
--- a/plugins/calendar/event_create.php
+++ b/plugins/calendar/event_create.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');
//main form to gather event info
function show_event_form() {
@@ -28,8 +29,9 @@ function show_event_form() {
" \n".
" \n".
" \n".
- "
" .
- "" .
- '' .
- date_intl( 'l, F d Y', mktime(0, 0, 0, $month, $day, $year)) .
- ' | ';
+echo html_tag( 'tr', '', '', $color[0] ) .
+ html_tag( 'td', '', 'left' ) .
+ html_tag( 'table', '', '', $color[0], 'width="100%" border="0" cellpadding="2" cellspacing="1"' ) .
+ html_tag( 'tr',
+ html_tag( 'td', date_intl( 'l, F d Y', mktime(0, 0, 0, $month, $day, $year)), 'left', '', 'colspan="2"' )
+ );
//if form has not been filled in
if(!isset($event_text)){
show_event_form();
@@ -106,21 +117,32 @@ if(!isset($event_text)){
'reminder' => '' );
//save
writecalendardata();
- echo " \n".
- " \n".
- _("Event Has been added!") . " \n".
- " |
---|
" . _("Date:") . " | \n".
- " $month/$day/$year | \n".
- " " . _("Time:") . " | \n".
- " $event_hour:$event_minute | \n".
- " " . _("Title:") . " | \n".
- " $event_title | \n".
- " " . _("Message:") . " | \n".
- " $event_text | \n".
- " \n".
- "" . _("Day View") . "\n".
- " | \n".
- " \n";
+ echo html_tag( 'table',
+ html_tag( 'tr',
+ html_tag( 'th', _("Event Has been added!") . " \n", '', $color[4], 'colspan="2"' )
+ ) .
+ html_tag( 'tr',
+ html_tag( 'td', _("Date:"), 'right', $color[4] ) . "\n" .
+ html_tag( 'td', $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( 'tr',
+ html_tag( 'td', _("Title:"), 'right', $color[4] ) . "\n" .
+ html_tag( 'td', $event_title, 'left', $color[4] ) . "\n"
+ ) .
+ html_tag( 'tr',
+ html_tag( 'td', _("Message:"), 'right', $color[4] ) . "\n" .
+ html_tag( 'td', $event_text, 'left', $color[4] ) . "\n"
+ ) .
+ html_tag( 'tr',
+ html_tag( 'td',
+ "" . _("Day View") . "\n" ,
+ 'left', $color[4], 'colspan="2"' ) . "\n"
+ ) ,
+ '', $color[0], 'width="100%" border="0" cellpadding="2" cellspacing="1"' ) ."\n";
}
?>
|