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