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