# ~folders.htm compose message file ||ifequal||sid||0|| auth_error('||auth_fail_reason||'); ||else||
#
$$st_fldmng_new1$$ $$st_fldmng_new2$$

$$st_fldmng_col_fld$$ | $$st_fldmng_col_msgs$$ | $$st_fldmng_col_unread$$ | $$st_fldmng_col_size$$ | $$st_fldmng_col_actions$$ | $$st_fldmng_col_top$$ ||begin_list_folders|| ||if(equal(nfld_id,(More Folders)))||
--- | --- | --- | --- | --- | ---
\ ||web_encode_js(nfld_short_name)||\ ||else||
\ ||if(not(blank(nfld_missing)))||\ ||web_encode_js(nfld_short_name)||\ | \ | \ | \ | \ | ||else||\ | ||web_encode_js(nfld_short_name)||\ | ||nfld_nmsg||\ | ||nfld_unread||\ | ||iftrue(nfld_size_unknown)|| $$st_fldmng_calc$$ ||else|| ||kbytes_basic(nfld_size_kb)|| ||endif||\ | ||if(or(istrue(user_folder),equal(nfld_id,(Templates))))|| # $$st_fldmng_actn_name$$ | $$st_fldmng_actn_move$$ | $$st_fldmng_actn_del$$ ||endif|| ||iftrue(pref_devt_mode)||[dump] ||endif|| | ||if(or(istrue(showtop_show),istrue(showtop_hide)))|| ||if(istrue(showtop_hide))|| $$st_fldmng_demote$$ ||else|| $$st_fldmng_promote$$ ||endif|| ||endif|| ||endif||
||endif|| ||end_list_folders||
$$st_fldmng_sfld$$

$$st_fldmng_advanced$$

| $$st_fldmng_recalc_all_i$$$$st_fldmng_recalc_all_i2$$
| $$st_fldmng_refr_all_i$$ $$st_fldmng_refr_all_i2$$
| $$st_fldmng_xinfo_i$$ $$st_fldmng_xinfo_i2$$
||if(blank(imap_acl_disabled))|| | $$st_fldmng_acl_info$$ ||else|| | $$st_fldmng_acl_disabled$$ ||endif||

$$st_fldmng_info1$$

$$st_fldmng_info2a$$ ||ifndef||templates_exists|| ($$st_fldmng_info2b$$) ||endif|| $$st_fldmng_info2c$$

$$st_fldmng_info3a$$ ||ifndef||notes_exists|| ($$st_fldmng_info3b$$) ||endif|| $$st_fldmng_info3c$$

#
# 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|| ||define||tparam_folder_notop||false|| ||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("folders"); var js=dge("execute_it"); if(js){ eval(js.innerHTML); js.parentNode.removeChild(js); } ||endif||