<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<%@ page contentType="text/html; charset=Shift_JIS" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic"%>
<%@ taglib prefix="c" uri="/WEB-INF/tlds/c.tld"%>
<jsp:useBean id="version" class="jp.co.orangesoft.xgate.XGateVersion" />

<html>
<head>
  <title>xGate動作環境設定</title>
  <link rel="stylesheet" href="../../css/default.css" type="text/css">
  <link rel="stylesheet" href="../../css/admin.css" type="text/css">
  <link rel="stylesheet" href="../../css/configsetup.css" type="text/css">
</head>

<body>

<div class="waku" style="width: 50em;">

<div class="title_bar">迷惑メールフィルター</div>

<html:form action="/configsetup/spamFilterForm?cmd=commit">

<table class="config">
  <tr>
    <td class="title_cell">本機能の使用</td>
    <td>
      <html:radio name="configsetupSpamFilterForm" property="isUse" value="yes">&nbsp;使用する</html:radio>
      <html:radio name="configsetupSpamFilterForm" property="isUse" value="no">&nbsp;使用しない</html:radio>
    </td>
  </tr>

  <tr>
    <td class="title_cell">迷惑メールを移動するメールボックス名</td>
    <td>
      <html:text name="configsetupSpamFilterForm" property="mailbox" size="40"/>
    </td>
  </tr>

  <tr>
    <td class="title_cell">辞書</td>
    <td></td>
  </tr>

  <tr>
    <td class="sub_title_cell">登録した迷惑メール数</td>
    <td>
      <bean:write name="spamDictionaryStatus" property="badMessageCount"/>
        (<bean:write name="spamDictionaryStatus" property="badWordCount"/>単語)
      <logic:lessThan  name="spamDictionaryStatus" property="badMessageCount" value="100">
          <br>登録件数不足(100通必要)
      </logic:lessThan >
    </td>
  </tr>

  <tr>
    <td class="sub_title_cell">登録した通常メール数</td>
    <td>
      <bean:write name="spamDictionaryStatus" property="goodMessageCount"/>
        (<bean:write name="spamDictionaryStatus" property="goodWordCount"/>単語)
      <logic:lessThan  name="spamDictionaryStatus" property="goodMessageCount" value="100">
          <br>登録件数不足(100通必要)
      </logic:lessThan >
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<div style="padding: 0.5em;">
    <input type="hidden" name="lang" value="ja">
    <input type="submit" value="登録" name="ptype" class="cmd_btn">
    <html:cancel value="キャンセル" styleClass="cmd_btn"/>
</div>

</html:form>

</div>

<%@ include file="/form/configsetup/footer.jsp" %>

</body>
</html>
