{include file="$admingentemplates/admin_top.tpl"}
<div class="back">
        <a href="{$site_url}{$site_root}/admin/admin_modules.php">{$lang.button.back}</a>
</div>
<div class="cr"></div>
<div class="show_help" style="display: none;">&nbsp;</div>
<font class=red_header>{$lang.settings.123flashchat}</font>
<div class="cr">&nbsp;</div>
<div class="cr">&nbsp;</div>
<div style="display:block;" class="help_text">
        <div class="close_help">
                <img src="{$site_root}{$template_root}/images/close_help.png" alt="">
        </div>
        <div class="help_body">
                <span class="help_title">{$lang.help}:</span>{$lang.admin_help.av_module}
        </div>
</div>
<div class="cr">&nbsp;</div>
<div style="display:table;width:100%;">
        <ul class="tabs">
                <li>
                        <a href="{$site_url}{$site_root}/admin/admin_av_module.php">{$lang.admin_menu.settings}</a>
                </li>
                <li>
                        <a class="current">{$lang.settings.123flashchat}</a>
                </li>
                <li>
                        <a href="{$site_url}{$site_root}/admin/admin_chat7.php">{$lang.settings.flashcoms}</a>
                </li>
                <li>
                        <a href="{$site_url}{$site_root}/admin/webmessenger/connlist.php">{$lang.settings.userplane}</a>
                </li>
				<li>
                        <a {if $par eq 5}class="current"{else}href="{$site_url}{$site_root}/admin/admin_av_module.php?sel=cometchat"{/if}>Cometchat</a>
                </li>
        </ul>
</div>
<div class="panel_section" style="width:100%;display:table;"><div class="panel_content">
<div id="topcmm_123flashchat"><div>&nbsp;</div>
<div id="chat_instruction"></div>
<form action="basicsetting.php" method="post" name="flash">
<table>
    <tr>
        <td width="200">
            {$lang.123flashchat.hmode}:
        </td>
        <td>
            <select id="hmode" name="hmode" onChange = "showSettingForm('{$rooturl}','0',{$topcmm_config_value.extendserver});">
                <option value="1" {$checked.localchecked}>{$lang.123flashchat.hmode_local}</option>
                <option value="2" {$checked.remotechecked}>{$lang.123flashchat.hmode_123}</option>
                <option value="3" {$checked.freechecked}>{$lang.123flashchat.hmode_free}</option>
            </select>
        </td>
    </tr>
    <tr id="chat_server_path_field">
        <td>
            {$lang.123flashchat.chat_server_path}:
        </td>
        <td>
            <input id="chat_server_path" class="chat_server_path" type="text" name="chat_server_path" value="{$topcmm_config_value.chatserverpath}" size="60"/> 
            <img src="{$site_root}{$template_root}/images/menu/icons/qa_adminmenu_icon.gif" title="{$lang.123flashchat.chat_server_path_title}" ></img>
        </td>
    </tr>
    <tr id="chat_room_name_field">
        <td>
            {$lang.123flashchat.chat_rmane}:
        </td>
        <td>
            <input id="chat_room_name" class="chat_room_name" type="text" name="chat_room_name" value="{$topcmm_config_value.chatroomname}" size="60"/> 
            <img src="{$site_root}{$template_root}/images/menu/icons/qa_adminmenu_icon.gif" title="{$lang.123flashchat.chat_rmane_title}" ></img>
        </td>
    </tr>
    <tr id="client_location_host_field">
        <td>
            {$lang.123flashchat.chat_location}:
        </td>
        <td>
            <input id="client_location_host" class="client_location" type="text" name="client_location_host" value="{$topcmm_config_value.clientlocation}" size="60"/> 
            <img src="{$site_root}{$template_root}/images/menu/icons/qa_adminmenu_icon.gif" title="{$lang.123flashchat.chat_location_title}" ></img>
        </td>
    </tr>
</table>
<a class="admin_button_major" onclick="javascript: document.flash.submit();">{$button.save}<span>&nbsp;</span></a>
</form>
</div>
</div>
</div>

{include file="$admingentemplates/admin_bottom.tpl"}
{literal}
<script language="javascript" src="../js/main.js"></script>
<script language="javascript">
showSettingForm('{$rooturl}');
</script>
{/literal}