/**************************************************
* Add new address *
**************************************************/
- if (!empty($addaddr['nickname'])) {
+ if (isset($addaddr)) {
foreach( $addaddr as $k => $adr ) {
$addaddr[$k] = strip_tags( $adr );
}
echo html_tag( 'table',
html_tag( 'tr',
html_tag( 'td',
- "\n". '<br><strong><font color="' . $color[2] .
+ "\n". '<strong><font color="' . $color[2] .
'">' . _("ERROR") . ': ' . $abook->error . '</font></strong>' ."\n",
'center' )
),
html_tag( 'table',
html_tag( 'tr',
html_tag( 'td',
- "\n". '<br><strong>' . _("Update address") . '</strong>' ."\n",
+ "\n". '<strong>' . _("Update address") . '</strong>' ."\n",
'center', $color[0] )
),
- 'center', '', 'width="100%"' ) .
+ 'center', '', 'width="100%"' );
address_form("editaddr", _("Update address"), $newdata);
echo '<INPUT TYPE=hidden NAME=oldnick VALUE="' .
htmlspecialchars($oldnick) . "\">\n" .
html_tag( 'td', '', 'left', '', 'valign="top" width="1%" nowrap' ) . ' ';
}
$email = $abook->full_address($row);
- if ($compose_new_win == '1') {
- echo '<a href="javascript:void(0)" onclick=comp_in_new("compose.php?send_to='.rawurlencode($email).'")>';
- }
- else {
- echo '<A HREF="compose.php?send_to=' . rawurlencode($email).'">';
- }
- echo htmlspecialchars($row['email']) . '</A> </td>'."\n".
+ echo makeComposeLink('src/compose.php?send_to='.rawurlencode($email),
+ htmlspecialchars($row['email']) ) .
+ ' </td>'."\n".
html_tag( 'td', ' ' . htmlspecialchars($row['label']) . ' ', 'left', '', 'valign="top" width="1%"' ) .
"</tr>\n";
$line++;