source: branches/version-2_12-dev/html/install/templates/step2.tpl @ 21864

Revision 21864, 5.2 KB checked in by h_yoshimoto, 12 years ago (diff)

#1831 Copyrightを更新

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
1<!--{*
2 * This file is part of EC-CUBE
3 *
4 * Copyright(c) 2000-2012 LOCKON CO.,LTD. All Rights Reserved.
5 *
6 * http://www.lockon.co.jp/
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 *}-->
22<script type="text/javascript">
23function lfnChangePort(db_type) {
24
25    type = db_type.value;
26
27    if (type == 'pgsql') {
28        form1.db_port.value = '<!--{$arrDB_PORT.pgsql}-->';
29    }
30
31    if (type == 'mysql') {
32        form1.db_port.value = '<!--{$arrDB_PORT.mysql}-->';
33    }
34}
35</script>
36<form name="form1" id="form1" method="post" action="?">
37<input type="hidden" name="mode" value="<!--{$tpl_mode}-->" />
38<input type="hidden" name="step" value="0" />
39<!--{foreach key=key item=item from=$arrHidden}-->
40    <input type="hidden" name="<!--{$key}-->" value="<!--{$item|h}-->" />
41<!--{/foreach}-->
42<div class="contents">
43    <div class="message">
44        <h2>データベースの設定</h2>
45        ※インストールの前に新しくDBを作成しておく必要があります。
46        <div class="attention"><!--{$arrErr.all}--></div>
47    </div>
48    <div class="block">
49        <table>
50            <col width="30%" />
51            <col width="70%" />
52            <tr>
53                <th>DBの種類<span class="attention">※</span></th>
54                <td>
55                <!--{assign var=key value="db_type"}-->
56                <span class="attention"><!--{$arrErr[$key]}--></span>
57                <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" onChange="lfnChangePort(this)">
58                <!--{html_options options=$arrDB_TYPE selected=$arrForm[$key].value}-->
59                </select>
60                </td>
61            </tr>
62            <tr>
63                <th>DBサーバー</th>
64                <td>
65                <!--{assign var=key value="db_server"}-->
66                <span class="attention"><!--{$arrErr[$key]}--></span>
67                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="50" />
68                </td>
69            </tr>
70            <tr>
71                <th>ポート</th>
72                <td>
73                <!--{assign var=key value="db_port"}-->
74                <span class="attention"><span class="fs12n"><!--{$arrErr[$key]}--></span></span>
75                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="50" />
76                </td>
77            </tr>
78            <tr>
79                <th>DB名<span class="attention">※</span></th>
80                <td>
81                <!--{assign var=key value="db_name"}-->
82                <span class="attention"><span class="fs12n"><!--{$arrErr[$key]}--></span></span>
83                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="50" />
84                </td>
85            </tr>
86            <tr>
87                <th>DBユーザ<span class="attention">※</span></th>
88                <td>
89                <!--{assign var=key value="db_user"}-->
90                <span class="attention"><!--{$arrErr[$key]}--></span>
91                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="50" />
92                </td>
93            </tr>
94            <tr>
95                <th>DBパスワード<span class="attention">※</span></th>
96                <td>
97                <!--{assign var=key value="db_password"}-->
98                <span class="attention"><!--{$arrErr[$key]}--></span>
99                <input type="password" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="50" />
100                </td>
101            </tr>
102        </table>
103    </div>
104
105    <div class="btn-area-top"></div>
106        <div class="btn-area">
107            <ul>
108                <li><a class="btn-action" href="javascript:;" onclick="document.form1['mode'].value='return_step1';document.form1.submit();return false;"><span class="btn-prev">前へ戻る</span></a></li>
109                <li><a class="btn-action" href="javascript:;" onclick="document.form1.submit(); return false;"><span class="btn-next">次へ進む</span></a></li>
110            </ul>
111        </div>
112        <div class="btn-area-bottom"></div>
113    </div>
114</form>
Note: See TracBrowser for help on using the repository browser.