# Surgeweb plain HTML interface # Include file that shows "list of folders" in various guises
||define||ftree||true||

||begin_list_folders|| # Supply nested list tags around each foldername (for collapsability) ||ifdef||level_down|| ||define||foreach||level_down|| ||begin_list_foreach||

||end_list_foreach|| ||else||||ifdef||level_up|| ||define||foreach||level_up|| ||begin_list_foreach||

||end_list_foreach|| ||else|| ||endif||||endif|| ||define||info1||
1 S
|| ||if(equal(nfld_id,fld_id))|| ||define||sel||selfld|| ||else|| ||undef||sel|| ||endif|| ||if(or(equal(ftree_node,(open)),equal(ftree_node,(closed))))|| ||define||evt||onclick="fld_expand(event)"|| ||else|| ||undef||evt|| ||endif|| ||if(greater_than(nfld_unread,0))|| ||define||unread_x||( (||nfld_unread||) )|| ||else|| ||define||unread_x|||| ||endif|| ||define||unread||( ||unread_x|| )|| # Actually output folder information ||if(equal(level,(0)))|| # Deal with display of special folders ||undef||extra|| ||if(and(equal(nfld_id,(More Folders)),istrue(folder_fake)))||
- ||info1||$$st_ftree_more_fld$$||extra|| $$st_ftree_manage$$ ||else||
- ||info1||||nfld_short_name|| ||unread|| ||endif|| # Add extra links ||if(equal(fld_type,1))|| $$st_ftree_refresh_inbox$$ # Trash folder ||else|| ||if(equal(fld_type,4))|| $$st_ftree_purge$$ ||endif|| ||endif|| ||else|| # Deal with display of normal folders
- ||info1||||nfld_short_name|| ||unread|| ||endif|| ||end_list_folders|| # Apply end of list formatting ||ifdef||level_up|| ||define||foreach||level_up|| ||begin_list_foreach||

||end_list_foreach|| ||endif||