X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fabook_take%2Ftake.php;h=b062552e16defc9c66fd3aa83152f2b37bd2816e;hp=964c2c8d223936e72dd65e773095bc7bb57f94cc;hb=26f9a94a1f7c04666c65f75dce311988df6b6a94;hpb=d55c0f66fc0f73d886fc2040936a28d7a17fa1ea diff --git a/plugins/abook_take/take.php b/plugins/abook_take/take.php index 964c2c8d..b062552e 100644 --- a/plugins/abook_take/take.php +++ b/plugins/abook_take/take.php @@ -1,50 +1,49 @@ -
- - -
localbackendname); -?>
- -", - _("Nickname")); - printf("\n", - $color[4], $name, _("Must be unique")); - printf("", - _("E-mail address")); +/* SquirrelMail required files. */ +require_once(SM_PATH . 'functions/strings.php'); +require_once(SM_PATH . 'config/config.php'); +require_once(SM_PATH . 'include/validate.php'); +require_once(SM_PATH . 'functions/i18n.php'); +require_once(SM_PATH . 'functions/page_header.php'); +require_once(SM_PATH . 'functions/addressbook.php'); +require_once(SM_PATH . 'include/load_prefs.php'); +require_once(SM_PATH . 'functions/html.php'); + +displayPageHeader($color, 'None'); - echo "", - _("First name")); - printf("\n", - $color[4], $name); - printf("", - _("Last name")); - printf("\n", - $color[4], $name); - printf("", - _("Additional info")); - printf("\n", - $color[4], $name); - - printf("\n", - $color[4], $name, _("Add address")); + echo '' . "\n" . - print "
%s:". - "". - " %s
%s:\n"; - echo '' . + ' ' . _("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"; - - printf("
%s:". - "
%s:". - "
%s:". - "
\n". - "
\n"; + html_tag( 'tr', "\n" . + html_tag( 'td', _("First name") . ':', 'right', $color[4], 'width="50"' ) . + html_tag( 'td', '', 'left', $color[4] ) + ) . "\n" . + html_tag( 'tr', "\n" . + html_tag( 'td', _("Last name") . ':', 'right', $color[4], 'width="50"' ) . + html_tag( 'td', '', 'left', $color[4] ) + ) . "\n" . + html_tag( 'tr', "\n" . + html_tag( 'td', _("Additional info") . ':', 'right', $color[4], 'width="50"' ) . + html_tag( 'td', '', 'left', $color[4] ) + ) . "\n" . + html_tag( 'tr', "\n" . + html_tag( 'td', + '' , + 'center', $color[4], 'colspan="2"' ) + ) . "\n" . + ''; ?> -
- + +