-function abook_take_pref()
-{
- global $username, $data_dir;
- global $abook_take_hide, $abook_take_location, $abook_take_verify;
-
- $abook_take_location = getPref($data_dir, $username, 'abook_take_location');
- if ($abook_take_location == '')
- $abook_take_location = 'center';
-
- $abook_take_hide = getPref($data_dir, $username, 'abook_take_hide');
- $abook_take_verify = getPref($data_dir, $username, 'abook_take_verify');
-}
-
-
-function abook_take_options()
-{
- global $abook_take_location, $abook_take_hide, $abook_take_verify;
-
- echo html_tag( 'tr' ) .
- html_tag( 'td', _("Address Book Take") . ':', 'right', '', 'nowrap valign="top"' ) .
- html_tag( 'td', '', 'left' ) .
- '<select name="abook_take_abook_take_location">' .
- '<option value="left"';
- if ($abook_take_location == 'left')
- echo ' selected';
- echo '>' . _("Left aligned") . '</option>' .
- '<option value="center"';
- if ($abook_take_location == 'center')
- echo ' selected';
- echo '>' . _("Centered") . '</option>' .
- '<option value="right"';
- if ($abook_take_location == 'right')
- echo ' selected';
- echo '>' . _("Right aligned") . '</option>' .
- '</select> ' . _("on the Read screen") .'<br>' .
- '<input type="checkbox" name="abook_take_abook_take_hide"';
- if ($abook_take_hide)
- echo ' checked';
- echo '> ' . _("Hide the box") . '<br>' .
- '<input type=checkbox name="abook_take_abook_take_verify"';
- if ($abook_take_verify)
- echo ' checked';
- echo '> ' . _("Try to verify addresses") . '</td></tr>';
-}
-
-
-function abook_take_save()
-{
- global $username, $data_dir;
- global $abook_take_abook_take_location;
- global $abook_take_abook_take_hide;
- global $abook_take_abook_take_verify;
-
-
- if (isset($abook_take_abook_take_location))
- {
- setPref($data_dir, $username, 'abook_take_location', $abook_take_abook_take_location);
- }
- else
- {
- setPref($data_dir, $username, 'abook_take_location', 'center');
- }
-
- if (isset($abook_take_abook_take_hide))
- {
- setPref($data_dir, $username, 'abook_take_hide', '1');
- }
- else
- {
- setPref($data_dir, $username, 'abook_take_hide', '');
- }