# Surgeweb plain HTML interface ||include||_head.htm|| # Simplify the output of the groups and contacts listing commands a little ||define||tparam_html_templates||true||
||ifndef||group|| ||define||group||All Contacts|| ||endif|| ||define||contacts_column||TRUE|| ||include||_layout_begin.htm||

\ \ ||define((bk_header),(User))||\ ||begin_list_contacts||\ ||if(not(equal(bk_header,abook)))|| ||abook|| ||endif||\ ||if(equal(contact_id,server_cid))||||define||sel||selected||||else||||undef||sel||||endif||\ \ ||web_encode(contact_name)|| ||if(blank(contact_name))|| ||web_encode(contact_email)|| ||endif|| ||define((bk_header),abook)|| ||end_list_contacts|| ||iftrue(current_contact_group_isbig)|| $$st_ct_cmd_limited_dir$$ ||endif|| | ||ifdef||server_cid|| ||define||output||one|| ||begin_list_contacts|| ||iftrue(contact_webmail)|| $$st_ct_read_web$$ ||endif|| ||iftrue(contact_shared)|| $$st_ct_read_shared$$ ||endif|| ||if(not(blank(contact_icon)))|| ||define||img_url||(||cgi||?cmd=contact_icon&abook=||abook||&icon=||contact_icon||&cid=||contact_id||&sid=||sid||)|| ||else|| ||define||img_url||(||www_base||shared/img/no_picture.gif)|| ||endif||
| ||iftrue(editing)|| $$st_ct_info_firstname$$ $$st_ct_info_lastname$$ ||else|| ||web_encode(contact_name)|| ||endif||
||if(or(not(blank(contact_email)),editing))||
$$st_email$$ | ||iftrue(editing)|| ||else|| ||web_encode(contact_email)|| ||endif||
||endif|| ||if(or(not(blank(contact_phone)),editing))||
$$st_phone$$ | ||iftrue(editing)|| ||else|| ||web_encode(contact_phone)|| ||endif||
||endif|| ||if(or(not(blank(contact_address)),editing))||
address | ||iftrue(editing)|| ||web_encode(web_decode_js(contact_address))|| ||else|| #
    					||web_encode_multi_line(web_decode_js(contact_address))||
    #
||endif|| ||web_encode()||
||endif|| ||if(not(or(istrue(contact_webmail),istrue(contact_shared))))|| ||ifdef||editing|| ||else|| ||endif|| Additional contact management actions: # ||endif|| ||end_list_contacts|| $$st_ct_cmd_limited$$ ||endif||

||include||_layout_end.htm||\