<? global $vis_language; ?>
<div id="vis_selfhelp_main_content_div"><div class="vis_main_window vis_shadow vis_round_corner"><table cellpadding="0" cellspacing="0" width="100%"><tr><td>
    <div class="vis_main_header" id="vis_selfhelp_options_list">
        <span class="vis_sub_header_selected" onclick="$(this).visInterface('switch_subtab', {'vis_static_area':'vis_selfhelp_options_list'}); $('#vis_selfhelp_main_category_div').visExecution('load_area', {'vis_module':'selfhelp', 'vis_operation':'refresh_category'})"><? echo $vis_language['TXTCATEGORIES']; ?></span>
        <span class="vis-toolbar-splitter"></span>
        <span class="vis_sub_header_normal" onclick="$(this).visInterface('switch_subtab', {'vis_static_area':'vis_selfhelp_options_list'}); $('#vis_selfhelp_main_category_div').visExecution('load_area', {'vis_module':'selfhelp', 'vis_operation':'show_comment', 'vis_domain':<? echo $domain; ?>})"><? echo $vis_language['TXTCOMMENTS']; ?></span>
    </div></td><td align="right"><select name="vis_domain" class="vis_input" onchange="$(this).visInterface('switch_subtab', {'vis_static_area':'vis_selfhelp_options_list'}); $('#vis_selfhelp_main_content_div').visExecution('load_area', {'vis_module':'selfhelp', 'vis_operation':'view_selfhelp', 'vis_domain':$(this).val()})"><?
        for($i=0;$i<count($domains);$i++) echo '<option value="'.$domains[$i]['domain_id'].'"'.(($domains[$i]['domain_id']==$domain)?' selected="selected"':'').'>'.addslashes($domains[$i]['domain_name']).'</option>'; ?></select></td></tr></table>
    <div class="vis_main_window_content vis_round_corner"><div id="vis_selfhelp_main_category_div"><? include(VIS_PATH_TEMPLATE.'selfhelp_list.php'); ?></div></div>
</div>