source:
branches/version-2_12-multilang/html/install/templates/step2.tpl
@
22230
Revision 22230, 5.2 KB checked in by Seasoft, 11 years ago (diff) | |
---|---|
|
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"> |
23 | function 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><!--{t string="tpl_776"}--></h2> |
45 | <!--{t string="tpl_777"}--> |
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><!--{t string="tpl_778" escape="none"}--></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><!--{t string="LC_Page_Install_034"}--></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><!--{t string="tpl_779"}--></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><!--{t string="tpl_780" escape="none"}--></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><!--{t string="tpl_781" escape="none"}--></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><!--{t string="tpl_782" escape="none"}--></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"><!--{t string="tpl_610"}--></span></a></li> |
109 | <li><a class="btn-action" href="javascript:;" onclick="document.form1.submit(); return false;"><span class="btn-next"><!--{t string="tpl_736"}--></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.