From 831c3204965158ad36160b622e384641b3792ab4 Mon Sep 17 00:00:00 2001 From: tokul Date: Sat, 9 Oct 2004 08:27:32 +0000 Subject: [PATCH] reusing abook_create_form code git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8168 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/abook_take/take.php | 63 +++---------------------------------- 1 file changed, 4 insertions(+), 59 deletions(-) diff --git a/plugins/abook_take/take.php b/plugins/abook_take/take.php index b5b110e5..4fee84b1 100644 --- a/plugins/abook_take/take.php +++ b/plugins/abook_take/take.php @@ -1,5 +1,4 @@ localbackendname), 'center', $color[0] ) - ) , - 'center', '', 'width="100%"' ) . "\n" . - - html_tag( 'table', '', 'center', '', 'border="0" cellpadding="1" cols="2" width="90%"' ) . "\n" . - html_tag( 'tr', "\n" . - html_tag( 'td', _("Nickname") . ':', 'right', $color[4], 'width="50"' ) . "\n" . - html_tag( 'td', addInput($name . '[nickname]', '', 15) . - ' ' . _("Must be unique") . '', - 'left', $color[4] ) - ) . "\n" . - html_tag( 'tr' ) . "\n" . - html_tag( 'td', _("E-mail address") . ':', 'right', $color[4], 'width="50"' ) . "\n" . - html_tag( 'td', '', 'left', $color[4] ) . "\n" . - addSelect($name . '[email]', $addrs, null, true) . - '' . "\n"; +$formdata=array('email'=>$addrs); - if ($squirrelmail_language == 'ja_JP') { - echo html_tag( 'tr', "\n" . - html_tag( 'td', _("Last name") . ':', 'right', $color[4], 'width="50"' ) . - html_tag( 'td', addInput($name . '[lastname]', '', 45), 'left', $color[4] ) - ) . "\n" . - html_tag( 'tr', "\n" . - html_tag( 'td', _("First name") . ':', 'right', $color[4], 'width="50"' ) . - html_tag( 'td', addInput($name . '[firstname]', '', 45), 'left', $color[4] ) - ) . "\n"; - } else { - echo html_tag( 'tr', "\n" . - html_tag( 'td', _("First name") . ':', 'right', $color[4], 'width="50"' ) . - html_tag( 'td', addInput($name . '[firstname]', '', 45), 'left', $color[4] ) - ) . "\n" . - html_tag( 'tr', "\n" . - html_tag( 'td', _("Last name") . ':', 'right', $color[4], 'width="50"' ) . - html_tag( 'td', addInput($name . '[lastname]', '', 45), 'left', $color[4] ) - ) . "\n"; - } - echo html_tag( 'tr', "\n" . - html_tag( 'td', _("Additional info") . ':', 'right', $color[4], 'width="50"' ) . - html_tag( 'td', addInput($name . '[label]', '', 45), 'left', $color[4] ) - ) . "\n" . - html_tag( 'tr', "\n" . - html_tag( 'td', - addSubmit(_("Add address"), $name . '[SUBMIT]'), - 'center', $color[4], 'colspan="2"' ) - ) . "\n"; +abook_create_form(SM_PATH . 'src/addressbook.php','addaddr',_("Add to address book"),_("Add address"),$formdata); +echo ''; ?> - - - + -- 2.25.1