True, 'nonavbar' => True); } $phpgw_info["flags"]["currentapp"] = "addressbook"; include("../header.inc.php"); $c = CreateObject('phpgwapi.categories'); if (! $cat_id) { Header('Location: ' . $phpgw->link('/addressbook/categories.php')); } if ($confirm) { $c->delete($cat_id); Header('Location: ' . $phpgw->link('/addressbook/categories.php')); } else { $hidden_vars = "\n"; $t = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('addressbook')); $t->set_file(array('category_delete' => 'delete.tpl')); $t->set_var('deleteheader',lang('Are you sure you want to delete this category ?')); $nolinkf = $phpgw->link('/addressbook/categories.php',"cat_id=$cat_id"); $nolink = "" . lang('No') .""; $t->set_var("nolink",$nolink); $yeslinkf = $phpgw->link('/addressbook/deletecategory.php',"cat_id=$cat_id&confirm=True"); $yeslinkf = "
link('/addressbook/deletecategory.php') . "\">" . $hidden_vars . "" . "" . "" . "
"; $yeslink = "" . lang('Yes') .""; $yeslink = $yeslinkf; $t->set_var('yeslink',$yeslink); $t->pparse('out','category_delete'); } $phpgw->common->phpgw_footer(); ?>