- echo '<br>' .
- '<table width=95% align=center border=0 cellpadding=2 cellspacing=0>'.
- "<tr><td bgcolor=\"$color[0]\">".
- '<center><b>' . _("Options") . ' - ' . _("Message Filtering") . '</b></center>'.
- '</td></tr></table>'.
- '<br><center>[<a href="options.php?action=add">' . _("New") .
- '</a>] - [<a href="../../src/options.php">' . _("Done") . '</a>]</center><br>';
+ echo html_tag( 'table',
+ html_tag( 'tr',
+ html_tag( 'td',
+ '<div style="text-align: center;"><b>' . _("Options") . ' - ' . _("Message Filtering") . '</b></div>' ,
+ 'left', $color[0]
+ )
+ ),
+ 'center', '', 'width="95%" border="0" cellpadding="2" cellspacing="0"'
+ ) .
+ '<br /><form method="post" action="options.php">'.
+ html_tag( 'table', '', 'center', '', 'border="0" cellpadding="2" cellspacing="0"' ) .
+ html_tag( 'tr' ) .
+ html_tag( 'th', _("What to Scan:"), 'right', '', 'style="white-space: nowrap;"' ) .
+ html_tag( 'td', '', 'left' ) .
+ '<select name="filters_user_scan_set">'.
+ '<option value=""';
+ if ($filters_user_scan == '') {
+ echo ' selected="selected"';
+ }
+ echo '>' . _("All messages") . '</option>'.
+ '<option value="new"';
+ if ($filters_user_scan == 'new') {
+ echo ' selected="selected"';
+ }
+ echo '>' . _("Only unread messages") . '</option>' .
+ '</select>'.
+ '</td>'.
+ html_tag( 'td', '<input type="submit" name="user_submit" value="' . _("Save") . '" />', 'left' ) .
+ '</table>'.
+ '</form>'.
+
+ html_tag( 'div', '[<a href="options.php?action=add">' . _("New") .
+ '</a>] - [<a href="'.SM_PATH.'src/options.php">' . _("Done") . '</a>]' ,
+ 'center' ) . '<br />';