source: branches/version-2_13-dev/html/install/templates/step2.tpl @ 22956

Revision 22956, 5.4 KB checked in by Seasoft, 11 years ago (diff)

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.13.0)

  • インデント

#2059 (HTML構文誤り for 2.13.0)

  • table 開始のみ
  • 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-2013 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    type = db_type.value;
25
26    if (type == 'pgsql') {
27        form1.db_port.value = '<!--{$arrDB_PORT.pgsql}-->';
28    }
29
30    if (type == 'mysql') {
31        form1.db_port.value = '<!--{$arrDB_PORT.mysql}-->';
32    }
33}
34</script>
35<form name="form1" id="form1" method="post" action="?">
36    <input type="hidden" name="mode" value="<!--{$tpl_mode}-->" />
37    <input type="hidden" name="step" value="0" />
38    <!--{foreach key=key item=item from=$arrHidden}-->
39        <input type="hidden" name="<!--{$key}-->" value="<!--{$item|h}-->" />
40    <!--{/foreach}-->
41    <div class="contents">
42        <div class="message">
43            <h2>データベースの設定</h2>
44            ※インストールの前に新しくDBを作成しておく必要があります。
45            <div class="attention"><!--{$arrErr.all}--></div>
46        </div>
47        <div class="block">
48            <table>
49                <col width="30%" />
50                <col width="70%" />
51                <tr>
52                    <th>DBの種類<span class="attention">※</span></th>
53                    <td>
54                    <!--{assign var=key value="db_type"}-->
55                    <span class="attention"><!--{$arrErr[$key]}--></span>
56                    <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" onChange="lfnChangePort(this)">
57                    <!--{html_options options=$arrDB_TYPE selected=$arrForm[$key].value}-->
58                    </select>
59                    </td>
60                </tr>
61                <tr>
62                    <th>DBサーバー</th>
63                    <td>
64                    <!--{assign var=key value="db_server"}-->
65                    <span class="attention"><!--{$arrErr[$key]}--></span>
66                    <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="50" />
67                    </td>
68                </tr>
69                <tr>
70                    <th>ポート</th>
71                    <td>
72                    <!--{assign var=key value="db_port"}-->
73                    <span class="attention"><span class="fs12n"><!--{$arrErr[$key]}--></span></span>
74                    <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="50" />
75                    </td>
76                </tr>
77                <tr>
78                    <th>DB名<span class="attention">※</span></th>
79                    <td>
80                    <!--{assign var=key value="db_name"}-->
81                    <span class="attention"><span class="fs12n"><!--{$arrErr[$key]}--></span></span>
82                    <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="50" />
83                    </td>
84                </tr>
85                <tr>
86                    <th>DBユーザ<span class="attention">※</span></th>
87                    <td>
88                    <!--{assign var=key value="db_user"}-->
89                    <span class="attention"><!--{$arrErr[$key]}--></span>
90                    <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="50" />
91                    </td>
92                </tr>
93                <tr>
94                    <th>DBパスワード<span class="attention">※</span></th>
95                    <td>
96                    <!--{assign var=key value="db_password"}-->
97                    <span class="attention"><!--{$arrErr[$key]}--></span>
98                    <input type="password" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="50" />
99                    </td>
100                </tr>
101            </table>
102        </div>
103
104        <div class="btn-area-top"></div>
105        <div class="btn-area">
106            <ul>
107                <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>
108                <li><a class="btn-action" href="javascript:;" onclick="document.form1.submit(); return false;"><span class="btn-next">次へ進む</span></a></li>
109            </ul>
110        </div>
111        <div class="btn-area-bottom"></div>
112    </div>
113</form>
Note: See TracBrowser for help on using the repository browser.