/**
* Make a <form> start-tag.
*/
-function addForm($action, $method = 'POST', $name = '', $enctype = '', $charset = '')
+function addForm($action, $method = 'post', $name = '', $enctype = '', $charset = '')
{
if($name) {
$name = ' name="'.$name.'"';
<head>
<title><?php echo "$org_title: " . _("Address Book"); ?></title>
</head>
- <frameset rows="60,*" border=0>
+ <frameset rows="60,*" border="0">
<frame name="abookmain"
marginwidth="0"
scrolling="no"
echo html_tag( 'tr', '', '', $tr_bgcolor, 'nowrap' ) .
html_tag( 'td',
'<small><a href="javascript:to_address(' .
- "'" . $email . "');\">To</A> | " .
+ "'" . $email . "');\">To</a> | " .
'<a href="javascript:cc_address(' .
- "'" . $email . "');\">Cc</A> | " .
+ "'" . $email . "');\">Cc</a> | " .
'<a href="javascript:bcc_address(' .
- "'" . $email . "');\">Bcc</A></small>",
+ "'" . $email . "');\">Bcc</a></small>",
'center', '', 'valign="top" width="5%" nowrap' ) .
html_tag( 'td', ' ' . htmlspecialchars($row['name']), 'left', '', 'valign="top" nowrap' ) .
html_tag( 'td', ' ' .
'<a href="javascript:to_and_close(' .
- "'" . $email . "');\">" . htmlspecialchars($row['email']) . '</A>'
+ "'" . $email . "');\">" . htmlspecialchars($row['email']) . '</a>'
, 'left', '', 'valign="top"' ) .
html_tag( 'td', htmlspecialchars($row['label']), 'left', '', 'valign="top" nowrap' );
if ($includesource) {
/* Choose correct colors for top and bottom frame */
if ($show == 'form' && !isset($listall)) {
- echo '<BODY TEXT="' . $color[6] . '" BGCOLOR="' . $color[3] . '" ' .
- 'LINK="' . $color[6] . '" VLINK="' . $color[6] . '" ' .
- 'ALINK="' . $color[6] . '" ' .
+ echo '<body text="' . $color[6] . '" bgcolor="' . $color[3] . '" ' .
+ 'link="' . $color[6] . '" vlink="' . $color[6] . '" ' .
+ 'alink="' . $color[6] . '" ' .
'OnLoad="document.sform.query.focus();">';
} else {
- echo '<BODY TEXT="' . $color[8] . '" BGCOLOR="' . $color[4] . '" ' .
- 'LINK="' . $color[7] . '" VLINK="' . $color[7] . '" ' .
- 'ALINK="' . $color[7] . "\">\n";
+ echo '<body text="' . $color[8] . '" bgcolor="' . $color[4] . '" ' .
+ 'link="' . $color[7] . '" vlink="' . $color[7] . '" ' .
+ 'alink="' . $color[7] . "\">\n";
}
/* Empty search */
if (empty($query) && empty($show) && empty($listall)) {
- echo html_tag( 'p', '<br>' .
+ echo html_tag( 'p', '<br />' .
_("No persons matching your search were found"),
'center' ) .
- "\n</BODY></HTML>\n",
+ "\n</body></html>\n",
exit;
}
/* Create search form */
if ($show == 'form' && empty($listall)) {
- echo '<FORM NAME=sform TARGET=abookres ACTION="addrbook_search.php'.
- '" METHOD="POST">' . "\n" .
+ echo '<form name="sform" target="abookres" action="addrbook_search.php'.
+ '" method="post">' . "\n" .
html_tag( 'table', '', '', '', 'border="0" width="100%" height="100%"' ) .
html_tag( 'tr' ) .
html_tag( 'td', ' <strong>' . _("Search for") . "</strong>\n", 'left', '', 'nowrap valign="middle" width="10%"' ) .
/* List all backends to allow the user to choose where to search */
if ($abook->numbackends > 1) {
- echo '<STRONG>' . _("in") . '</STRONG> '."\n".
+ echo '<strong>' . _("in") . '</strong> '."\n".
$selopts['-1'] = _("All address books");
$ret = $abook->get_backend_list();
html_tag( 'tr',
html_tag( 'td', '', 'left' ) .
html_tag( 'td',
- '<INPUT TYPE=submit VALUE="' . _("Search") . '" NAME=show>' .
- ' | <INPUT TYPE=submit VALUE="' . _("List all") .
- '" NAME=listall>' . "\n" .
- ' | <INPUT TYPE=button VALUE="' . _("Close") .
- '" onclick="parent.close();">' . "\n" ,
+ '<input type="submit" value="' . _("Search") . '" name="show" />' .
+ ' | <input type="submit" value="' . _("List all") .
+ '" name="listall" />' . "\n" .
+ ' | <input type="button" value="' . _("Close") .
+ '" onclick="parent.close();" />' . "\n" ,
'left' )
) .
'</table></form>' . "\n";
}
if (!is_array($res)) {
- echo html_tag( 'p', '<b><br>' .
+ echo html_tag( 'p', '<b><br />' .
_("Your search failed with the following error(s)") .
- ':<br>' . $abook->error . "</b>\n" ,
+ ':<br />' . $abook->error . "</b>\n" ,
'center' ) .
- "\n</BODY></HTML>\n";
+ "\n</body></html>\n";
exit;
}
if (sizeof($res) == 0) {
- echo html_tag( 'p', '<br><b>' .
+ echo html_tag( 'p', '<br /><b>' .
_("No persons matching your search were found") . "</b>\n" ,
'center' ) .
- "\n</BODY></HTML>\n";
+ "\n</body></html>\n";
exit;
}
}
}
-
-echo "</BODY></HTML>\n";
-
?>
+</BODY></HTML>
* @ignore
*/
if (! defined('SM_PATH') ) {
- define('SM_PATH','../');
+ define('SM_PATH','../');
}
/** SquirrelMail required files. */
echo addHidden('session', $session).
addHidden('subject', $subject).
- addHidden('send_to', $send_to).
- addHidden('send_to_bcc', $send_to_bcc).
- addHidden('send_to_cc', $send_to_cc).
- addHidden('identity', $identity).
- addHidden('mailbox', $mailbox).
- addHidden('from_htmladdr_search', 'true');
+ addHidden('send_to', $send_to).
+ addHidden('send_to_bcc', $send_to_bcc).
+ addHidden('send_to_cc', $send_to_cc).
+ addHidden('identity', $identity).
+ addHidden('mailbox', $mailbox).
+ addHidden('from_htmladdr_search', 'true');
}
{
echo html_tag( 'tr', '', '', $tr_bgcolor, 'nowrap' ) .
html_tag( 'td',
- '<input type=checkbox name="send_to_search[T' . $line . ']" value = "' .
- htmlspecialchars($email) . '"> ' . _("To") . ' ' .
- '<input type=checkbox name="send_to_search[C' . $line . ']" value = "' .
- htmlspecialchars($email) . '"> ' . _("Cc") . ' ' .
- '<input type=checkbox name="send_to_search[B' . $line . ']" value = "' .
- htmlspecialchars($email) . '"> ' . _("Bcc") . ' ' ,
+ '<input type="checkbox" name="send_to_search[T' . $line . ']" value = "' .
+ htmlspecialchars($email) . '" /> ' . _("To") . ' ' .
+ '<input type="checkbox" name="send_to_search[C' . $line . ']" value = "' .
+ htmlspecialchars($email) . '" /> ' . _("Cc") . ' ' .
+ '<input type="checkbox" name="send_to_search[B' . $line . ']" value = "' .
+ htmlspecialchars($email) . '" /> ' . _("Bcc") . ' ' ,
'center', '', 'width="5%" nowrap' ) .
html_tag( 'td', ' ' . htmlspecialchars($row['lastname']) . ' ' . htmlspecialchars($row['firstname']) . ' ', 'left', '', 'nowrap' ) .
html_tag( 'td', ' ' . htmlspecialchars($row['email']) . ' ', 'left', '', 'nowrap' ) .
} else {
echo html_tag( 'tr', '', '', $tr_bgcolor, 'nowrap' ) .
html_tag( 'td',
- addCheckBox('send_to_search[T'.$line.']', FALSE, $email).
+ addCheckBox('send_to_search[T'.$line.']', FALSE, $email).
' ' . _("To") . ' ' .
- addCheckBox('send_to_search[C'.$line.']', FALSE, $email).
- ' ' . _("Cc") . ' ' .
- addCheckBox('send_to_search[B'.$line.']', FALSE, $email).
- ' ' . _("Bcc") . ' ' ,
+ addCheckBox('send_to_search[C'.$line.']', FALSE, $email).
+ ' ' . _("Cc") . ' ' .
+ addCheckBox('send_to_search[B'.$line.']', FALSE, $email).
+ ' ' . _("Bcc") . ' ' ,
'center', '', 'width="5%" nowrap' ) .
html_tag( 'td', ' ' . htmlspecialchars($row['name']) . ' ', 'left', '', 'nowrap' ) .
html_tag( 'td', ' ' . htmlspecialchars($row['email']) . ' ', 'left', '', 'nowrap' ) .
if ($includesource) { $td_colspan = '5'; } else { $td_colspan = '4'; }
echo html_tag( 'tr',
html_tag( 'td',
- '<INPUT TYPE=submit NAME="addr_search_done" VALUE="' .
- _("Use Addresses") . '">' ,
+ '<input type="submit" name="addr_search_done" value="' .
+ _("Use Addresses") . '" />' ,
'center', '', 'colspan="'. $td_colspan .'"' )
) .
- '</TABLE>' .
- addHidden('html_addr_search_done', '1').
- '</FORM>';
+ '</table>' .
+ addHidden('html_addr_search_done', '1').
+ '</form>';
}
/* --- End functions --- */
$abook = addressbook_init();
-echo '<br>' .
+echo '<br />' .
html_tag( 'table',
html_tag( 'tr',
html_tag( 'td', '<b>' . _("Address Book Search") . '</b>', 'center', $color[0] )
html_tag( 'table', '', 'center', '', 'border="0"' ) .
html_tag( 'tr' ) .
html_tag( 'td', '', 'left', '', 'nowrap valign="middle"' ) . "\n" .
- addForm($PHP_SELF.'?html_addr_search=true', 'POST', 'f').
- "\n<CENTER>\n" .
- ' <nobr><STRONG>' . _("Search for") . "</STRONG>\n";
+ addForm($PHP_SELF.'?html_addr_search=true', 'post', 'f').
+ "\n<center>\n" .
+ ' <nobr><strong>' . _("Search for") . "</strong>\n";
addr_insert_hidden();
if (! isset($addrquery))
$addrquery = '';
/* List all backends to allow the user to choose where to search */
if (!isset($backend)) { $backend = ''; }
if ($abook->numbackends > 1) {
- echo '<STRONG>' . _("in") . '</STRONG> ';
+ echo '<strong>' . _("in") . '</strong> ';
$selopts['-1'] = _("All address books");
$ret = $abook->get_backend_list();
while (list($undef,$v) = each($ret)) {
- $selopts[$v->bnum] = $v->sname;
+ $selopts[$v->bnum] = $v->sname;
}
echo addSelect('backend', $selopts, $backend, TRUE);
} else {
echo addHidden('session', $session);
}
-echo '<INPUT TYPE=submit VALUE="' . _("Search") . '">' .
- ' | <INPUT TYPE=submit VALUE="' . _("List all") .
- '" NAME=listall>' . "\n" .
- '</FORM></center></TD></TR></TABLE>' . "\n";
+echo '<input type="submit" value="' . _("Search") . '" />' .
+ ' | <input type="submit" value="' . _("List all") .
+ '" name="listall" />' . "\n" .
+ '</form></center></td></tr></table>' . "\n";
addr_insert_hidden();
echo '</center>';
do_hook('addrbook_html_search_below');
$backend = $abook->localbackend;
}
- /* echo '<H3 ALIGN=center>' . $abook->backends[$backend]->sname) . "</H3>\n"; */
+ /* echo '<h3 align="center">' . $abook->backends[$backend]->sname) . "</h3>\n"; */
$res = $abook->list_addr($backend);
usort($res,'alistcmp');
addr_display_result($res, false);
} else {
- echo html_tag( 'p', '<strong><br>' .
+ echo html_tag( 'p', '<strong><br />' .
sprintf(_("Unable to list addresses from %s"),
$abook->backends[$backend]->sname) . "</strong>\n" ,
'center' );
}
if (!is_array($res)) {
- echo html_tag( 'p', '<b><br>' .
+ echo html_tag( 'p', '<b><br />' .
_("Your search failed with the following error(s)") .
- ':<br>' . $abook->error . "</b>\n" ,
+ ':<br />' . $abook->error . "</b>\n" ,
'center' ) .
- "\n</BODY></HTML>\n";
+ "\n</body></html>\n";
} else {
if (sizeof($res) == 0) {
- echo html_tag( 'p', '<br><b>' .
+ echo html_tag( 'p', '<br /><b>' .
_("No persons matching your search were found") . "</b>\n" ,
'center' ) .
- "\n</BODY></HTML>\n";
+ "\n</body></html>\n";
} else {
addr_display_result($res);
}
}
if ($addrquery == '' || sizeof($res) == 0) {
- /* printf('<center><FORM METHOD=post NAME=k ACTION="compose.php">'."\n", $PHP_SELF); */
+ /* printf('<center><form method="post" name="k" action="compose.php">'."\n", $PHP_SELF); */
echo '<center>'.
- addForm('compose.php','POST','k');
+ addForm('compose.php','POST','k');
addr_insert_hidden();
- echo '<INPUT TYPE=submit VALUE="' . _("Return") . '" NAME=return>' . "\n" .
+ echo '<input type="submit" value="' . _("Return") . '" name="return" />' . "\n" .
'</form></center></nobr>';
}
{
echo html_tag( 'table',
addressbook_inp_field(_("Nickname"), 'nickname', $name, 15, $values,
- ' <SMALL>' . _("Must be unique") . '</SMALL>') .
+ ' <small>' . _("Must be unique") . '</small>') .
addressbook_inp_field(_("E-mail address"), 'email', $name, 45, $values, '') .
addressbook_inp_field(_("Last name"), 'lastname', $name, 45, $values, '') .
addressbook_inp_field(_("First name"), 'firstname', $name, 45, $values, '') .
list_writable_backends($name) .
html_tag( 'tr',
html_tag( 'td',
- '<INPUT TYPE=submit NAME="' . htmlentities($name) . '[SUBMIT]" VALUE="' .
- $submittext . '">',
+ '<input type="submit" name="' . htmlentities($name) . '[SUBMIT]" value="' .
+ $submittext . '" />',
'center', $color[4], 'colspan="2"')
)
, 'center', '', 'border="0" cellpadding="1" width="90%"') ."\n";
} else {
echo html_tag( 'table',
addressbook_inp_field(_("Nickname"), 'nickname', $name, 15, $values,
- ' <SMALL>' . _("Must be unique") . '</SMALL>') .
+ ' <small>' . _("Must be unique") . '</small>') .
addressbook_inp_field(_("E-mail address"), 'email', $name, 45, $values, '') .
addressbook_inp_field(_("First name"), 'firstname', $name, 45, $values, '') .
addressbook_inp_field(_("Last name"), 'lastname', $name, 45, $values, '') .
list_writable_backends($name) .
html_tag( 'tr',
html_tag( 'td',
- '<INPUT TYPE=submit NAME="' . htmlentities($name) . '[SUBMIT]" VALUE="' .
- $submittext . '">',
+ '<input type="submit" name="' . htmlentities($name) . '[SUBMIT]" value="' .
+ $submittext . '" />',
'center', $color[4], 'colspan="2"')
)
, 'center', '', 'border="0" cellpadding="1" width="90%"') ."\n";
global $color, $abook;
if ( $name != 'addaddr' ) { return; }
if ( $abook->numbackends > 1 ) {
- $ret = "<select name=backend>";
+ $ret = '<select name="backend">';
$backends = $abook->get_backend_list();
while (list($undef,$v) = each($backends)) {
if ($v->writeable) {
- $ret .= '<OPTION VALUE=' . $v->bnum;
- $ret .= '>' . $v->sname . "\n";
+ $ret .= '<option value="' . $v->bnum;
+ $ret .= '">' . $v->sname . "</option>\n";
}
}
$ret .= "</select>";
$olddata = $abook->lookup($enick, $ebackend);
/* Display the "new address" form */
- echo '<FORM ACTION="' . $form_url . '" METHOD="POST">' .
+ echo '<form action="' . $form_url . '" method="post">' .
"\n" .
html_tag( 'table',
html_tag( 'tr',
echo addHidden('oldnick', $olddata['nickname']).
addHidden('backend', $olddata['backend']).
addHidden('doedit', '1').
- '</FORM>';
+ '</form>';
}
} else {
'center', '', 'width="100%"' );
/* Display the "new address" form again */
- echo '<FORM ACTION="' . $form_url .
- '" METHOD="POST">' . "\n" .
+ echo '<form action="' . $form_url .
+ '" method="post">' . "\n" .
html_tag( 'table',
html_tag( 'tr',
html_tag( 'td',
addHidden('oldnick', $oldnick).
addHidden('backend', $backend).
addHidden('doedit', '1').
- "\n" . '</FORM>';
+ "\n" . '</form>';
$abortform = true;
}
} else {
// Some times we end output before forms are printed
if($abortform) {
- echo "</BODY></HTML>\n";
+ echo "</body></html>\n";
exit();
}
}
echo html_tag( 'table',
html_tag( 'tr',
html_tag( 'td',
- "\n". '<br><strong><font color="' . $color[2] .
+ "\n". '<br /><strong><font color="' . $color[2] .
'">' . _("ERROR") . ': ' . $formerror . '</font></strong>' ."\n",
'center' )
),
echo html_tag( 'table',
html_tag( 'tr',
html_tag( 'td',
- '<input type=submit name=editaddr value="' .
+ '<input type="submit" name="editaddr" value="' .
_("Edit selected") . "\" />\n" .
- '<input type=submit name=deladdr value="' .
+ '<input type="submit" name="deladdr" value="' .
_("Delete selected") . "\" />\n",
'center', '', 'colspan="5"' )
) .
html_tag( 'tr',
- html_tag( 'td', ' <br>', 'center', '', 'colspan="5"' )
+ html_tag( 'td', ' <br />', 'center', '', 'colspan="5"' )
) ,
'center' );
echo "\n<!-- start of address book table -->\n" .
if ($abook->backends[$row['backend']]->writeable) {
echo html_tag( 'td',
'<small>' .
- '<input type=checkbox ' . $selected . ' name="sel[]" value="' .
+ '<input type="checkbox" ' . $selected . ' name="sel[]" value="' .
$row['backend'] . ':' . $row['nickname'] . '" /></small>' ,
'center', '', 'valign="top" width="1%"' );
} else {
}
if ($use_javascript_addr_book) {
- echo "\n". '<SCRIPT LANGUAGE=JavaScript>'."\n<!--\n" .
+ echo "\n". '<script language="JavaScript">'."\n<!--\n" .
'function open_abook() { ' . "\n" .
' var nwin = window.open("addrbook_popup.php","abookpopup",' .
'"width=670,height=300,resizable=yes,scrollbars=yes");' . "\n" .
' if((!nwin.opener) && (document.windows != null))' . "\n" .
' nwin.opener = document.windows;' . "\n" .
"}\n" .
- "// -->\n</SCRIPT>\n\n";
+ "// -->\n</script>\n\n";
}
echo "\n" . '<form name="compose" action="compose.php" method="post" ' .
}
if ($saved_draft == 'yes') {
- echo '<BR><CENTER><B>'. _("Draft Saved").'</CENTER></B>';
+ echo '<br /><center><b>'. _("Draft Saved").'</center></b>';
}
if ($mail_sent == 'yes') {
- echo '<BR><CENTER><B>'. _("Your Message has been sent.").'</CENTER></B>';
+ echo '<br /><center><b>'. _("Your Message has been sent.").'</center></b>';
}
echo '<table align="center" cellspacing="0" border="0">' . "\n";
if ($compose_new_win == '1') {
- echo '<TABLE ALIGN=CENTER BGCOLOR="'.$color[0].'" WIDTH="100%" BORDER=0>'."\n" .
- ' <TR><TD></TD>'. html_tag( 'td', '', 'right' ) . '<INPUT TYPE="BUTTON" NAME="Close" onClick="return self.close()" VALUE='._("Close").'></TD></TR>'."\n";
+ echo '<table align="center" bgcolor="'.$color[0].'" width="100%" border="0">'."\n" .
+ ' <tr><td></td>'. html_tag( 'td', '', 'right' ) . '<input type="button" name="Close" onClick="return self.close()" value="'._("Close").'" /></td></tr>'."\n";
}
if ($location_of_buttons == 'top') {
showComposeButtonRow();
echo ' <tr>' . "\n" .
html_tag( 'td', '', 'right', $color[4], 'width="10%"' ) .
- _("To:") . '</TD>' . "\n" .
+ _("To:") . '</td>' . "\n" .
html_tag( 'td', '', 'left', $color[4], 'width="90%"' ) .
addInput('send_to', $send_to, 60). '<br />' . "\n" .
' </td>' . "\n" .
/* why this distinction? */
if ($compose_new_win == '1') {
- echo ' <TR>' . "\n" .
- ' <TD BGCOLOR="' . $color[0] . '" COLSPAN=2 ALIGN=CENTER>' . "\n" .
- ' <TEXTAREA NAME="body" ID="body" ROWS="' . (int)$editor_height .
- '" COLS="' . (int)$editor_size . '" WRAP="VIRTUAL">';
+ echo ' <tr>' . "\n" .
+ ' <td bgcolor="' . $color[0] . '" colspan="2" align="center">' . "\n" .
+ ' <textarea name="body" id="body" rows="' . (int)$editor_height .
+ '" cols="' . (int)$editor_size . '" wrap="virtual">';
}
else {
- echo ' <TR>' . "\n" .
- ' <TD BGCOLOR="' . $color[4] . '" COLSPAN=2>' . "\n" .
- ' <TEXTAREA NAME="body" ID="body" ROWS="' . (int)$editor_height .
- '" COLS="' . (int)$editor_size . '" WRAP="VIRTUAL">';
+ echo ' <tr>' . "\n" .
+ ' <td bgcolor="' . $color[4] . '" colspan="2">' . "\n" .
+ ' <textarea name="body" id="body" rows="' . (int)$editor_height .
+ '" cols="' . (int)$editor_size . '" wrap="virtual">';
}
if ($use_signature == true && $newmail == true && !isset($from_htmladdr_search)) {
html_tag( 'td', '', 'left', '', 'valign="middle"' ) .
' <input name="attachfile" size="48" type="file" />' . "\n" .
' <input type="submit" name="attach"' .
- ' value="' . _("Add") .'">' . "\n" .
+ ' value="' . _("Add") .'" />' . "\n" .
$maxsize .
' </td>' . "\n" .
' </tr>' . "\n";
echo '<tr>' . html_tag( 'td', '', 'left', $color[0], 'colspan="2"' ) . $s .'</td></tr>';
}
echo '<tr><td colspan="2"><input type="submit" name="do_delete" value="' .
- _("Delete selected attachments") . "\">\n" .
+ _("Delete selected attachments") . "\" />\n" .
'</td></tr>';
}
echo ' </table>' . "\n" .
' </td>' . "\n" .
' </tr>' . "\n" .
- ' </TABLE>' . "\n" .
- ' </TD>' . "\n" .
- ' </TR>' . "\n";
+ ' </table>' . "\n" .
+ ' </td>' . "\n" .
+ ' </tr>' . "\n";
} // End of file_uploads if-block
/* End of attachment code */
if ($compose_new_win == '1') {
- echo '</TABLE>'."\n";
+ echo '</table>'."\n";
}
- echo '</TABLE>' . "\n" .
+ echo '</table>' . "\n" .
addHidden('username', $username).
addHidden('smaction', $action).
addHidden('mailbox', $mailbox);
}
do_hook('compose_bottom');
- echo '</BODY></HTML>' . "\n";
+ echo '</body></html>' . "\n";
}
$request_mdn, $request_dr,
$data_dir, $username;
- echo ' <TR>' . "\n" .
- ' <TD></TD>' . "\n" .
- ' <TD>' . "\n";
+ echo ' <tr>' . "\n" .
+ ' <td></td>' . "\n" .
+ ' <td>' . "\n";
if ($default_use_priority) {
if(!isset($mailprio)) {
$mailprio = '3';
}
}
- echo ' </TD>' . "\n" .
- ' </TR>' . "\n" .
- ' <TR>' . "\n" .
- ' <TD></TD>' . "\n" .
- ' <TD>' . "\n" .
- ' <INPUT TYPE=SUBMIT NAME="sigappend" VALUE="' . _("Signature") . '">' . "\n";
+ echo ' </td>' . "\n" .
+ ' </tr>' . "\n" .
+ ' <tr>' . "\n" .
+ ' <td></td>' . "\n" .
+ ' <td>' . "\n" .
+ ' <input type="submit" name="sigappend" value="' . _("Signature") . '" />' . "\n";
if ($use_javascript_addr_book) {
- echo " <SCRIPT LANGUAGE=JavaScript><!--\n document.write(\"".
+ echo " <script language=\"JavaScript\"><!--\n document.write(\"".
" <input type=button value=\\\""._("Addresses").
- "\\\" onclick='javascript:open_abook();'>\");".
- " // --></SCRIPT><NOSCRIPT>\n".
- " <input type=submit name=\"html_addr_search\" value=\"".
- _("Addresses")."\">".
- " </NOSCRIPT>\n";
+ "\\\" onclick=\"javascript:open_abook();\" />\");".
+ " // --></script><noscript>\n".
+ ' <input type="submit" name="html_addr_search" value="'.
+ _("Addresses").'" />'.
+ " </noscript>\n";
} else {
- echo ' <input type=submit name="html_addr_search" value="'.
- _("Addresses").'">' . "\n";
+ echo ' <input type="submit" name="html_addr_search" value="'.
+ _("Addresses").'" />' . "\n";
}
if ($save_as_draft) {
- echo ' <input type="submit" name ="draft" value="' . _("Save Draft") . "\">\n";
+ echo ' <input type="submit" name ="draft" value="' . _("Save Draft") . "\" />\n";
}
- echo ' <INPUT TYPE=submit NAME=send VALUE="'. _("Send") . '">' . "\n";
+ echo ' <input type="submit" name="send" value="'. _("Send") . '" />' . "\n";
do_hook('compose_button_row');
- echo ' </TD>' . "\n" .
- ' </TR>' . "\n\n";
+ echo ' </td>' . "\n" .
+ ' </tr>' . "\n\n";
}
function checkInput ($show) {
return $succes;
}
-?>
+?>
\ No newline at end of file
echo html_tag( 'table',
html_tag( 'tr',
html_tag( 'td', $td_str .
- '<a href="../src/left_main.php" target=left>' .
+ '<a href="../src/left_main.php" target="left">' .
_("refresh folder list") . '</a>' ,
'center' )
) ,
displayPageHeader($color, 'None');
plain_error_message(_("Illegal folder name. Please select a different name.").
- '<BR><A HREF="../src/folders.php">'._("Click here to go back").'</A>.', $color);
+ '<br /><a href="../src/folders.php">'._("Click here to go back").'</a>.', $color);
exit;
}
$location = get_location();
header ("Location: $location/folders.php?success=create");
-?>
+?>
\ No newline at end of file
} else if (file_exists('../help/en_US')) {
echo "<center><font color=\"$color[2]\">";
printf (_("The help has not been translated to %s. It will be displayed in English instead."), $languages[$squirrelmail_language]['NAME']);
- echo '</font></center><br>';
+ echo '</font></center><br />';
$user_language = 'en_US';
} else {
error_box( _("Some or all of the help documents are not present!"), $color );
echo html_tag( 'table', '', 'center', '', 'cellpadding="0" cellspacing="0" border="0"' ) .
html_tag( 'tr' ) .
html_tag( 'td' ) .
- '<b><center>' . _("Table of Contents") . '</center></b><br>';
+ '<b><center>' . _("Table of Contents") . '</center></b><br />';
echo html_tag( 'ol' );
for ($i=0, $cnt = count($helpdir); $i < $cnt; $i++) {
$doc = file("../help/$user_language/$helpdir[$i]");
echo ' | <a href="../src/help.php?chapter=' . ($chapter+1)
. '">' . _("Next") . '</a>';
}
- echo '</center></small><br>';
+ echo '</center></small><br />';
echo '<font size="5"><b>' . $chapter . ' - ' . $help_info[0]
- . '</b></font><br><br>';
+ . '</b></font><br /><br />';
if (isset($help_info[1]) && $help_info[1]) {
echo $help_info[1];
$n = $help_info[3];
}
- echo '<br><center><a href="#pagetop">' . _("Top") . '</a></center>';
+ echo '<br /><center><a href="#pagetop">' . _("Top") . '</a></center>';
}
do_hook('help_bottom');
echo html_tag( 'tr',
html_tag( 'td', ' ', 'left', $color[0] )
).
- '</table></body></html>';
-?>
+ '</table></body></html>';
+?>
\ No newline at end of file
if ($advanced_tree) {
/* nice future feature, needs layout !! volunteers? */
$right_pos = $left_size - 20;
-/* echo '<div style="position:absolute;top:0;border=solid;border-width:0.1em;border-color:blue;"><div ID="hidef" style="width=20;font-size:12"><A HREF="javascript:hideframe(true)"><b><<</b></a></div>';
- echo '<div ID="showf" style="width=20;font-size:12;display:none;"><a href="javascript:hideframe(false)"><b>>></b></a></div>';
- echo '<div ID="incrf" style="width=20;font-size:12"><a href="javascript:resizeframe(true)"><b>></b></a></div>';
- echo '<div ID="decrf" style="width=20;font-size:12"><a href="javascript:resizeframe(false)"><b><</b></a></div></div>';
- echo '<div ID="leftframe"><br /><br />';*/
+/* echo '<div style="position:absolute;top:0;border=solid;border-width:0.1em;border-color:blue;"><div id="hidef" style="width=20;font-size:12"><a href="javascript:hideframe(true)"><b><<</b></a></div>';
+ echo '<div id="showf" style="width=20;font-size:12;display:none;"><a href="javascript:hideframe(false)"><b>>></b></a></div>';
+ echo '<div id="incrf" style="width=20;font-size:12"><a href="javascript:resizeframe(true)"><b>></b></a></div>';
+ echo '<div id="decrf" style="width=20;font-size:12"><a href="javascript:resizeframe(false)"><b><</b></a></div></div>';
+ echo '<div id="leftframe"><br /><br />';*/
}
echo "\n\n" . html_tag( 'table', '', 'left', '', 'border="0" cellspacing="0" cellpadding="0" width="99%"' ) .
}
/* Put the final touches on our folder line. */
- $line .= "</nobr><br>\n";
+ $line .= "</nobr><br />\n";
/* Output the line for this folder. */
echo $line;
do_hook('left_main_after');
sqimap_logout($imapConnection);
-echo '</td></tr></table>' . "\n".
- "</div></body></html>\n";
-
-?>
\ No newline at end of file
+?>
+</td></tr></table>'
+</div></body></html>\
echo "name = '$option->name', "
. "value = '$option->value', "
. "new_value = '$option->new_value'\n";
- echo "<br>";
+ echo "<br />";
*/
if ($option->changed()) {
$option->save();
echo html_tag( 'table', '', 'center', $color[0], 'width="95%" cellpadding="1" cellspacing="0" border="0"' ) . "\n" .
html_tag( 'tr' ) . "\n" .
html_tag( 'td', '', 'center' ) .
- "<b>$optpage_title</b><br>\n".
+ "<b>$optpage_title</b><br />\n".
html_tag( 'table', '', '', '', 'width="100%" cellpadding="5" cellspacing="0" border="0"' ) . "\n" .
html_tag( 'tr' ) . "\n" .
html_tag( 'td', '', 'center', $color[4] ) . "\n";
echo '<b>' . _("Some of your preference changes are not applied.") . "</b><br />\n";
} else {
/* Display a message indicating a successful save. */
- echo '<b>' . _("Successfully Saved Options") . ": $optpage_name</b><br>\n";
+ echo '<b>' . _("Successfully Saved Options") . ": $optpage_name</b><br />\n";
}
/* If $max_refresh != SMOPT_REFRESH_NONE, provide a refresh link. */
if ( !isset( $max_refresh ) ) {
} else if ($max_refresh == SMOPT_REFRESH_FOLDERLIST) {
- echo '<a href="../src/left_main.php" target="left">' . _("Refresh Folder List") . '</a><br>';
+ echo '<a href="../src/left_main.php" target="left">' . _("Refresh Folder List") . '</a><br />';
} else if ($max_refresh) {
- echo '<a href="../src/webmail.php?right_frame=options.php" target="' . $frame_top . '">' . _("Refresh Page") . '</a><br>';
+ echo '<a href="../src/webmail.php?right_frame=options.php" target="' . $frame_top . '">' . _("Refresh Page") . '</a><br />';
}
}
/******************************************/
do_hook($bottom_hook_name);
}
}
-
-echo '</td></tr>' .
- '</table>'.
- '</td></tr>'.
- '</table>' .
- '</body></html>';
-
?>
+</td></tr>
+</table>
+</td></tr>
+</table>
+</body></html>
html_tag( 'tr', "\n" .
html_tag( 'td', '<center><b>' . _("Options") . ' - ' . _("Message Highlighting") . '</b></center>', 'left')
),
- 'center', $color[9], 'width="95%" border="0" cellpadding="1" cellspacing="0"' ) . "<br>\n" .
+ 'center', $color[9], 'width="95%" border="0" cellpadding="1" cellspacing="0"' ) . "<br />\n" .
html_tag( 'table', '', '', '', 'width="100%" border="0" cellpadding="1" cellspacing="0"' ) .
html_tag( 'tr' ) . "\n" .
html_tag( 'td', '', 'left' );
echo '<center>[<a href="options_highlight.php?action=add">' . _("New") . '</a>]'.
- ' - [<a href="options.php">'._("Done").'</a>]</center><br>'."\n";
+ ' - [<a href="options.php">'._("Done").'</a>]</center><br />'."\n";
$mhl_count = count($message_highlight_list);
if ($mhl_count > 0) {
echo html_tag( 'table', '', 'center', '', 'width="80%" border="0" cellpadding="3" cellspacing="0"' ) . "\n";
'', $message_highlight_list[$i]['color'] ) . "\n";
}
echo "</table>\n".
- "<br>\n";
+ "<br />\n";
} else {
- echo '<center>' . _("No highlighting is defined") . "</center><br>\n".
- "<br>\n";
+ echo '<center>' . _("No highlighting is defined") . "</center><br />\n".
+ "<br />\n";
}
if ($action == 'edit' || $action == 'add') {
$color_list[13] => _("White") );
echo addSelect('newcolor_choose', $selops, $selected_i, TRUE);
- echo "<br>\n";
+ echo "<br />\n";
echo ' '.addRadioBox('color_type', $selected_input, 2).
' '. _("Other:") .
addInput('newcolor_input',
(($selected_input && isset($theid)) ? $message_highlight_list[$theid]['color'] : ''),
'7');
- echo _("Ex: 63aa7f")."<br>\n";
+ echo _("Ex: 63aa7f")."<br />\n";
echo " </td>\n";
echo " </tr>\n";
# Show grid of color choices
echo html_tag( 'tr', '', '', $color[0] ) . "\n";
echo html_tag( 'td', '', 'left', '', 'colspan="2"' );
- echo html_tag( 'table', '', 'center', '', 'border=0 cellpadding="2" cellspacing="1"' ) . "\n";
+ echo html_tag( 'table', '', 'center', '', 'border="0" cellpadding="2" cellspacing="1"' ) . "\n";
for($x = 0; $x < 5; $x++) {
echo html_tag( 'tr' ) . "\n";
echo html_tag( 'tr', html_tag( 'td', '<small><small> </small></small>', 'left' ) ) . "\n";
echo html_tag( 'tr', '', '', $color[0] ) . "\n";
echo html_tag( 'td', '', 'center', '', 'colspan="2"' ) . "\n";
- echo " <select name=match_type>\n";
+ echo " <select name=\"match_type\">\n";
oh_opt( 'from',
(isset($theid)?$message_highlight_list[$theid]['match_type'] == 'from':1),
_("From") );
echo " </td>\n";
echo " </tr>\n";
echo "</table>\n";
- echo '<center><input type="submit" value="' . _("Submit") . "\"></center>\n";
+ echo '<center><input type="submit" value="' . _("Submit") . "\" /></center>\n";
echo "</form>\n";
}
do_hook('options_highlight_bottom');
do_hook('options_identities_top');
LoadInfo($full_name, $email_address, $reply_to, $signature, '');
$td_str = '';
- $td_str .= '<form name="f" action="options_identities.php" method="post"><br>';
+ $td_str .= '<form name="f" action="options_identities.php" method="post"><br />';
$td_str .= ShowTableInfo($full_name, $email_address, $reply_to, $signature, '');
$num = 1;
$num ++;
}
- echo '<br>' .
+ echo '<br />' .
html_tag( 'table', "\n" .
html_tag( 'tr', "\n" .
html_tag( 'td', "\n" .
- '<b>'. _("Options") . ' - ' . _("Advanced Identities") .'</b><br>' .
+ '<b>'. _("Options") . ' - ' . _("Advanced Identities") .'</b><br />' .
html_tag( 'table', "\n" .
html_tag( 'tr', "\n" .
html_tag( 'td', "\n" .
$return_val .= html_tag( 'tr', '', '', $OtherBG);
$return_val .= html_tag( 'td', ' ', 'left' );
$return_val .= html_tag( 'td', '', 'left' );
- $return_val .= '<input type=hidden name="form_for_'. $post .'" value="1">';
+ $return_val .= '<input type="hidden" name="form_for_'. $post .'" value="1">';
$return_val .= '<input type="submit" name="update" value="' . _("Save / Update") . '">';
if (! $isEmptySection && $post != '') {
$return_val .= '<input type="submit" name="make_default_' . $post . '" value="'.
_("Make Default") . '">'.
- '<input type=submit name="delete_' . $post . '" value="'.
+ '<input type="submit" name="delete_' . $post . '" value="'.
_("Delete") . '">';
}
if (! $isEmptySection && $post != '' && $post > 1) {
return ($return_val);
}
-?>
+?>
\ No newline at end of file
_("The index order is the order that the columns are arranged in the message index. You can add, remove, and move columns around to customize them to fit your needs.")
)
) ,
- '', '', '', 'width="65%" border="0" cellpadding="0" cellspacing="0"' ) . "<br>\n";
+ '', '', '', 'width="65%" border="0" cellpadding="0" cellspacing="0"' ) . "<br />\n";
if (count($index_order))
{
echo '</form>';
}
- echo html_tag( 'p', '<a href="../src/options.php">' . _("Return to options page") . '</a></p><br>' );
+ echo html_tag( 'p', '<a href="../src/options.php">' . _("Return to options page") . '</a></p><br />' );
?>
</td></tr>
for ($i = 0; $i < $cnt; $i++) {
$messagebody .= formatBody($imapConnection, $message, $color, $wrap_at, $ent_ar[$i], $passed_id, $mailbox);
if ($i != $cnt-1) {
- $messagebody .= '<hr noshade size=1 />';
+ $messagebody .= '<hr noshade size="1" />';
}
}