<!-- $Id: integrates_setup.htm 7764 2007-04-02 05:17:34Z paulgao $ -->
{include file="pageheader.htm"}
<!-- start integrate setup form -->
<div class="main-div">
  <form action="integrate.php" method="post" name="theForm" onsubmit="return validate();">
  <table cellspacing='1' cellpadding='3'>
    <tr>
      <td class="label">{$lang.lable_db_host}</td>
      <td><input type="text" name="db_host" value="{$cfg.db_host}" />{$lang.require_field}</td>
    </tr>
    <tr>
      <td class="label">{$lang.lable_db_user}</td>
      <td><input type="text" name="db_user" value="{$cfg.db_user}" />{$lang.require_field}</td>
    </tr>
    <tr>
      <td class="label">{$lang.lable_db_pass}</td>
      <td><input type="password" name="db_pass" value="{$cfg.db_pass}" />{$lang.require_field}</td>
    </tr>
    <tr>
      <td class="label">{$lang.lable_db_name}</td>
      <td><input type="text" name="db_name" value="{$cfg.db_name}" />{$lang.require_field}</td>
    </tr>
    <tr>
      <td class="label">{$lang.lable_db_chartset}</td>
      <td><select name="db_chartset">{html_options options=$set_list selected=$cfg.db_chartset}</select>{$lang.require_field}</td>
    </tr>
    <tr>
      <td class="label">{$lang.lable_prefix}</td>
      <td><input type="text" name="prefix" value="{$cfg.prefix}" /></td>
    </tr>
    <tr>
      <td class="label">{$lang.lable_url}</td>
      <td><input type="text" name="integrate_url" value="{$cfg.integrate_url}" />{$lang.require_field}</td>
    </tr>
    {if $code eq "discuz55"}
    <tr>
      <td class="label"><a href="javascript:showNotice('LogoNameNotic');" title="{$lang.form_notice}">
      <img src="images/notice.gif" width="16" height="16" border="0" alt="{$lang.form_notice}"></a>{$lang.cookie_prefix}</td>
      <td><input type="text" name="cookie_prefix" value="{$cfg.cookie_prefix}" />{$lang.require_field}
            <br /><span class="notice-span" id="LogoNameNotic">{$lang.cookie_prefix_notic}</span>
      </td>
    </tr>
    {/if}
    <tr>
      <td colspan="2" align="center">
        <input type="submit" value="{$lang.button_submit}" class="button" />
        <input type="reset" value="{$lang.button_reset}" class="button"  />
        <input type="hidden" name="code" value="{$code}" />
        <input type="hidden" name="act" value="update" />
      </td>
    </tr>
  </table>
  </form>
</div>
<!-- end integrate setup form -->
{insert_scripts files="../js/utils.js,validator.js"}
{literal}
<script language="JavaScript">
<!--
onload = function()
{
    document.forms['theForm'].elements['db_host'].focus();
    // 开始检查订单
    startCheckOrder();
}

/**
 * 验证表单输入的内容
 */
function validate()
{
    var validator = new Validator('theForm');
    validator.required('db_host', no_host);
    validator.required('db_user', no_user);
    validator.required('db_name', no_name);
    validator.required('integrate_url', no_integrate_url);

    return validator.passed();
}
//-->
</script>
{/literal}
{include file="pagefooter.htm"}