<!--{*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *}-->
<script type="text/javascript">
function lfnChangePort(db_type) {

    type = db_type.value;

    if (type == 'pgsql') {
        form1.db_port.value = '<!--{$arrDB_PORT.pgsql}-->';
    }

    if (type == 'mysql') {
        form1.db_port.value = '<!--{$arrDB_PORT.mysql}-->';
    }
}
</script>
<table width="502" border="0" cellspacing="1" cellpadding="0" summary=" ">
<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
<input type="hidden" name="mode" value="<!--{$tpl_mode}-->">
<input type="hidden" name="step" value="0">
<!--{foreach key=key item=item from=$arrHidden}-->
<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->">
<!--{/foreach}-->

<tr><td height="30"></td></tr>
<tr><td align="left" class="fs12st">■データベースの設定</td></tr>
<tr><td align="left" class="fs12">※インストールの前に新しくDBを作成しておく必要があります。</td></tr>
<tr><td align="left" class="red12"><!--{$arrErr.all}--></td></tr>
<tr>
    <td bgcolor="#cccccc">
    <table width="500" border="0" cellspacing="1" cellpadding="8" summary=" ">
        <tr>
            <td bgcolor="#f2f1ec" width="150" class="fs12n">DBの種類<span class="red">※</span></td>
            <td bgcolor="#ffffff" width="332" class="fs12">
            <!--{assign var=key value="db_type"}-->
            <span class="red"><!--{$arrErr[$key]}--></span>
            <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" onChange="lfnChangePort(this)">
            <!--{html_options options=$arrDB_TYPE selected=$arrForm[$key].value}-->
            </select>
            </td>
        </tr>
        <tr>
            <td bgcolor="#f2f1ec" width="150" class="fs12n">DBサーバ<span class="red">※</span></td>
            <td bgcolor="#ffffff" width="332" class="fs12">
            <!--{assign var=key value="db_server"}-->
            <span class="red"><!--{$arrErr[$key]}--></span>
            <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="40" class="box40" />
            </td>
        </tr>
        <tr>
            <td bgcolor="#f2f1ec" width="150" class="fs12n">ポート</td>
            <td bgcolor="#ffffff" width="332">
            <!--{assign var=key value="db_port"}-->
            <span class="red"><span class="fs12n"><!--{$arrErr[$key]}--></span></span>
            <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="6" class="box6" />
            </td>
        </tr>
        <tr>
            <td bgcolor="#f2f1ec" width="150" class="fs12n">DB名<span class="red">※</span></td>
            <td bgcolor="#ffffff" width="332" class="fs12">
            <!--{assign var=key value="db_name"}-->
            <span class="red"><span class="fs12n"><!--{$arrErr[$key]}--></span></span>
            <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="40" class="box40" />
            </td>
        </tr>
        <tr>
            <td bgcolor="#f2f1ec" width="150" class="fs12n">DBユーザ<span class="red">※</span></td>
            <td bgcolor="#ffffff" width="332" class="fs12">
            <!--{assign var=key value="db_user"}-->
            <span class="red"><!--{$arrErr[$key]}--></span>
            <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="40" class="box40" />
            </td>
        </tr>
        <tr>
            <td bgcolor="#f2f1ec" width="150" class="fs12n">DBパスワード<span class="red">※</span></td>
            <td bgcolor="#ffffff" width="332" class="fs12">
            <!--{assign var=key value="db_password"}-->
            <span class="red"><!--{$arrErr[$key]}--></span>
            <input type="password" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="40" class="box40" />
            </td>
        </tr>
    </table>
    </td>
</tr>
</table>

<table width="500" border="0" cellspacing="1" cellpadding="8" summary=" ">
    <tr><td height="20"></td></tr>
    <tr>
        <td align="center">
        <a href="#" onmouseover="chgImg('../<!--{$default_dir}-->/img/install/back_on.jpg','back')" onmouseout="chgImg('../<!--{$default_dir}-->/img/install/back.jpg','back')" onclick="document.form1['mode'].value='return_step1';document.form1.submit();return false;" /><img  width="105" src="../<!--{$default_dir}-->/img/install/back.jpg"  height="24" alt="前へ戻る" border="0" name="back"></a>
        <input type="image" onMouseover="chgImgImageSubmit('../<!--{$default_dir}-->/img/install/next_on.jpg',this)" onMouseout="chgImgImageSubmit('../<!--{$default_dir}-->/img/install/next.jpg',this)" src="../<!--{$default_dir}-->/img/install/next.jpg" width="105" height="24" alt="次へ進む" border="0" name="next">
        </td>
    </tr>
    <tr><td height="30"></td></tr>
</from>
</table>
