True, 'nonavbar' => True ); } $GLOBALS['phpgw_info']['flags']['currentapp'] = 'addressbook'; include('../header.inc.php'); if (!$HTTP_POST_VARS['field']) { Header('Location: ' . $GLOBALS['phpgw']->link('/addressbook/fields.php')); } $field = $HTTP_POST_VARS['field']; $field_id = $HTTP_POST_VARS['field_id'] ? $HTTP_POST_VARS['field_id'] : $HTTP_GET_VARS['field_id']; $start = $HTTP_POST_VARS['start']; $query = $HTTP_POST_VARS['query']; $sort = $HTTP_POST_VARS['sort']; if ($HTTP_POST_VARS['confirm']) { save_custom_field($field); Header('Location: ' . $GLOBALS['phpgw']->link('/addressbook/fields.php',"start=$start&query=$query&sort=$sort")); } else { $hidden_vars = '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n"; $GLOBALS['phpgw']->template->set_file(array('field_delete' => 'delete_common.tpl')); $GLOBALS['phpgw']->template->set_var('messages',lang('Are you sure you want to delete this field?')); $nolinkf = $GLOBALS['phpgw']->link('/addressbook/fields.php',"field_id=$field_id&start=$start&query=$query&sort=$sort"); $nolink = '' . lang('No') . ''; $phpgw->template->set_var('no',$nolink); $yeslinkf = $GLOBALS['phpgw']->link('/addressbook/deletefield.php','field_id=' . $field_id . '&confirm=True'); $yeslinkf = '
'; $yeslink = '' . lang('Yes') . ''; $yeslink = $yeslinkf; $GLOBALS['phpgw']->template->set_var('yes',$yeslink); $GLOBALS['phpgw']->template->pparse('out','field_delete'); } $GLOBALS['phpgw']->common->phpgw_footer(); ?>