# ~folders.htm compose message file ||ifequal||sid||0|| auth_error('||auth_fail_reason||'); ||else||
||if(not(istrue(imap_flags_available)))||
$$st_lblmng_noflags$$
||endif||

$$st_lblmng_desc1$$ | ||define||label_name||$$st_lblmng_eg1$$|| ||define||label_bg||#FFE3E3|| ||define||label_bdr||#F0B2B2|| ||undef||label_col|| ||web_encode(label_name)|| | $$st_lblmng_desc2$$ | ||define||label_name||$$st_lblmng_eg2$$|| ||define||label_bg||#D3E2C3|| ||define||label_bdr||#98BB74|| ||undef||label_col|| ||web_encode(label_name)||
$$st_lblmng_desc3$$

$$st_lblmng_create_new$$ ||if_not(moreflags_available)||** ||endif||: ||ifdef||label_universal_nocreate|| $$st_lblmng_policy_sw$$ ||else|| ||iftrue(moreflags_available)||||endif|| $$st_lblmng_create_sw$$ ||iftrue(moreflags_available)||||endif|| ||endif||

| $$st_lblmng_col_name$$ | $$st_lblmng_col_act$$ | $$st_lblmng_col_disp$$ | $$st_lblmng_col_store$$
--- | --- | --- | --- | ---
||begin_list_labels||
| ||web_encode(label_name)|| | $$st_lblmng_actn_name$$ | $$st_lblmng_actn_col$$ | ||iftrue(label_hidden)|| $$st_lblmng_actn_show$$ ||else|| $$st_lblmng_actn_hide$$ ||endif|| ||iftrue(imap_label)|| # Cannot be deleted ||iftrue(moreflags_available)|| | $$st_lblmng_actn_del$$ ||endif|| ||else|| | $$st_lblmng_actn_del$$ ||endif|| | \ ||iftrue(label_hidden)|| ||else|| ||web_encode(label_name)|| ||endif||\ \ ||iftrue(imap_label)|| | ||label_tag|| | ||if_not(moreflags_available)||$$st_lblmng_unvl$$ (||iftrue(new_label)||$$st_lblmng_unvl_na$$||else|| ||$(($$st_lblmng_unvl_n$$),label_flagbit,22)|| ||endif||)||endif|| ||else|| | ||label_tag|| | $$st_lblmng_swl$$ ||endif||
||define||done_some||true|| ||end_list_labels|| ||if(not(istrue(done_some)))||
$$st_lblmng_none$$ ||endif||

||if_not(moreflags_available)||
**
||iftrue(help_context)|| ||define((url_extra),concat((/user.htm),help_extra,(#labels)))|| ||endif|| ||define||alink||()|| ||$((st_lblmng_info1),alink,())||
$$st_lblmng_info2$$
$$st_lblmng_info3$$ $$st_lblmng_info4$$
||endif|| ||iftrue(imap_flags_available)||
$$st_lblmng_map_info1$$ $$st_lblmng_map_info2$$
$$st_lblmng_map_info3$$
$$st_lblmng_pin_info1$$
$$st_lblmng_pin_info2$$
||endif||
#
# Still all bit yuck but the construct is getting nicer :-) # I think we need to make the "result div" a script block and then it is as nice as it will get given browser constraints ||ifdef||output_folders|| ||define||script_block||execute_it|| ||include||_flds.js|| ||endif|| ||ifdef||results|| success_string=''; ||begin_list_results|| add_error('||result_type||','||web_encode_js(result)||'); ||end_list_results|| if(success_string) set_status(success_string,'warning'); ||endif|| panel_show_old("labels"); var js=dge("execute_it"); if(js){ eval(js.innerHTML); js.parentNode.removeChild(js); } ||endif||