%! /********************************************************************** ** ** SAP AG Walldorf ** (C) Copyright SAP AG 1999-2010 ** ***********************************************************************/ #include "publicincl/http_subhdl.inc" struct icm_cache_status { boolean active; string csize; string csize_used; int max_entries; int centries; int max_ufo; int ufo_entr; int noreq_total; int noreq_cache; int nohits; int nomisses; int noreq_ufo; int nohits_ufo; int nohits_mem; int noswaps; }; struct icm_cache_entry { boolean valid; int dsize; int version; string exp_time; string crea_time; string last_acc; string filename; string name; }; %> <% struct icm_http_subhdl icm_subhdl_tab[]; struct icm_cache_status icm_cache_stat; struct icm_cache_entry icm_cache_tab[]; string browser, lastControlID; string hdlsel, tabsel, formfld, ref, cache_name; float hits, misses, hitsmem, ftmp; int page_no, i, nr, rc; int count = 0; boolean is_admin; string tab_hdlsel[]; string tab_header[2]; string tab_content[2]; string tab_tabsel[2]; tab_header[0] = "Settings"; tab_header[1] = "Cache Contents"; tab_tabsel[0] = "tab0"; tab_tabsel[1] = "tab1"; browser = __icm_get_browser_type(); lastControlID = htmlenc(__icm_get_form_field ("lastControlID")); count = __icm_http_hdl (2,icm_subhdl_tab,4); for (i = 0; i < count; i++) { tab_hdlsel[i] = ""; } is_admin = __icm_get_system_property ("is_admin"); hdlsel = anumenc(__icm_get_form_field ("hdlsel")); if (hdlsel != "") tab_hdlsel[hdlsel] = "selected"; tabsel = anumenc(__icm_get_form_field ("tabsel")); if (tabsel == "") tabsel = "tab0"; if (tabsel == "tab0") { __icm_cache_hdl (1, hdlsel, icm_cache_stat); } %>