<!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 prefix="c" uri="/WEB-INF/tlds/c.tld"%>
<jsp:useBean id="version" class="jp.co.orangesoft.xgate.XGateVersion" />

<html>
<head>
  <title>xGate動作環境設定</title>
  <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
  <script language="javascript">
    <!--
  function openHelp(name){
    window.open("%%base%%help/ja/"+name+".html","Newwindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=350");
    window.blur();
  }
  -->
  </script>
  <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">OTP（ワンタイムパスワード）機能</div>

<html:form action="/configsetup/otpForm?cmd=commit" focus="port0">

<table width="100%" border="0" cellspacing="0" cellpadding="4" class="config">
  <tr>
    <td class="title_cell" style="width: 17em;">本機能の使用</td>
    <td>
      <html:radio name="configsetupOtpForm" property="isUse" value="yes">使用する</html:radio>
      <html:radio name="configsetupOtpForm" property="isUse" value="no">使用しない</html:radio>
    </td>
  </tr>

  <tr>
    <td class="title_cell">認証サーバー設定</td>
  </tr>
  <tr>
    <td class="sub_title_cell">サーバーホスト情報</td>
    <td></td>
  </tr>
  <tr>
    <td colspan="2">
      <table width="80%" border="1" cellspacing="0" cellpadding="3" style="background-color: white;border-collapse: collapse;">
        <tr>
          <th>No</th>
          <th nowrap>サーバー名</th>
          <th nowrap>ポート番号</th>
          <th nowrap>秘密鍵</th>
        </tr>
        <tr>
          <td align="center">１</td>
          <td align="center">
          	<html:text property="host0" size="40"/>
          </td>
          <td align="center">
          	<html:text property="port0" size="5"/>
          	<html:errors property="port0"/>
          </td>
          <td align="center">
          	<html:password property="password0" size="16"/>
          </td>
        </tr>
        <tr>
          <td align="center">２</td>
          <td align="center">
          	<html:text property="host1" size="40"/>
          </td>
          <td align="center">
          	<html:text property="port1" size="5"/>
          	<html:errors property="port1"/>
          </td>
          <td align="center">
          	<html:password property="password1" size="16"/>
          </td>
        </tr>
        <tr>
          <td align="center">３</td>
          <td align="center">
          	<html:text property="host2" size="40"/>
          </td>
          <td align="center">
          	<html:text property="port2" size="5"/>
          	<html:errors property="port2"/>
          </td>
          <td align="center">
          	<html:password property="password2" size="16"/>
          </td>
        </tr>
        <tr>
          <td align="center">４</td>
          <td align="center">
          	<html:text property="host3" size="40"/>
          </td>
          <td align="center">
          	<html:text property="port3" size="5"/>
          	<html:errors property="port3"/>
          </td>
          <td align="center">
          	<html:password property="password3" size="16"/>
          </td>
        </tr>
        <tr>
          <td align="center">５</td>
          <td align="center">
          	<html:text property="host4" size="40"/>
          </td>
          <td align="center">
          	<html:text property="port4" size="5"/>
          	<html:errors property="port4"/>
          </td>
          <td align="center">
          	<html:password property="password4" size="16"/>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="sub_title_cell">OTPの長さ</td>
    <td>
    	<html:text name="configsetupOtpForm" property="otpLength" size="10"/>
    	<html:errors property="otpLength"/>
    </td>
  </tr>

  <tr>
    <td class="sub_title_cell">OTP認証なしのログインを許可する</td>
    <td>
      <html:radio name="configsetupOtpForm" property="allowNoOtpAccess" value="no">&nbsp;許可する</html:radio>
      <html:radio name="configsetupOtpForm" property="allowNoOtpAccess" value="yes">&nbsp;許可しない</html:radio>
    </td>
  </tr>
</table>

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

</html:form>

</div>

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

</body>
</html>
