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