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

||begin_list_contact_groups|| # 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(contact_group_name,group))|| ||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|| )|| ||if(and(shared_abooks,not(istrue(personal_heading))))||
- ||web_decode_js(($$st_ct_personal$$))||
||define||personal_heading||true|| ||endif|| ||if(and(istrue(contact_group_shared),not(istrue(shared_heading))))||
- ||web_decode_js(($$st_ct_directories$$))||
||define||shared_heading||true|| ||endif|| # Actually output folder information ||if(equal(level,(0)))|| # Deal with display of special folders
- ||info1||||contact_group_name|| ||else|| # Deal with display of normal folders
- ||info1||||contact_group_name|| ||endif|| ||if(equal(contact_group_name,group))|| ||iftrue(contact_group_isbig)|| ||define||current_contact_group_isbig||true|| ||endif|| ||endif|| ||end_list_contact_groups|| # Apply end of list formatting ||ifdef||level_up|| ||define||foreach||level_up|| ||begin_list_foreach||

||end_list_foreach|| ||endif||